07-20-2011 09:36 AM
I have an image in the project res folder and load the bitmap as a background to the screen with Bitmap.getBitmapResource("pic.png").
On one device it works and finds the image in the res folder, but on another device it returns null and doesn't seem to find the "pic.png". When I put the pic.png both in the res and src folder it works on both devices.
Any idea why this happens?
Solved! Go to Solution.
07-20-2011 09:47 AM
07-20-2011 09:54 AM
Personally I don't have such issue. If I'm correct rapc is putting all images to the root folder. Check the generated jar file where images are placed.
For the second device try to add "res/<path>" to image name. Maybe this helps. In this case you should manage in runtime how to access resources.
07-20-2011 10:15 AM
07-20-2011 10:26 AM
Just for clarification I meant in "res/<path>" the path to your image in folders structure. I hope I was clear enough. Sorry!
Are using bb-ant-tools or eclipse/JDE?
Did you take a look into jar file?
07-20-2011 11:08 AM
07-21-2011 06:06 AM