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
Usługi powiązane i uprawnienia
805
jesteś tutaj
@Override
public void onRequestPermissionsResult(int requestCode,
String permissions[], int[] grantResults) {
switch (requestCode) {
case PERMISSION_REQUEST_CODE: {
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Intent intent = new Intent(this, OdometerService.class);
bindService(intent, connection, Context.BIND_AUTO_CREATE);
} else {
// kod wykonywany, jeśli uprawnienie nie zostanie przydzielone
}
}
}
}
I w końcu, jeśli użytkownik nie zgodzi się na pobieranie informacji
o jego bieżącej lokalizacji, musimy go poinformować, że nasza aplikacja
Drogomierz nie
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