Code example for Intent

Methods: setDatasetFlags

0
 
	/** 
   *  
   */ 
	public static Intent getSmsToIntentFromThreadId(Context context, long threadId) {
		Intent popup = new Intent(Intent.ACTION_VIEW);
		// should I be using FLAG_ACTIVITY_RESET_TASK_IF_NEEDED?? 
		int flags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP;
		popup.setFlags(flags);
		if (threadId > 0) {
			// //Log.v("^^Found threadId (" + threadId + 
			// "), sending to Sms intent"); 
			popup.setData(Uri.withAppendedPath(THREAD_ID_CONTENT_URI, String.valueOf(threadId)));
		} else { 
			return getSmsIntent(); 
		} 
		return popup;
	} 
 
	/** 
   *