Get Started to git

gitQucikStart

TFS service now supports git repository for source control, while on premise TFS will gain this support in the next major release of the product (no date available). The native TFS source control is good enough and the support for git is great. We’ve got used to the online centralized TFS source control repository. However, we got to work with the eclipse IDE in a recent project. Since TFS service supports git repository, we don’t have to setup new source control system for git now.

TFS as a git server supports git repository and any standard git client can connect to it. Visual Studio 2012 Update 2 CTP 2 supports git client. In the eclipse IDE, developers can install egit plug-in from the update site, say, http://download.eclipse.org/releases/juno. If you prefer to command line or file explorer shell extensions, Git for Windows and/or TortoiseGit are ideal candidates.

References:

Getting Started with Android Development

  • Install JDK (not JRE)
    • Set the system environment variable: JAVA_HOME
      say, C:\Program Files\Java\jdk1.7.0_09
    • Set the  system environment variable: CLASSPATH
      say, %JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar
    • Append java compiler path to the PATH system environment variable:
      say,  %JAVA_HOME%\bin
    • reboot and run javac.exe to verify if the installation is all right
  • Install ADT (Android Developer Tools)
    • Download, unzip the ADT Bundle for Windows and you are ready to go!
    • Start eclipse: say, C:\adt-bundle-windows\eclipse\eclipse.exe
  • Install all other versions of Android APIs
    • Start Android SDK Manager: Window>Android SDK Manager
    • Check all APIs and Extra to download and install
  • Set up an Android emulator (Andrord Virtual Device, AVD for short)
    • Windows>Android Virtual Device Manager>New
  • Create a new Android Application Project
    • The package name must be specified with your unique name: com.your unique name.helloandroid
    • Start the application: Debug as > Android Application
    • Inconsistent Naming! adt-bundle-{OS} has inconsistent SDK platform location for API 17
      The new adt-bundle-windows (and linix) have the API 17 SDK in platforms\android-4.2 instead of platforms\android-17. However, all the other SDK still download in the the named folders “android-“+apiLevel.
  • Import existing projects
    • File>Import>General>Existing Projects into Workspace
    • DO NOT choose: File>Import>Android>Existing Android Code into Workspace
  • When editting AndroidManifest.xml
    • If error appears: No grammar constraints detected for the document
    • Window>Preferences>XML>XML Files>Validations
      set No grammar specified to Ignore
  • Install Microsoft Visual Studio Team Explorer Everywhere 2010 with SP1
  • To regenerate the R class
    • Android Tools>Fix Project Properties
  • Eclipse hanged when starting
    • cd to <workspace>\.metadata\.plugins\org.eclipse.core.resources
    • remove the file .snap (or .markers in Indigo)
  • Android: failed to find style ‘mapviewstyle’ in current theme?
    • GO-TO : android-sdk/platforms/ <android-api-level> /data/res/values
    • In public.xml, check the mapViewStyle’s definition and id value.
    • In styles.xml, insert ‘mapViewStyle’ item element as shown below.

EclipseAndroid