How do I test HelloGeolocation

2 views
Skip to first unread message

QterMgnus

unread,
Jan 20, 2010, 11:18:38 AM1/20/10
to gwt-mobile-webkit-users
I am very new to gwt-mobile-webkit, I have create project with
HelloGeolocation.
How do I test it ?
can i use a Android emulator ? if so how ?
or do i need a iphone ?
you have an example but no explanation of how to test it.

Bart Guijt

unread,
Jan 20, 2010, 12:20:17 PM1/20/10
to gwt-mobile-...@googlegroups.com

Good question. Let me get back to you tomorrow on that, I'm not able to provide instructions right now.

Cheers,

Bart.

--
You received this message because you are subscribed to the Google Groups "gwt-mobile-webkit-users" group.
To post to this group, send email to gwt-mobile-...@googlegroups.com.
To unsubscribe from this group, send email to gwt-mobile-webkit...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-mobile-webkit-users?hl=en.



Bart Guijt

unread,
Jan 21, 2010, 7:10:57 AM1/21/10
to gwt-mobile-...@googlegroups.com
The trouble with GWT and mobile devices is that there is no GWT Development Mode plugin for iPhone or Android browsers.

Testing the sample on a Desktop browser is simple: Just open the HelloGeolocation.html file in the directory [gwt-html5-geolocation-*]/samples/HelloGeolocation/war.

Testing on an Android device is a little more complicated. You need to move the contents of the war directory (except the WEB-INF dir) to a webserver like Tomcat, Apache or Jetty. Next you need to prepare an Android Virtual Device with GPS support enabled:
1) In Android SDK, go to the 'tools' directory and start 'android';
2) The 'Android SDK and AVD Manager' starts up.
3) Click on 'Virtual Devices' (top left), next click on 'New' (top right);
4) Enter a 'name', select a 'Target', and enter a 'size' (8 will do);
5) In the 'hardware' section, click 'New' and select 'GPS support';
6) Click 'OK' and 'Create AVD'. Now your Virtual Device is prepared.

The iPhone Simulator is already good to go with GPS support, no preparations needed.

I will try to create some shellscripts which launches GWT's embedded Jetty with the sample 'war' directory.

Hope this helps!

Cheers,

Bart Guijt
E: bgu...@gmail.com
T: +31 6 30408987

QterMgnus

unread,
Jan 21, 2010, 7:16:15 AM1/21/10
to gwt-mobile-webkit-users
Thanks sir for your time.
your mail has been a great help
Reply all
Reply to author
Forward
0 new messages