[Q][Dev]How does a Android AlarmClock work? - Android Q&A, Help & Troubleshooting

Hey Guys,
it maybe sounds a bit stupid, but i exactly want to know how the alarm clock works. If u create an alarm, the informations must be saved somewhere and if u activate an alarm there must be an service in the background which look if the time is right and then send an intent to an activity ? This service have to run every time the phone is on. Am i right ?
The reason why i want to know this, is because i'm writing an app which is in this point very similar to an android alarm clock. How it works:
The user enter a start and end time , in this time the app should do something, but it should not only work while the user is in the app, it should also work when the user is in another app, on the home screen or when the display is off.
I already tried it with 2 activities, a Broadcast, but it won't really work
Have you guys maybe an idea how i can reach my goal?
Hope i'm in the right section of this forum
Moritz

moritz31 said:
Hey Guys,
it maybe sounds a bit stupid, but i exactly want to know how the alarm clock works. If u create an alarm, the informations must be saved somewhere and if u activate an alarm there must be an service in the background which look if the time is right and then send an intent to an activity ? This service have to run every time the phone is on. Am i right ?
The reason why i want to know this, is because i'm writing an app which is in this point very similar to an android alarm clock. How it works:
The user enter a start and end time , in this time the app should do something, but it should not only work while the user is in the app, it should also work when the user is in another app, on the home screen or when the display is off.
I already tried it with 2 activities, a Broadcast, but it won't really work
Have you guys maybe an idea how i can reach my goal?
Hope i'm in the right section of this forum
Moritz
Click to expand...
Click to collapse
I am by no means an expert in the subject but I would recommend taking a look at this information, as well as this documentation on Android Process Life-cycle.

it is maybe possible to use http://developer.android.com/reference/android/app/AlarmManager.html as Service, so i can wake my app up with this and don't have to write my own ...

Related

[Q] Requesting help with Tasker script to activate Vlingo SafeReader

Ok so here is what I would like to have accomplished if possible.
I would like to setup and event in Taster so that when my phone connects to my cars bluetooth it will activate Vlingo's SafeReader function and then turn it off when my phone disconnects from it.
When ever I receive a text from someone have Vlingo start listing for a command to reply to the text. This part I can set, but I would like to have the function delayed for a few moments so that the SafeReader can read the text first and I dont know how to delay actions in tasker.
PS, I know there are other ways to have the text read aloud, but I actually prefer Vlingo's Text2Voice feature as it sounds more natural and less robotic.
Anyone have any ideas how to active either a widget (Vlingo SafeReader widget) or a feature in an app through Tasker?
Any help is appreciated.
ritalin said:
Ok so here is what I would like to have accomplished if possible.
I would like to setup and event in Taster so that when my phone connects to my cars bluetooth it will activate Vlingo's SafeReader function and then turn it off when my phone disconnects from it.
When ever I receive a text from someone have Vlingo start listing for a command to reply to the text. This part I can set, but I would like to have the function delayed for a few moments so that the SafeReader can read the text first and I dont know how to delay actions in tasker.
PS, I know there are other ways to have the text read aloud, but I actually prefer Vlingo's Text2Voice feature as it sounds more natural and less robotic.
Anyone have any ideas how to active either a widget (Vlingo SafeReader widget) or a feature in an app through Tasker?
Any help is appreciated.
Click to expand...
Click to collapse
Funny, I just did a search today to find out how I could do this exact same thing (activate a widget in Tasker, in fact, activate the same widget you mention, SafeReader). I'll follow this thread. Hope we find an answer.
sparhawk6 said:
Funny, I just did a search today to find out how I could do this exact same thing (activate a widget in Tasker, in fact, activate the same widget you mention, SafeReader). I'll follow this thread. Hope we find an answer.
Click to expand...
Click to collapse
I also posted this over at the Tasker forums in hopes to get some help.
http://groups.google.com/group/tasker/browse_thread/thread/d2fb6ba790cd93f6
Did you get anywhere with this? I'd like to do the same thing.
I am able to launch vlingo using android scripting inside tasker by calling com.vlingo.client.safereader, but it does not actually enable safereader. Perhaps there is some argument that needs to be passed?
Strike that. I'm not convinced that my script actually worked now.
I had previously had a load app step in that profile that loaded vlingo. I deleted that step and replaced it with my script, but I suspect that Tasker was still calling the app with the step i had removed, even though the profile had been saved. Oh well...
I want to do something simpler... activate the "tap to speak" feature by pressing my bluetooth headset's talk button... any ideas?
OolonColuphid said:
Strike that. I'm not convinced that my script actually worked now.
I had previously had a load app step in that profile that loaded vlingo. I deleted that step and replaced it with my script, but I suspect that Tasker was still calling the app with the step i had removed, even though the profile had been saved. Oh well...
Click to expand...
Click to collapse
Any details on how to do this would be appreciated, I use tasker a fair amount, but have not gotten into scripts yet.

