Video Demo:
In Marshmallow (Api level 23 or higher), Google had changed the way of asking permissions. If we want to access the camera, gallery etc of the marshmallow user, then we have to asked these permission during runtime otherwise over app should crash. There are two type of permission Normal Permission and Dangerous...
Friday, November 10, 2017
Saturday, October 14, 2017
Video Demo:
As we know that Viewpager is used to slide the screen. There are alots of tutorial of using viewpager in android programmatically with java, But there are limited example of using viewpager with kotlin. So here I am showing tutorial of using Viewpager in android using kotlin. Download source code from here.
activity_main.xml:
<RelativeLayout...
Saturday, September 9, 2017
Video Demo:
As we know that now kotlin is officially supported by Android studio. So here I am creating a demo to show listview in android by using kotlin. Download source code from here.
activity_main.xml:
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
...
Monday, July 31, 2017
Video Demo:
Kotlin is very simple language you can easily learn it if you have a good knowledge of java and android studio. In this tutorial I am creating the list using kotlin classes. You can download the source code from below.
activity_main.xml:
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
...
Saturday, July 22, 2017
Video Demo:
In this tutorial I am using expandable listview with default navigation drawer. Download source code from here
activity_main.xml:
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"...
Monday, July 17, 2017
Video Demo:
You can easily view your online pdf file from url in webview. To load the pdf file from url you need to use the google drive link. Download source code from here.
activity_main.xml
<RelativeLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
...
Monday, July 10, 2017
Video Demo:
Show the viewpager with the boundaries of previous and next page in android programmatically. In this example I am using viewpager with fragments to show the left and right boundaries.Download source code from here
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...