一个Apk 启动另外一个Apk

Intent mIntent = new Intent( );
            ComponentName comp = new ComponentName("com.example", "com.example.UITutorial_V2Activity");
//          ComponentName comp = new ComponentName("com.example.layout",
//                  "com.example.layout.SmsActivity");
            mIntent.setComponent(comp);
            mIntent.setAction("android.intent.action.VIEW");
            startActivity(mIntent);
            finish();
Posted in 手机相关 by 傻猫 at February 21, 2013.
Tags: none

添加新评论