Skip to content

Instantly share code, notes, and snippets.

View Nazmul56's full-sized avatar
🎯
Focusing

Nazmul Haque Nazmul56

🎯
Focusing
View GitHub Profile
######################################################
Install APK From PC to Android Device or Emulator
######################################################
C:\Users\Nazmul\AppData\Local\Android\Sdk\platform-tools>
adb install -r app-release.apk
######################################################
Wifi Debugging
######################################################
##Target Module build.gradle
defaultConfig {
...
manifestPlaceholders = [pkgName: "com.ducomm"]
}
##Targate Module Mainfest.xml
...
<activity
android:name=".activity.SipIncomingActivity"
1. Oops… I spelled that last commit message wrong
git commit --amend
2. Oops… I forgot to add a file to that last commit
git add missed-file.txt
git commit --amend
5. Oops… I made a spelling mistake in my branch name
git branch -m future-brunch feature-branch
##########################Screen Recorder First Permission###################################################
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.media.projection.MediaProjectionManager.createScreenCaptureIntent()' on a null object reference
at com.durbinlabs.durtc.CallActivity.shareScreen(CallActivity.java:1486)
at com.durbinlabs.durtc.CallActivity.startScreenRecording(CallActivity.java:1479)
at com.durbinlabs.durtc.CallActivity.onToggleScreenShare(CallActivity.java:1455)
at com.durbinlabs.durtc.CallActivity.onRequestPermissionsResult(CallActivity.java:606)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7429)
at android.app.Activity.dispatchActivityResult(Activity.java:7280)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4292)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4340)Β 
CallStatus Related Problem
Patient app | Dr App
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
1. Create Call β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”> No Incoming Call
Time Out
Show Network Error Dialog
2. Create Call β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”> Not Accept Call
Call Establishment Problem
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
Patient App Dr App
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
CallActivity β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”> Incoming Activity
|
Accept Call
|
Call Activity Open
|
####################################Doctor App #############################################################
2020-03-31 12:26:09.171 32560-2012/com.doctordekhao.doctor D/SocketIo: Socket Connected
2020-03-31 12:26:09.171 32560-2012/com.doctordekhao.doctor D/SocketIo: Socket ID: PkvPBHzvc_e8SMLuASns
2020-03-31 12:26:09.410 32560-2017/com.doctordekhao.doctor D/SocketIo: Socket Reconnect
2020-03-31 12:26:09.414 32560-2017/com.doctordekhao.doctor D/SocketIo: Socket Connected
2020-03-31 12:26:09.414 32560-2017/com.doctordekhao.doctor D/SocketIo: Socket ID: njM3yhbWcDLUqUU-ASoa
2020-03-31 12:26:09.536 32560-2020/com.doctordekhao.doctor D/SocketIo: Socket Reconnect
2020-03-31 12:26:09.539 32560-2020/com.doctordekhao.doctor D/SocketIo: Socket Connected
2020-03-31 12:26:09.539 32560-2020/com.doctordekhao.doctor D/SocketIo: Socket ID: njM3yhbWcDLUqUU-ASoa
2020-03-31 12:26:10.907 32560-2022/com.doctordekhao.doctor D/SocketIo: Socket Disconnected

Enter Api

POST /api/v1/auth/enter

Parameters

None

Request Body

{
 "fbAuthorizationCode": "FB_AUTHORIZATION_CODE"
βŽ‘β€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€ΎβŽ€
⎒ Peer to Peer Connection βŽ₯
⎣__________________________⎦
_______________________________________________________________________
Patient App | Dr App
β€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύ
CallActivity β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β–ΆοΈŽ Incoming Activity
β”‚
β–Ό
Accept Call

Peer Connection

_______________________________________________________________________
Patient App		      |		      Dr App
β€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύβ€Ύ
CallActivity β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β–ΆοΈŽ Incoming Activity  
					       	    β”‚
						    β–Ό
 Accept Call