Java: How do I start a standalone application from the current one when both are in the same package?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This seems like it should be easy, so I must be missing something obvious: I have 4 standalone applications in the same package, us.glenedwards.myPackage, myClass1 extends Application myClass2 extends Application etc... I need each class to act as its own standalone application. Yet I want to be able to start the other 3 classes from the one I'm in by clicking a link. Android allows me to do this using Intents: Intent intent = new Intent(this, EditData.class); overridePendingTransition(R.layout.edit_data_scrollview, R.layout.state);