Thursday, April 29, 2010

[android-developers] Running activity from remote service

Hi, iam trying to run an activity from diffrent package from my remote
service: this is how i implement the service.java

public class CurrencyService extends Service
{
public class CurrencyServiceImpl extends ICurrencyService.Stub
{

int CALL_PUSH_SERVICE_ACTIVITY=10;


@Override
public void callSomeActivity(int activityId) throws
RemoteException
{
Intent pushActivity=new
Intent("com.pushservice.PushActivity");
pushActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(pushActivity);
}
.....
}

ive also added a line in the manifest of the service:

the service works fine, but i cant run the activity -> PushActivity
which is in diffrent package of diffrent application, this is the
error:

Activity not found Exception: No Activity found to handle Intent
{act=com.pushservice.PushServiceActivity flq=0x10 ...

thanks.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate