Running activity from remote service

Posted by Moshik on Stack Overflow See other posts from Stack Overflow or by Moshik
Published on 2010-04-29T08:54:10Z Indexed on 2010/04/29 8:57 UTC
Read the original article Hit count: 271

Filed under:
|

Hi, iam trying to run an activity from diffrent package from my remote service: this is how i implement the service.java ublic 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,

thanks.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk