Top "Start-activity" questions

Launch a new Activity by using Intent in Android.

onActivityResult in dialog fragment

I'm taking photo from dialog fragment. And also I need something like startActivityForResult(takePictureIntent, actionCode); @Override public void onActivityResult(int …

android android-dialogfragment start-activity onactivityresult
Cannot find symbol method startActivity(android.content.Intent)

I am a beginner in making android applications. I have made a web view which shows my web page. My …

java android start-activity
ACTION_INSTALL_PACKAGE

My app is trying to install an APK. Intent installIntent = new Intent(Intent.ACTION_INSTALL_PACKAGE); installIntent.setData(Uri.fromFile(…

android android-intent android-ui start-activity onactivityresult
Start Activity for result

It may be a noob question but I have some doubt. I googled a lot but found nothing. In starting …

android android-activity start-activity
Can't start activity from BroadcastReceiver on android 10

I updated my OS version to android 10 last night, and since then the startActivity function inside the broadcast receiver is …

android broadcastreceiver android-pendingintent start-activity android-10.0
Open a fragment of an activity from another activity

Hi All I want to open the "Text-To-Speech output" fragment of Settings from my application. I think first I need …

android android-intent android-fragments start-activity
How to get startActivityForResult on external Activity to work?

Searching high and low has yielded no result for my problem. Hence I'm finally posting to plead for some assistance. …

android start-activity
onSaveInstanceState is not getting called

I have an activity which starts various activities for result codes and on getting results in onActivityResult method it starts …

android start-activity activity-state
Android startActivityForResult, setResult, onActivityResult not called

I started a phone call Activity requesting for result: Intent intentcall = new Intent(); intentcall.setAction(Intent.ACTION_CALL); intentcall.setData(…

android start-activity onactivityresult
startActivity and startSubActivity

Can anyone tell me the difference between startActivity and startActivityForResult? Is startActivity used to call Activity asynchronously and startActivityForResult for …

android start-activity startactivityforresult