Top "Start-activity" questions

Launch a new Activity by using Intent in Android.

Start new Activity and finish current one in Android?

Currently I'm starting a new Activity and calling finish on a current one. Is there any flag that can be …

android android-activity flags start-activity
How to start activity in another application?

I have application A defined as below: <application android:icon="@drawable/icon" android:label="@string/app_name"> <…

android start-activity cross-application
java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode

I am writing an application where Activity A launches Activity B using startActivityForResult(intent, -101); but when called, it responded …

android start-activity
Difference between startActivityForResult() and startActivity()?

What is the difference between startActivityForResult() and startActivity() ? When, and for what, should I use each one ?

android android-intent android-activity start-activity
How can I send message to specific contact through WhatsApp from my android app?

I am developing an android app and I need to send a message to specific contact from WhatsApp. I tried …

java android android-intent whatsapp start-activity
startActivity not working

public void onItemClick(AdapterView<?> parent, View view, int position, long id) { //Toast.makeText(getApplicationContext(), "Position of selected item …

android start-activity
get name of activity within Intent

I am using some various ad networks, they all require their own activity names to be added to the manifest. …

android android-intent ads start-activity
resultCode is always 0 and request is always -1, . Activity.onActivityResult();

I would like to add this to another list of questions about resultCode == 0 and requestCode == 0. Here is the synopsis: NoteActivity …

android onactivityresult start-activity
White screen is displayed while switching between Activities

When I move from one Activity to another Activity, a white screen is displayed for 2 seconds. I am using this …

android android-intent android-activity android-studio start-activity
StartActivityForResults always returns RESULT_CANCELLED for Intent.ACTION_SEND

As the share pop up appears, I shared the content on WhatsApp successfully, but still returns RESULT_CANCELLED. Same result …

android start-activity