0

I am creating an android application which calls the secret code in Android phone. Say *#*#4636#*#* code brings the Display information about Phone, Battery and Usage statistics.

I had created a button and while pressing the button, I want the above Code to be executed.

Any idea about this?

Droid Genie
  • 351
  • 4
  • 15

1 Answers1

0

Try using this code

Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "*#*#4636#*#*"));
startActivity(intent);

<uses-permission android:name="android.permission.CALL_PHONE" />

Community
  • 1
  • 1
Ahmed Bassiouny
  • 275
  • 6
  • 26