Back to project page CompleteActionPlus.
The source code is released under:
## Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ## By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and condi...
If you think the Android project CompleteActionPlus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package hk.valenta.completeactionplus; //from www. j av a2 s. co m import android.annotation.SuppressLint; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; public class StartSelectedReceiver extends BroadcastReceiver { @SuppressLint("WorldReadableFiles") @SuppressWarnings("deprecation") @Override public void onReceive(Context context, Intent intent) { // get information about last started selected application String intentId = intent.getStringExtra("intentId"); String activity = intent.getStringExtra("activity"); // save it configuration SharedPreferences pref = context.getSharedPreferences("started", Context.MODE_WORLD_READABLE); pref.edit().putString(intentId, activity).apply(); } }