yashsingh1/xdaforums huggingface dataset:
[MDA, XDA, 1010 General] JaToAc:
i didn't follow the whole thread, so let me say sorry if this was mentioned before...

what about hardware button support. what i mean with this is if PZP is assigned to a button then pressing this button will cycle through the different modes. would be even better if you could assign to the power on/off button.

cu
[MDA, XDA, 1010 General] k_kirk:
This would be cool! If zendrui could give us a small executable that does nothing but scrol through modes then we could simply map any hardware button to this executable. This solution would be less overhead for zendrui compared to building hardware key support to his application and also would not clash with people using a 3rd party hardware button manager...
[MDA, XDA, 1010 General] k_kirk:
Zendrui,

Had some meetings today which did not trigger the outlook switch. Can't put my finger on it yet. At first I thought it might be just those that are recurring but then I tested one and it worked so I don't know whats wrong.

Also, I think the outlook scanning is occurring even when outlook watching is disabled. For people who don't care about this feature this additional wait may be offending although you have made it extremely fast compared to before.

About the Outlook update feature (currently tap & hold)... Is it possible for you to detect an ActiveSynch completion and trigger the update?

Regards
[MDA, XDA, 1010 General] zendrui:
In fact in the beta I posted, I saw this morning (I was adding the check boxes) that even if the category/status did not matched it switched if the oultook was enabled...

I corrected that and added the radio button.

I will make test during the lunch ...
[MDA, XDA, 1010 General] iggy:
Hi Zenduri, what k_kirk and mtbsoft said is the point I was trying to make. That if a outlook switch happens when switching back it should check if their was a time switch that should have occured. This would be ideal. But since you disable the autoswitch when an outlook switch occurs it never checks the time switch.

Maybe it is possible to leave the time switch active, but instead to have a variable (say priority) set to outlook at the highest priority and if their was a timeshift to occur it would be the next highest priority (if not they the last mode would be). Just dreaming, let me know if this is possible.
[MDA, XDA, 1010 General] mtbsoft:
Using a push/pop stack approach, the only time that priorities would come into play would be if two or more events coincide on their start times, the higher priority get precidence and its end time and mode to switch back to gets pushed onto the stack.

Obviously a tap and hold operation would take precidence over scheduled/Outlook events but a tap and hold event still needs to be pushed onto the stack because it has an end time/mode associated with it. This is why a simply tap mode change by the user causes the stack to be cleared since it does not have an end time/mode associated with it - it then waits for the next auto event.
[MDA, XDA, 1010 General] Tekguru:
Hi Zen, yes I have about 500 appointments on the Xda II. Was this overloading it do you think?
[MDA, XDA, 1010 General] zendrui:
No in one of the beta I found that I let a bug if you don't have any appointments... but this is not your case ...

Sorry I don't know what it could be due to ...
[MDA, XDA, 1010 General] zendrui:
4.9.3.2 Beta

Okay so here is the new beta 4.9.3.2 :

I added the check boxes for status and category

I added the 4 states for the time icon

The time icon has now 4 states

All switchs enabled

All switchs disabled

Only outlook switchs allowed

Only automatic switchs allowed

The different switchs are :

- Switchs from Time menu (tap&hold)

Switch for a duration selected from the tap&hold menu

- Outlook switchs

Assuming you activated the options, it is a switch due to an appointment (begin or end)

- Automatic switchs

It is a programmed switch from the Time Settings menu (Start/Stop/Mode Back)

Here is how the new beta version works with the priorities

Time menu :

When a switch from the menu is running : all the other switchs are disabled.

At the end of the duration the time icon came back to its previous state (and so could re-enable outlook switchs if its state was « Only outlook switchs allowed » …)

But if during the duration a switch from an appointment or an automatic switch should have happen it doesn’t detect that and so you stay at the mode were when you used the tap&hold. Do I explain clearly ?

Outlook switch :

When you switch due to an outlook appointment : the automatic switchs are disabled during the appointment.

So for example you are in an appointment in mode2

Mode2 has a switch back to mode3 that should happen during tha appointment : it won’t switch as automatic switchs are disabled

If an automatic switch should have happen during the appointment it doesn’t detect that and so at the end of the appointment you will come back in the mode you were before the appointment began.

Automatic switch :

Happen when you have the time icon with a state « all switchs activated » or « only automatic switchs allowed »

I hope I explain clearly.

I tried all the switchs I think of … I will continue waiting your comments.

PS : When I test I add a beep each time a switch happens. I let these beeps in this beta hopping it helps you too to see if all works as you want.

