PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Ando-it-yourself droid Praveen Kumar Pendyala. Outline Brief intro to the Droid developement Setting up the Life saviors - Development tools Hello Droid.
Using the SmartPLS Software
GPS and MapView. First In the emulator, set the time zone to something (e.g., east coast) and check that the time is correct. Otherwise, the gps emulator.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
11-Jun-15 Getting Ready for CIT Registering and labs If you are not yet registered (and want to be), be sure I have your name and student ID We.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
1 How to Start Up CCStudio 3 DSP LAB T.A.:. 2 Device Setup Double-click “ Setup CCStudio3 ” on desktop, and you will see the above dialog.
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Android Tutorial Larry Walters OOSE Fall References This tutorial is a brief overview of some major concepts…Android is much richer and more complex.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
Android Application Development 2013 PClassic Chris Murphy 1.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
Subtitle touch | Title of presentation | Date DD/MM/YYYY Touch Cloud Android SDK Ghady Rayess – Jan 19 th, 2013.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
Using RefWorks Downloading Write-N-Cite Eastern Washington University Libraries.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
UFCFX5-15-3Mobile Device Development Android Development SDKs and Publishing.
Mobile Programming Lecture 16 The Facebook API. Agenda The Setup Hello, Facebook User Facebook Permissions Access Token Logging Out Graph API.
Introduction to Android Programming (CS5248 Fall 2015) Aditya Kulkarni August 26, 2015 *Based on slides from Paresh Mayami.
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Basic Android Tutorial USF’s Association for Computing Machinery.
26/05/2016 E.R.Edwards 26/05/2016 Staffordshire University School of Computing Introduction to Android Practical 1 Changing the Eclipse Workspace Importing.
Drexel University Software Engineering Research Group 1 Eclipse for SE101.
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Overview of Android Application Development
Android Boot Camp for Developers Using Java, 3E
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
DEVS M&S Tutorial with eclipse IDE Chungman Seo
 Facebook Integration on iOS Phan Thanh Phat Huynh Thanh Van.
First Venture into the Android World Chapter 1 Part 2.
Introduction to Android
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
How to Install Eclipse Click hereClick here to download Eclipse.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
TCS Internal Maps. 2 TCS Internal Objective Objective :  MAPS o Integration of Maps.
Intoduction to Andriod studio Environment With a hello world program.
Cosc 5/4735 YouTube API. YouTube The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Personal Planning System The Merging a New Plan Enterprise Edition.
Introduction to Android Programming
CLOUD
Obtaining the Required Tools
Development-Introduction
Sensors, maps and fragments:
CMPE 152: Compiler Design ANTLR 4 and C++
Setting up Eclipse Locally
Working with Libraries
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

PARSING FACEBOOK DATA FOR ANDROID 1

Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse  Setting android layout  File Class in Package Folder  Edit AndoidManifest.xml  Run your app! 2

Import Android SDK  Download Android SDK from  Import SDK to your workspace 3

Get the Hash Key  Download and extract OpenSSL from windows/downloads/detail?name=openssl-0.9.8k_WIN32.zip windows/downloads/detail?name=openssl-0.9.8k_WIN32.zip  Get the path location of OpenSSL/bin  Get the path location of debug.keystore from android folder C:\Users\User\.android 4

Get the Hash Key (cont.)  Open cmd  Change root in command line with path location of Java jre. example :  Write this command Example : keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64 keytool -exportcert -alias androiddebugkey -keystore “C:\Users\User\.android\debug.keystore”| “C:\OpenSSL\bin\openssl” sha1 -binary | “C:\OpenSSL\bin\openssl” base64 5 Path debug.keystore Path openssl.exe

Get the Hash Key (cont.)  Will appear hash key in command line. Save the hash key. 6 Hash key

Create a facebook app  Open link facebook developer.  Create a New App. 7

Create a facebook app (cont.)  Save App ID. We will use the ID in androidmanifest.xml (setting for android) 8

Create a facebook app (cont.)  Go to 'Settings' in the left navigation, then click on the 'Add Platform' button, and select Android. Add the debug hash key from previous step.  Change button Single Sign On to “Yes” 9

Create New Project in Eclipse  When you create new android application, dont’ forget to use package name that you have written when create a facebook app (previous step) Minimum android SDK for facebook API 10

Create New Project in Eclipse (cont.)  Right click at the project, then choose Properties  Go to ‘Android’ in the left nav and add facebook SDK library 11

Create New Project in Eclipse (cont.)  Add tag string app_id from previous step to res/values/string.xml 12

Create New Project in Eclipse (cont.)  Copy all file above to your libs folder.  We use Parse library from to easier access facebook datawww.parse.com 13

Setting android layout  Open /res/layout/main.xml. Edit the code 14 Graphical layout main.xml

Setting android layout (cont.)  Make new userdetails.xml file in res/layout 15 Graphical layout userdetails.xml

Setting android layout (cont.) 16

Setting android layout (cont.) 17

File Class in Package Folder  Add new LoginActivity class (you can copy the code but dont forget to change package name in first line of the code)  This activity will call the facebook login and ask permission from the user.  This activity also call parse libraries to parsing data user with JSON.  You can setting the data you will access in list permission. For more information facebook data that allowed to access can you see in api/reference/userhttps://developers.facebook.com/docs/graph- api/reference/user 18

File Class in Package Folder (cont.)  Add new UserDetailsActivity.java class (you can copy the code but dont forget to change package name in first line of the code)  This class is to show result of parsing data.  Add new IntegratingFacebookTutorialApplication.java class (you can copy the code but dont forget to change package name in first line of the code)  This class will connect Parse Library to your class. 19

Edit AndoidManifest.xml  This application need to connect with internet. So you need to add some permission tag  The activity must initialize in tag application and add meta-data tag 20

Run the application  Now, your application ready to run ! 21