All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login

All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
radimkliment's Avatar

radimkliment / Service

0 likes
0 forks
4 files
Last active 1 hour ago
Implementation of service, bounded service in Android
Android
1 // without bound
2 override fun onStart() {
3 super.onStart()
4 val intent = Intent(this, HelloService::class.java)
5 startService(intent)
6 }
7
8 // with bound
9 private lateinit var mService: LocalService
10 private var mBound: Boolean = false
radimkliment's Avatar

radimkliment / BroadcastReceiver

0 likes
0 forks
4 files
Last active 59 minutes ago
Implementation of broadcast receivers: implicit, explicit, static, dynamic
Android
1 public class MyBroadcastReceiver : BroadcastReceiver() {
2 override fun onReceive(context : Context, intent: Intent) {
3
4 }
5 }
6
7 BroadcastReceiver myBroadcastReceiver = new MyBroadcastReceiver();
8 IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
9 filter.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED);
Newer Older

Powered by Opengist ⋅ Load: 39ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文