(rename the .zip in .cab)
[MDA, XDA, 1010 General] zendrui:
I forget to remind that to refresh outlook appointments from PZP you have to go to the settings page and exit, or to tap&hold the settings icon.
[MDA, XDA, 1010 General] Avalon-99:
Re: 4.9.3.2 Beta

Could you explain, which Picture/Icon stands for which state.

And what are the names of the pictures, so I could make my own.
[MDA, XDA, 1010 General] k_kirk:
I am having difficulty deciphering the little icons on the left... It was tough enough with two states and now there are 4! Is there a way for me to use custom bitmaps? I am imagining having 4 icons of my choice in the pzp folder. Is this possible ? If yes, what should they be called?
[MDA, XDA, 1010 General] k_kirk:
Re: 4.9.3.2 Beta

Amazing! You beat me by 6 seconds! What can I say,great minds think alike...
[MDA, XDA, 1010 General] Avalon-99:
I found it:

time_disabled.bmp

time_enabled.bmp

outlook_enabled.bmp

automatic_enabled.bmp :D
[MDA, XDA, 1010 General] k_kirk:
Great job! Are the bitmap names you list above in the same order as:

All switchs enabled

All switchs disabled

Only outlook switchs allowed

Only automatic switchs allowed
[MDA, XDA, 1010 General] Avalon-99:
I think so, here is a test:
[MDA, XDA, 1010 General] iggy:
Zenduri, you are just "excuse the language" god damm amazing. I don't know about anyone else but worked perfectly for me.

Start at Mode5 1:15pm

Appt. switch 1:16pm to 1:23pm to mode2 then back to Mode5

Time Switch 1:20pm to Mode4 then at 1:25pm to Mode1

Should and did end up at Mode1 not Mode5 where I started. Another few euros coming your way.
[MDA, XDA, 1010 General] zendrui:
Yes of course it is still customizable

All switchs enabled (time_enabled.bmp)

All switchs disabled (time_disabled.bmp)

Only outlook switchs allowed (outlook_enabled.bmp)

Only automatic switchs allowed (automatic_enabled.bmp)

I just make these for the beta.

But for the release if some artists want to make real and beautifull icons ...
[MDA, XDA, 1010 General] zendrui:
:oops: thank you :)
[MDA, XDA, 1010 General] k_kirk:
Hi. Because I can't see the little icons clearly I enlarged them %200 to see what happens. The larger icons show just nice but are not vertically centered. Any idea what the limit (pixel wise) for the icon size? Thanks
[MDA, XDA, 1010 General] zendrui:
Hi,

the max width for the icons are

20 pixels for the time and settings icon

40 pixels for a mode icon

0->20 time icon

20->220 mode icons (5*40 = 200)

220->240 settings icon

240 is the width of the screen
[MDA, XDA, 1010 General] k_kirk:
Thanks for that tip. Here's my re-sized to 20 pixel versions with a small mod on the all-disabled icon. One really minor issue. These oversized icons align vertically at the top with the mode icons. When oversized beyond 12 pixels the time icon no longer gets centered vertically. Breaks the "symmetry"... ;-)
[MDA, XDA, 1010 General] k_kirk:
1:23 to 1:25 should be in Mode 4... Hoping zendrui will figure out a way to trigger overdue time switches once returning from an Outlook switch or tap & hold switch...
[MDA, XDA, 1010 General] iggy:
k_kirk, it does go to mode4 first but should and does end up in mode1, I just missed adding that little tidbit - it really worked perfectly for me (once I remembered to refresh outlook)
[MDA, XDA, 1010 General] zendrui:
For me this is the normal way of switchs

1:16pm to 1:23pm in mode2

1:23pm switch to mode5 (end of the appointment)

1:23pm to 1:25pm in mode5

1:25pm switch to mode1

This is normal that at 1:23pm it doesn't switch to mode4 but come back to mode5 as PZP validate start time switchs only if there is no time menu or appointment switchs running...
[MDA, XDA, 1010 General] iggy:
Well Zenduri, just tested it again with all switchs enabled, and it works how I described (and wanted it to).

Sitting all day at Mode5 (lets say it is now 17:32)

Their is a time switch to Mode4 set to happen at 17:35 - 17:40 then to Mode 1

Their is also an appointment starting at 17:34-17:37 that will switch to Mode2 (starts 1 minute before my time switch and ends in the middle)

At 17:34 switchs from Mode5 to Mode2 for appointment, Category Business which ends at 17:37

At 17:37 switchs to Mode4 for duration of Mode4(time Switch previously scheduled)

