| 1 | <service android:name=".HelloService" /> |
radimkliment / Service
Last active 4 months ago
Implementation of service, bounded service in Android
Revision 2476fe3ddf3d07ccb830b885f68a341349fd3b2f
| 1 | class HelloService : Service() { |
| 2 | override fun onBind(p0: Intent?): IBinder? { |
| 3 | return null |
| 4 | } |
| 5 | |
| 6 | override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { |
| 7 | return super.onStartCommand(intent, flags, startId) |
| 8 | } |
| 9 | |
| 10 | } |
| 1 | val intent = Intent(this, HelloService::class.java) |
| 2 | startService(intent) |
| 3 |