[Q] Script to spy on Whatsapp

Hello,
I've recently came up with an idea to spy on whatsapp easily. This is purely for fun purpose. I don't have idea whether it will work. Many people want to spy their friends/gf/crush whatsapp, but they're unable.
My question is:
Is it possible to develop such a script on a rooted android phone that will run in the background and send the Whatsapp messages backup file (*.CRYPT) over email? Android on Whatsapp takes the messages backup daily, so if this .CRYPT is sent anonymously the spyer will be able to see the last day's messages.
Let me clear that this is just for FUN! No personal interest.
Thanks.
To be honest, its spying, tapping an account without notice. Its illegal even for fun purpose. If it could be done you already know that it will also be done with the wrong reason.
I can't find the fun factor in tapping others accounts....
Mr Hofs said:
To be honest, its spying, tapping an account without notice. Its illegal even for fun purpose. If it could be done you already know that it will also be done with the wrong reason.
I can't find the fun factor in tapping others accounts....
Click to expand...
Click to collapse
Oh! well, its okay! No offense. Lock the thread.
No it was not intended to offend anybody at all, but lets turn it around ....you won't like it yourself if someone is "looking" with you at your personal chats....how unharmful it may seem

[Q] Question regarding posting app that hides WhatsApp Last seen

Hi everyone
I have a question regarding posting an app which would hide Last seen at on WhatsApp.
This isn't modification of existing app or anything. All it does is, when you open the app, it disables wifi and data, waits for the internet to disconnect and opens WhatsApp.
After you are done sending messages in WhatsApp, you need to press back button to reach to my app and it would check that you closed WhatsApp and will enable wifi and data and quits automatically.
I'm not sure if this is considered as hacking or any kind of unofficial method to do.
Please let me know and I can post it.
I know that there are many apps that are available to do this. But they are either paid or they require tapping a button. Just want to distribute so that people can get use of it.
Let me know if there is a MOD or someone that I can check with.
Thanks,
Hangoverr (sorry I don't drink )

[Q] Alternative to Alarm Clock Xtreme?

Hey guys,
I've found myself in the position of needing an alarm app again. I decided to fall back to Alarm Clock Xtreme. It's been working great for the past 2-3 years, and I'm familiar with it.
However, I haven't had the need for it in the past 2 months, and it's clearly been updated.
They removed, or relocated, the restore from backup function!
I can't use my backup to seamlessly start using, by my experiences, one of the best alarm apps on the market?!
Imagine that slap in the face. I've emailed AVG support, in hopes they respond to my inquiry.
In the meantime, is there another alarm app that does the whole math problems to snooze/turn off like Alarm Clock Xtreme does?
Thank you all!
Try using Timely. It has the math problem and puzzles too. Love this app and highly recommend it.
I will keep that in mind, thanks.
I'm currently trying I Can't Wake Up!
I like it's ability to randomize the actions necessary to turn off the alarm. Definitely needed for someone who cannot wake up... me.
sorry to hear about that
Hey guys, Andi from the ACX team here. Two things:
1. Sorry to hear about your problem, I hope customer support got back to you in time. We are preparing a new update that should fix many of the reported bugs and add a pretty cool new feature.
2. On a different note, we want to hear from you and understand why you chose to download an alarm from the Playstore and not use the stock one. Doesn’t matter if you use our app or another alarm clock app. To make it worth your time, there’s an Amazon voucher for those who talk to us. More details here: bit.ly/1Ufi72A - Please help us make ACX better, we really want to hear what you have to say.
I may be forced to switch.
For some reason this app has used 750Mbytes of wifi and 776 Mbytes of mobile data since begining of May.
Has anyone else had that?, Mark
Yitz

help with colouring app for my daugter

Hi and hello to all, sorry if I posted in wrong section but I guess its the right one.
I am rather clever person so I should cope, but need guide and help to do so.
I have daughter and wish to create colouring app without buttons like share or any adverts (basically anything that will make her get out of application and start to call foreign country and make my bill horrendously big etc.)
so for start I downloaded all android SDK and Studio.
My idea is to have menu with pictures (ill make those out of disney cartoons in photoshop)
once clicked it will enlarge and show colour pallet (preferably 256 colours, tiny boxes) that she could touch at top of screen,
and enlarged picture at bottom where she could fill empty spaces with desired colours.
device im intend to use is Samsung s4 or s5 my wifes or note 4 which im willing to get soon
I know I might ask for quite a lot but honestly its beyond me. I have tried to google some libs but after 6h I failed miserably.
onehans said:
Hi and hello to all, sorry if I posted in wrong section but I guess its the right one.
I am rather clever person so I should cope, but need guide and help to do so.
I have daughter and wish to create colouring app without buttons like share or any adverts (basically anything that will make her get out of application and start to call foreign country and make my bill horrendously big etc.)
so for start I downloaded all android SDK and Studio.
My idea is to have menu with pictures (ill make those out of disney cartoons in photoshop)
once clicked it will enlarge and show colour pallet (preferably 256 colours, tiny boxes) that she could touch at top of screen,
and enlarged picture at bottom where she could fill empty spaces with desired colours.
device im intend to use is Samsung s4 or s5 my wifes or note 4 which im willing to get soon
I know I might ask for quite a lot but honestly its beyond me. I have tried to google some libs but after 6h I failed miserably.
Click to expand...
Click to collapse
Perhaps you wish for a child's mode or guest mode in which only certain apps can be accessed? Because what you are suggesting is making an app that you can enter, but can't leave. How will you get out of it when you need to?
Try an applocker that can be disabled/reenabled via a password... This way you can only make a coloring app (and other games) available to her unless she has a special password. Apps like this should block the phone, gallery, messaging, or anything else you wish for her not to access.
Try something like this: https://play.google.com/store/apps/details?id=com.pluggdd.SmartAppLocker , but if you don't like this then there are a plethora of other alternatives.
Now you should be able to allow her to access several apps and games that you deem to be appropriate for her, then, when you need your phone you can exit it and use it however you please.
thanks that will solve a lot of my problems :good: but yet all this children apps have adverts that i dont want her to click and still i would like to create colouring app just for her.
onehans said:
thanks that will solve a lot of my problems :good: but yet all this children apps have adverts that i dont want her to click and still i would like to create colouring app just for her.
Click to expand...
Click to collapse
Is your phone rooted?
Sent from XDA app via my LG G3 D851.
yes its rooted and i know i can remove adverts, but whole point is to create colouring app where i can change pictures etc.
ps. im not willing to root all phones tablets in home
onehans said:
yes its rooted and i know i can remove adverts, but whole point is to create colouring app where i can change pictures etc.
ps. im not willing to root all phones tablets in home
Click to expand...
Click to collapse
Posting a new thread in a section dedicated to app development might attract individuals into trying to make the app for you.
Sent from XDA app via my LG G3 D851.

Categories

Resources