Kill All Asynctask tasks in Android
问题 I am developing a socket based app. I need to get the data from the Server socket and display to listview for every second. I an sending the broadcast event from my service using Alarm Manager like this... @Override public int onStartCommand(Intent intent, int flags, int startId) { fireAlarm(); return START_NOT_STICKY; } public void fireAlarm() { /** * call broadcost reciver for AlarmReceiver */ //Intent intent = new Intent(AlarmService.this.getApplicationContext(), DefaultMarketWatch.class);