andbook!.pdf - Learning Android Get an anddev.org - Android-Shirt Back to index
anddev.org Header Logo
FAQ Search Top rated articles Browse Feeds anddev.org - Authors Contact Details Register Log in

Mock LocationProvider - Structure/Explanation (NMEA, $GPRMC)

Goto page Previous  1, 2
 
       anddev.org - Android Development Community | Android Tutorials | Index -> Map Tutorials
Author Message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Sun Mar 09, 2008 12:47 pm    Post subject: Reply with quote

Hello zoe,

did you also try pushing the file via console/terminal Question

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zoe11
Freshman


Joined: 25 Feb 2008
Posts: 5
Location: Indonesia

PostPosted: Sun Mar 09, 2008 5:35 pm    Post subject: still not working..!!! Reply with quote

yes, i already do that too but i always failed to push the $GPRMC?!?
I already succeded to push the nmea($GPRMC for jakarta route) file into emulator via adb but the ME location always point somewhere around india and not jakarta despite how many times i restart the emulator.....
Back to top
View user's profile Send private message Send e-mail
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Mon Mar 10, 2008 12:18 am    Post subject: Reply with quote

Hello zoe,

so it almost worked Wink
Its sounds like you have an error in your GPRMC-route, as the "result" is pretty close.

I attached a working KML-route for Germany. (From "Schriesheim" to "Dossenheim").
Give it a try.

Regards,
plusmunus



kml.zip
 Description:
KML-Route Germany (Schriesheim to Dossenheim)

Download
 Filename:  kml.zip
 Filesize:  2.04 KB
 Downloaded:  86 Time(s)


_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rawad00
Once Poster


Joined: 22 Feb 2008
Posts: 1
Location: France

PostPosted: Tue Apr 15, 2008 9:58 am    Post subject: Your GPRMC checksum doesn't work, try this one Reply with quote

Your GPRMC checksum doesn't work, try this one
Try it , and compare the results....with the one you gave and the $GPRMC sentence examples you gave...

Java:
public String checkSum(String sentence){
       //Sentence between $ and *
        String message = (String) sentence.subSequence(sentence.indexOf('$')+1, sentence.indexOf('*'));
         
            int checksum = 0;
            for(int i = 0; i < message.length(); i++){

                checksum ^= (byte) message.charAt(i);
            }

            return Integer.toHexString(checksum).toUpperCase();

    }

_________________
!! R@w@d !!
Back to top
View user's profile Send private message
nithin.warier
Developer


Joined: 28 Feb 2008
Posts: 36

PostPosted: Mon May 05, 2008 5:55 am    Post subject: Reply with quote

hi plusminus,
i am creating a mock location provider for Chennai (India). I created few sentences in nmea file, the locations file and properties file. But i came across one problem .

1. In the getCheckSum(String sentence) function, how can we get the sentence.
2. using push, shall we can push the folder(test1) to eclipse.

please reply immeadiately,

Thanks
Nithin
Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Tue May 06, 2008 8:41 pm    Post subject: Reply with quote

Hello nithin.warier,

I strongly suggest using kml Exclamation

If you choose kml its a job of minutes Exclamation
You'll find info on how to set up a route using kml here on anddev.

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nithin.warier
Developer


Joined: 28 Feb 2008
Posts: 36

PostPosted: Wed May 07, 2008 5:03 am    Post subject: Reply with quote

Thanks plusminus,

i used kml file and its working..

thank you very much, anddev is helping me a lot..
Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Wed May 07, 2008 7:43 pm    Post subject: Reply with quote

nithin.warier wrote:
Thanks plusminus,

i used kml file and its working..

thank you very much, anddev is helping me a lot..


Thats always nice to hear Smile

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
       anddev.org - Android Development Community | Android Tutorials | Index -> Map Tutorials All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


© 2007, Android Development Community
All rights reserved.
Powered by phpBB.