Added "Open in Application" in Demo1

This commit is contained in:
zhangjiongxuan 2017-07-19 21:10:31 +08:00
parent 299069f13e
commit 48d447f68c

View File

@ -126,6 +126,15 @@ public class MainActivity extends Activity {
v.getContext().startActivity(intent);
}
}));
mItems.add(new TestItem("Activity: Open in Application", new View.OnClickListener() {
@Override
public void onClick(View v) {
Context app = v.getContext().getApplicationContext();
Intent intent = new Intent(app, ThemeDialogActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
app.startActivity(intent);
}
}));
mItems.add(new TestItem("Activity: By Intent Filter", new View.OnClickListener() {
@Override
public void onClick(View v) {