Android Hash Key

Sep 06, 2016

prince

Android

0

Objective :

Main Objective of this blog is how to generate KeyHash. Because Facebook uses the key hash to authenticate interactions between your app and the Facebook app. If you run apps that use Facebook Login, you need to add your Android development key hash to your Facebook developer profile.

STEP 1: Create new project in Android Studio.

If you are new to Android Studio and don’t know how to create a new project then you should checkout our blog.

STEP 2: Main Layout File

We defined main layout file (res/layout/main.xml) within a LinearLayout.

 

STEP 3: MainActivity

In main activity java file we create showHashKey method for generate  hash key and set in textview.

 

Final Output:

 

Post by prince

Leave a Reply

Your email address will not be published. Required fields are marked *