10000 logging for unbind and rebind · rnixx/python-for-android@f6fc1db · GitHub
[go: up one dir, main page]

Skip to content

Commit f6fc1db

Browse files
committed
logging for unbind and rebind
1 parent ea36543 commit f6fc1db

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pythonforandroid/bootstraps/service_library/build/templates/BoundService.tmpl.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,19 @@ public IBinder onBind(Intent intent) {
3838
startPythonThread();
3939
return binder;
4040
}
41+
42+
@Override
43+
public boolean onUnbind(Intent intent) {
44+
Log.d(TAG, "onUnbind()");
45+
return super.onUnbind(intent);
46+
}
47+
48+
@Override
49+
public void onRebind(Intent intent) {
50+
Log.d(TAG, "onRebind()");
51+
52+
super.onRebind(intent);
53+
}
54+
55+
4156
}

0 commit comments

Comments
 (0)
0