Search This Blog

Showing posts with label SMS. Show all posts
Showing posts with label SMS. Show all posts

Tuesday, September 27, 2016

Intent - Gửi mã USSD

String s1 = "#" ;
String s = "*101"+Uri.encode(s1) ;
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + s));
startActivity(intent);


Tham khảo : http://umeshisran4android.blogspot.com/2015/11/how-to-readparse-ussd-messages.html

Monday, September 26, 2016

Intent - Di chuyễn đến màn hình gọi

Permission in Manifest: 


<uses-permission android:name="android.permission.CALL_PHONE" />
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "Your Phone_number"));
startActivity(intent);