Thursday, November 20, 2014

How to Download and import Android samples

  1. Download and extract the sample application. For a list of samples that you can download, see @mobilecloud on IBM DevOps Services. Use the git tool to clone the sample from IBM DevOps Services:
    git clone https://hub.jazz.net/git/mobilecloud/bluelist-mobiledata
    The Android project is in the bluelist-mobiledata-android folder.
  2. Import the sample into your workspace. With Eclipse:
    1. Click File > New > Project....
    2. Android > Android Project from Existing Code
    3. Click Browse. Choose the directory where you extracted the archive. Select the project name in the Projects to import list.
    4. Click Copy projects into workspace
    5. Ensure that the Android platform is included on the Java build path. Click Project > Properties > Java Build Path > [tab]Order and Export. Verify that the correct Android version is selected.
    With Android Studio:
    1. Click File > Import project.
    2. Select the Android root directory that you want for your project.
    3. Define the Gradle home directory. Select the gradle_home directory where you installed Gradle. This directory contains the bin directory.
    4. Click OK.

No comments:

Post a Comment