hi,
i wanna use alarmmanager and call new mapactivity.
its test code.i checked bc_test is called.and if set line A,this class
can call Activity_normal's activity.
-------------------------its called by
alarmmanager.-----------------------
public class bc_test extends BroadcastReceiver {
public void onReceive(Context ctx, Intent intent) {
Context context = ctx;
Intent newIntent = new Intent(Intent.ACTION_VIEW);
//newIntent = new Intent(context, Activity_normal.class);//line
A
newIntent = new Intent(context, Activity_map.class);//line B
newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(newIntent);
}
}
--------------------------------------------------------------------------------------
if i set line B code.log shows this error.
--------------------------------------------------------------------------------------
07-06 02:08:35.496: WARN/dalvikvm(12368): Unable to resolve superclass
of Ltest/serviceText/Activity_map; (18)
07-06 02:08:35.496: WARN/dalvikvm(12368): Link of class 'Ltest/
serviceText/Activity_map;' failed
--------------------------------------------------------------------------------------
this error happened when app's main process dead.if process alived,map
avtivity was call without error.
i think uses-library is called only app's main process.
i tried like process:remote in manifest.xml.but couldn't clear.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---