Combine images using Blackberry

How to get attached images using BlackBerry Eclipse Plugin 1.1 Beta? I copied the image to "res / background.jpg" and tried to upload it using Bitmap.getBitmapResourceon background.jpg. Unfortunately, the image was not found (exception of illegal argument). I tried moving the image file to the src folder as recommended here , but that didn't work either. I opened the .jar file and the background image is present in the root .jar file. The option to convert image files to .png is also not selected.

References

+5
source share
4

:

  • res " " Eclipse. , " " → " ".
  • Bitmap.getBitmapResource(), ., . Bitmap.getBitmapResource("background.jpg");

, , , "background.jpg", , . , , , . :

public class MyScreen extends MainScreen
{
   public MyScreen() {
      getMainManager().setBackground(
        BackgroundFactory.createBitmapBackground(
          Bitmap.getBitmapResource("background.jpg")));
   }
}
+8

res, Eclipse? , . Eclipse, , , .

+1

- .

Bitmap.getBitmapResource("background.jpg")

src, ,

com.rim.sample.resources
0

, , ? ?

, / , . , , , ( ), (rapc). , .

0

All Articles