コード例 #1
0
 /* (non-Javadoc)
  * @see android.app.Activity#onResume()
  */
 @Override
 protected void onResume() {
   super.onResume();
   final Context context = getApplicationContext();
   mSession = Session.get(context);
   Collector.onResume(context);
 }
コード例 #2
0
  /* (non-Javadoc)
   * @see android.app.Activity#onCreate(android.os.Bundle)
   */
  @Override
  protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    final Context context = getApplicationContext();
    mSession = Session.get(context);
    Collector.onError(context);
  }