Code example for LocalActivityManager

Methods: removeAllActivitiesstartActivity

0
	 * @param intent 
	 * @param tag 
	 * @return 
	 */ 
	private View start(Intent intent,String tag) {
		View decorView=mLocalActivityManager.startActivity(tag, intent).getDecorView();
		if(createOnce){
			mLocalActivityManager.removeAllActivities();//强制重建
			entryMap.clear();
		} 
		return decorView;
	} 
	 
	public void navigate(String tag)
	{ 
		NavigateEntry entry=entryMap.get(tag);
		if(entry==null) throw new NullPointerException("Have you ever bindNavigator?");
		navigate(entry.contentId,entry.contentIntent);
	} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE