Running activity from remote service

后端 未结 2 984
悲哀的现实
悲哀的现实 2021-01-19 13:04

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         


        
2条回答
  •  执笔经年
    2021-01-19 13:24

    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.

提交回复
热议问题