android Programming Glossary: startactivityforresult
Android, How to manage start activity for result? http://stackoverflow.com/questions/10407159/android-how-to-manage-start-activity-for-result activity i'm calling second activity from main activity by startActivityForResult . In my second activity there are some methods that finish this.. From your FirstActivity call the SecondActivity using startActivityForResult method eg Intent i new Intent this SecondActivity.class startActivityForResult.. method eg Intent i new Intent this SecondActivity.class startActivityForResult i 1 In your SecondActivity set the data which you want to return..
Android ACTION_IMAGE_CAPTURE Intent http://stackoverflow.com/questions/1910608/android-action-image-capture-intent startActivityForResult i mRequestCode then in activity that i return to i do different..
Using ZXing to create an android barcode scanning app http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app intent.putExtra SCAN_MODE QR_CODE_MODE startActivityForResult intent 0 public void onActivityResult int requestCode int resultCode..
Get/pick an image from Android's built-in Gallery app programmatically http://stackoverflow.com/questions/2169649/get-pick-an-image-from-androids-built-in-gallery-app-programmatically image intent.setAction Intent.ACTION_GET_CONTENT startActivityForResult Intent.createChooser intent Select Picture SELECT_PICTURE..
How to return a result (startActivityForResult) from a TabHost Activity? http://stackoverflow.com/questions/2497205/how-to-return-a-result-startactivityforresult-from-a-tabhost-activity to return a result startActivityForResult from a TabHost Activity I have 3 classes in my example Class.. in my example Class A the main activity. Class A calls a startActivityForResult Intent intent new Intent this ClassB.class startActivityForResult.. Intent intent new Intent this ClassB.class startActivityForResult intent STRING Class B this class is a TabActivity Intent intent..
Android camera intent http://stackoverflow.com/questions/2729267/android-camera-intent Uri.fromFile photo imageUri Uri.fromFile photo startActivityForResult intent TAKE_PICTURE @Override public void onActivityResult int..
get contact info from android contact picker http://stackoverflow.com/questions/3044545/get-contact-info-from-android-contact-picker Intent.ACTION_PICK ContactsContract.Contacts.CONTENT_URI startActivityForResult intent 1 ... @Override public void onActivityResult int reqCode.. NewActivity.class intent.putExtra name name startActivityForResult intent 0 But if i add in String number c.getString c.getColumnIndexOrThrow..
How to capture an image and store it with the native Android Camera http://stackoverflow.com/questions/3442462/how-to-capture-an-image-and-store-it-with-the-native-android-camera intent.putExtra MediaStore.EXTRA_OUTPUT outputFileUri startActivityForResult intent 0 After the picture has been taken and I'm returned back..
Capture Image from Camera and Display in Activity http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity Intent android.provider.MediaStore.ACTION_IMAGE_CAPTURE startActivityForResult cameraIntent CAMERA_REQUEST protected void onActivityResult..
Deleting a gallery image after camera intent photo taken http://stackoverflow.com/questions/6390163/deleting-a-gallery-image-after-camera-intent-photo-taken file intent.putExtra MediaStore.EXTRA_OUTPUT outputFileUri startActivityForResult intent CAMERA_PIC_REQUEST protected void onActivityResult int.. intent.putExtra MediaStore.EXTRA_OUTPUT outputFileUri startActivityForResult intent CAMERA_CROP_REQUEST else SetImage saveState android.. finally start the intent and wait for a result. startActivityForResult intent IMAGE_CAPTURE Once this is done and the activity comes..
How to call Android contacts list? http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list .append b Intent i new Intent this NoteEdit.class startActivityForResult i ACTIVITY_CREATE android contacts share improve this question.. ContactsContract.Contacts.CONTENT_URI Call startActivityForResult passing in this Intent and a request code integer PICK_CONTACT.. to this Activity when the selection is made or canceled . startActivityForResult intent PICK_CONTACT 3 Listening for the Result Also in your..
Android, How to manage start activity for result? http://stackoverflow.com/questions/10407159/android-how-to-manage-start-activity-for-result How to manage start activity for result In my activity i'm calling second activity from main activity by startActivityForResult . In my second activity there are some methods that finish this activity maybe without result however just one of them return.. activity android android intent share improve this question From your FirstActivity call the SecondActivity using startActivityForResult method eg Intent i new Intent this SecondActivity.class startActivityForResult i 1 In your SecondActivity set the data which.. call the SecondActivity using startActivityForResult method eg Intent i new Intent this SecondActivity.class startActivityForResult i 1 In your SecondActivity set the data which you want to return back to FirstActivity If you don't want to return back..
Android ACTION_IMAGE_CAPTURE Intent http://stackoverflow.com/questions/1910608/android-action-image-capture-intent else i.putExtra android.provider.MediaStore.EXTRA_OUTPUT android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI startActivityForResult i mRequestCode then in activity that i return to i do different things based on the device. protected void onActivityResult..
Using ZXing to create an android barcode scanning app http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app onClick View v Intent intent new Intent com.google.zxing.client.android.SCAN intent.putExtra SCAN_MODE QR_CODE_MODE startActivityForResult intent 0 public void onActivityResult int requestCode int resultCode Intent intent if requestCode 0 if resultCode RESULT_OK..
Get/pick an image from Android's built-in Gallery app programmatically http://stackoverflow.com/questions/2169649/get-pick-an-image-from-androids-built-in-gallery-app-programmatically user to select a file Intent intent new Intent intent.setType image intent.setAction Intent.ACTION_GET_CONTENT startActivityForResult Intent.createChooser intent Select Picture SELECT_PICTURE public void onActivityResult int requestCode int resultCode..
How to return a result (startActivityForResult) from a TabHost Activity? http://stackoverflow.com/questions/2497205/how-to-return-a-result-startactivityforresult-from-a-tabhost-activity to return a result startActivityForResult from a TabHost Activity I have 3 classes in my example Class A the main activity. Class A calls a startActivityForResult.. from a TabHost Activity I have 3 classes in my example Class A the main activity. Class A calls a startActivityForResult Intent intent new Intent this ClassB.class startActivityForResult intent STRING Class B this class is a TabActivity Intent.. example Class A the main activity. Class A calls a startActivityForResult Intent intent new Intent this ClassB.class startActivityForResult intent STRING Class B this class is a TabActivity Intent intent new Intent this ClassC.class tabHost.addTab... Class C this..
Android camera intent http://stackoverflow.com/questions/2729267/android-camera-intent Pic.jpg intent.putExtra MediaStore.EXTRA_OUTPUT Uri.fromFile photo imageUri Uri.fromFile photo startActivityForResult intent TAKE_PICTURE @Override public void onActivityResult int requestCode int resultCode Intent data super.onActivityResult..
get contact info from android contact picker http://stackoverflow.com/questions/3044545/get-contact-info-from-android-contact-picker using an intent. So far this works Intent intent new Intent Intent.ACTION_PICK ContactsContract.Contacts.CONTENT_URI startActivityForResult intent 1 ... @Override public void onActivityResult int reqCode int resultCode Intent data super.onActivityResult reqCode.. Intent intent new Intent CurrentActivity.this NewActivity.class intent.putExtra name name startActivityForResult intent 0 But if i add in String number c.getString c.getColumnIndexOrThrow ContactsContract.CommonDataKinds.Phone.NUMBER..
How to capture an image and store it with the native Android Camera http://stackoverflow.com/questions/3442462/how-to-capture-an-image-and-store-it-with-the-native-android-camera new Intent android.provider.MediaStore.ACTION_IMAGE_CAPTURE intent.putExtra MediaStore.EXTRA_OUTPUT outputFileUri startActivityForResult intent 0 After the picture has been taken and I'm returned back to my original Activity When I navigate to my sd card via..
Capture Image from Camera and Display in Activity http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity @Override public void onClick View v Intent cameraIntent new Intent android.provider.MediaStore.ACTION_IMAGE_CAPTURE startActivityForResult cameraIntent CAMERA_REQUEST protected void onActivityResult int requestCode int resultCode Intent data if requestCode..
Deleting a gallery image after camera intent photo taken http://stackoverflow.com/questions/6390163/deleting-a-gallery-image-after-camera-intent-photo-taken ManufacturerText test.png outputFileUri Uri.fromFile file intent.putExtra MediaStore.EXTRA_OUTPUT outputFileUri startActivityForResult intent CAMERA_PIC_REQUEST protected void onActivityResult int requestCode int resultCode Intent data super.onActivityResult.. return data false intent.setDataAndType outputFileUri image intent.putExtra MediaStore.EXTRA_OUTPUT outputFileUri startActivityForResult intent CAMERA_CROP_REQUEST else SetImage saveState android image delete android camera intent share improve this question.. CurrentUri Keep a list for afterwards FillPhotoList finally start the intent and wait for a result. startActivityForResult intent IMAGE_CAPTURE Once this is done and the activity comes back here is my code protected void onActivityResult int requestCode..
How to call Android contacts list? http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list findViewById R.id.myContact pbContact.setText new StringBuilder .append b Intent i new Intent this NoteEdit.class startActivityForResult i ACTIVITY_CREATE android contacts share improve this question I'm not 100 sure what your sample code is supposed to.. the items in the Contacts URI. Intent intent new Intent Intent.ACTION_PICK ContactsContract.Contacts.CONTENT_URI Call startActivityForResult passing in this Intent and a request code integer PICK_CONTACT in this example . This will cause Android to launch an Activity.. to support ACTION_PICK on the People.CONTENT_URI then return to this Activity when the selection is made or canceled . startActivityForResult intent PICK_CONTACT 3 Listening for the Result Also in your Activity override the onActivityResult method to listen for..
|