Blackberry app integration with compass application - blackberry

Is there a way to launch the compass application in blackberry os7 programmatically?

You can launch any Application by using the ApplicationManager.
ApplicationManager.getApplicationManager().launchApplication(Application);
In your case, it would likely be:
ApplicationManager.getApplicationManager().launchApplication("net_rim_bb_compass");

Related

IBM Worklight - Using the camera in BlackBerry

I am developing an image-scanning application for BlackBerry. The application takes the user to a success page if the correct image is scanned and a failure page is shown on scanning an incorrect image.
I am using the IBM Worklight framework for developing this app.
My question is: How can I open camera for scanning in BlackBerry?
I have developed the same application for iOS using Worklight. In iOS I've used this JavaScript syntax:
WL.native.show(arg1, arg2, arg3);
So I want to know what will be the syntax for opening camera/native page in the case of BlackBerry.
Just to make things clearer, you do not use WL.NativePage.show in order to use the camera in an iOS device. For that you use the Camera API provided by Apache Cordova.
WL.NativePage.show is meant to transition from a WebView to a native page.
You can, however, of course, use it to pass parameters and do whatever you want on the native side and then return to the WebView...
WL.NativePage.show is available only for iOS and Android.
Anyway,
In BlackBerry WebWorks apps (the type of BlackBerry apps supported in Worklight) you have several options:
Use the Camera API provided by BlackBerry
Use the Camera API provided by Apache Cordova
Worklight currently supports Cordova 2.3 (in Worklight 5.0.6.x) and Cordova 2.6 (in Worklight 6.0).

Run BlackBerry PhoneGap application in background

I am developing a BlackBerry application in PhoneGap, Cordova. I need to run the application in the background to send the SMS at an interval of 15 minutes.
Is this possible in a PhoneGap project?
If you are making a project for BBOS based devices (6.0, 7.0) then this can be done by adding an entry to your config.xml - http://developer.blackberry.com/html5/documentation/rim_background_element_1265316_11.html.
If you want the app to remain running in the background when the user closes the app, you will need to trap the back event.

Tricks to run my blackberry app in multiple screens

Is there any trick so that i can run my blacberry app in different screen sizes and resolutions..i am using eclipse with blackberry plugin..
Yes, you can install more BB smartphone simulators and test your application on them.
Here is the link: http://docs.blackberry.com/en/developers/subcategories/?userType=21&category=BlackBerry+Smartphone+Simulator

iPad: launch external application when an application starts

Is there an API in OSX that I can use to launch my application when users open any app? Something like a global App Launched event?
No. There is no meaningful multitasking functionality in iOS API.

how to integrate alarm in a rimlet or blackberry application?

i am developing an application for blackberry i want alarm to ring on a specific date please help me out how to do it.
Just a short tips:
Write background application to make alarm and UI application to configure things
UPDATE
Just extand you application class from Application instead of UiApplication
See examples:
BlackBerry background applications on StackOverflow.com
Also, in Eclipse, in Project Properties->BlackBerry Project Properties->Application you can set process to be system module (hide app icon on device), as well to be start-up.
Save configuration to Persistent Store
Blackberry - application settings save/load
Use different types of notification (from Dialog to Alarm)
Blackberry - How to use notification icon in statusbar
Notification Service for Blackberry OS 4.5 application
Add a notification icon at the status bar in BlackBerry JDE 4.5.0
BlackBerry - Reminder and SMS feature implementation

Resources