开发者

How do I call a local method in my class by an intent in alarmManager?

开发者 https://www.devze.com 2023-02-13 06:37 出处:网络
For example: Public class Calls extends Service { public void onCreate(开发者_如何转开发) { //call myMethod here by alarmManager

For example:

Public class Calls extends Service {

public void onCreate(开发者_如何转开发)

{

//call myMethod here by alarmManager

}

myMethod()

{

}

}


I'm not sure if I missing something, but why you just do this?

public class Calls extends Service {
   public void onCreate() {
      myMethod();
   }

   myMethod() {

   }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消