Random thoughts of a warped mind…

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”


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.


Powered by WordPress