call - Android: calling a phone number on start of an application -


this question has answer here:

i'm new android, there way automatically call number (or @ least put in phone's dialer) when app opened? (the app needs no gui, needs call when opened)

thank time!

to make call,

private void performdial(string numberstring) { if (!numberstring.equals("")) {    uri number = uri.parse("tel:" + numberstring);    intent dial = new intent(intent.action_call, number);    startactivity(dial); } 

}

add permission manifest.

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

refer this


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -