mirror of
https://gitee.com/replugin/RePlugin.git
synced 2024-12-02 11:48:02 +08:00
Added "Open in Application" in Demo1
This commit is contained in:
parent
299069f13e
commit
48d447f68c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user