Starting A Service From Dialog Box In Android
I'm trying to start a background service from a pop-up dialog and it's just doesn't work for me this is the code for opening the dialog box: reportWrongLang.setOnClickListener(new
I had the same problem with my app. The solution that worked for me was: instead of passing your context and use it later (with getContextApplication() method), there is another way to do it, pass:
YourActivityName.this
as your context, and then call your startService() method from this object.
Post a Comment for "Starting A Service From Dialog Box In Android"