Thanks for all the responses.  I'm embarrassed to admit, but I had the
GPS turned off in the phone.  Since,

locm.requestLocationUpdates("gps", 0, 0,onLocationChange);

was specifically set to "gps" it wouldn't work.

To address that I have it check if the gps is on and use network if
the gps is disabled.

   LocationManager locm = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
   //Check if GPS is enabled and choose network if it isn't
    if ( !locm.isProviderEnabled( LocationManager.GPS_PROVIDER ) ) {
       locm.requestLocationUpdates("network", 0, 0,onLocationChange);
    } else {
       locm.requestLocationUpdates("gps", 0, 0,onLocationChange);
    }


Thanks Again,
RMD


On Apr 2, 8:02 pm, HeHe <[email protected]> wrote:
> someone said Config.DEBUG or Config.RELEASE may help.
>
> however, when i build and run my apk by the "Debug" menu item within
> Eclipse IDE, my apk always logs "Config.DEBUG" to be "false".
>
> do you or anyone else have an idea of how to have a DEBUG build and
> have Config.DEBUG to have correct value ("true")?
>
> thank you.
>
> On Apr 2, 3:54 pm, Mark Murphy <[email protected]> wrote:
>
> > HeHe wrote:
> > > Mark,
>
> > > thanks for the information.
>
> > > before it, i've been the wrong knowledge that apk running on real
> > > phone is in 'production' mode and should use 'production' map api key -
> > > _||
>
> > > is there any way that an apk can know whether it is running in 'debug'
> > > or 'production' mode?
>
> > I am not aware of a way to check whether you were signed with a debug or
> > production key from inside the app. There might be a way, and I would
> > expect it to be somewhere in the android.content.pm package, but I
> > cannot find anything obvious.
>
> > Sorry!
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android Development Wiki:http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to