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 S
You shouldn't call start activity from your service. From Android developers best practice:
Instead of spawning Activity UIs directly from the background, you should instead use the NotificationManager to set Notifications. These will appear in the status bar, and the user can then click on them at his leisure, to see what your application has to show him.
You are attempting to open an Activity
that has an intent-filter
with an action
of "com.pushservice.PushActivity"
. You do not have an Activity
that has an intent-filter
with an action
of "com.pushservice.PushActivity"
.
The best answer is to not display an activity from a service, since users will be very irritated with you if you interrupt them when they are using the device.