At 17:40 time switch ends and switchs to Mode1 as my time switch for Mode4 said it should

Now, logically this is how it should work if I have multiple time switches. The first takes prescidence then when that is finished it noticed their was a time switch that should have occured and is still in effect then automatically switches to that mode and follows its direction.

But do me a favor if this is not the intention (or everyones wish), then please register this version for me because this is exactly what I need.
[MDA, XDA, 1010 General] zendrui:
Ok not sure I well understand what you say.

Here is how I think it should be scheduled :

Mode4 is programmed from 17:35 to 17:40 then to Mode 1

Appointment starts at 17:34-17:37 : switch to Mode2

You are in Mode5

At 17:34 appointment starts so switch to mode2

At 17:37 appointment ends so back to mode5 (the mode you were before appointment starts)

At 17:37 you shoutdn't switch to Mode4 as the start time (17:37) is missed due to the fact you were in appointment.

At 17:40 you should stay in mode5 as the end time for mode4 is not validated as you are in mode5...

Is it how it worked for you ?

If yes I think this is the perfect schedule ;)

PZP doesn't look back for start time that should happen when you were on appointment or during a time menu duration...

Are you agree with that ?
[MDA, XDA, 1010 General] iggy:
They perfect schedule is how I mentioned it did work, both the outlook switch and time switch worked. The outlook only took over and once it was finished the time switch occured.

NOTE: Just about to head out and will post testing of Outlook Appt. ending after the time switch has ended.
[MDA, XDA, 1010 General] zendrui:
Save notifs

Oups thank to avalon99 ;) to mention me that the notififications are reset to default after a soft reset.

I corrected that (I inverted two lines while doing tests :oops: )

I will wait to see if you are agree with time schedule and if there is no other problem before posting the correction.
[MDA, XDA, 1010 General] Avalon-99:
I couldn't reach for two days this webside

Has anybody the same problem?

@Zendrui

I change the notifs settings and it works fine. But after a softreset all my changes are lost.

The notifs settings are like before changing.

After a softreset, I have in my registry in all Notifications the key Options=1073741832

Oops, I'm to slow, Zendrui was quicker :D
[MDA, XDA, 1010 General] zendrui:
Sorry my english is not as good as I'd like.

Does it happen as I explained (the start time for mode4 at 17:37 did not happen but after the appointment it switched back to mode5)

Or does it switched to mode4 at 17:34 at the end of the appointment ?
[MDA, XDA, 1010 General] JaToAc:
btw. after using a normal phone for some time now i

m back to my xda2 and PZP 4.9.3.2... question about the ring tones: does pzp only support .wma? i thought i was using .wav with older versions too? perhaps i'm wrong... can't remember exaclty, seems i'm getting old... (and if wav is supported: where should the files go?)
[MDA, XDA, 1010 General] Avalon-99:
I tested this complicated settings :D

It happened like you explained. The start time for mode4 at 17:37 did not happen but after the appointment it switched back to mode5.
[MDA, XDA, 1010 General] zendrui:
It works with wav file. In the 4.9.3.2 too ;)

Ok I think this should be the normal way of switchs ... As it si very hard to remember that a switch should have happen during a metting and then come bakc to this swtich at the end of the appointment.

What you all think ?
[MDA, XDA, 1010 General] iggy:
Zenduri, it does switch back to mode4.
[MDA, XDA, 1010 General] zendrui:
I will try to program the same switchs, appoitments ... but it shouldn't switch to mode4.
[MDA, XDA, 1010 General] iggy:
Well guys, I can't say how it is working on your device but on mine it does switch back to mode4 then when mode4's time is up it goes to where mode4 said it should mode1. And logically that is how an automatic switch should work.

I did notice that if the outlook ended after the time switch should end then the outlook mode dominates and it goes back to starting mode before outlook appointment.

And has you and Avalon-99 found the notifs settins do revert back after soft-reset.

Now to make certain we could get a few people trying these settings and lets see what everyone gets.

Start on Mode5

Set mode4 to switch for a 5min period then to mode1 (i.e. 6:00-6:05)

Set Outlook appt. to switch to mode2 starting 1min before mode4 switch and ending 1min before mode4 switch should end. (i.e. 5:59-6:04)

My logic:

5:59 switch to mode2 for outlook appt.

6:04 switch to mode4 for rest of mode4 (time switch)

6:05 switch to mode1 after mode4 time switch

Lets see what happens.

According to me it should end at mode1.

According to Zenduri and Avalon-99 it should end at mode5

