Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

Iniciar sesión

Todos Nuevo Iniciar sesión

Todos los gists

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado
radimkliment's Avatar

radimkliment / Service

0 gustos
0 bifurcaciones
4 archivos
Última actividad 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 gustos
0 bifurcaciones
4 archivos
Última actividad 1 hour 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);
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 39ms⋅

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