[android-developers] Error in Android documentation

2009-07-20 Thread mafro
urces.html "checkableBehavior - Whether the items are checkable. Valid values: none, all (exclusive / radio buttons), single (non-exclusive / checkboxes)" This should actually be the other way round: * all (non-exclusive / checkboxes) * single (exclusive / r

[android-developers] Re: ListActivity: items with a button

2009-07-20 Thread mafro
All I had to do was add android:clickable="true" to the button XML definition. This allowed the button to have its own clicks, and maintain the listitem click as it was. On Jul 18, 6:29 pm, BoD wrote: > Hi! > I'm sure this is a classic question, but I couldn't find the answer > anywhere. > > I'

[android-developers] Re: Handling an Intent without an Activity UI

2009-06-10 Thread mafro
You're right it does sound terribly complex. Ill report back on my findings for anyone else who has a similar problem. Thanks for your input, Mark. On Jun 10, 1:09 pm, Mark Murphy wrote: > mafro wrote: > > I'm thinking I might need to write a service to handle my shortcu

[android-developers] Re: Handling an Intent without an Activity UI

2009-06-10 Thread mafro
I'm thinking I might need to write a service to handle my shortcut's Intent. The main application could then raise a similar Intent to the service to provide the same functionality whilst in the application. Comments anyone? On Jun 9, 11:34 am, mafro wrote: > Hey list, > >

[android-developers] Handling an Intent without an Activity UI

2009-06-09 Thread mafro
a Toast notification. This must be possible - I just can't work out how.. Once I'm handling the shortcut Intent in onCreate() the UI has initialised and I get a little screen flicker if I then run my code and finish(). Thanks for any input! mafro --~--~-~--~~~

[android-developers] Re: TabHost and Scrollbars

2009-03-27 Thread mafro
Thanks Romain, no idea how I failed to find this when searching for "scroll", "tab host" and "view". On Mar 27, 4:17 pm, Romain Guy wrote: > You need to use a ScrollView inside your tab. > > > > On Fri, Mar 27, 2009 at 8:47 AM, mafro wrot

[android-developers] TabHost and Scrollbars

2009-03-27 Thread mafro
s? Or indeed how to fix it? The resource xml follows. Thanks! mafro http://schemas.android.com/apk/res/android"; android:id="@android:id/tabhost" android:layout_width="fill_parent" andr

[android-developers] Re: parsing xml data

2009-03-13 Thread mafro
doesn't accept XML as a String input - it accepts a path to a file. This is what causes your exception. Where does your XML come from originally? The SAX parser is designed to parse directly from a Stream, so wherever your XML is first loaded, parse it there. mafro petunio wrote: > Hi e

[android-developers] Re: Can I initialize an Array list from data specified in xml resource file?

2009-03-10 Thread mafro
tAdapter(sa); Here the ArrayList> is supplied as our data source, R.layout.meal_item is given as our UI list item and the final two params are the binding key/value pairs. I hope this is clear enough! Looks like the external XML resource thing is there to give you the flexibility to achieve p

[android-developers] Re: Can I initialize an Array list from data specified in xml resource file?

2009-03-09 Thread mafro
, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); s1.setAdapter(adapter); On Mar 9, 4:31 pm, mafro wrote: > Taking an example from the Dev Guide - you can do it like this: > > http://d.android.com/guide/samples/Api

[android-developers] Re: Can I initialize an Array list from data specified in xml resource file?

2009-03-09 Thread mafro
Taking an example from the Dev Guide - you can do it like this: http://d.android.com/guide/samples/ApiDemos/res/values/arrays.html In res/values/arrays.xml: red orange yellow green blue violet //java code Resources res = this.getR