Re: [android-developers] Re: Best practices for integrated (context-sensitive) help?

2010-04-22 Thread Michael Thomas
Mark Murphy wrote: Nathan wrote: One way I can think of is having html snippets in resources or assets - perhaps as html files - maybe as formatted strings. This sounds lovely. Or, just host the help online, linking to it via an ACTION_VIEW Intent on your URL. I'm not sure if the

Re: [android-developers] Re: What's wrong with this location code?

2010-04-18 Thread Michael Thomas
as if these are the only two forever more, (think ultimately Galileo as an example), and certainly don't make assumptions about the accuracy of resolution (Galileo is supposed to be quite a bit more accurate once its constellation is up). Mike Thanks! Nick On Apr 17, 2:57 am, Michael Thomas

Re: [android-developers] Re: What's wrong with this location code?

2010-04-17 Thread Michael Thomas
patbenatar wrote: You really have no reason to have a LocationListener[10] array... There are really only two location providers, Network and GPS. So all you need are two LocationListeners: fineLocationListener and coarseLocationListener. Perhaps you are forgetting about the chain and

Re: [android-developers] Re: Spurious calls to onPause?

2010-04-16 Thread Michael Thomas
Mark Murphy wrote: asher wrote: OK, I should have done this earlier. I created a new Android app in Eclipse, added an onPause override in the activity containing nothing but a single log message (and the super call), and ran it, and got exactly the same behavior. This seems to be either a

Re: [android-developers] Sending GPS location over socket

2010-03-29 Thread Michael Thomas
raqz wrote: Hello, Could you please tell me how do I send the GPS location of the phone to a webserver through a socket. I am able to display the gps location on the screen with a toast widget in locationchanged() function. After that, I try to send the co-ordinates through a socket but the

Re: [android-developers] fragmentation

2010-03-29 Thread Michael Thomas
Greg Donald wrote: On Jan 18, 1:35 pm, Dianne Hackborn hack...@android.com wrote: Honestly I get really frustrated when people talk about different versions of the platform as fragmentation. Where does that come from?? I'm a little surprised to hear that you're surprised :) From my

Re: [android-developers] eclipse issue

2010-03-29 Thread Michael Thomas
Greg Donald wrote: Is it normal for my Eclipse to totally freak out when I plug more than one phone in at a time? Either my Hero or my Droid work fine solo, but if I try both at the same time they both become unrecognised and I have to then restart Eclipse (2 minutes of waiting) before I can go

Re: [android-developers] eclipse issue

2010-03-29 Thread Michael Thomas
Greg Donald wrote: On Mon, Mar 29, 2010 at 11:33 AM, Greg Donald gdon...@gmail.com wrote: On Mon, Mar 29, 2010 at 11:29 AM, Michael Thomas enervat...@gmail.com wrote: On linux fc10(?), it seems to work ok. It pops up a disambiguator menu. Maybe try disabling the auto-pick mode so

Re: [android-developers] Bug or feature?

2010-03-29 Thread Michael Thomas
Though you can say that both violate RFC1122 :) Mike, section 1.2.2, though a fair number of people in the internet community think that was wrong Mark Murphy wrote: DonFrench wrote: It is perfectly legal for a URL to contain an embedded space in certain situations, such as in

Re: [android-developers] Webview Issue Displaying 100% Wide Pages

2010-03-26 Thread Michael Thomas
Brian wrote: I am working on an app that uses webview for a help section. The help section is loaded from an external site, that is specifically designed for mobile phones. There are a series of 5 pages, with a simple next/ back navigation. When the first page loads, it loads perfectly,

Re: [android-developers] Webview Issue Displaying 100% Wide Pages

2010-03-26 Thread Michael Thomas
Grr, I meant overflow:hidden. Mike Brian wrote: I am working on an app that uses webview for a help section. The help section is loaded from an external site, that is specifically designed for mobile phones. There are a series of 5 pages, with a simple next/ back navigation. When the first

[android-developers] required hardware features

