FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
End call
End call
Débuté par Nicu BUGALETE, 04 juil. 2014 14:17 - Aucune réponse
Connectez-vous…
Nicu BUGALETE
#1
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 ?
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte