It now gives this error
Unable to find explicit activity class {com.example.test/
TsandCs.class}; have you declared this activity in your
AndroidManifest.xml?
here is the code i used
try{
Intent i = new Intent( Intent.ACTION_MAIN );
Log.d( LOG_TAG,"onCreate - 3" );
i.setComponent(
new ComponentName( "com.example.test",
"TsandCs.class" )
);
Log.d( LOG_TAG,"onCreate - 4" );
i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
i.addFlags( Intent.FLAG_FROM_BACKGROUND);
Log.d( LOG_TAG,"onCreate - 5" );
startActivity( i );
Log.d( LOG_TAG,"onCreate - 6" );
}
and my manifest is shown in the other post.
ant ideas?
On Jul 13, 7:33 pm, Pent <[email protected]> wrote:
> Intent i = new Intent( Intent.ACTION_MAIN ); // don't think main is
> necessary actually :)
>
> i.setComponentName(
> new ComponentName( "pkgname", "activityclassname" )
> );
>
> i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
> i.addFlags( Intent.FLAG_FROM_BACKGROUND);
>
> try {
> startActivity( i );}
>
> catch ( ActivityNotFoundException e ) {
>
> }
>
> If the user has just left an app via Home, you might find it takes 5
> seconds for your activity to appear. An Android bug I logged about 9
> months ago,
> grouse grouse :)
>
> Pent
--
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