Mixare improvement

66 views
Skip to first unread message

Alessandro Staniscia

unread,
May 26, 2012, 1:03:42 PM5/26/12
to mixare-de...@googlegroups.com
Hi
I'd try to improve mixare view because I noticed that the rendering in motion have two little inconvenience.
First, the notification of update are always on screen and the markers have jerky rendering (you can see it here http://youtu.be/6_Gd9m0OYBY )
Second, I have strange usage of Toast. I have kill mixare on my phone but the notification of rendering continued appearing on the screen (you can see it here http://youtu.be/wI-RayXtGzg )

In my idea I want to add new widget on screen. This widget  show the process of download/refresh as a little icon.

I would proced in 3 steps:
Step1: On DataView, exclude any public paramiter and protect them

Step2: Build the new witget as ScreenObj implementation (and I understand DataView logic) and attach it on draw function of DataView.

Step3: explode DataView logic in different class (I think it manage Draw, EventHandling, state of device... )

What do you think?

Alessandro Staniscia

unread,
May 27, 2012, 10:15:33 AM5/27/12
to mixare-de...@googlegroups.com
Ops... Step1 is already done in development branch!
> --
> You received this message because you are subscribed to the Google
> Groups "mixare-development" group.
> To post to this group, send email to mixare-de...@googlegroups.com
> To unsubscribe from this group, send email to
> mixare-developm...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/mixare-development?hl=en
> The project's home page is at http://www.mixare.org/en

Abdullahi Egal

unread,
May 28, 2012, 8:20:19 AM5/28/12
to mixare-de...@googlegroups.com
Hi,

I was thinking of the same. And I am glad that you picked this issue.
I have a little addition to you idea. Instead of using an icon to show the state, it could maybe be better to add a notification bar at the bottom of the screen that shows the information about the state. I.E. connecting, searching location, refreshing, and also occurred errors.

What do you think?


On Sunday, May 27, 2012 4:15:33 PM UTC+2, Alessandro Staniscia wrote:
Ops...  Step1 is already done in development branch!


On 26/05/2012 19:03, Alessandro Staniscia wrote:
> Hi
> I'd try to improve mixare view because I noticed that the rendering in
> motion have two little inconvenience.
> First, the notification of update are always on screen and the markers
> have jerky rendering (you can see it here http://youtu.be/6_Gd9m0OYBY )
> Second, I have strange usage of Toast. I have kill mixare on my phone
> but the notification of rendering continued appearing on the screen
> (you can see it here http://youtu.be/wI-RayXtGzg )
>
> In my idea I want to add new widget on screen. This widget  show the
> process of download/refresh as a little icon.
>
> I would proced in 3 steps:
> Step1: On DataView, exclude any public paramiter and protect them
>
> Step2: Build the new witget as ScreenObj implementation (and I
> understand DataView logic) and attach it on draw function of DataView.
>
> Step3: explode DataView logic in different class (I think it manage
> Draw, EventHandling, state of device... )
>
> What do you think?
> --
> You received this message because you are subscribed to the Google
> Groups "mixare-development" group.
> To post to this group, send email to mixare-development@googlegroups.com
> To unsubscribe from this group, send email to

Alessandro Staniscia

unread,
May 28, 2012, 4:53:57 PM5/28/12
to mixare-de...@googlegroups.com
Hi
After reading your mail I got to thinking about the possible solution.
In my opinion a good implementation of this idea is possible if we use a system bar notification (like this... http://the-gadgeteer.com/wp-content/uploads/2009/10/NotMagnify.png  or  http://www.careace.net/2011/12/20/tip-samsung-galaxy-s-ii-android-notification-bar-icon-guide/  )
We can use a interface to hide the deep implementation and we can notify the batch activity with no invasive custom icon or directly with datasource icon.

What do you think?

Abdullahi Egal

unread,
May 28, 2012, 5:42:35 PM5/28/12
to mixare-de...@googlegroups.com
Hi,
That sounds good. I have seen situations where a notification text is blinking if it is new. (I.E. when you receive an email or sms)
So using the system bar notification would be perfect.

About the other problem you noticiced: The markers have a jerky rendering. 
Do you then mean the refresh of the markers because they temporary disappear for a few seconds (which in my case is sometimes more than 20 seconds on 3g).
Because that happens in the draw method of the DataView class. On a refresh, all markers are cleared, and are only drawn after they are downloaded. The download
could sometimes take a few seconds. So that is the reason why markers disappear for a few seconds. This could be fixed by refreshing (clear) the markers after the download has been finished.
Though this should happen per datasource, and requires some changes in the DataHandler class.
Anyway, this could be something that I could work on this Wednesday (or I could wait until you are done with refractoring the Draw out of the DataView logic).

Alessandro Staniscia

unread,
May 29, 2012, 5:29:48 AM5/29/12
to mixare-de...@googlegroups.com
Sob... I'm sorry but I have a busy week,  I would like to use the whiteboard pattern to modify dataview but I don't have time to know the feasibility of difficulty of it, so if you want to start, don't worry! When  I have time I start with notification... it's ok?

Best A.S.


Abdullahi Egal

unread,
May 30, 2012, 6:17:33 AM5/30/12
to mixare-de...@googlegroups.com
Hi,

I fixed the disappearing of markers on a refresh. Is it okay if I start with the notification part?

Alessandro Staniscia

unread,
Jun 3, 2012, 5:33:03 AM6/3/12
to mixare-de...@googlegroups.com
Hi Abdullahi
as I expected I did not do anything, do not worry you can also do the
"notification"!
Reply all
Reply to author
Forward
0 new messages