hi guys,

Now, I have two apk in /data/app which are a.apk and b.apk,
and I want to invoke b.apk from a.apk,


so in the a.apk,
I used the Intent object to achive:
========code===========
        Intent intent=new Intent("android.intent.action.MAIN");
        intent.setClassName("com.android.b", "test"); //package name
and class name
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
                        Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT );
        startActivity(intent);
        a.this.finish();
=======================
but with error by logcat::

========error============
E/AndroidRuntime(  740): android.content.ActivityNotFoundException:
Unable to fi
nd explicit activity class {com.android.b/test}; have you declared t
his activity in your AndroidManifest.xml?
=======================

so how can I do for that?
thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to