PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WM - Para recuperar o numero do celular
WM - Para recuperar o numero do celular
Started by BOLLER, Jan., 18 2017 10:05 PM - No answer
Connect yourself…
BOLLER
#1
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 18 2017 - 10:05 PM
Prezados,
Para recuperar o numero do celular. fazer uma ligação para Ligue para *846#
Vai retornar
(U_031) O POS 41999491800
OU
Crie uma procedure Java com o nome NumPhone
//CODIGO JAVA
import android.app.Activity;
import android.content.Intent;
import java.lang.*;
import android.util.*;
import java.lang.Exception;
import android.util.Log;
public static boolean NumPhone(String Aplicativo)
{
//O código java que faz isso é esse.;
TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
String number = tm.getLine1Number();
}
// Na hora de gerar o apk inclua o seguinte no manifest
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
Obrigado Pedroso!
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
Message modified, January, 18 2017 - 10:29 PM
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
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