I am trying to develop a Blackberry app that will change the Home Screen background image(not the application background image) periodically (just like WallPaper changer for windows) based on configurable time parameter.
Is it possible to change the HomeScreen background programatically. is there any API to do that..?
A BlackBerry device application can use net.rim.blackberry.api.homescreen.HomeScreen.setBackgroundImage(String uri) (Since:
JDE 4.7.0) with an image file that resides in flash memory or a microSD Card to set the background image. A typical format for the URI is "file:///store/home/user/pictures/file.jpg." Invoking net.rim.blackberry.api.homescreen.HomeScreen.setBackgroundImage(String uri) will override images that other applications have set.
Related
I want to change the text of red bar shown below, how do I do it? I see it when my swift app is currently using the microphone and is in the background.
You cannot change it yourself.
This is a system level event that occurs when your app is running in
background stage and using services like location, audio, etc. This
link discusses about the types of background services an app can
use.
I want to set the background of my app the same image as it is in the user's iphone lockscreen image, and also I would like to know how to access to homescreen image as well.
Thank you!
Short answer: you can't. Unless there's a public API, things outside your app are blocked.
I don't know of an API to access either of those things.
we are developing hybrid application on Worklight.
After the user launches the application on iOS, he will see the login screen, providing his credentials, he is inside our application.
Now, if the user clicked the home button for iOS before "logging out" from the app, the iOS will take a snapshot and store it inside the device cache.
By using IExplorer, I can see this screen cached, which in our situation a high critical issue.
How can I a override this screen with a white screen, in case the user clicked the home button of the iOS device it will be populated immediately, and the device will not snapshot the user main screen.?
Is there any thumbnail I can add to my nativeResource folder for iOS to solve this issue?
thank you.
I encourage you to look at the Worklight Knowledge Center. In most cases, you will find your answer.
To control the snapshot taken by the OS when moving to the background, you need to use the following API methods, depending on your needs:
WL.App.BackgroundHandler.setOnAppEnteringBackground and WL.App.BackgroundHandler.setOnAppEnteringForeground
is there a way to setup an image as a device wallpaper? Originally I want to download an image, save it somewhere in a picture roll and set it up as a wallpaper programmatically.
google doesn't give me any answer on how could it be done.
Unfortunately this API is not exposed to developers. There is also no URL scheme exposed for developers to launch the Photos app.
You're only option is to display a prompt that tells the user to manually go to the Photos application to set their wallpaper, and indicate how they would set the wallpaper there.
What is an alternate entry point in a BlackBerry application?
When should we use this?
Is it for doing background processing?
If the alternate entry point has an icon, then which icon is shown in the BlackBerry app folders -- the main application icon or the alternate app icon?
It is indeed for launching apps that run in the background. See Running in the Background and Creating an Always-On Experience for more details.