2010-03-22 Thread Michael Thomas
Is there a mandate from google on some of the hardware features that must be present on an Android-branded piece of hardware? In particular, i'm wondering if the home, menu and back buttons, as well as the trackball are required? Essentially what I'm asking for is what the least common

Re: [android-developers] required hardware features

2010-03-22 Thread Michael Thomas
is. Or at least get it documented here so that it's in the archives (assuming it isn't already). Mike On Mon, Mar 22, 2010 at 2:43 PM, Michael Thomas enervat...@gmail.com wrote: Is there a mandate from google on some of the hardware features that must be present on an Android-branded piece

Re: [android-developers] Re: Default orientation of device

2010-03-21 Thread Michael Thomas
Sounds like you want to initially set up a sensormanager to listen to orientation changes and just clamp down the orientation to whatever the first orientation update shows you as being. Mike neha wrote: I want to write a application which should open in default orientation of the device

Re: [android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-21 Thread Michael Thomas
So I haven't been following this thread very closely so apologies in advance if you've already been over this. The SQLite thing kind of has the stench about it like there are possibly multiple writers. AFAIK, SQLite is very single threaded and multiple writers is a big no-no. So let me toss

Re: [android-developers] Re: Default orientation of device

2010-03-21 Thread Michael Thomas
Mark Murphy wrote: Michael Thomas wrote: Sounds like you want to initially set up a sensormanager to listen to orientation changes and just clamp down the orientation to whatever the first orientation update shows you as being. You can get the current orientation from

Re: [android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-19 Thread Michael Thomas
Uh, have you considered changing out your flash chip just to disprove the notion that it's widespread? While sqlite certainly makes higher demand on the crappy underlying FAT file system, it also possible that it's just a hardware problem. FWIW, we've been using a sqlite db on the iPhone

[android-developers] 1.5 addjavascriptinterface

2009-06-04 Thread Michael Thomas
Hi all, I just got my 1.5 pushed to me yesterday and it seems that WebView.addJavascriptInterface stopped working. What I have is: public class phzJSI { public void backbutton () { mHandler.post(new Runnable () {

[android-developers] 1.5 addjavascriptinterface

2009-06-04 Thread Michael Thomas
Hi all, I just got my 1.5 pushed to me yesterday and it seems that WebView.addJavascriptInterface stopped working. What I have is: public class phzJSI { public void backbutton () { mHandler.post(new Runnable () {

[android-developers] Re: 1.5 addjavascriptinterface

2009-06-04 Thread Michael Thomas
the object at all (ie window.phz == null) but loading an object with no methods is just plain weird. Mike On Jun 4, 4:23 pm, Mark Murphy mmur...@commonsware.com wrote: Michael Thomas wrote: Hi all, I just got my 1.5 pushed to me yesterday and it seems that WebView.addJavascriptInterface stopped

[android-developers] Re: 1.5 addjavascriptinterface

2009-06-04 Thread Michael Thomas
...@commonsware.com wrote: Michael Thomas wrote: 1) window.phz is not null and is an object in my js (as before in 1.0) Don't do that. 3) window.phz.backbutton is now null (ie, the debugmsg(...) is called in the js) Don't do that either. I do not believe it is part of the API contract that the Java

[android-developers] Re: 1.5 addjavascriptinterface

2009-06-04 Thread Michael Thomas
On Jun 4, 4:49 pm, Mark Murphy mmur...@commonsware.com wrote: Michael Thomas wrote: would it be better to just try {    window.phz.backbutton () } catch () instead? this need to be cross-browser safe. Oof. That could be trouble. Well, both methods _do_ work. What do you mean

[android-developers] 1.5 ant build problems

2009-06-04 Thread Michael Thomas
Hi all, I'm having pukage when I try building from ant. I followed the sdk upgrade instructions: $ android update project --path /path/to/my-project --target 1 and when I try to build: $ ant release I get: Buildfile: build.xml BUILD FAILED java.lang.NoSuchMethodError: method