29 January 2013

How to download source code from SVN or GIT in Ubuntu

In terminal windows type :

sudo apt-get install subversion
sudo apt-get install git

than you can download trunk with sort of these commands :

svn checkout http://android-samples.googlecode.com/svn/trunk/ android-samples-read-only
git clone https://code.google.com/...

28 January 2013

How to set RelativeLayout inside ScrollView

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<RelativeLayout
android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="638dp" >

... UI elements here ...

</RelativeLayout>
</ScrollView>

How to fix unreadable tooltips in Ubuntu Eclipse

An easy workaround to fix this is to install gnome-color-chooser.
Open it, go to Specific -> Tooltips and put black foreground over pale yellow background.

27 January 2013

Create new application shortcut in Ubuntu 12.20 Unity

First you must have installed Gnome Panel :

sudo apt-get install gnome-panel

Then you must start gnome panel window for creating new shortcut:

sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

After that, you can search for and open it from the Unity Dash, and drag and drop it to Launcher.

25 January 2013

Eclipse Android SDK Manager not work in Ubuntu 12.10 (64bit)

If you have error with Android SDK Manager in Eclipse, while installing Android SDK, you are missing ia32-libs from your Ubuntu 12.10 (64bit), than you need to install it with:

sudo apt-get install ia32-libs

Install Java SDK 7 on Ubuntu 12.10

To get started, press Ctrl – Alt – T on  your keyboard to open the terminal. When it opens, run the commands below to add the required PPA.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java7-installer