List of usage examples for android.support.v4.app AppLaunchChecker onActivityCreate
public static void onActivityCreate(Activity activity)
From source file:com.asy.applaunchcheckersample.AppLaunchCheckerActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_app_launch_checker); tvAppState = (TextView) findViewById(R.id.tv_app_state); if (AppLaunchChecker.hasStartedFromLauncher(this)) { tvAppState.setText(R.string.app_started_from_launcher); } else {//from www.j a va 2 s . c o m tvAppState.setText(R.string.app_not_started_from_launcher); } AppLaunchChecker.onActivityCreate(this); }