Anyone up for the challange.
[MDA, XDA, 1010 General] k_kirk:
I discovered that I can make the icons 20 x 32 and center the image manually in the 32 pixel vertical space. Then the centering issue mentioned above goes away. No need to spend time on this for zendrui.

Here's a new set of icons which use maximum space available and try to be a little more explicit. Cheers
[MDA, XDA, 1010 General] zendrui:
Ok see this diagrams and tell me if you are aggree with this priority and switch system.

I think this how K_Kirk and Iggy would like it switchs. And In fact I feel this should be the correct way.

Let me know if it is the case and if yes I will program PZP for that.
[MDA, XDA, 1010 General] zendrui:
Very nice :) I will try to reduce them in 12*12 to see how they look and maybe if it looks good you will allow me to use them as default icons :D ?
[MDA, XDA, 1010 General] k_kirk:
Iggy,

I'm with you on this one. I too have observed that it ends up at mode 1. I also observe that it goes to mode 4 at the end of the Outlook switch and remains there for the rest of the time switch period. This behaviour is exactly what I was hoping for so I hope Zendrui does not "fix" it... :-)

Zendrui, the logic Iggy & I seem to be following is that the time switches are for blocks of time (i.e. from xx:yy to aa:bb switch and stay in mode n...). We agree that a tap & hold or Outlook switch should have priority over this. However when either event ends, we feel PZP should obey the pre-existing condition for the time block it finds itself in. You on the other hand seem to be thinking of time-switches as trigger based events whereby its ok to ignore them if the triggers are left in the past... Is this a correct understanding of your idea?

I have one last question which may shed some light as to why its working the way it does for Iggy and me and the other way for Avalon99 & Zendrui... How do you set your time switches? There are two time fields per mode and a then switch back to field. This is how I set them :

Mode 5 (Loud)

Switch at : 05:55 --> Checked

Then back at : 19:00 --> Checked

To : Mode 4

Mode 4 (Medium)

Switch at : 19:00 --> Checked

Then back at : 21:00 --> Checked

To : Mode 3

Mode 3 (Low)

Switch at : 21:00 --> Checked

Then back at : 23:55 --> Checked

To : Mode 2

Mode 2 (Vibrate Only)

Switch at : 23:55 --> Checked

Then back at : 05:55 --> Checked

To : Mode 5

Obviously there is some overkill here... I play safe and enter all time switch trigger points and jump to settings. Perhaps this is why the switch back is working as it is for me.

Another way of setting PZP to achieve same time switches could be :

Mode 5 (Loud)

Switch at : --> Un-Checked because Mode 2 sent us here

Then back at : 19:00 --> Checked

To : Mode 4

Mode 4 (Medium)

Switch at : --> Un-Checked because Mode 5 sent us here

Then back at : 21:00 --> Checked

To : Mode 3

Mode 3 (Low)

Switch at : --> Un-Checked because Mode 4 sent us here

Then back at : 23:55 --> Checked

To : Mode 2

Mode 2 (Vibrate Only)

Switch at : --> Un-Checked because Mode 3 sent us here

Then back at : 05:55 --> Checked

To : Mode 5

Perhaps this or another way that I overlooked is how Zendrui & Avalon99 are setting up their PZP and hence the difference in behaviour. If it turns out that this is the explanation I will be very happy since it will mean PZP can cater for two thought-camps without any more code change.

Once again, apologies for the long post. Regards
[MDA, XDA, 1010 General] k_kirk:
Thanks :D I would be honored!!! Maybe you can keep the larger versions in your disribution too for older people like me with bad eyes!
[MDA, XDA, 1010 General] k_kirk:
Zendrui, per my other note, I do think the way it is described in Priorities 1 chart is the way to go and PZP seems to be doing it already... Can you see if the time switch settings I mentioned may have something to do with why you and Avalon99 are seeing a different behaviour? At the end of the day you could leave your code the way it is and explain to the user two possible ways to set the PZP funcitonality and achieve the best of both worlds. There is no right or wrong logic but end-user preferences. Being able to cater for both, even if as a result of an accidental feature that crept in... is a good thing!!!

Long live PZP & Zendrui!!!
[MDA, XDA, 1010 General] k_kirk:
Hi. Another observation. The same logic does not seem to apply to tap & hold intervention. Guess one can't be twice lucky! ;-) Here's the scenario I tested and outcome :

I tap & held at 2:22 for 15 minutes from Mode 5 to Mode 5. That is to say at 2:37 PZP would switch back to Mode 5.

