@Test public void shouldGetIntentToMe() { Intent intent = StockCardListActivity.getIntentToMe(RuntimeEnvironment.application); assertThat(intent.getComponent().getClassName()).isEqualTo(StockCardListActivity.class.getName()); assertThat(intent.getFlags()).isEqualTo(Intent.FLAG_ACTIVITY_CLEAR_TOP); }
public static Intent getIntentToMe(Context context) { Intent intent = new Intent(context, StockCardListActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return intent; }
StockCardListActivity extends SearchBarActivity { public static Intent getIntentToMe(Context context) { Intent intent = new Intent(context, StockCardListActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return intent; } }
StockCardListActivity extends SearchBarActivity { public static Intent getIntentToMe(Context context) { Intent intent = new Intent(context, StockCardListActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return intent; }  }
StockCardListActivity extends SearchBarActivity { public static Intent getIntentToMe(Context context) { Intent intent = new Intent(context, StockCardListActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return intent; }  @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item); @Override boolean onSearchStart(String query); static Intent getIntentToMe(Context context); @Override void onActivityResult(int requestCode, int resultCode, Intent data); }
StockCardListActivity extends SearchBarActivity { public static Intent getIntentToMe(Context context) { Intent intent = new Intent(context, StockCardListActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return intent; }  @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item); @Override boolean onSearchStart(String query); static Intent getIntentToMe(Context context); @Override void onActivityResult(int requestCode, int resultCode, Intent data);  }