phonegap get caller number and add pop up on call window - android

i have an idea i want to do it .. some thing like truecaller .. i have a phonegap plguin to get the number oh the caller when the phone is ringing .. but i 'm not able to display any thing on the call screen ... and i have searched alot .. and i'm not an android guy to hack the code ..
this is the plugin
https://github.com/madeinstefano/PhoneStateChangeListener
and what i searchd for
Pop up window over Android native incoming call screen like true caller Android app

As Phonegap (and other Cordova based platforms) are use "Web View" to show UI I think it's not possible to show a browser in front of call screen.
But I searched for plugins and I found some thing to show a little text popup caleed Toast.

Related

How to show something on Incoming Call Screen under Delphi 10.2

The problem here often appeared, but I didn't found anything about it for delphi and firemonkey.
I would like to display some information when my application detects an incoming call (Android).
I know it would be best to create my own phone application and set it as the default one.
But Android has Toas and Notification and I thought to use it.
1) I tried to use a toast but did not manage to display information ON THE incoming call screen
2) Notification displays the message but I must first swipe down notification bar. It gives me nothing. I would like information to appear for example like
information about the end of the battery (information available above all screen application)
Is anyone able to tell me something?

Emergency calling using cordova android app when mobile in lock mode

i am going to implement emergency calling in cordova phonegap. For safety purpose, app which can provide calling functionality (user can save emergency phone number using app user can edit whenever he/she want).
I cant find way to move forward. please help me out. I even dont know is this possible or not using cordova.

how to Launch Cordova app when phone locked

I am working on an android app built on apache cordova. The app used to send your location via SMS, Email & in app notification to your predefined contacts. I want this sharing event to be triggered on double tapping on screen (when locked) or 3-4 times pressing the power button/ volume button.
Its for emergency situation, when user may not be able to unlock phone & open app to share any info.
I've searched a lot but could not find any relevant info. is there any available plugin to do that? I know very little of JAVA. Expecting any plugin that would allow me to launch the app(any activity) when phone is locked.
Any helpful information or suggestions are appreciated.
To accomplish this kind of task, you need to run a service in background, it is not possible to use any cordova webview, so you won't be able to run any javascript.
I don't think there is any plugin doing such a thing as it is very specialized.
I needed to create an app that needed to send notification to the user depending on his location. It ended up in writing a native plugin...
So the best advice I can give you is "It's never too late to learn Java" ;-)
maybe some other JS framework (maybe NativeScript) allows such things but I never used it yet so it might be impossible too.

Can we automate "Call Receiving" feature in android?

I'm trying to automate calling features in android using robot framework + appiumLibrary.
What I've done so far?
I am able to dial a number using these steps :
Step 1.
Open Application http://localhost:4723/wd/hub platformName=Android platformVersion=5.0.1 deviceName=4a119f6b appPackage=com.android.contacts appActivity=com.android.contacts.DialtactsContactsEntryActivity
Step 2. AppiumLibrary.Click Element name=Keypad
After this I clicked on each number one by one and then clicked on dial button.
Where am I stuck?
In similar fashion I am trying to automate Call receiving feature. I'm dialing from some other phone on connected device and while phone is ringing I'm trying to capture screenshot of xml using uiautomatorviewer.
It is not capturing it.
Is it the right approach?? Is there any other way to automate this functionality?
This depends on your screen mode when you receive it:
If the screen is asleep, i.e., when a call is received it opens the activity to deal with the call, then you can detect what is the package on the screen and match it with the package of the call activity.
If the screen is awake, i.e., when a call is received you see like a small pop up on the top of the screen with the "Answer/Reject" options, then UiAutomatorViewer can't detect them. I don't know if Appium can detect it or not, but I suppose it can't (UiAutomator can't for instance, it can only detect what UiAutomatorViewer detects).
In summary, if a new app is opened, you can detect it is the call app. Otherwise, the "popup" isn't detectable.

How to give an option to start my own application from the native android contact details page?

I am taking the reference of one application from android market and I want a similar interface actually so the actual problem goes like this:
Step 1) We have our native contact list in android Phone right please see the screen shot attached:
Step2) Now i select a Particular Contact from this contact List Lets say I select Narendra Kirusa so we will reach to the following Page
On this Page the Call mobile option is the default one of the android Phone but after that there is a second row coming with the option of Walkie-talkie thats the customised one by the application developer now when you click on that walkie talkie then it starts your application screenshot attached:
now it lands to application. Now the thing is where should i make changes do give that option of walkie talkie to start your own application. like here they gave Walkie talkie on the contact details page the similar option i want to give for my application also then where should i give this option??
We cannot make the changes in the OS files as it is the application.
There Must be some option in the android-manifest.xml file to give this option of putting a new row to start our own application from the android Native Contact Details Page.I tried googling it but could not figure out much.
See there are intents to interact with the native Phone call or SMS so like that only for example to send the sms on click on call phone we can do like this to move it to our application like if you click on call Mobile then we are able to give options like see on click on the call mobile
If you click on dial it goes to android native phone call and if you click on Send Voice SMS then it goes to my application for this what they did is see in the android-manifest.xml file for mail activity they put this option, i am not sure this can be done
using Broadcast Receiver or how??
So can you please suggest how I can put a new row after the android native call Mobile row.....??
Finally how to add this walkie talkie option??
I think here should be used the same mechanism as for opening files in different applications.
You can implement custom BroadcastReceiver which would be registered for receiving this type of action (you'll need to find out what action and category are used)
You can read more about it in docs http://developer.android.com/reference/android/content/Intent.html

Categories

Resources