I had an Outlook calendar entry from 2:23 to 2:45 which was set to switch me to Mode 2.

At 2:37 PZP switched back to Mode 5 and remained there. It would be great if it could detect that between 2:37 to 2:45 I am still in that meeting and switch to Mode 2 instead and then at 2:45 switch to Mode 5 finally...
[MDA, XDA, 1010 General] JaToAc:
my xda2 stopped working this morning after a time-switch and could only be animated to work again after a hard-reset. still have to find out if this was caused by pzp, but it's the only program installed by me in the last weeks... i come back to you later as i'm on the road now and can't install everything on the way and don't have any backup handy... cu
[MDA, XDA, 1010 General] iggy:
K_Kirk, you're right tap&hold basically eliminates all other switches and would be great if it followed the same logic that is currently in effect. Good luck Zenduri.
[MDA, XDA, 1010 General] zendrui:
:? Let me know if you find that it is due to PZP

For the priorities ...

I found a bug for those (like me or avalon99) that did not have the hour in the englsih format AM/PM)

I corrected it maybe the difference came from that.

I also add the same schedule for the time menu and the appointment.

If during an appointment or a time menu switch a switch should have started (from a start hour set), at th eend fo the appointment or the duration it take this in account...

A question : Do you feel the diagrams are clear to explain the prioritied of the switchs ? If yes I will make some for the most probable cases to explain ... Let me know ... Thanks
[MDA, XDA, 1010 General] iggy:
Zenduri, yes I feel the diagrams are accurate.
[MDA, XDA, 1010 General] mtbsoft:
I agree with the tap & hold but I would prefer to see a option which determines if Outlook events have priority over Scheduled events or vice versa. It's more flexible and I'm sure there will be people in both camps who would prefer it their way.

This is, of course, subject to Zendrui's genius coding!
[MDA, XDA, 1010 General] k_kirk:
I agree that being able to cater for both camps will always bring more fame & fortune to Zendrui...
[MDA, XDA, 1010 General] iggy:
I agree mtbsoft, but is that not what the 4 switch setting buttons do, if you want Outlook/time switch to be priority then choose that button, or, in K_Kirk & myself case we choose to enable all switches which then automates the process? Or am I misreading your post?
[MDA, XDA, 1010 General] mtbsoft:
Not quite what I mean. If my understanding of the four states is correct, they disable/enable the two functions completly - I am talking about priority when both are enabled - or have I got it wrong?

If we are in mode 1 and have a schedule event from 10:00 to 11:00 to mode 2 and an outlook event from 10:30 to 11:30 in mode three, then we will result in mode 2 from 10:00 to 11:00 and mode 3 from 11:00 to 11:30.

But what if someone wants the Outlook event to take precidence and result inmode 2 from 10:00 to 10:30 and mode 3 from 10:30 to 11:30 because they consider the schedule to be of lower priority than their meetings. Your approach is first come first served but that won't always be the way some might want priority first.

On another issue, I seem to have found a slight bug, perhaps someone can confirm. I've been making some custom icons and only have PZP on the today screen. I was cycling through them rapidly because a few times it seemed to repeat some values, paused for about 15 seconds then started again and the selected mode icon lost its 'marker' and none appeared selected. It seems to only affect my Mode 1, but I can't be absolutely sure, anyone else seen this?
[MDA, XDA, 1010 General] iggy:
But what if someone wants the Outlook event to take precidence and result inmode 2 from 10:00 to 10:30 and mode 3 from 10:30 to 11:30 because they consider the schedule to be of lower priority than their meetings

This is how it works for K_Kirk and myself, Outlook will take priority over time switching if either the category or status match.

With respect to cycling through fast, just tried it now my PPC shows radio off which is my mode3 but mode2 vibrate is selected and the screen keeps flashing on and off every 20 seconds and it is locked from doing anything else had to soft reset.
[MDA, XDA, 1010 General] zendrui:
The order of the priorities are like that

- Time Duration from Time menu (because when you tap&hold you know what you're doing ;)

- Outlook Appointments

- Automatic switchs (start/stop hour)

For now I validate the modifs I made this morning to be have a schedule as discussed with iggy and k_kirk. I tried during the lunch to tests many cases and this seems good...

In the picture it is the same if you replace the appointment by a duration selected from the time menu)
[MDA, XDA, 1010 General] mtbsoft:
Ok, my mistake. Though I'll bet there'll be someone who wants it the other way (I like to play devil's advocate!).

Oops, sorry!
[MDA, XDA, 1010 General] zendrui:
Oops sorry too :shock:

I will look to reproduce.