Our application also use GPS and it works as well as the maps application,
and we tested it on the G1.
Did you call requestUpdates on the LocationManager ?
2008/11/7 Amir [EMAIL PROTECTED]
OK Android enthusiasts...here's where the GPS story has led us. We
figured out after hard-coding a
Hah...no worries and good check on the permissions query, I'm trying
something new today as well as hard-coding a location to see if my app
can sniff it out. I'll let everyone know about the outcome!
Amir
On Nov 4, 5:42 pm, C-LIS Keiji Ariyama [EMAIL PROTECTED] wrote:
Amir, I'm sorry...
Thanks, I'm still having issues, but now I do see the GPS 'icon' as
turned on when the application is running. The issue though is that I
don't get anything on the map through our online site...no longitude
and latitude, or anything else.
Here's the revised code I'm using:
package
Did you check if the standard map application manages to display your
location ?
2008/11/4 Amir [EMAIL PROTECTED]
Thanks, I'm still having issues, but now I do see the GPS 'icon' as
turned on when the application is running. The issue though is that I
don't get anything on the map through
Hi Guillaume,
Thanks for your reply and yes the standard map application manager
does display my location on the G1, but my application doesn't allow
display to my website just yet. Any thoughts you may have that might
help?
What I see on the device is the GPS icon is turned on when my
Hi Amir,
Hmm... is this apps allowed permission of ACCESS_FINE_LOCATION?
http://code.google.com/android/reference/android/Manifest.permission.html#ACCESS_FINE_LOCATION
Keiji,
Amir wrote:
Hi Guillaume,
Thanks for your reply and yes the standard map application manager
does display my
Amir, I'm sorry...
permissions are acquired:
Network communication (full)
Your location (fine (GPS), coarse (network-based) location)
Keiji,
Amir wrote:
Hi Guillaume,
Thanks for your reply and yes the standard map application manager
does display my location on the G1, but my application
It can take a while to the G1 to init the gps and return a fix.
And you must see the sky for the GPS to work.
Your code and permissions seem correct, try using the network provider
to test (which is faster and work in buildings unlike the GPS).
Make sure GPS location provider is enabled on the
Amir,
I've developed a similar app just for kicks (so the wife can keep
track of me) ;)
I did the following:
LocationManager lm = (LocationManager)
context.getSystemService(Context.LOCATION_SERVICE);
Location loc = lm.getLastKnownLocation(gps);
Hi Amir,
I had encountered a same situation. But my case is about
getLastKnownLocation(String) cid:part1.07010905.08080404@c-lis.co.jp
method on the emulator.
In that time, I fixed my code below.
Old
public class TestActivity extends Activity {
private void initActivity() {
10 matches
Mail list logo