I searched and searched and searched for it!
So, I have an application widget, and I have a configuration activity that I can open by clicking a button in the application. Scenario:
If the application is open.
I closed the application with the "home" button.
Selected to add my widget.
I customized the widget.
Posted on home screen
Then reopen the setup operation using the button in the widgets.
Cancel the new configuration, pushing back will bring me back to the application.
By pushing back I want to just go home.
Basically, I ask. How to start configuration activity in my own task / stack?
I looked through the intent filters, but I'm just not quite sure, or maybe this is something related to the package, or maybe it's just not possible!
, - ,
Intent configIntent = new Intent(this, Configuration.class);
configIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
remoteView.setOnClickPendingIntent(R.id.config, PendingIntent.getActivity(this, 0, configIntent, PendingIntent.FLAG_UPDATE_CURRENT));
, , 'this' , ...
api:
API PendingIntent 1
" , "
, , !
android:launchMode="singleInstance" , . , "startActivityForResult". ( ). :
WARN/ActivityManager (59): , .
.