Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4f0f6686
Commit
4f0f6686
authored
Oct 24, 2012
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undefind behavior in Async Service Helper fixed.
parent
76bcf72d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
android+AsyncServiceHelper.java
...s/java/generator/src/java/android+AsyncServiceHelper.java
+11
-7
android+BaseLoaderCallback.java
...s/java/generator/src/java/android+BaseLoaderCallback.java
+1
-1
No files found.
modules/java/generator/src/java/android+AsyncServiceHelper.java
View file @
4f0f6686
...
@@ -118,7 +118,7 @@ class AsyncServiceHelper
...
@@ -118,7 +118,7 @@ class AsyncServiceHelper
}
}
else
else
{
{
Log
.
d
(
TAG
,
"Wating current installation process"
);
Log
.
d
(
TAG
,
"Wa
i
ting current installation process"
);
InstallCallbackInterface
WaitQuery
=
new
InstallCallbackInterface
()
{
InstallCallbackInterface
WaitQuery
=
new
InstallCallbackInterface
()
{
private
LoaderCallbackInterface
mUserAppCallback
=
Callback
;
private
LoaderCallbackInterface
mUserAppCallback
=
Callback
;
public
String
getPackageName
()
public
String
getPackageName
()
...
@@ -268,17 +268,21 @@ class AsyncServiceHelper
...
@@ -268,17 +268,21 @@ class AsyncServiceHelper
{
{
Log
.
d
(
TAG
,
"OpenCV package was not installed!"
);
Log
.
d
(
TAG
,
"OpenCV package was not installed!"
);
mStatus
=
LoaderCallbackInterface
.
MARKET_ERROR
;
mStatus
=
LoaderCallbackInterface
.
MARKET_ERROR
;
Log
.
d
(
TAG
,
"Init finished with status "
+
mStatus
);
Log
.
d
(
TAG
,
"Unbind from service"
);
mAppContext
.
unbindService
(
mServiceConnection
);
Log
.
d
(
TAG
,
"Calling using callback"
);
mUserAppCallback
.
onManagerConnected
(
mStatus
);
}
}
}
catch
(
RemoteException
e
)
{
}
catch
(
RemoteException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
mStatus
=
LoaderCallbackInterface
.
INIT_FAILED
;
mStatus
=
LoaderCallbackInterface
.
INIT_FAILED
;
Log
.
d
(
TAG
,
"Init finished with status "
+
mStatus
);
Log
.
d
(
TAG
,
"Unbind from service"
);
mAppContext
.
unbindService
(
mServiceConnection
);
Log
.
d
(
TAG
,
"Calling using callback"
);
mUserAppCallback
.
onManagerConnected
(
mStatus
);
}
}
Log
.
d
(
TAG
,
"Init finished with status "
+
mStatus
);
Log
.
d
(
TAG
,
"Unbind from service"
);
mAppContext
.
unbindService
(
mServiceConnection
);
Log
.
d
(
TAG
,
"Calling using callback"
);
mUserAppCallback
.
onManagerConnected
(
mStatus
);
}
}
};
};
...
...
modules/java/generator/src/java/android+BaseLoaderCallback.java
View file @
4f0f6686
...
@@ -28,7 +28,7 @@ public abstract class BaseLoaderCallback implements LoaderCallbackInterface {
...
@@ -28,7 +28,7 @@ public abstract class BaseLoaderCallback implements LoaderCallbackInterface {
/** OpenCV loader can not start Google Play Market. **/
/** OpenCV loader can not start Google Play Market. **/
case
LoaderCallbackInterface
.
MARKET_ERROR
:
case
LoaderCallbackInterface
.
MARKET_ERROR
:
{
{
Log
.
d
(
TAG
,
"Google Play service is not installed! You can get it here
"
);
Log
.
e
(
TAG
,
"Package installation failed!
"
);
AlertDialog
MarketErrorMessage
=
new
AlertDialog
.
Builder
(
mAppContext
).
create
();
AlertDialog
MarketErrorMessage
=
new
AlertDialog
.
Builder
(
mAppContext
).
create
();
MarketErrorMessage
.
setTitle
(
"OpenCV Manager"
);
MarketErrorMessage
.
setTitle
(
"OpenCV Manager"
);
MarketErrorMessage
.
setMessage
(
"Package installation failed!"
);
MarketErrorMessage
.
setMessage
(
"Package installation failed!"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment