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
eb189713
Commit
eb189713
authored
Oct 11, 2012
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #2431 OpenCV Manager UI crashes at start fixed.
Data rase in OpenCV Manager connection fixed.
parent
bd4620f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ManagerActivity.java
...engine/src/org/opencv/engine/manager/ManagerActivity.java
+6
-6
No files found.
android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java
View file @
eb189713
...
...
@@ -196,7 +196,7 @@ public class ManagerActivity extends Activity
protected
void
onResume
()
{
super
.
onResume
();
Log
.
d
(
TAG
,
"Filling package list on resume"
);
if
(!
bindService
(
new
Intent
(
"org.opencv.engine.BIND"
),
mServiceConnection
,
Context
.
BIND_AUTO_CREATE
))
if
(!
bindService
(
new
Intent
(
"org.opencv.engine.BIND"
),
new
OpenCVEngineServiceConnection
()
,
Context
.
BIND_AUTO_CREATE
))
{
TextView
EngineVersionView
=
(
TextView
)
findViewById
(
R
.
id
.
EngineVersionValue
);
EngineVersionView
.
setText
(
"not avaliable"
);
...
...
@@ -221,7 +221,7 @@ public class ManagerActivity extends Activity
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
Log
.
d
(
"OpenCVManager/Reciever"
,
"Bradcast message "
+
intent
.
getAction
()
+
" reciever"
);
Log
.
d
(
"OpenCVManager/Reciever"
,
"Filling package list on broadcast message"
);
if
(!
bindService
(
new
Intent
(
"org.opencv.engine.BIND"
),
mServiceConnection
,
Context
.
BIND_AUTO_CREATE
))
if
(!
bindService
(
new
Intent
(
"org.opencv.engine.BIND"
),
new
OpenCVEngineServiceConnection
()
,
Context
.
BIND_AUTO_CREATE
))
{
TextView
EngineVersionView
=
(
TextView
)
findViewById
(
R
.
id
.
EngineVersionValue
);
EngineVersionView
.
setText
(
"not avaliable"
);
...
...
@@ -229,8 +229,8 @@ public class ManagerActivity extends Activity
}
};
protected
ServiceConnection
mServiceConnection
=
new
ServiceConnection
()
{
protected
class
OpenCVEngineServiceConnection
implements
ServiceConnection
{
public
void
onServiceDisconnected
(
ComponentName
name
)
{
// TODO Auto-generated method stub
...
...
@@ -262,11 +262,11 @@ public class ManagerActivity extends Activity
Log
.
d
(
TAG
,
"Filling package list on service connection"
);
FillPackageList
();
unbindService
(
mServiceConnection
);
unbindService
(
this
);
}
};
protected
void
FillPackageList
()
synchronized
protected
void
FillPackageList
()
{
synchronized
(
mListViewItems
)
{
mMarket
.
mIncludeManager
=
false
;
...
...
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