Locus Map - forum

Support => Wishlist => Implemented => Topic started by: MaleSmurf on April 25, 2011, 10:30:51

Title: Customizable screen for GPS data
Post by: MaleSmurf on April 25, 2011, 10:30:51
I just want to start the discussion for a customizable screen in Locus. There is an app called TrekBuddy and there is this screen called CMS. The app provides all the GPS variables and the user can decide in what way this data should be displayed on the screen. Here is a sample (//http://wiki.trekbuddy.net/index.php/CMS) how it looks like... The first picture in blue colors is an old version of my cms...

Such a screen would be great to see in Locus.
What do you think about it???
Title: Re: Customizable screen for GPS data
Post by: golgot on April 26, 2011, 16:30:32
In fact, I'd deeply prefer to have these information in top of Locus map instead on a new screen... It can be really great if I can add my speed/altitude in the top of the map screen... I'd like to be able to set the text size, position, and color (with transparency) in the front of the track map (and not in a special menu) - because I always need the map...

Another really cool stuff may be to show the speed using the whole screen with a fluo background when I rise above my previous maxspeed... I've such a feature on my Recon Ski Goggles, it was so great to see a big flashing 103 Km/h during skiing, I'd like to see the same on my bike (but I think that unfortunately, I cannot reach such speed while biking)... :)

OK, It's useless and dangerous, but that's why it's cool, and great!  :twisted:  :twisted:
Title: Re: Customizable screen for GPS data
Post by: MaleSmurf on April 26, 2011, 19:58:20
I agree that it would be great to have some variables together with the map but also an own customizable screen with all the other informations...
Title: Re: Customizable screen for GPS data
Post by: MaleSmurf on May 03, 2011, 16:33:53
Additionally to an own cms screen, some variables would be needed to see them together with the map. How about one line with 4 fields, which can userdefined be set?

@Menion
Any chance to add this?   ;)
Title: Re: Customizable screen for GPS data
Post by: Menion on May 10, 2011, 18:46:05
fine guys, will you help me to develop this? Simple process ... I'll be slowly create new features that should be used in custom screen and you'll be testing :D ...

I have simply idea. Are you familiar with basics of android screen XML layout documents? If not, you should try to study. There is not possibility to parse these layouts files directly, so I'll be creating some modified and working version ... OK? ;)

EDIT: hmm ... I was thinking about it a little ... maybe MaleSmurf's idea isn't so bad ... should it be really useful to be able create fully customizable screen or just placing somw "widgets" on screen should be enough? If you prefer CMS, then I will need some simple examples to start ...
Title: Re: Customizable screen for GPS data
Post by: MaleSmurf on May 10, 2011, 22:17:45
Hi Menion!

Well, I did the CMS in TrekBuddy (XML) and there was also HECL possible. HECL is a kind of interpreter where some calculation in the CMS by user is possible. I started with the developer the HECL programming in CMS  :)

With android I have no experience, but maybe I can help you nevertheless.  ;)
I think the best solution would be some user defined "widgets" on mapscreen and an own CMS screen. Wow... that's it...  8-)
Title: Re: Customizable screen for GPS data
Post by: Menion on May 11, 2011, 10:45:41
hmm so first working example is here ...

there is actually no working APK file and no documentation for this. I just wanted to let you know that I works on it :). So what variables and features are most needed? I should add few more and then release some testing version for you also ...

anyway, customization is done by Android layout xml file with some small modification. So no drag and drop editing inside application possible now
Title: Re: Customizable screen for GPS data
Post by: Menion on May 11, 2011, 13:29:56
fine ... first public attempt ...

testing version here ... viewtopic.php?f=25&t=548 (http://forum.asamm.cz/viewtopic.php?f=25&t=548)
"manual" HOW TO, here ... viewtopic.php?f=21&t=578 (http://forum.asamm.cz/viewtopic.php?f=21&t=578)

discuss about .. here :)
Title: Re: Customizable screen for GPS data
Post by: MaleSmurf on May 11, 2011, 19:05:03
Hi Menion!

Let's start...

Useful variables:

speed, speed max, speed average, speed indicator which shows whether you're faster or slower than average speed
distance travelled, distance to next waypoint
time travelled
altitude, altitude min, altitude max, altitude up, altitude down
lat, lon, lat waypoint, lon waypoint

Can you please tell how the variables are set up?

Example {speed}:

Is the value integer (ie 25) or with decimals (ie 25.4)?
Is the unit shown too (ie 25.4 km/h)?
The range of the variable...

I would like to see one feature, maybe it's already there...  :?:
Is it possible to use a background (png) for the CMS?
If not, please... add it... With a background picture you can make much better CMS designs in an easy way...  ;)


I will check your HowTo later today...  ;)
Title: Re: Customizable screen for GPS data
Post by: Menion on May 11, 2011, 19:53:42
fine, I'll add all useful variables slowly ... but ... what about some average values? These are available in Locus only during track recording ok? When no track record is enabled, no average values are available.

