Skip to Main Content
Android Programowanie aplikacji. Rusz głową! Wydanie II
book

Android Programowanie aplikacji. Rusz głową! Wydanie II

by David Griffiths, Dawn Griffiths
October 2018
Intermediate to advanced content levelIntermediate to advanced
880 pages
33h 52m
Polish
Helion
Content preview from Android Programowanie aplikacji. Rusz głową! Wydanie II
760
Rozdział 18.
Kod usługi DelayedMessageService
package com.hfad.wic;
import android.app.IntentService;
import android.content.Intent;
import android.util.Log;
import android.support.v4.app.NotificationCompat;
import android.app.PendingIntent;
import android.app.NotificationManager;
public class DelayedMessageService extends IntentService {
public static final String EXTRA_MESSAGE = ”message”;
public static final int NOTIFICATION_ID = 5453;
public DelayedMessageService() {
super(”DelayedMessageService”);
}
@Override
protected void onHandleIntent(Intent intent) {
synchronized (this) {
try {
wait(10000);
} catch (InterruptedException e) {
e.printStackTrace(); ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Wydajne aplikacje dla systemu Android

Wydajne aplikacje dla systemu Android

Doug Sillars
Android. Receptury

Android. Receptury

Ian F. Darwin
Architektura aplikacji w Pythonie

Architektura aplikacji w Pythonie

Bob Gregory Harry Percival

Publisher Resources

ISBN: 9788328340794