[android-developers] Re: Fixed Top and Bottom

2010-02-22 Thread Sam Dutton
I've used TextViews for the header and footer, but obviously these could be ImageViews, LinearLayouts, or whatever. Likewise, the content layout could contain anything -- it's the layout_weight that matters. Sam Dutton O

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-21 Thread Sam Dutton
The Android Code Style Guide explains the conventions used for field names: http://source.android.com/submit-patches/code-style-guide#field_names. Sam Dutton On Feb 22, 5:52 am, Christ wrote: > Hi guys, > > I saw many sample codes that each variable contains the 'm' prefix.

[android-developers] Re: Http proxy settings not working in Android Emulator 2.1

2010-02-19 Thread Sam Dutton
Log.d("Proxy could not be set for port: ", Integer.toString(proxyPort)); } Sam Dutton On Feb 19, 12:37 pm, Vibhor Mahajan wrote: > Hello, > > I am trying to configure http_proxy settings for Internet access from > Android emulator (behind a proxy). I tried following options:

[android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-06 Thread Sam Dutton
Bear in mind that speed (DOM v SAX) may not be much of an issue for parsing smaller amounts of XML, or where for some reason you can't use the parsed data until you've parsed the entire XML document anyway: SAX shines where you can (and need to) use data (e.g. to update a GUI) as soon as it's parse

[android-developers] Re: How to navigate from one page to another?

2010-01-18 Thread Sam Dutton
Just to reiterate what TreKing says: you *could* build your app using just a ViewFlipper, but I think you're kicking against the platform if you try to avoid multiple Activities, and you may wind up reinventing a lot of Activity features -- especially as your app gets more complex than what you sta

[android-developers] Re: How to navigate from one page to another?

2010-01-17 Thread Sam Dutton
>> Do you happen to know if there is a way to utilize a single activity and.. >> sort of like ajax web apps, hide one view and show another without starting >> another activity? << ViewFlipper does this. There's an example here: http://www.codeshogun.com/blog/tag/

[android-developers] Re: UI Design Book

2010-01-15 Thread Sam Dutton
entation/UserExperience/Conceptual/MobileHIG/Introduction/Introduction.html ...and this seems to be coming along nicely: Android Human Interface Guidelines www.binarysheep.com/AndroidCode/AndroidHIG.pdf and Jakob Nielsen has his detractors, but this is sensible: http://www.useit.com/alertbox/mobile

[android-developers] Re: Lazy Loading Images in a ListView

2010-01-14 Thread Sam Dutton
I haven't read through the whole thread, but FWIW there's a very good introduction to list view 'lazy loading' techniques in Beginning Android: http://www.apress.com/book/view/1430224193. Look in the sample code under fancylists -- well documented in the book. Sam Dutton On

[android-developers] Re: How to set http proxy on Android Emulator

2010-01-12 Thread Sam Dutton
http.proxyHost", proxyHost); System.setProperty("http.proxyPort", Integer.toString(proxyPort)); } I'm fairly new to Android, so not sure if this the right or best way to do it. getDefaultPort() returns -1 if no proxy port has been set. Sam Dutton .

[android-developers] Feature support in WebKit on Android?

2010-01-12 Thread Sam Dutton
What HTML, CSS and JavaScript features are currently supported by WebKit Android? In particular, I'm interested in the HTML 5 and CSS 3 features such as those listed here: http://bit.ly/whereCanI. I know I could build/use test pages, but I'm wondering if there's already something like a feature s

[android-developers] Re: -http-proxy for emulator on Android 1.6?

2009-12-24 Thread Sam Dutton
documentation -- including a simple Troubleshooting section, related to the tutorials. Sam Dutton On Nov 13, 8:10 am, Piwai wrote: > By the way, don't you guys think this should be written somewhere in > the Android docs ? > > I think that currently, no app developer is aware of