PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → End call
End call
Débuté par Nicu BUGALETE, 04 juil. 2014 14:17 - Aucune réponse
Membre enregistré
7 messages
Posté le 04 juillet 2014 - 14:17
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 ?