Thursday, September 19, 2013

ANDROID PROGRAMMING 1

1. Some terminologies:

+ JRE (Java Runtime Environment): is basically the Java Virtual Machine, covers the need of running applications. It also includes browser plugins for Applet execution. 
+ JDK (Java Developper Kit): include JRE, compiler, debugger,... for creating and compiling programs. It is a subset of SDK. 
+ Eclipse: provides comprehensive facilities for software development in some languages.  
+ Android SDK: include API libraries and developper tools for creating, test and debug Android apps. 
+ ADT Bundle: include Eclipse and Android SDK. It helps streamline your Android app development. 
+ ADT Plugin: extends the capabilities of Eclipse to let you quickly set up new project, create an app UI, add packages based on Android framework API, debug and export .apk files.
2. Installation Order:
+ JDK.
+ ADT Bundle.
+ ADT Plug-in.
3. Issue: "Unsupported template dependency" when creating a new Android application
Some ways to overcome:
#1: Uncomment some lines in some files:
               For Blank Activity:
                    a. Edit <sdk>/tools/templates/activities/BlankActivity/template.xml
                    b. Comment out the dependency:
  1.                <!--<dependency name="appcompat" version="v7" />-->
               For Master/Detail Flow:
                    a. Edit <sdk>/tools/templates/activities/MasterDetailFlow/template.xml
                    b. Comment out the dependencies:
  1.                <!--<dependency name="support" version="v4" />
                  <dependency name="android-support-v4" revision="8" />-->
               Finally: Restart Eclipse
#2:
+ Go to SDK_Folder/extra/android.+ Rename the folder compatibility to support.
#3:
Delete the Support Library from SDK Manager.
+ Kill adb.exe.
+ Create new project.
+ Click on "Install/Upgrade".

0 comments:

Post a Comment