Android Telephony
Send Email
We can easily send email in android via intent. You need to write few lines of code only as given below Intent email = new Intent(Intent.ACTION_SEND); email.putExtra(Intent.EXTRA_EMAIL, new String[]{ to}); email.putExtra(Intent.EXTRA_SUBJECT, subject); email.putExtra(Intent.EXTRA_TEXT, message);…
Send sms
We can send sms in android via intent. You need to write only 4 lines of code the send sms in android. //Getting intent and PendingIntent instance Intent intent=new Intent(getApplicationContext(),MainActivity.class); PendingIntent pi=PendingIntent.getActivity(getApplicationContext(), 0, intent,0);…
Phone call
We are able to make a phone call in android via intent. You need to write only three lines of code to make a phone…
Simple Caller Talker
Android provides the facility to know the incoming number and speak it by the help of android speech api and telephony manager. Here, we are…
Get Call State2
Android Call State BroadCastReceiver Example activity_main.xml File: activity_main.xml <RelativeLayout xmlns:androclass=“http://schemas.android.com/apk/res/android” xmlns:tools=“http://schemas.android.com/tools” android:layout_width=“match_parent” android:layout_height=“match_parent” android:paddingBottom=“@dimen/activity_vertical_margin” android:paddingLeft=“@dimen/activity_horizontal_margin” android:paddingRight=“@dimen/activity_horizontal_margin” android:paddingTop=“@dimen/activity_vertical_margin” tools:context=“.MainActivity” > <TextView android:layout_width=“wrap_content” android:layout_height=“wrap_content” android:text=“@string/hello_world” /> </RelativeLayout> Activity class File:…
Get Call State
We can also get the information of call state using the TelephonyManager class. For this purpose, we need to call the listen method of TelephonyManager…
TelephonyManager
The android.telephony.TelephonyManager class provides information about the telephony services such as subscriber id, sim serial number, phone network type etc. Moreover, you can determine the…