PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
End call
End call
Started by Nicu BUGALETE, Jul., 04 2014 2:17 PM - No answer
Connect yourself…
Nicu BUGALETE
#1
Registered member
7 messages
Posted on July, 04 2014 - 2:17 PM
Hello, i hope i will find help here. i searched everywhere but no luck
I wand to end a call after a whyle without pressing end call
I initiate the call useing 2 ways :
tapiDialerCall("+123456...")
or :
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.content.ComponentName;
import android.content.Context;
public static void Apelare()
{
Activity act = getActiviteEnCours();
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:+40723019693"));
act.startActivity(callIntent);
}
1. I tryed to kill all process from background
int pid = android.os.Process.getUidForName("com.android.phone");
android.os.Process.killProcess(pid);
2. i tryed to restart
activity_manager.restartPackage("com.android.phone");
activity_manager.killBackgroundProcesses("com.android.phone");
3. I trued to use TelephonyManager
None of them worked
I know it's possible because i installed an application from Google play
Espier Dialer 7
https://play.google.com/store/apps/details…
And without root it replaces the defaul dialler by placeing its dialler on top of the default one and send keys
Or is there a way that i can send key from my application to the android dialler ?
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text