标签:mystra android startactivity flag_activity_new_ta intent
本文地址: http://blog.csdn.net/caroline_wendy
Intent i = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
public static void gotoLocServiceSettings(Context context) { final Intent intent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); }
Android - Error:Calling startActivity() from outside of an activity context
标签:mystra android startactivity flag_activity_new_ta intent
原文地址:http://blog.csdn.net/caroline_wendy/article/details/41226159