Azhar has Published 721 Articles

How to convert milliseconds to date format in Android?

Azhar

Azhar

Updated on 15-Nov-2019 07:14:40

2K+ Views

This example demonstrates how do I convert milliseconds to date format in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     Step ... Read More

How to determine if network type (2G, 3G or 4G) in Android?

Azhar

Azhar

Updated on 25-Oct-2019 08:58:41

629 Views

This example demonstrates how do I determine if network type (2G, 3G, 4G) in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to get the Android Emulator's IP address?

Azhar

Azhar

Updated on 23-Oct-2019 08:34:58

839 Views

This example demonstrates how do I get the Android Emulator’s IP address.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to use facebook SDK in Android studio?

Azhar

Azhar

Updated on 11-Sep-2019 11:50:10

183 Views

This example demonstrates about How to use facebook SDK in Android studioDownload the SDK from the Maven Central Repository:buildscript { repositories { mavenCentral()}}Compile the latest version of the SDK:dependencies {    implementation 'com.facebook.android:facebook-android-sdk:[5,6)' }Click here to download the project code.

How to create Android Facebook Key Hash?

Azhar

Azhar

Updated on 11-Sep-2019 11:45:46

945 Views

This example demonstrates about How to create Android Facebook Key HashGenerating a Development Key HashMac OS:- Execute below command in terminal keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64Windows:- Execute below command in command prompt keytool -exportcert -alias androiddebugkey -keystore "C:\Users\USERNAME\.android\debug.keystore" | "PATH_TO_OPENSSL_LIBRARY\bin\openssl" sha1 -binary ... Read More

How to create android app in facebook?

Azhar

Azhar

Updated on 11-Sep-2019 11:40:22

165 Views

This example demonstrates about How to create android app in facebook We need to create Facebook App on Facebook developer site to get Facebook App ID. Please follow the following steps one by one. Go to https://developers.facebook.com/ and add new app.Step 1  - Enter you app name and email in ... Read More

How to show current location on a google map on Android?

Azhar

Azhar

Updated on 30-Aug-2019 14:02:32

7K+ Views

This example demonstrates how do I show current location on a google map on Android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. Step 3 – Add the ... Read More

How to get current location latitude and longitude in Android?

Azhar

Azhar

Updated on 30-Aug-2019 06:09:03

12K+ Views

This example demonstrates how do I get current location latitude and longitude in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to programmatically add buttons into a layout one by one in several lines in Android

Azhar

Azhar

Updated on 21-Aug-2019 11:21:09

2K+ Views

This example demonstrates how do I programmatically add buttons into a layout one by one several lines in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code ... Read More

How to Create a Tab Layout in Android App?

Azhar

Azhar

Updated on 21-Aug-2019 10:54:21

5K+ Views

This example demonstrates how do I create a Tab Layout in android app.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 – Add the following dependency to create a tab layout −implementation ... Read More

Advertisements