12-10-2012 01:17 PM - edited 12-10-2012 01:23 PM
Hello, I'm converting one app to the Android Runtime, however some of my Intent actions aren't working, no error/exception is shown on LogCat. I can se my onSaveInstanceState code being run as if the Activity was being paused, but nothing comes up.
When a IntentChooser is used, I can see in the logs: "invoking onCreate() for Activity com.android.internal.app.ChooserActivity" , however on the PlayBook, nothing happens. On the BB10 simulator, the chooser comes up (i.e with Messages and SMS options) but nothing happens when clicking them.
Are these supposed to be working ? What's may be wrong ?
Thanks..
working:
new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI) - working (contact picker)
new Intent(MediaStore.ACTION_IMAGE_CAPTURE) - working (camera pick image)
not working:
new Intent(android.content.Intent.ACTION_SEND) - not working (send e-mail)
new Intent(Intent.ACTION_GET_CONTENT) - not working (pick media from device)
new Intent(Intent.ACTION_VIEW) - not working (file/document preview)
new Intent(Intent.ACTION_CALL) - not working (calling phone number - have proper permissions)
calling them with either below yields same results.
context.startActivity(intent)
context.startActivity(Intent.createChooser(intent)
12-18-2012 09:33 AM
Hello,
The intent support you are looking at is only supported on BlackBerry 10. Currently what you are seeing with Messages and SMS is expected as BlackBerry Hub is required to complete the action. Same goes for calling phone numbers as there is no Phone applicaiton on the BlackBerry Dev Alphas.
For the full release notes (including supported intents) please see: http://developer.blackberry.com/android/documentat
Cheers,
12-19-2012 06:38 AM