Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
0f550ee2
Commit
0f550ee2
authored
11 years ago
by
Alexandre Lision
Browse files
Options
Downloads
Patches
Plain Diff
* #32662: better SipService lifecycle
parent
fda4d1de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/org/sflphone/client/SFLPhoneHomeActivity.java
+1
-0
1 addition, 0 deletions
src/org/sflphone/client/SFLPhoneHomeActivity.java
src/org/sflphone/service/SipService.java
+7
-3
7 additions, 3 deletions
src/org/sflphone/service/SipService.java
with
8 additions
and
3 deletions
src/org/sflphone/client/SFLPhoneHomeActivity.java
+
1
−
0
View file @
0f550ee2
...
...
@@ -137,6 +137,7 @@ public class SFLPhoneHomeActivity extends Activity implements DialingFragment.Ca
if
(!
mBound
)
{
Log
.
i
(
TAG
,
"onStart: Binding service..."
);
Intent
intent
=
new
Intent
(
this
,
SipService
.
class
);
startService
(
intent
);
bindService
(
intent
,
mConnection
,
Context
.
BIND_AUTO_CREATE
);
}
...
...
This diff is collapsed.
Click to expand it.
src/org/sflphone/service/SipService.java
+
7
−
3
View file @
0f550ee2
...
...
@@ -93,8 +93,12 @@ public class SipService extends Service {
public
boolean
onUnbind
(
Intent
i
)
{
super
.
onUnbind
(
i
);
Log
.
i
(
TAG
,
"onUnbind(intent)"
);
return
false
;
return
true
;
}
@Override
public
void
onRebind
(
Intent
i
){
super
.
onRebind
(
i
);
}
/* called once by startService() */
...
...
@@ -132,7 +136,7 @@ public class SipService extends Service {
receiver
=
new
IncomingReceiver
(
this
,
mBinder
);
return
START_
NOT_
STICKY
;
/* started and stopped explicitly */
return
START_STICKY
;
/* started and stopped explicitly */
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment