Archive

Archive for the ‘Android’ Category

Setting Android and Path environment variables on Mac OS X

December 21, 2011 2 comments

When bash starts it reads the following files every time you login. For the purposes of OS X, this means every time you open a new Terminal window.

  • /etc/profile
  • ~/.bash_profile
  • ~/.bash_login (if .bash_profile does not exist)
  • ~/.profile (if .bash_login does not exist)

When you start a new shell by typing bash on the command line, it reads .bashrc

Finally, OS X also uses ~/.MacOSX/environment.plist to set more environment variables, including paths if necessary.

Add Android and PATH variables to ~/.profile, e.g.:

export ANDROID_HOME=/Users/cduu/Development/bin/android-sdk/android-sdk_r15-macosx_x86
export PATH=/Users/cduu/Development/bin/android-sdk/android-sdk_r15-macosx_x86/platform-tools:/Users/cduu/Development/bin/android-sdk/android-sdk_r15-macosx_x86/tools:$PATH

Check environment variables in a new Terminal with:

set
Categories: Android, Development, Mac OS X

Java/Eclipse on Mac OS X: where is the source code for java

October 31, 2011 1 comment

The JDK installed by default does not have a src.jar. But if you install the ‘Java Developer package’ from Apple, you will get /Library/Java/JavaVirtualMachines/1.6.0_26-b03-384.jdk, which has src.jar under Contents/Home.

  • After installing the JDK point to it from your IDE.

Categories: Android, Development, Mac OS X

SQLiteManager for Android Eclipse plugin

October 3, 2011 1 comment

Download the sqlitemanager jar here, put it in the eclipse plugins folder and restart eclipse. By clicking the sqlitemanager icon on the top right of the File Explorer window you can see the table structure of the selected db file.

Here you can find a video how to use it. There is also a newer version available here.

Categories: Android, Development

New Android Market App 3.026

Categories: Android, Apps

Google+ app install

If you can’t find the Google+ app in the market you can follow these steps to install it.

  • open this URL in your phone’s browser:

    m.google.com/plus

or click on the ‘Send to Phone’ button here

  • then follow the link to the market there and install the app
Categories: Android, Apps

ListView with thumb scroller (fast scroll)

To add the thumb scroller adjust your ListView like that:

<ListView android:layout_height="fill_parent" 
     android:layout_width="fill_parent"  
     android:id="@+id/android:list"    
     android:fastScrollEnabled="true"></ListView> 

For more informations have a look at here and here.

Categories: Android, Development

Model Driven Software Development for Android

With the MDSDACP and the Android Content Provider Generation Eclipse Plugin it is possible to generate the Android Content Provider + Database + Model from an ecore domain model. It’s an Open Source Project under Eclipse Public License 1.0. For more informations have a look at the Project Home Page here.

Categories: Android, Development

LogCat doesn’t show anything

If the LogCat panel is empty in Eclipse the emulator (or your connected device) doesn’t have the focus. Go to the DDMS perspective and try clicking on the ’emulator’ entry in the Devices panel (top-left screen).

Categories: Android, Development

How to install the Android SDK on Mac OS X

  • Download the latest version of the Android SDK
  • Unzip it and move it where needed, e.g. to your user directory
    unzip ~/Downloads/android-sdk_r11-mac_x86.zip
  • Open Terminal.app (in /Applications/Utilities)
  • Edit ~/.profile and append (if you have the SDK moved to your user directory):
    export PATH=~/android-sdk-mac_x86/platform-tools:~/android-sdk-mac_x86/tools:$PATH
    export ANDROID_HOME=~/android-sdk-mac_x86
  • Load new .profile
    source .profile
  • Run Android SDK Manager
    android
  • Install Components
Categories: Android, Development, Mac OS X

Waiting for HOME (‘android.process.acore’) to be launched…

After starting my Android App i got the information ‘Waiting for HOME (‘android.process.acore’) to be launched…’ in the Console, but it didn’t launched it.

Go to Project->Clean… and clean your project. Wait for few seconds and then right click on the project and click run as android application once again.

This solution works for me.

Categories: Android, Development