Posts

Showing posts with the label android

How to send SMS message in Android

Image
In this article we will learn about  “How to send SMS message in Android ”,  What is the process to send SMS message in Android, SMS sending step by step in Android. In Android, you can use  1 SmsManager  API or device’s  1 Built-in SMS  application to send a SMS message. In this tutorial, we show you two basic examples to send SMS message : 1. SmsManager API 1 2        SmsManager smsManager <span class="token operator">=</span> SmsManager<span class="token punctuation">.</span><span class="token function">getDefault</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>     smsManager<span class="token punctuation">.</span><span class="token function">sendTextMessage</span><span class="token punctuatio...

How to display Banner Ads Google AdMob in Android

In this article we will learn about  “How to display Banner Ads  Google AdMob in Android ”. Let’s create an app to display Google AdMob Banner Ads on its layout. File: build.gradle file Add the required google ads dependencies in build.gradle file.] compile  ‘com.google.android.gms:play-services-ads:8.4.0’ Required Permission Add the required user permission in AndroidMenifest.xml file < uses-permission   android:name = “android.permission.INTERNET”   /> < uses-permission   android:name = “android.permission.ACCESS_NETWORK_STATE”   /> File: activity.xml Create google ads AdView View in activity.xml file. <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_heigh...