User Tools

Site Tools


android_learning:headfirst_android_development_notes:chapter_13

This is an old revision of the document!


Chapter 13

Under development.

p. 544: Code block

Note that the File > New > Service menu has changed in Android Studio 1.5.1. Now there are explicit entries for the two Intent classes.

DelayedMessageService.java
package com.hfad.joke;
 
import android.app.IntentService;
import android.content.Intent;
 
public class DelayedMessageService extends IntentService {
    public DelayedMessageService() {
        super("DelayedMessageService");
    }
 
    @Override
    protected void onHandleIntent(Intent intent) {
        //Code to do something
    }
}
android_learning/headfirst_android_development_notes/chapter_13.1461967439.txt.gz · Last modified: 2016/04/29 22:03 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki