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

Oops I did it again ! See the new Molib release :)


 
       anddev.org - Android Development Community | Android Tutorials | Index -> Promote your AndroidApp
Author Message
Bertrand
Freshman


Joined: 22 Jan 2008
Posts: 4
Location: Paris, France

PostPosted: Wed Mar 05, 2008 5:29 pm    Post subject: Oops I did it again ! See the new Molib release :) Reply with quote

I just make a new Molib release !
Molib is now compatible with the new android sdk m5-rc14 and m5-rc15.
The design has been slightly modified, and improved ergonomics. I especially benefited to add functionality that I hope will be very useful for users. Here is a list of major new features:

1. Now Molib is open on the following cities: Lyon, Marseille, Toulouse and Orleans, in addition to Paris!
2. No need to integrated GPS! Molib automatically detects GPS device and if the phone has no GPS, locates the phone through the cell by MyLocation API information provided by Google.
3. Ability to toggle the screen in a horizontal or vertical mode for more visual comfort, as an IPhone !
4. When the route is requested, Molib displays the distance and estimated time of the trip updated in real time.
5. Molib implements touch screens events on map and displays real time informations about station as soon as the user touches the station icon.


As a reminder, Molib can simplify life for users of shared bike (as vélib in Paris, France or velov in Lyon, France for example.)
Molib provides real-time availability of stations closest to the user on his mobile phone, helps to find an address, stores prefered addresses, displays the route, weather forecats and many other things, ...
The main idea is to save time and money to the user, helping to find bikes to the park or on the terminals.

The new beta version is available here: http://www.molib.fr/telecharger
And a list of all the services here: http://www.molib.fr/services
In summary, or anything that is happening http://www.molib.fr and see video demonstration



m5_6.png
 Description:
 Filesize:  24.69 KB
 Viewed:  1026 Time(s)

m5_6.png



m5_5.png
 Description:
 Filesize:  22.7 KB
 Viewed:  1026 Time(s)

m5_5.png



m5_3.png
 Description:
real time station informations
 Filesize:  22.03 KB
 Viewed:  1026 Time(s)

m5_3.png



m5_1.png
 Description:
the main screen
 Filesize:  20.67 KB
 Viewed:  1026 Time(s)

m5_1.png



molib_1.png
 Description:
 Filesize:  21.17 KB
 Viewed:  1026 Time(s)

molib_1.png


Back to top
View user's profile Send private message Visit poster's website
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2067
Location: Germany

PostPosted: Wed Mar 05, 2008 8:20 pm    Post subject: Reply with quote

Hello Bertrand,

looks really fine Smile
And I got some questions:
2. how do you toggle the screen-rotation Question Can you do this from code Question
3. You are using "Google MyLocation", I don't know it under that name. Is it like this tutorial: http://www.anddev.org/viewtopic.php?t=257
4. How do you calculate the remaining time Question do you requery the Driving-directions periodically, or do you calculate via "percentage" driven.
5. How do you detect the clicks to the icons. Any fancy way or comparing onTouch-Values to stored screencoordinates Question

Best Regards,
plusminus

_________________

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


Joined: 22 Jan 2008
Posts: 4
Location: Paris, France

PostPosted: Thu Mar 06, 2008 11:50 am    Post subject: Reply with quote

@PlusMinus
Very pleased that you like Molib, PlusMinus. Smile

2. Sorry but I would like to keep mine some making-of secrets... But I can say that I do it with code in few lines.

3. Yes, you're right. But for more information go to see this group http://groups.google.fr/group/Google-Maps and here http://maps.alphadex.de/index.php . If you remenber, the great Davanum'blog, which is the source of CellId Location tutorial had found a part of his source code also on this forum.

4. I know the location of the end point and I know the phone location . So I calculate at every location updates the distance with this android method : http://code.google.com/android/reference/android/location/Location.html#distanceTo(android.location.Location)
So if I know distance I know estimated remaining time too, because I have set an average speed.

5. To detect event on mapview you have to enabled clicks (very important), like this :
Java:
myMapView.setClickable(true);
in the onCreate method
After, you just have to catch event with a dispatchTouchEvent(MotionEvent event).
So I detect finger touch coordinates and I compare with station coordinates with a tolerance.

I'm sorry not to say more, but I hope this can help you. Confused

Bertrand
http://www.molib.fr
Back to top
View user's profile Send private message Visit poster's website
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2067
Location: Germany

PostPosted: Fri Mar 07, 2008 12:37 am    Post subject: Reply with quote

Hello Bertrand,

thanks for the response

2. Razz

4. So just an average speed set. That could work properly for "walkers". But for drivers this is not useful, as a Highway one can drive much faster than in a suburb. Unfortunately the DrivingDirections provide no information about the type of the route-segments.

5. as I thought Smile

Regards,
plusminus

_________________

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


Joined: 22 Jan 2008
Posts: 4
Location: Paris, France

PostPosted: Fri Mar 07, 2008 11:17 am    Post subject: Reply with quote

Hello PlusMinus,

4. Molib will be used by bike users so I set average speed to 20km/h. But I understand your issue.

Can you calculate time between each location updates ?
or you can use this method : http://code.google.com/android/reference/android/location/Location.html#getSpeed()
So you have an idea about your driver's speed in real time.
With a little algo you can determinates estimated remaining time Smile

Have a nice day

Bertrand
http://www.molib.fr
Back to top
View user's profile Send private message Visit poster's website
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2067
Location: Germany

PostPosted: Fri Mar 07, 2008 12:57 pm    Post subject: Reply with quote

Hello Bertrand,

yes, but I have no information about how fast he is allowed to drive on the upcoming/remaining route.

Regards,
plusminus

_________________

| 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 -> Promote your AndroidApp All times are GMT + 1 Hour
Page 1 of 1

 
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.