Heres a function that invokes an Intent to capture a photo. This process involves three pieces: the Intent itself, a call to start the external Activity, and some code to handle the image data when focus returns to your activity. ![]() All other fields (data, type, class) are null. Android delegates actions to other applications by invoking an Intent. Val finalIntent = Intent.createChooser(targetedIntents.removeAt(0), R.string.choose_email_app.toText())įinalIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, targetedIntents. The Android documentation says: 'Create an intent with a given action. Official approach: public void composeEmail(String addresses, String subject) (If you can't find such an app just open my app:- market://details?id=.free, OR search by 'Vehicle Diary')
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |