03-22-2011 09:40 AM - edited 03-22-2011 09:50 AM
Hello. I put the icon file in the same directory as the actionscript file is in and I also follow the BlackBerry Playbook SDK tutorial to create the xml file. However, the icon is still not showing up. Is there any solution for this scenario ?
Now I try to rename the icon file to blackberry-tablet-icon.png and it does not work. Then I try to rename the xml file to blackberry-app.xml, but it does not work too. I think I have screwed up those xml files. I can't run my app now.
Now when I try to run my app, it pops up a message box saying that Launching error:null. What should I do in order to solve this problem ?
Thank you very much in advance.
03-22-2011 09:56 AM
03-22-2011 08:32 PM
Do you mean that I will have the following xml files ?
And I will have my icon file in the same directory as those two.
Actaully I ran the Hello World sample app from the BlackBerry Playbook website, even though it does not come with an icon file, in the simulation there is still a default icon file for it. However, the item of my app does not even show up in the simulator. When I press run myapp in Flash Builder 4.0.1, my app can run but there is just nothing that shows the existence of myapp in the simulator.
Thank you for your reply.
03-23-2011 07:57 AM - edited 03-23-2011 07:57 AM
The icon does not have to be in the same directory as the XML files. Typically, icons (and things like them) are maintained in an "assets" directory under "/src". Those files are copied to bin-debug on compile. So in the blackberry-tablet.xml file, you give the relative path from /src. For example "assets/myicon.png".
<qnx> <initialWindow> <systemChrome>none</systemChrome> <transparent>false</transparent> </initialWindow> <publisher>YOUR_CN_NAME</publisher> <category>core.utils</category> <permission>access_internet</permission> <!-- <permission>access_shared</permission> --> <permission>play_audio</permission> <permission>read_geolocation</permission> <!-- <permission>record_audio</permission> --> <!-- <permission>set_audio_volume</permission> --> <!-- <permission>use_camera</permission> --> <splashscreen>assets/splash.png</splashscreen> <icon> <image>assets/icons/compass_icon_86.png</image> </icon> </qnx>
03-28-2011 07:19 PM
@kyleflower: its also in the Developer Guide here: