mirror of
https://gitee.com/replugin/RePlugin.git
synced 2024-11-30 10:48:22 +08:00
Added "Start host activity" in Demo1
This commit is contained in:
parent
48d447f68c
commit
076fc5cf23
@ -178,7 +178,15 @@ public class MainActivity extends Activity {
|
||||
RePlugin.startActivity(v.getContext(), intent, "demo2", null);
|
||||
}
|
||||
}));
|
||||
|
||||
mItems.add(new TestItem("Activity: start Host activity(Main)", new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent();
|
||||
intent.setComponent(new ComponentName(RePlugin.getHostContext().getPackageName(), "com.qihoo360.replugin.sample.host.MainActivity"));
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
MainActivity.this.startActivity(intent);
|
||||
}
|
||||
}));
|
||||
|
||||
// =========
|
||||
// Other Components
|
||||
|
Loading…
Reference in New Issue
Block a user