So if the scanner will be AsyncTask it means that its bound to activity and must end with the activity if it does not it will leak the service connection.
There are two options for this:
1) Block UI until scan is done.
2) Try to use intent service that will run on its own. There would need to be some way to inform app about result though.
So if the scanner will be AsyncTask it means that its bound to activity and must end with the activity if it does not it will leak the service connection.
There are two options for this: 1) Block UI until scan is done. 2) Try to use intent service that will run on its own. There would need to be some way to inform app about result though.