call - Android: calling a phone number on start of an application -
this question has answer here:
- how make phone call programmatically? 7 answers
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
Post a Comment