Showing posts with label Android Apps. Show all posts
Showing posts with label Android Apps. Show all posts

Wednesday, November 22, 2017

Checking internet connection and showing result in Snackbar in android studio

Using Snackbar you need to add android support design dependencies. Copy below dependencies and add to your build.gradle file.


compile 'com.android.support:design:25.3.1'

Give an id to your layout. as I am using RelativeLayout so I give it an id like 'mylayout'

android:id="@+id/mylayout"

In MainActivity.java file inside onCreate() method added your layout id like

Monday, August 28, 2017

Android Swipe Refresh


This article is about android swipe refresh with simple code.
To add Swipe Refresh we need to add android SwipeRefreshLayout widget under activity_main.xml file


Inside SwipeRefreshLayout we need to put our refresh widget such as ListView,TextView


Saturday, August 26, 2017

Interstitial Ads for Android



Today We are going to learn how to set interstitial Ads for android.
Our Steps of work describe below.


Creating An Android Project

Open your android studio and under File>New>New Project and name your Interstitial Demo. Press next and keep as it is and press next select Empty Activity. Then press next and then finish.

Recent Post