Random thoughts of a warped mind…

September 1, 2011

Scrolling probems with Eclipse on Ubuntu 11.04

Filed under: All,Android,Linux — Srinivas @ 12:13

Was migrating my android dev setup to a new laptop running Ubuntu 11.04. So I had all my projects nicely exported and wanted to import them into my new box. Since I could’nt import without having at least a single existing project I tried creating a new project and noticed that with Unity my scroll bar was extremely thin and I just could’nt scroll down to select all the options, tab and keyboard options did’nt help as well. Swapped over to Ubuntu classic (and no effects and safe mode etc) and still the same.

(more…)

August 31, 2011

ADB error on Ubuntu

Filed under: All,Android,Android,Linux — Srinivas @ 15:36

Note to self:

“bash: adb – No such file or directory”

(more…)

July 26, 2011

How to add a dropdown menu in your Android app (Spinner!)

Filed under: All,Android,Android,Development — Srinivas @ 16:27

It took me a while to figure out how to use a “drop down” list in my Android app. Turns out you use the widget called Spinner (http://developer.android.com/reference/android/widget/Spinner.html).

Lets say you have an activity called ExpenseHistory that displays some user information based on a time period selected by the user and time period is what you want to offer as a dropdown menu. Assuming the Layout for this activity is defined in expensehistory.xml, first add a Spinner widget to the layout.

(more…)

Powered by WordPress