Also all actually implemented variables are formated automatically. You have to also count that:
1. there is many many display resolutions
2. every user used different display values (km/h, m/h, ..)

it will need some testing. Anyway you have to count that all this work will need some work, and I'll add functionality slowly as you or others will need. For now, all values are together with units. Do you thing that is useful to be able separate values and units into two parts? Also is important for you to have separated decimal part of values? As I said before, you have to count that every user, use different settings ...
Title: Re: Customizable screen for GPS data
Post by: MaleSmurf on May 11, 2011, 20:06:54
Hmm... is it possible to get average variables without track recording? Well, if it's too much work it's ok too...

Because of all the needs it is better to separate value und unit into two parts. All the different display resolutions are very difficult to handle. That's the reason why I would like to see the background feature as soon as possible. So, different CMS can be designed for all the resolutions by users. The background contains all the graphic data and the user has only to make an XML which puts the variables (without units) on the right place...

And additionally I would add these line which I posted already, where the user can set 4 variables on the map screen. The user can only select which of the variables (you offer them) should be placed on which place. So that it will work with every resolution...

EDIT:  For the decimal thing... I think this is only interesting for speed. I would do all speed variables twice because sometimes it's better with decimals and sometimes without... so how about  {speed} and {speed_int} or something like this?
Title: Re: Customizable screen for GPS data
Post by: Menion on May 11, 2011, 20:15:56
background feature is already  there for TextView and Button item. I'll add it also for RelativeLayout and LinearLayout (these are containers that only hold data). Look also on my examples attached to How To screen. You'll see that all on screen is from pictures. I'll look on separating values into value and unit part. Look also on nine-patch ... it's really very very useful for holding more resolutions ... http://developer.android.com/guide/topi ... nine-patch (http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch)!

All style of creating GUI in custom screen is based on creating GUI in android itself, so if you're not familiar with this and you want to do something like "custom screens", I'll help you a lot ... http://developer.android.com/guide/topi ... ayout.html (http://developer.android.com/guide/topics/ui/declaring-layout.html)

For all items I use and write my own custom wrapper because android cannot create simply GUI from external GPX file, so I should add some special functionality for every View item ...

we will discuss it later ;). Good luck if you want to try do something and ask whatever question you have! I feel it as very cool feature and I'm really sure, this will work nice!
Title: Re: Customizable screen for GPS data
Post by: Menion on May 12, 2011, 09:51:21
another testing version release ... much more supported variables. Please look on HOW TO screen. There is attached working example (best is first called "menion"). I fully support only LinearLayout and TextView components, but it's enough . You can see what is simply possible (after 10 minutes of work) with these components ... (there are just example terrible colors, but you can use whatever color you want and also whatever image you want). If anyone know about any simple web tutorial how to create layouts for android, that should help to others, write me here ...
Title: Re: Customizable screen for GPS data
Post by: durian on May 12, 2011, 11:11:10
Just a question from someone who is following this with great interest; will these fields be on the map screen, or will it be a seperate screen with only these dashboard fields?

-peter
Title: Re: Customizable screen for GPS data
Post by: Menion on May 12, 2011, 11:21:04
hi, it is separate screen ... but! actually you can only place items one next to another. After this will works fine and some simple skins will be ready and fully working, I'll start work on layout system that allow cover one item with another, ability to add map item also here and some custom items ... so you'll be able to place for example to half of screen map, on top some speed item and over corner of map, coordinates or something like this ... for example. Ok? :) That's my plan ...

EDIT: hmm you bring me also on nice idea ... to create this screen with transparent background .. hmm :) I'll think about it!!
Title: Re: Customizable screen for GPS data
Post by: MaleSmurf on May 12, 2011, 18:44:02
Hi Menion!

Just kidding... because you said that the work for CMS would take some time and would not be as fast as we wish... The variables which you already have done are really great  :shock: . There is not much more possible, maybe for gps...  :lol:

So I think I'm very slow. Still need some time to figure out how to do some XML on android to create nice CMS.
By the way, is it possible to use different fonts in CMS? What fonts can be used? External fonts too or from the phone/android only?
Title: Re: Customizable screen for GPS data
Post by: Menion on May 12, 2011, 19:08:32
fine. Look at my examples. I'm sure they are clear enough.

About another fonts ... I have to look at it. I would like to add support for true type fonts, but actually you can use only predefined font type. So no choice for you. What for gps? Ahh some stats from gps screen right? And maybe some stats from compass screen also. Maybe some other stats also about battery and some system stats .. we will see :) ... almost everything is possible ;).

I hope that at least one usable screen will be available. From you or from mine production. But I'm not much design skilled ... I just want at least one skin to attach to release for others... (as default)
Title: Re: Customizable screen for GPS data
Post by: MaleSmurf on May 12, 2011, 19:34:02
Yes, stats from the compass screen... sats in view, used sats, sat fix, signal strength from all possible sats, pdop, hdop, vdop... just everything which is possible so that all kind of CMS could be made  :D