burhanloey / waktu-solat

Prayer times for Malaysia fetched from e-Solat Portal
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

Possible wrong way of creating service in Android #8

Closed burhanloey closed 5 years ago

burhanloey commented 5 years ago

There seems to be a specific way on how to create a service in Android. It's not like a normal app.

burhanloey commented 5 years ago

From what I understood, I don't have to do all these callbacks. I should just use Intent as a means of communication between different stage of processes.

There are also DaggerIntentService and DaggerBroadcastReceiver from Dagger as stated here.

Gosh, I made a terrible mistake. Android programming is totally different than regular app. No wonder people resorts to something like Ionic.

burhanloey commented 5 years ago

I may be wrong again. It seems Service is more like for long running process where Activity can be closed. So, I should change to AsyncTask and still using callbacks, maybe?

burhanloey commented 5 years ago

Yeah, seems to be non-issue here. False alarm.