Search code examples
blackberryjava-mewallpaper

What is the storage path for setting blackberry wallpaper?


I know I have to use this code: HomeScreen.setBackgroundImage(Sring uri) to set the wallpaper from an image in my app, but what would I type for the string url? I have the image in my app and as of yet I am not using persistent storage. So question #2 is, do I have to put the image in persistent in order to use it as the wallpaper?


Solution

  • Check this link, setBackgroundImage, it describes typical format of an URI.

    Sets the background image for the home screen. Must be an image file residing in flash memory or SD Card. Typical format for the URI would be "file:///store/home/user/pictures/file.jpg".