[Android Tips] ว่ากันด้วยเรื่องของ Repeat Service
ประกาศ Service public class IamService extends Service { public final static String EXTRA_TYPE = "type"; public final static String EXTRA_UID = "uid"; public final static int GET_TAXI = 98; public final static int GET_PASSENGER = 99; @Override public int onStartCommand(Intent intent, int flags, int startId) { if (intent.getExtras() != null) { int type = intent.getExtras().getInt(EXTRA_TYPE); Log.i("TAG", "type is...