PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV (earlier versions)
→
Affecter le contenu d'une variable windev mobile à une variable java
Affecter le contenu d'une variable windev mobile à une variable java
Started by fasoweb, Sep., 26 2016 5:46 PM - 1 reply
Connect yourself…
fasoweb
#1
Registered member
6 messages
Posted on September, 26 2016 - 5:46 PM
Bonjour,
Je fais de l'USSD dans mon application windev mobile 20 avec du code java
import android.content.Intent;
import android.view.View;
import android.net.Uri;
import android.app.Activity;
public static void CallUSSD()
{
String prefix = "*"; // si cela ne fonctionne pas avec "*" essayez en mettant Uri.encode("*");
String suffix = Uri.encode("#");
String ussd = prefix + "400" + prefix +"2"+ prefix +"1"+prefix +"65755685"+prefix+"1"+prefix+"9719"+suffix;
Intent intcall = new Intent(Intent.ACTION_CALL);
intcall.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intcall.setData(Uri.parse("tel:" + ussd));
getContexteApplication().startActivity(intcall);
}
Mon souci est que j'aimerais transférer le contenu d'une variable windev mobile au code java
Report
0
0
Fabrice Harari
#2
Posted on September, 26 2016 - 10:05 PM
Bonjour
ben, c'est EXACTEMENT pareil que pour une procédure en wlanguage...
Donc, je vois pas bien le problème
Cordialement
--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International
A votre disposition : WXShowroom.com, WXReplication (open source) et
maintenant WXEDM (open source)
Plus d'information sur
http://fabriceharari.com
Le 9/26/2016 à 9:46 AM, fasoweb a écrit :
Bonjour,
Je fais de l'USSD dans mon application windev mobile 20 avec du code java
import android.content.Intent;
import android.view.View;
import android.net.Uri;
import android.app.Activity;
public static void CallUSSD()
{
String prefix = "*"; // si cela ne fonctionne pas avec "*" essayez
en mettant Uri.encode("*");
String suffix = Uri.encode("#");
String ussd = prefix + "400" + prefix +"2"+ prefix +"1"+prefix
+"65755685"+prefix+"1"+prefix+"9719"+suffix;
Intent intcall = new Intent(Intent.ACTION_CALL);
intcall.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intcall.setData(Uri.parse("tel:" + ussd));
getContexteApplication().startActivity(intcall);
}
Mon souci est que j'aimerais transférer le contenu d'une variable windev
mobile au code java
Report
0
0
→ Go back to WINDEV (earlier versions)
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
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