我有这个方法。
public void GetSMS(){
//in this method I read SMS in my app inbox,
//If have new SMS create notification
}
我认为可以创建一个定时器方法,每5秒调用GetSMS()。
我该如何创建一个正确的方法呢?