Getting started with the LoopBack Android SDK.
Page Contents
Note: This page was generated from the
loopback-android-getting-started/README.md.
loopback-android-getting-started
LoopBack mobile application to show developers how to use LoopBack Open Node.js Mobile API Middle tier.
Setting up the Development Environment
- Install Eclipse Android Development Tools
- Open Window > Android SDK Manager, make sure you have these modules
installed:
- Tools > Android SDK Platform-tools 18 or newer
- Tools > Android SDK Build-tools 18 or newer
- Android 4.3 (API 18) > SDK Platform
- Extras > Google Play Services
- Import the Android project in this directory:
- Run File > Import
- Select Android > Existing Android Code Into Workspace
- Choose the directory where you have the Getting Started application.
- Select LoopBackExample for import
- Import Google Play services library project into your workspace. The
project is located inside the directory where you have installed i
the Android SDK.
- Run File > Import
- Select Android > Existing Android Code Into Workspace
-
Go to
<android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/
- Select google-play-services_lib for import
- Check “Copy projects into workspace”
- Click “Finish”.
See this page for more details: Set Up Google Play Services SDK
- Add google-play-services_lib as a build dependency of the Guide Application
- In the Package Explorer, select LoopbackGuideApplication
- Run File > Project Properties
- Select Android
- In the Library frame, click on “Add…” and select google-play-services_lib
- Obtain an API key for Google Maps Android API v2 instructions and enter it into AndroidManifest.xml.