【发布时间】:2014-02-21 17:29:13
【问题描述】:
IDE:Eclipse、java、Android
您好,我有 2 个 Android 应用程序 App1、App2。在 App1 中,我创建了一个按钮,单击此按钮我想启动另一个 Android 应用程序。
//For performing this i have created button and a event Code is below
btnotherAppLaunch.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
Intent mIntent = new Intent("com.example.addsubtract");
}
});
这里的 addsubtract 是我的简单 App2。
当我单击按钮时,什么都没有发生。请建议我缺少什么我是 android 应用程序开发的新手
【问题讨论】:
-
请先谷歌,这是非常基本的stackoverflow.com/questions/736571
-
这是基本的,但您的链接是关于活动的,而不是应用程序。
标签: java android eclipse android-intent