[android-developers] Re: location manager

2009-10-19 Thread Mark Murphy
Wayne Wenthin wrote: > True. I'm only looking for a coarse location in my app and assume that > the phone has been on long enough to find the cell towers. Oops, yeah, sorry, wasn't paying attention to your choice of provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twit

[android-developers] Re: location manager

2009-10-19 Thread Wayne Wenthin
True. I'm only looking for a coarse location in my app and assume that the phone has been on long enough to find the cell towers. On Mon, Oct 19, 2009 at 11:20 AM, Mark Murphy wrote: > > Wayne Wenthin wrote: > > LocationManager lm = (LocationManager) > > getSystemService(Context.LOCATION_SERVIC

[android-developers] Re: location manager

2009-10-19 Thread Mark Murphy
Wayne Wenthin wrote: > LocationManager lm = (LocationManager) > getSystemService(Context.LOCATION_SERVICE); > lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, > 1000L,500.0f, this); > Location loc = lm.getLastKnownLocation(lm.getProviders(true).get(0)); Only if that third statement is

[android-developers] Re: location manager

2009-10-19 Thread Wayne Wenthin
LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000L,500.0f, this); Location loc = lm.getLastKnownLocation(lm.getProviders(true).get(0)); is what works for me On Sun, Oct 18, 2009 at 6:46 PM, pavan wr

[android-developers] Re: location manager

2009-10-19 Thread Mark Murphy
pavan wrote: > package android_programmers_guide.AndroidLBS; > > import android.app.Activity; > import android.os.Bundle; > import android.location.LocationManager; > import android.view.View; > import android.widget.TextView; > import android.content.Context; > import android.widget.Button; > pu

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-25 Thread Megha Joshi
Yes pdf is good. On Mon, Mar 24, 2008 at 3:57 PM, Dan U. <[EMAIL PROTECTED]> wrote: > > Is a plaintext README required? I submitted a pdf, will that work? > > On Mar 24, 3:33 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > The README file is a standard one in Text format. You could however > in

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Dan U.
Is a plaintext README required? I submitted a pdf, will that work? On Mar 24, 3:33 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > The README file is a standard one in Text format. You could however include > your site in zip format and include the path to it in the ReadMe so that the > judges co

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Megha Joshi
Hi, That is fine, but just as a safety net include all your content in a zipped file( there is a /or will be a link to upload zips on the ADC submission site) Try to include as much details as you can in the README file. Thanks, Megha On Mon, Mar 24, 2008 at 3:41 PM, Harsh Jain <[EMAIL PROTEC

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Harsh Jain
Pretty weird, I am submitting a framework, which should include docs, sample code, etc. I wonder how that fits in a single README. I had bring a site up and put the URL in the readme. Is that fine ? Regards, Harsh On Tue, Mar 25, 2008 at 4:03 AM, Megha Joshi <[EMAIL PROTECTED]> wrote: > The REA

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Megha Joshi
The README file is a standard one in Text format. You could however include your site in zip format and include the path to it in the ReadMe so that the judges could find it. Thanks, Megha On Mon, Mar 24, 2008 at 3:23 PM, Harsh Jain <[EMAIL PROTECTED]> wrote: > Can README file be a full HTML

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Harsh Jain
Can README file be a full HTML site in a .zip format ? This makes things more presentable, is this acceptable. I went throught entire Terms of Conditions but couldnt find something telling about format of README. Thanks, Harsh On Tue, Mar 25, 2008 at 3:40 AM, Megha Joshi <[EMAIL PROTECTED]> wrote

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Megha Joshi
On Sat, Mar 22, 2008 at 12:34 PM, Harsh Jain <[EMAIL PROTECTED]> wrote: > Hi, > I have a bunch of questions :- > 1) Is it ok to hardcode provider name for the first round ? This means is > it ok to assume a location provider with "gps" will always be present while > evaluating ? > Yes. It is oka

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Harsh Jain
Thanks, I would still appretiate an official word from google on this. Also I am planning to create a web-based console where judges can create data and move stuff and see things change on phone. If this is something judges arent going to consider or use at all, its great to know now. I mean demo a

[android-developers] Re: Location Manager Questions w.r.t Evaluation

2008-03-24 Thread Ram
Here is my take on questions 1 and 2 (note that I neither work for nor speak for google . ) google says that they'll test your submission with the same version of the SDK that you developed the app with. The "gps" provider gets installed with the SDK and the route of the simulation is fixed i