background preloader

Facebook - Getting Started

Facebook - Getting Started
To use Facebook SDK in a project, add it as a build dependency and import it. 1. Go to Android Studio | New Project | Minimum SDK 2. Select API 15: Android 4.0.3 or higher and create your new project. 3. 4. repositories { mavenCentral() } 5. When you use the Facebook SDK, events in your app are automatically logged and collected for Facebook Analytics unless you disable automatic event logging. 6. Add Facebook App ID Then add your Facebook App ID to your project's strings file and update your Android manifest: 1. 2. 3. 4. 5.

Use ADB for Debugging Most of the newer Android devices now require the use of MTP to transfer stuff to and from the device and the Android File Transfer program is a PITA to get working for some. So I'll show you how I handle it. Setup First off, you'll need to enable the Development options on your phone: Gingerbread (Android 2.3): Settings> Applications> Development> USB Debugging Ice Cream Sandwich (Android 4.0): Settings> Developer Options> USB Debugging Jelly Bean (Android 4.1): Jelly Bean (Android 4.2): Scroll to the bottom and find your About Phone page. On the Kindle Fire HD, it's under Security> Enable ADB Next, you'll want to download the Android SDK tools here: Scroll down and click USE AN EXISTING IDE and download the package. To finish, you'll need to add it to your path: Open the Terminal app (it's under Utilities in your Application folder if you don't know) and type: Code: open -a TextEdit .bash_profile (If it's not there, "touch .bash_profile" will create it)

ADB on Mac OS X gps - Android mock location on device Using ADB for Updating Android OS Back in the early releases of Jelly Bean, Google introduced a new command to adb called “sideload.” Using the sideload command, and the newest version of adb from the Android SDK, one could update their Nexus device through stock recovery, without having to root or flash a custom recovery. It’s something we wish was there from day one, however, at least we have it now. As someone that has a decent grip on drivers and adb, I have to admit that adb sideload has given me issues since it was introduced, which is why I have yet to fully write a guide about it. One had to do with my device ID not registering through the USB driver, requiring a manual edit of the “winusb.inf” file. So for those that keep it stock and still want to update early with the cool kids, this guide is for you. *Instructions are for a Nexus device when connected to a Windows 8 PC. Instructions: How to use “adb sideload” 1. *This isn’t a guide on how to get the SDK installed or basic adb. 2. 5. adb devices 6. 7. 11. 16.

Related: