Setting up for Android Development

Go down

Setting up for Android Development

Post  ljking on Fri Jan 23, 2015 1:42 pm

I had time to play with the Android Development Studio. It took me a couple of attempts to get it set up correctly. Here are my steps.

1) Install Software (get this right then things actually work)
 - Create a directory c:\Android
 - download Android Studio from here: http://developer.android.com/sdk/index.html (868MB) and save in the Android directory
 - download the android ndk https://developer.android.com/tools/sdk/ndk/index.html and save it to the Android directory
 - download 64-bit Java jdk version from and save it to the Android Directory. (129MB)
  http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
 - start a cmd window and cd to C:\Android
 - run the ndk.exe, it will create a subdirectory in the Android directory
 - rename the ndk subdirectory to android-ndk (remove the version info)
 - run the Android Studio installer
   - select all components (sdk, virtual device, performance)
   - set sdk location to c:\Android\android-sdk
 - start Android Studio and set the path to the sdk. C:\Android\android-sdk
   - install Aroid Studio Updates (notification in upper right of screen)
   - upgrade and restart Android Studio
 - install Android 4.4.2 API 19 (Tools -> Android -> SDK Manager)
 - if necessary install 64-bit Java JDK (Android Studio didn't do this for me)
2) on the IFC6410, turn on developer mode
 Settings -> Security -> Screen lock -> None
 Settings -> Display -> Sleep -> 30 minutes
 Settings -> About phone -> Build number (hit Build Number 7 times)
 Settings -> {} Developer options
  turn on stay awake
  ensure USB debugging is enabled
3) setup your path to point to the adb.exe file in the sdk directories.
 - Start -> Control Panel -> System -> Advanced Stystem Settings -> Enviroment Variables -> "path" Edit
 - insert "C:\Android\android-sdk\platform-tools;" at the beginning of the Variable Value.
 - insert "C:\Program Files\Java\jdk1.7.0_76\bin;" in the PATH variable (check which jdk version you actually have)
 - insert "C:\Android\android-ndk;" in the PATH variable
 - OK -> OK -> OK (you need to close the boxes by hitting all three OKs otherwise the variable doesn't get set).
4) follow the steps in Part 1 of this tutorial http://sdgsystems.com/blog/using-android-ndk-android-studio/
 - after you create main.c and main.h you will need to create an empty file called util.c otherwise the build will fail
5) follow this tutorial on Android Studio https://software.intel.com/en-us/videos/using-the-ndk-with-android-studio
 - some of the steps you already did in the previous tutorial and don't need to do again.
 - at this point you will have a basic hello world app running in Native C.
 - connect the DragonBoard and run the app.

ljking

Posts : 12
Join date : 2014-12-10

http://mydragonbaord.org

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum