android-Two ways to make phone calls in android programmatically
1. The purpose of this post
This post would demo two simple ways to make phone calls in android programmatically.
2. Environments
- android 4+
3. The code
Before start ,you must add permission requirement to your AndroidManifest.xml
3.1 Way 1: The semiautomatic way
The semiautomatic way is as follows, it only popup a window and users must click to make the phone call.
3.2 Way 2: The automatic way
The semiautomatic way is as follows, it only popup a window and users must click to make the phone call.