You can’t use startActivityForResult()
if your activity is being launched as a singleInstance
or singleTask
. standard
or singleTop
launch mode will fix the problem.
More Related Contents:
- Activity restart on rotation Android
- How do I create a transparent Activity on Android?
- How to stop EditText from gaining focus when an activity starts in Android?
- Communicating between a fragment and an activity – best practices
- How do I disable orientation change on Android?
- How to set ringtone in Android from my activity?
- Soft keyboard open and close listener in an activity in Android
- How to bring an activity to foreground (top of stack)?
- Error while Running Android Application – Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it
- Android – How to pass HashMap between activities?
- How to make notification intent resume rather than making a new intent?
- startActivity() from BroadcastReceiver
- Launch Skype from an App Programmatically & Pass Number – Android
- What are the differences between activity and fragment?
- Espresso – How can I check if an activity is launched after performing a certain action?
- How to call methods of a Service from activity?
- Trying to UNINSTALL_SHORTCUT but shortcut won’t go away
- Difference between extending LifecycleActivity,Activity,ActionbarActivity & AppCompactActivity?
- App always starts fresh from root activity instead of resuming background state (Known Bug)
- What is the meaning of android.intent.action.MAIN?
- Using an Android library project Activity within another project
- how to use getListView() in Activity?
- Why does FLAG_ACTIVITY_CLEAR_TOP not work?
- Android: onSaveInstanceState not being called from activity
- how to know the calling activity in android
- Android error “unable to find explicit activity class”
- OnCreateView called multiple times / Working with ActionBar and Fragments
- Android: startActivityForResult & setResult for a view class and an activity class
- How to have activity in Android with a close button at the top corner?
- Can you have two activities running at the same time?