Related
Hi all,
as am now moving to a more open platform (android), i would like to return the favor of learning through this forum, how to program on win mobile by posting the code of this utility.
Its given as is, no warranties, no tricks, do not expect a well written code etc.
Based on C++, no .Net.
Hope will provide to someone, knowledge and info on this subject.
Have fun with it.
Chris
This is the link
http://rapidshare.com/files/419726318/csdevctrl.zip.html
--- Old introduction ---
Hi all,
this is mainly an auto locking program which utilizes the Windows Locking for partial locking (phone related keys are active)
or complete locking (no keys are active).
It can be considered as an add-on to other programs which provide the User Interface, an 'In Call Locker'
with some goodies as mentioned later on which may or not depend on whether the device is locked (with any program that uses
the Windows locking).
The locking can be activated at the following events:
1. After a specified period of idle time (no screen tapping or touching the keyboard).
2. After the device has waken up.
3. During a call ("In-Call Locking" Partial or Full).
Also for any of the first 2 events (idle or wake up) the program can run a specified executable/registered file together with any command line arguments that might be required.
Finally, some 'goodies':
(Stand-alone means it does not require any other option or the device to be locked)
A.(Stand-alone) it can provide some customization on the carrier name so that:
- It can fit on the screen (for example not to overwrite the Battery icon in SPB Shell).
B. (Stand-alone) Turn on Bluetooth if a call is being dialed or received. Then switch it off after
the call has ended and the headset is not connected.
Usefull if you have a bluetooth handsfree kit in your car and you do not want to keep on turning on/off
the bluetooth.
C. (Stand-alone) Flash the Backlight and or Vibrate while ringing.
At last, you can 'see' if your phone is ringing.
D. Reset the Exchange Server Policy.
Stops the frustrating setting of the password being required after connecting to the exchange server.
F. Turn off the display or/and the device itself.
It can be used as a power saver while playing music etc.
G. Set your favorite SIP (which is being reset back to the default with every soft reset).
H. HotKeys (NEW)
You can assign as sequence of keys to perform an action.
(see http://forum.xda-developers.com/showpost.php?p=3666785&postcount=702)
The parameters that are driving the behaviour of this utility are located at:
http://forum.xda-developers.com/showpost.php?p=2424492&postcount=148
The parameters can also be updated using the setup program provided (csdevctrlsetup.exe).
A flow diagram of the parameters that relate to locking, is provided in the zip file for better understanding of their use.
The debugscr.exe program has been added to help identifying the keystroke codes and coordinates. Before this program is executed
the csdevctrl must be stopped as mentioned further down.
To install it:
- Use the cab file provided.
Simply run it and it will create:
- under the 'Program Files' a directory with name CSDevCtrl'
This directory will contain:
csdevctrl.exe is the main program
csdevctrlsetup.exe is the setup program
debugscr.exe is a utility to find the coordinates and keystrokes (optional).
- Shortcuts under the 'Programs'.
- They can be installed either in the internal memory or on a storage card.
To run it:
> Run the Setup program to set the parameters and the Start Up option.
> Run the program (csdevctrl) and it will spawn at the background as another process.
The device will vibrate once to show that the program has started.
To stop it:
> Running the program second time will cause the program to exit (It will show a confirmation window which will close in 3 seconds unless you close it sooner).
To uninstall it:
> Close the process as usual (run it again or kill the process).
> Remove it from the installed programs.
> Also delete the registry key HKEY_LOCAL_MACHINE\Software\CSDevCtrl
As a note, do not rename the csdevctrl.exe as the uninstall depends on this name.
It has been compiled only for WM6.
For more information see the next link:
http://forum.xda-developers.com/showpost.php?p=2391054&postcount=142
If you wish to buy me a beer or a pitta of souvlaki for my effort, feel free to click on the link below:
https://www.paypal.com/cgi-bin/webs...ode=EUR&lc=CY&bn=PP-DonationsBF&charset=UTF-8
Cheers
Chris
Log:
29/11 - v.6.5 - Added power off after disconnect, support for 6.5 win (beta)
17/09 - v.6.18 - General Policy handling, Dump variables for debugging purposes
04/08 - v.6.16 - Added option for startup delay, Keep the backlight on while on call, lock when dimmed.
27/06 - v.6.15 - Added option to lock only if specific programs are running
20/06 - v.6.14.1 - Fixes.
no bad, i like how it uses the built in windows lock.
Thanks,
it works well with my favourite program (Spb shell) which is the reason of me developing this.
this works great on the smartphone but there is a visible window which can be closed too easily with task managers and can't be navigated away from.
any poss you could hide it rather than minimise it?
looeee
i have updated the program to be windowless as you mentioned (attachment replaced)
Hope it works for you.
Cheers
Chris
chrisstavrou said:
i have updated the program to be windowless as you mentioned (attachment replaced)
Hope it works for you.
Cheers
Chris
Click to expand...
Click to collapse
First of all, thanks for sharing!! This is a very nice app.
I've tested the 2 versions (window and windowless), and I have a suggestion if I may.
I like the idea of the program being windowless, since it becomes more appealing to the eye (I mean, it's great we don't have to see the small window minimize everytime we wake the device), but now, to be able to close the app, we must use a task manager to kill the process(e.g. sometimes we may want to test some other locking software and we need to disable it temporarily). So my suggestion would be that when we run the program once it starts, the next time we run it, it stops. Would that be possible? I think it would make your app perfect!!
Remember, it's only a suggestion.
Thanks in advance.
Its good to know that it may be of use by someone
I have updated it as you mentioned, it will exit if you run it the second time (attachment replaced).
chrisstavrou said:
Its good to know that it may be of use by someone
I have updated it as you mentioned, it will exit if you run it the second time (attachment replaced).
Click to expand...
Click to collapse
Now it's just great!!
Thank you very much for this.
What's the purpose of this app, from the description above it looks as though it does what the original lock already does, so I ask again; what's the purpose of this app?
NiteStalker said:
What's the purpose of this app, from the description above it looks as though it does what the original lock already does, so I ask again; what's the purpose of this app?
Click to expand...
Click to collapse
Automatic lock!!
Once your device light gets dimmed, or on device wake up, without having to press the lock button.
Is that clear enough for you?
Just set the time for 0 minutes, and it's locked on wake-up.
Guess the dim part is good, thanks for clearing that up. I guess my brain wasn't working, I couldn't figure out what deemed was.
now i love the app for what it does... my only suggestions or worries are... after setting that up, i no longer am able to input a password when the lock is activated... and when the program is activated, it wakes the device up from the dimmed, light, thus defeating the purposes of the backlight going off... and also draining the battery a little more... is there ayway that the program can run without waking the device?
MrGalione973 said:
and when the program is activated, it wakes the device up from the dimmed, light, thus defeating the purposes of the backlight going off...
Click to expand...
Click to collapse
I have had this happen to me sometimes as well, already in my short testing time span: when pressing the power button (once) the backlight switches off and back on!
I am also experiencing that it sometimes just does not seem to lock: when pressing the power button twice (with pause) my device only sometimes locks.
And in case you are open to another suggestion: perhaps you can minimize all windows when locking, so the lock ends up on the today screen; or make it an option somehow (command line parameter?)
Thanks for the advices i will be checking them out and come back to you
mousio said:
And in case you are open to another suggestion: perhaps you can minimize all windows when locking, so the lock ends up on the today screen; or make it an option somehow (command line parameter?)
Click to expand...
Click to collapse
Another vote for that!
TBH the only reason I still use S2U is because I can see my missed calls, appointments etc. It's a great app, don't get me wrong, just not something I need.
Your locker would be perfect for me with an option to go back to Today on locking.
Or, perhaps you could implement a simple count of missed calls, SMS, MMS, emails and appointments directly on the lock screen? Just don't let it grow too much!
works beautifully for me with the spb mobile shell 'now' screen showing me the info, thankyou very much!
Why don't you add an option of command line parameter specifying a program/link to be launched before locking? That way it would be very flexible (there are plenty of small programs around doing loads of stuff - like minimizing everything or sending a text or calling your mama - possibilities are endless)
Program has changed as per your advices:
- Leaves the device in idle state for better power management
- Run an application while trying to lock by reading a file.
I have updated the first entry of the thread with some more info and the file.
Any comments are welcome.
Enjoy
I love it. It's simple and effective. Just the way I like things. I'll keep testing it for a while and report back.
I've got another idea actually.TODAY option works really well, the only 'problem' (its not a problem,just room for improvement ) that you need to reopen all the windows you had opened before.
How about an option TODAY&BACK when the minimised windows would be reopened when unlocked? In other words-minimised when locked, back to what it had been before locking when unlocked? It would make it perfect (until next idea strikes)
Anyone tested it on WM5?
I've been using Llama for a while and really like it. Have been thinking about using Tasker instead and would like to ask people with experience of both:
What about Tasker makes it worthwhile to spend the $5 instead of using the free Llama?
I'd like to be convinced Descriptions of cool uses of Tasker that Llama is incapable of welcome
I use them both but prefer Tasker because of SMS actions. However, SMS integration is on Llama's to-do list.
So far I have tried ALL auto profile apps -- Locale I only had for 15 minutes bc I have tasker and it uses the locale plugins.
Tasker was hard as hell to get the hang of. But once it "clicked" , I was downright ASTOUNDED by what it can do.
I just got Llama, and I like it a lot...much easier than tasker. Some thigns I like better -- enter vs leaving a location etc. However, Tasker is MUCH more powerful and the gui - while difficult to use - is much more clear to see and operate.
If I had to only pick one ---- TASKER. While Llama has its advantages, tasker can do alot more. This also means much more room to screw something up. LOL.
Tasker is worth the money ...even if you end up not using it, just to know that your phone will to anything the way YOU WANT when YOU WANT how YOU WANT.
**** TASKER TIP*****
A profile is a list of "if's" - conditions to kick of a task.
A task is a list of actions -- I thought each needed many tasks but no --- a task itself has the many actions in it.
Smart bc then you can add or swap tasks as need be without having to remake them.
Also, I value tasker's SMS functions and If, then, Goto, else if etc action statements allowing loops etc.
I've just started using Llama myself after using Tasker for about a year. Llama is definitely more user-friendly in terms of building events and profiles. Tasker's learning curve is very steep by comparison.
However one advantage that I've found Tasker to have over Llama is that Tasker is a lot more aggressive when it comes to implementing its actions. When a condition is satisfied for a Tasker event, the actions kick in immediately. Whereas for Llama it can take a few minutes for it to even realise that a condition has occurred.
I've also found that some of Llama's actions don't always work properly, such as setting screen timeouts or brightness. For example, setting screen timeout to "Never" while on the browser only changes it to 1 minute. Or when a sound profile kicks in, looking into the audio settings shows that the volume hasn't actually been changed.
Of course Llama is free and you can't beat that in value for money. However Tasker is definitely more powerful and robust. There are pros and cons to each but if I had to pick I'd go with Tasker.
tl;dr - Llama is free and easy to use but doesn't always work. Tasker costs money and is complicated to learn but powerful and always works.
What about Actions Lite (free, 'Actions Pro' with cost) vs. Llama or Tasker? Any comment will be welcomed.
I'm playing for several days now with Llama and it is really flexible and supports and/or operations, queued events and many abilities that can help solve complex cases like 'leaving my home - start polling BT - if connected: I'm driving - set Driving profile, if not connected: set outdoor profile' etc. On the other hand its division between 'profile' (only sound related settings) and 'action' (consequence of events) is a bit annoying...
One of the most used features (for me...) is the 'unlock screen' (for driving and at home) but none of the SW I have tested (such as 'profiling' ones or designated ones) works well on my HTC One X, ICS, stock ROM or Charmeleon ROM (PKMN). Any suggestions?
I guess it depends on what kind of use you are going to do, i think llama is basic, just enough to silent your phone at home... But if you want to do something more complicated you should try tasker...
I use Tasker.This is the best apps for customize all system.I tryed Llama to,but not the same.
How about footprint? Tasker uses 18Mb ram. What's Llama's footprint?
pbecks1963 said:
How about footprint? Tasker uses 18Mb ram. What's Llama's footprint?
Click to expand...
Click to collapse
Llama is currently using 3.38MB on my phone.
isNaN said:
Llama is currently using 3.38MB on my phone.
Click to expand...
Click to collapse
My Llama is running at just under 10MB
My Llama runs under 10MB as well.
I use Tasker. Best app.
manuelkuhs said:
I've been using Llama for a while and really like it. Have been thinking about using Tasker instead and would like to ask people with experience of both:
What about Tasker makes it worthwhile to spend the $5 instead of using the free Llama?
I'd like to be convinced Descriptions of cool uses of Tasker that Llama is incapable of welcome
Click to expand...
Click to collapse
probably cant turn off your keyguard on a certain wifi network if you dont use tasker
Having used both Tasker and Llama extensively (I would say 50 to 100 hours in each programming stuff) and having had both running my stuff at different time for over a year, I'd summarise them as follows:
Llama:
+ free
+ easy to learn
- functions a little limited although sufficient for most
Tasker
+ extremely powerful, far more functions
+ can export to make stand-alone apps
- steep learning curve
Summary/Advise:
If you're looking into Android automation, start with Llama to see can you do what you want. If you can't do it with Llama, then and only then move onto Tasker.
mikeyb1216 said:
probably cant turn off your keyguard on a certain wifi network if you dont use tasker
Click to expand...
Click to collapse
You can do this with Llama, too.
oh you can? sorry i dont use llama so i didnt know for sure
Any one knows how to copy llama cell locations and use it in Tasker.. ?
leojab said:
Any one knows how to copy llama cell locations and use it in Tasker.. ?
Click to expand...
Click to collapse
I'd love to know how to do this too.
Alternatively, has anyone been able to send Android intents between the two and have them work together? This would be quite useful in my opinion.
is it possible to add conditions with Tasker?
I have been using Llama for months now and I love it. But it is true, sometimes, the actions don't run immediately after a condition is met.
I wanted to try Tasker, what I did. It is far more difficult to use!
Also, I don't know how to/if it is possible to set several condition to fire an action, what is easy to do with Llama.
For example, I want my phone to ring instead of vibrate when I am home between 9am and 11pm. So there are actually 2 conditions : time and location.
How do you do that with Tasker?
Also, is there a way to create a condition when you leave a location (which can also be done with Llama)
Thanks for your answers
mikemyerslyon said:
For example, I want my phone to ring instead of vibrate when I am home between 9am and 11pm. So there are actually 2 conditions : time and location.
How do you do that with Tasker?
Also, is there a way to create a condition when you leave a location (which can also be done with Llama)
Click to expand...
Click to collapse
Both are doable in Tasker. A context in Tasker can have more than one condition. One condition for a given context can be a time-based condition (say, between 9am and 11pm), and the other can be based on location. Just add more than one condition to a given context.
As for entering and leaving a location, you can do that with an enter and exit condition for a given Tasker context.
.
This may be an area where the dumbphones win, but I've only been able to find one app that is just a timer--open the app, you've got a timer--and it's way too cumbersome.
When the app opens, I need to see:
A number pad.
A Next button (for moving from hh/mm/ss).
A Start button.
ETA: Also, number pad input needs to overwrite the current field, not insert.
These features have been available on every dumbphone for over a decade. Can't they be done in Android?
This isn't exactly what you are looking for, but I use it.
https://market.android.com/details?id=com.hybrid.stopwatch
It has a stopwatch, too, but remembers which mode you chose and launches in that mode.
Yeah, I tried that one and it has all the same issues as Kitchen Timer, though it's nicer to look at. Who decided an Android timer would use this cumbersome +/- interface? It's made worse by the fact that once you get a cursor in a field, it inserts rather than overwrites, and won't jump fields.
Ideally, the only actions necessary to set a timer should be open-0-0-7-3-5-start, no navigation, no clicking up and down as if we had a device with two buttons (i.e. a watch).
Yeah, I looked around for a timer too. This was the easiest to use that I found. I rarely have to change the time on it so for me I launch it and hit go. But if I was constantly changing the value, it would be annoying. Makes you want to go out and write your own!
I'm poking around in App Inventor to see what I can manage--I would be lost writing code from the ground up. I think I should at least be able to come up with something with multiple one-button presets on the starting page, and they can probably be user-programmable, but I don't think App Inventor has the commands to give focus to a numerical text-box (thereby highlighting the contents for replacement and launching the number pad) on app initialization.
If you want, take the time to send me some EXACT specifications and I'll see if I have time to whip something up; we're not talking 10 year global weather modeling here! LOL
TIA,
Roots
Rootstonian said:
If you want, take the time to send me some EXACT specifications and I'll see if I have time to whip something up; we're not talking 10 year global weather modeling here! LOL
TIA,
Roots
Click to expand...
Click to collapse
I'm actually making progress in App Inventor, but if it comes to naught, I'll PM you.
Well, it's not finished and it's not pretty, but it's a timer
So far, I can't get the box to grab focus when the app opens, but it's still quicker for entering a new value than the others on the market. The empty red bar will bring up the number pad. Hit hours, mins, or secs to start the timer with the relevant units. Start/Pause work, and if you enter, for instance, "90 + Mins" it will convert it to 1 hour 30 mins. More than two digits in the Hours box will break the UI, but it will count them down
The preset buttons and persistent notification box don't do anything yet, and it doesn't remember the last value entered if you close the app yet, but the core functionality is there.
http://dl.dropbox.com/u/7299403/TimerSAUR.apk
ETA: enabled persistent notifications and shake-to-stop.
ETA2: remembers last value entered and whether Persist was checked, made some visual tweaks and added an icon.
ETA3: re-skinned the whole thing and hid the preset buttons for now. I can add features, but I'd call it a complete app, and more functional than anything on the market, for my purposes.
ETA4: I, um, even fixed those script errors that caused FCs if you tried to start a timer with all fields empty. Details.
D'oh! As far as I can tell, the App Inventor "clock" function pauses if the device is sleeping--not exactly practical for a timer :/
Maybe I'll have another run at it tomorrow.
Maybe you can save the time that it paused, then calculate how much time has passed when it wakes up and start from there. That won't help much if your time expires while it is sleeping, though. Will App Inventor let you prevent sleeping?
Talking to App Inventor community members, I think the clock provided is just not workable for something like this. Maybe if I'm willing to build a windmill to turn a doorknob, I could figure something out, but I'd probably be better advised to start learning real code if I want to pursue the matter.
Better yet, I could take Rootstonian up on his/her offer
Yeah, it shouldn't be too difficult to build. And since you already have some of the GUI worked out, you can just pass that on.
I've built one Android app but it was a while ago so I'm very rusty. But it sounds like it can be done pretty quickly.
Jason
First off, I apologize if this has been covered before in a thread. I spent about a half hour searching for my answer and was not able to either find it or understand which answer I was looking for.
I have in Taiwan a:
S3 GT-I9300
4.1.2
I9300XXELLA
3.0.31-899179
Rooted
No custom rom
(not sure what else you guys need to know)
I was simply curious if someone would point me in the right direction for the following problems. I use reverse tethering quite often with my smart phone as my office does not have WIFI and I enjoy watching sports games on my phone or listening to the radio broadcasts. I have a plan with a 5GB data limit and the video will eat that up pretty fast. So, whenever I use reverse tether, want to check for available wifi, or do any USB/Blue tooth tethering I have to go two or three menues deep into my settings and it's a tad annoying.
Is there a way I can customize the top drop down menu to replace some of the UI icons with ones that I actually want to use such as, "enable usb tether" or "see available wifi signals" or "turn on wifi hotspot?" I could remove Blocking Mode, or AllShare Cast as I never use them.
While I'm able to root phones (easy enough) I'm pretty clueless about custom Roms, how to use them, which ones are good, how to keep my phone protected when using them etc. There is such a huge amount of information about customizing the S3 on these forums, I just didn't know how to wade through it all to get the one customization that I want.
Again, sorry if I couldn't find the threat where this was discussed, and if there is a thread that answers this question well, I would appreciate someone pointing me in the right direction.
Cheers!
Not 100% sure, but maybe have a look into JKay Delux (you have to find the version for your firmware though). Otherwise another option could be to create a shortcut for your home screen via tasker that brings you directly into that menu.
chrismast said:
Not 100% sure, but maybe have a look into JKay Delux (you have to find the version for your firmware though). Otherwise another option could be to create a shortcut for your home screen via tasker that brings you directly into that menu.
Click to expand...
Click to collapse
Does tasker allow you to create shortcuts for any phone command? If so, that might be what I need.
Drschplatt said:
Does tasker allow you to create shortcuts for any phone command? If so, that might be what I need.
Click to expand...
Click to collapse
if I am not wrong, most of them yes. At least it lets you control most of the functions (if you add Secure Settings PlugIn even more.)
Hello,
I have recently bought a watch with Wear OS 2. I quite like it, but I am missing one nice feature from competition watches. I am blind. Apple watch and some other specialised devices can tell you time by certain vibration patterns. e.g. 5:30 am - 5 short vibrations, then pause, then 3 short vibrations... etc. I am thinking about creating something with Tasker, but this would require connection to the phone all the time.
Would someone take this as an interesting project? Or maybe would someone give me a helping hand in developing this? I am a programmer but never programmed for Android unfortunately.
what would be your preferred way of activating the vibration?
i'm thinking about an empty watchface which could, whenever it's activated either by gesture or button, start the time pattern.
also please let me know how exactly such a vibration pattern would best look like. (first hours then minutes, ok. what about 11:34 ? also seconds are not needed i guess?)
I might do a quick app
I really like this idea because the watchface would be sooo battery friendly
btw: any idea for a good name? I think I would go for "time feel watchface" if no one's got a better idea
if everything goes right, I will have a first test version by tomorrow
update: basic watchface running. gonna implement vibration pattern tomorrow.
need info:
-i assume it's no problem that the watchface is always black, this is to save as much battery as possible
-any symbol maybe for blindness i could use for the icon / watchface preview?
-should the vibration pattern start again if you touch the screen?
----I find this problematic because screen usually is only on for a few seconds, maybe i have to let it stay on as long as the pattern is running and it would go to standby immediatly after that... so i'm not quite sure how to handle this
-is a 24 hour mode needed or should it even be default?
Hi, thanks for your response. Yes this is aimed at blind people specifically, I am blind my self. Yes blind people use smart watches, mostly from Apple, but there are also some users of Android Wear OS.
wow I read your reply just now and it seems cool. I have a few points:
A watch face is an interesting idea, but for example I would prefer it to be just an app which even does not launch a screen, does the vibration and exits. I use information I have on my watch face, I use screenreader to read info about upcoming events, battery etc. You may ask why do I need this vibration way of telling time when I can read it from the watch face? Well it is more discrete and does not bother surroundings. I could assign a specific gesture in the screenreader which would launch the app and do vibrations.
Honestly, I am probably the only Wear OS user in Czech Republic and I have to get connected with other blind people to get their opinions.
I think 12 hour format should be OK so far.
so basically you just need an app that vibrates the time when launched?
for example 5:33 x x x x x pause x x x pause x x x?
then i need to rethink that. but that should be even easier
Yes, for me this would be enough. Ideally if the app would do it without displaying any window so that the screenreader does not read anything. Is that possible? I am sorry I did not clarify this at the begining.
As to how to do vibrations:
I imagine this schema:
1 - one short vibration
2 - two short vibrations
3 - three short vibrations,
4 - four short vibrations,
5 - one long vibration
6 - one long vibration, short pause, one short vibration
...
9 - one long viberation, short pause, four short vibrations
0 - long vibration, short pause, long vibration
e.g.
10:56 - short vibration, long pause, long vibration, short pause, long vibration, long pause, long vibration, long pause, long vibration, short pause, short vibration
here's a first prototype.
do you know how to install apk to your watch? you need to enable ADB and WiFi Debugging to install wireless over ADB
let me know what you think. is it too fast?
i know it's not perfect, for example you need to exit the app to relaunch the pattern. i can fix that - can i let the app run the pattern and immediately exit? so you wouldn't need to exit manually everytime
Hello, you are amazing! So fast! Thank you very much. I tried the app.I have few questions:
1. Vibrations are quite fast. Could you make it a bit slower? Let's say that the long pause among numbers could be 1 second?
2. Could you make it so that the app does not open any window? That after launching the icon everything happens in the background?
3. Will this work also on phones or only on watch?
Thank you so much. If you don't mind, I would like to spread the word about this among other Wear OS users.
1. sure. i actually use two different long pause durations: one between the digits and one between hours/minutes
---i need to do this because leading zeros are ignored. i could also do leading zeros so you always have 4 digits and pause can be constant, but imho that's not as efficient
2. In this new version the window exits after launch, I hope that's fine. also fixes not working on second launch and makes the app not stay in RAM.
3. This version is only for Wear OS, but I could copy it to an android app.
Of course you can spread this app however you like. when it's done I can attempt to publish it to the play store.
please check this new version. is it still too fast?
also 12 a.m. seems to be treated as "0". should i change this?
new version with fixed 12 a.m.
if you are fine with this state i'm going to finish it and publish it to play store
Wow thanks, this look very well. I still have a problem with the app creating a window. The problem is that when the window is created and closed again, the screenreader reacts to that - in this case after closing the app window it reads info about previously opened window or a watch face. That is a bit problematic as my idea was to not make any sound at all, so that one can check for the time discretely.
Would it be possible to not display any window at all? Maybe running as a service which would be waiting for the launcher icon to be pressed? I am not good at Android internals so maybe it is a stupid idea.
krecoun said:
Wow thanks, this look very well. I still have a problem with the app creating a window. The problem is that when the window is created and closed again, the screenreader reacts to that - in this case after closing the app window it reads info about previously opened window or a watch face. That is a bit problematic as my idea was to not make any sound at all, so that one can check for the time discretely.
Would it be possible to not display any window at all? Maybe running as a service which would be waiting for the launcher icon to be pressed? I am not good at Android internals so maybe it is a stupid idea.
Click to expand...
Click to collapse
now I understand the problem. I need to look into this later. but I guess that's doable.
update: I tried to replicate your problem. I enabled talkback and started the app. only thing I can hear is a click when launching the app. is that what you are talking about? If so, I don't think that can be prevented as it's caused by the launch of the app.
-sorry, I didn't read correctly. so the problem is that it starts reading the previous app. that's a problem. I didn't find an easy way to fix this - as far as I read you cannot launch an app without starting an activity. at least not with an app. maybe i could make the watch sleep after launching? or you can find a solution with tasker or something similar
Hypothetic idea:
Let's say that the app would be running as a service after start. I don't know if this is possible in Wear OS.
1. After clicking the launcher icon, check if the service is already running.
2. If not, launch it. You can display even a window and close it, well while launching the service we probably won't avoid that but that's acceptable.
3. If yes, don't show anything but send some intend / activity / however it is called in Android to the running service which will do the vibration.
Is it doable?
the thing is afaik an app launch always needs to launch an activity.
if i'm wrong i hope someone corrects me
How about this?
https://stackoverflow.com/questions/2704084/how-to-launch-an-activity-without-a-ui
krecoun said:
How about this?
https://stackoverflow.com/questions/2704084/how-to-launch-an-activity-without-a-ui
Click to expand...
Click to collapse
it says you can have an app that's a service only, which starts on boot an can receive intents. but how do you call it? you need to activate something. you could maybe do it as a compilation, but as I see it it's not possible by launching an app.
I see two easy solutions:
-let the app run in an empty window
or
-let the device go to standby after vibration
update: I looked into this a bit more. I guess my solutions would not work. an app can't send the device to sleep and if I show an activity the screenreader always reads the app name...
so I can't help you any further. maybe someone else can
Hi, sorry for looong delay. I must say that I am using your app quite successfully. Sometimes it talks but mostly it does not and vibrations work as expected. Great work. Maybe you could release this app into Playstore, some other blind people could benefit from that or make more suggestions.
krecoun said:
Hi, sorry for looong delay. I must say that I am using your app quite successfully. Sometimes it talks but mostly it does not and vibrations work as expected. Great work. Maybe you could release this app into Playstore, some other blind people could benefit from that or make more suggestions.
Click to expand...
Click to collapse
Thanks for your feedback, i'm glad you like it.
I find myself running it from time to time, just to see if I can feel the time
I'm gonna try to publish it when I find time. I'm currently starting work at a different project.
Just came across this thread. Very interesting project!
I, myself, am not blind, but I like the direction this is going! I am going to try it out!
Have you published this to the Play store as of yet? This could be good! ??
Yeh, this is a unique app concept for many!
sorry, for not responding in almost a year.
best would be to bake this function into the os, or make it activate by gesture... wouldn't this be awesome? telling time without ears and eyes, just by a movement...
I just remembered this app and thought i might finish it and add it to play store.
HOPEfully this weekend