I am a beginner to android.I have an app and i am using LINE app for my application.So after invoking LINE app from my app,when i make a LINE call and get disconnected after the call , i want to return to my application.Is there any way to do that?
Asked
Active
Viewed 144 times
-3
-
could you show us the code you have tried pls? and maybe a website reference url to the docs of Line? – Blundell Dec 09 '19 at 12:13
-
I don't think you can control other app's navigation. It depends on the LINE app if they open another activity/screen or finish the current screen so that that you can return to the originating screen (which is your app). – Somesh Kumar Dec 09 '19 at 12:13
-
https://stackoverflow.com/questions/49302694/how-do-i-detect-skype-telegram-whatsapp-calls-when-my-messenger-app-is-in-a-call @Blundell – Jasmine Antony Dec 09 '19 at 12:15
-
is there any way to detect its call state??? @SomeshKumar – Jasmine Antony Dec 09 '19 at 12:31
1 Answers
0
Documentation for Notification Listner. this might come in handy. and try this sample from kpbird. see whether you are getting any sign of call state. most probably even you dont see a notification in the notification panel, there can be few. just like true caller app detects and reads caller information. and dont forget to update your manifest. and you need to give permission to read notifications too.
<service android:name=".NotificationListener"
android:label="@string/service_name"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
cheers!

Viroj Fernando
- 461
- 4
- 8