Merge pull request #3729 from bitstars:AsyncServiceHelper.java-Android-5-hotfix

This commit is contained in:
Vadim Pisarevsky 2015-04-05 17:57:51 +00:00
commit 08c84e0c34

View File

@ -21,8 +21,9 @@ class AsyncServiceHelper
final LoaderCallbackInterface Callback)
{
AsyncServiceHelper helper = new AsyncServiceHelper(Version, AppContext, Callback);
if (AppContext.bindService(new Intent("org.opencv.engine.BIND"),
helper.mServiceConnection, Context.BIND_AUTO_CREATE))
Intent intent = new Intent("org.opencv.engine.BIND");
intent.setPackage("org.opencv.engine");
if (AppContext.bindService(intent, helper.mServiceConnection, Context.BIND_AUTO_CREATE))
{
return true;
}