Jake
Jake

Reputation: 16837

Android default activity for Intent

I stumbled upon this old question on google groups relating to default activity. Also a related question on SO.

It seems in Android, a user can select a default activity for a particular Intent. However, in my Android 4.3 device, I never see an option for selecting a default activity when the pop up dialog appears for selecting an activity for accomplishing a particular task.

Has the default activity selection feature been removed in 4.3 or a prior version to that ?

Thanks.

Upvotes: 0

Views: 78

Answers (1)

itsrajesh4uguys
itsrajesh4uguys

Reputation: 4638

This lines are working for me with the 4.3 OS version.

Intent sendIntent = new Intent();
        sendIntent.setAction(Intent.ACTION_SEND);
        sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
        sendIntent.setType("text/plain");
        startActivity(sendIntent);

I guess the problem with you is you might have been selected the Always option in the popup. So it is not working for you.

Upvotes: 1

Related Questions