Battery Remainder one attempt - Android Q&A, Help & Troubleshooting

Please help I am a new member here, I need the code blocks for
Hello guys I am a newbie here and also in android programming, I am using Sketchware app to build my first app,
This is my project. it's only a try to make my own app (even similar app is available).
My app is to perform functions like:
1) show the current battery percentage (Save the current battery percentage value in a number variable p
(range 1-100))
2) Read minimum value and maximum value in edittext1 & edittext2 respectively
(Don't know how to convert it into a number variable)
Read a minimum value (as a number) (range1-35)
Set two buttons
1 ) to set alarm
2) to stop alarm
Remainder need to be work as follows as possible:
When the user opens the app
1)The current battery percentage is showned (variable p)
2) the user sets two values as min and Max (say 20 as min
& 80 as max)
3 ) user set the alarm by clicking the 'set alarm button'
(Toast messege:" alarm set successfully")
NB:-AND CLOSE The app and CLEAR the app from RECENT APPS LIST
ACTION:
When the percentage p
Is getting down and reaches 20 : the app should popup & the phone should make a sound with a message ( "please charge the phone" ).
Then we plugged it in charging
After some time the percentage p
Is reaches 80 : the app should popup & the phone should make a sound with a message ( "please STOP charging the phone" ).
When both this happens user can disable the notification remainder by the second button to stop alarm.
This is a request please don't kill me with huge jargons
My app's name is. Battery remainder

Related

(20100718 - version 1.4.1 beta) MissedCallReminder

Hello all,
current version is 1.4.1 beta
my own attempt to add the missing "missed call" and "missed sms" reminder to WM 6, WM 6.1 and WM 6.5
the idea here was to keep it simple. the program can vibrate and or generate a chosen sound at a set interval, to notify the user that there are missed calls or unread sms messages. it will wakeup the device if needed to give the notification.
Note: The program has been created and tested on PocketPC phones only. This program might or might not work correctly on Smartphones.
to use:
install the cab on the device or the storage card.
launch the application and set your preferences.
click apply, the program will minimize. it is neccessary to keep the program running to have it generate new reminders, but it only uses the cpu when needed it does not poll every minute or so to see if a notification came in.
hope that someone will find this usefull
The program currently offers the following:
missed notification for missed call/ sms / mms and e-mail
No reminder when call is in progress
Option to set sound per reminder type (the sounds will,if needed, be generated all at once for the moment, this could be changed in the future)
option to "minimize to taskbar" or "minimize and hide"
Lock screen on phone call connect (I am using this myself and decided to keep it in. it locks the screen using the windows lock when a phonecall is connected. it unlocks the screen when a phonecall is finished. Default this is off, and you do not have to use it if you do not want to.)
Option to set vibrate time in seconds
LED vibrate number can be chosen from 0 till 20
Option to not wakeup the device
Option to not give reminder in set timespan (if you specify from 2300 till 0700, it means that the program will not generate a reminder between 2300 and 0700 each day)
About box
Should display in QVGA/VGA/WQVGA/WVGA
The program uses almost no cpu time, only when it is needed
one "advanced user" registry key in HKEY_CURRENT_USER/Software/MissedCallReminder:
debug: Default is "False", if set to "True", the program will generate debug information in a logfile. to help me indentify problems.
NOTE: apparently Omnia devices use the sms count for both SMS and MMS, that means that the program should generate a MMS reminder if SMS reminder is selected. I would like to hear from Omnia users if this is true.
1.4.1 beta release
bugfix: Reminders are given for a notification even if the notification is not selected in the notifications tab. (second attempt )
bugfix: If no reminder between is used the program does not correctly follow the time rule
bugfix: program still vibrates the phone if phone sound is set to silent
TODO (Things that will be in a next version):
Multi language support
WISHLIST (Things that might be in a next version, if i have the time and can make it work)
Option to stop generating a reminder after x minutes
option to stop generating a reminder after x times
KNOWN BUGs (things that,if possible, be fixed in a next version)
A small FAQ
Q: what does Vibrate LED number mean?
A: The LED number specified here is used to vibrate the device. This is different per device. Using the "Menu - Test vibrate" you can test if the number entered in the vibrate LED number field is the correct one for vibrating the device.
Q: what does the menu option "No icon in taskbar mean?
A: the option "Menu - No icon in taskbar" controls the "minimize to taskbar" or "minimize and hide".
When "No icon in taskbar" is NOT selected the program will minimize to the taskbar. the program can only be reopened using the icon in the taskbar. it is not visible in the taskmanager.
When "No icon in taskbar" is selected the program will only minimize. it can be reopened by relaunching the program. it is also visible in the taskmanager.
TouchFlo user should select the "No icon in taskbar". when doing this please close the program and relaunch it for the setting to take effect.
Q: What does "Lock screen on call connect" mean?
A: it locks the screen using the windows lock when a phonecall is connected. it unlocks the screen when a phonecall is finished. Default this is off, and you do not have to use it if you do not want to.
Q: I cannot relaunch the program when it is already running using the program icon.
A: please see post # 2:
If you like my work, feel free to give a small donation ( EUR or USD )
Further explanation for the program does not start from program icon
I'll try to explain with some pictures how the program behaves when the no icon in taskbar option is selected or not selected. Just to be sure that it is not the cause for users who are experiencing problems with reopening the program using the program icon:
first situation:
You have installed MissedCallReminder and you start it for the first time, If you change nothing and select Apply the following will now happen:
Menu - no icon in taskbar is NOT selected (noiconintaskbar.jpg)
The program is not visible in any Taskmanager's application list
The MissedCallReminder icon is visible in the taskbar (Iconintaskbarnotselected.jpg)
When this is happening the program will not react to clicks on the program icon in the programs list, it can only be reopened using the taskbar icon.
second situation
You have installed MissedCallReminder and you start it for the first time, you select Menu - no icon in taskbar AND completely exit the application using Menu - Exit. You then restart the program and select Apply and the following will now happen:
Menu - no icon in taskbar is selected (Iconintaskbarselected.jpg)
The program is visible in any Taskmanager's application list (visibleintaskmanager.jpg)
The MissedCallReminder icon is NOT visible in the taskbar
When this is happening the program will react to clicks on the program icon in the programs list.
Request: If users experience this and are certain the above situation is not the case then i would be very interested in what the program registry settings are. if you are able to do this could those users please open a registry editor and navigate to HKEY_CURRENT_USER\Software\MyMissedCallReminder and tell me the value of the key "minimizetotaskbar"
cool.. i'll be using it
FootPrint?
What kind of a footprint or memory usage does it require?
curious george said:
What kind of a footprint or memory usage does it require?
Click to expand...
Click to collapse
memory usage is currently around 235 kb
Looks neat
Throwing in an idea, hope it's ok. It would be good if you could have reminders for only missed calls and not messages (or the other way around for that matter - looks like you will get the same reminders from both on the screenshots).
I'm biking a lot and don't always won't to stop to read a new message, hence reminders can be a bit annoying. On the other hand, I'm wearing my headset so I always pick up calls
MTM said:
Looks neat
Throwing in an idea, hope it's ok. It would be good if you could have reminders for only missed calls and not messages (or the other way around for that matter - looks like you will get the same reminders from both on the screenshots).
I'm biking a lot and don't always won't to stop to read a new message, hence reminders can be a bit annoying. On the other hand, I'm wearing my headset so I always pick up calls
Click to expand...
Click to collapse
i am currently working on some "improvements" like having it minimize to the taskbar. i think i will also include the option to turn a reminder on or off for unread SMS or missed call
OMG thx man very much,i was looking for a prog. like this for a while now,thx again great post
Good Job, it works on my KS20
I like it, it is simple
No Vibrating
No vibrating on ASUS P535!
How do you HTC people cope with the reminder witch turns on the screen. In your pocket, an unwanted touch on the screen could run an application?
The Asus P535 has an HOLD button!
Too bad the button apply can't be reached with a 240x320 (landscape) display like the one used on the IPAQ 914C
sudist said:
No vibrating on ASUS P535!
How do you HTC people cope with the reminder witch turns on the screen. In your pocket, an unwanted touch on the screen could run an application?
The Asus P535 has an HOLD button!
Click to expand...
Click to collapse
when applying the settings you can also specify the LED number to vibrate (default is 1) . please try this. perhaps it will be usefull to have a test option.
regarding the unwanted touch problem, i personally use S2U2, so when the device wakes up i do not have this problem.
what i can do is add an option that the device does not wakeup when a reminder is given. but that does mean that you will not hear any reminder until the device wakes up.
tesselaar said:
Too bad the button apply can't be reached with a 240x320 (landscape) display like the one used on the IPAQ 914C
Click to expand...
Click to collapse
the next version will hopefully have better support for non portrait display.
mb286 said:
when applying the settings you can also specify the LED number to vibrate (default is 1) . please try this. perhaps it will be usefull to have a test option.
Click to expand...
Click to collapse
I've tested on 1 and 10 (seconds I think)
mb286 said:
what i can do is add an option that the device does not wakeup when a reminder is given. but that does mean that you will not hear any reminder until the device wakes up.
Click to expand...
Click to collapse
There are programs that still work in SLEEP MODE (for example, autoflight is always telling me the time....even in sleep mode).
*Memory heap size = 1Mb (OsRemindMe = 1,6Mb)
sudist said:
I've tested on 1 and 10 (seconds I think)
There are programs that still work in SLEEP MODE (for example, autoflight is always telling me the time....even in sleep mode).
*Memory heap size = 1Mb (OsRemindMe = 1,6Mb)
Click to expand...
Click to collapse
i think the LED number for vibrate could be any number between 0 - 5, but i do not know for sure, it is 1 on my Touch. i must admit that setting the LED number is not very clear for first time users. I do not know how to make it so that it automatically uses the correct number.
I'm in the impression that you can not hear a sound if the device is in sleep mode. but perhaps i am mistaken? Autoflight generates a sound without waking up the device?
Thanks it's great
Always wanted an app like that for my WM6.1
nice piece of work
pretty nice work.. however, it would be good if following things can be revised?
--> can you plz add in a feature "number to repeat". FYI, i'm now using Throttle Launcher. So, i can't trigger off the reminder alarm. it would be good if it stops automatically after x-times (which can be set by user),
OR..
whenever i read/aware the missed call/msg, this reminder program would detect that missed call / unread msg = 0, thus OFF the reminder automatically. (This would be preferable)
Many Thanks....
add in some extra information..
davidfvk said:
pretty nice work.. however, it would be good if following things can be revised?
--> can you plz add in a feature "number to repeat". FYI, i'm now using Throttle Launcher. So, i can't trigger off the reminder alarm. it would be good if it stops automatically after x-times (which can be set by user),
OR..
whenever i read/aware the missed call/msg, this reminder program would detect that missed call / unread msg = 0, thus OFF the reminder automatically. (This would be preferable)
Many Thanks....
Click to expand...
Click to collapse
regarding above statements, perhaps i shall further clarify....
a) add in "number to repeat"..
example: reminder will give notification every interval of 2mins for 5 times
I'm now using Touch (with Throttle Launcher interface, 240x320), perhaps this reminder program need user to off it manually? yet, it's too bad that i can't trigger this button... so, i suggest 2nd option which stated above....
Thanks...
davidfvk said:
pretty nice work.. however, it would be good if following things can be revised?
--> can you plz add in a feature "number to repeat". FYI, i'm now using Throttle Launcher. So, i can't trigger off the reminder alarm. it would be good if it stops automatically after x-times (which can be set by user),
OR..
whenever i read/aware the missed call/msg, this reminder program would detect that missed call / unread msg = 0, thus OFF the reminder automatically. (This would be preferable)
Many Thanks....
Click to expand...
Click to collapse
if the user dismisses the missed calls and marks the unread sms as read while the program is running ,the program should know when not to give the reminder anymore.
however problems can arise if the program is not running and the user dismisses the missed call/unread sms notifications. the set reminder will then not be cancelled. this should be fixed in the next version. the next version will also have an option to clear generated reminders.
Hi,
Thanks for your prompt reply. Personally I think this program has great potential. Just wish it could be revised to a better software.
I tried it yesterday. It rings to notify me that i have missed calls / unread msg.. somehow, I went to read the msg and checked the missed call.. yet, the reminder won't stop.. (and i din see any button to be pressed to stop, if there is any? )..
plz advise?
Thanks

repeating task/appt alarm

Does anyone know the reg hack or update to enable repeating alarm on tasks and appointments?
I use agenda one but the alarm only sounds once
I don't really want to install battery pack pro as I don't need all the other features.
Cheers
Kenny
This should work:
Use a registry editor, go to:
HKEY_CURRENT_USER>ControlPanel>Sounds>Clock
Select 'Values'
Then select Menu>New Value>String
Value Name: Script
Value Data (for no vibrate): apr
or
Value Data (with vibrate): av0pr
If you want to add a delay between each ring add 'w(delay)' before the r(repeat), for example:
av0pw3r would have a vibrating alarm with a 3 second wait before looping the ringtone (both wav or midi)
If you want to revert back to the normal alarm ring then simply delete the 'Script' value.
Click to expand...
Click to collapse
Hi Davi - is that reg edit definately for tasks?
I've added the entry but it's had no affect - a task with a reminder alarms once and then never again
Kenny
I Got this to work on the alarm but if I went to change the time it would reset the data value to p

[NEW APP] Realarm - the most advanced alarm app

Realarm is a powerful alarm app with advanced repeat options. App provides options to set repeat period (such as repeat every "2" days, every "3" months..), Fixed day (8th day of a month), Flexible day (first Saturday in a month) and many other features.
One of the key features is a possibility to assign more than one sound to a given alarm, which results in random changing of selected sounds. Useful when user is bored of waking up on the same sound each day.
There is also a calendar preview page for single alarm or all alarms together which makes it easy to imagine or check the occurences of alarms.
Application does use only system alarm thus users dont have to worry about whether alarm will ring or not. Therefore application currently does not need any background agents that would cost some battery life.
Key features:
- Powerful recurrence options
- Random sounds
- Custom repeat period
- Fixed/Flexible day in weekly recurrence
- Calendar preview of all (single) alarm occurrences
- Custom or system theme

REQUEST XPOSED MODULE to Usage Timelines Pro work on NOUGAT

How guys I can't update my device because my Zenfone is hard multitasking and I need that application fixed to working on Nougat, can an xpsosed Module help me?
Usage Timelines is a CPU and process monitor with a graphical cpu load history in the notification bar and a list of running apps.
A trial version is available at http://www.refined-apps.com/trials/UsageTimelinesPro-release.apk
Please note that Usage Timelines cannot show information about individual processes (other than itself) on Android N/7.0 and above. Starting with Android N/7.0, Google intentionally restricted access to /proc/<pid>/ where this information comes from. This does not affect other information, like total cpu usage, the notification timeline etc. For more details, please see https://code.google.com/p/android/issues/detail?id=205565. There is no way known to us to work around this problem on normal devices without Googles cooperation.
This lead to the decision to stop further development. Sorry.
For questions, remarks, suggestions or feedback mail us at [email protected]
For an add-free version see "Usage Timelines Pro" (https://play.google.com/store/apps/details?id=com.als.usagetimelines.pro)
---- Features ------------
✓ Extended cpu load history as notification in the notification bar (like xload/windows task manager)
✓ Process listing
✓ Cpu and memory usage of processes (similar to "top" or windows task manager)
✓ Processes can be terminated and uninstalled
✓ Works without rooting
✓ Very low power usage
✓ Supports English and German
---- Free vs. Pro Version ------------
The pro version supports all features of the free version plus
✓ a widget to quickly start/stop the cpu load history notification
✓ settings to change the notification colors
✓ no ads and thus smaller resource consumption
---- Power Consumption ------------
Some remarks about power consumption and performance
✓ tl;dr
Set your update intervals as high as acceptable for you. Power consumption should be fine then.
Shorter update intervals lead to higher power consumption since the values are updated more often.
You may also use it just when you experience problems and turn off the notification otherwise.
✓ Usage Timelines has been highly optimized
✓ If everything is fine, Usage Timelines should be the app in the app list that uses most cpu since all other apps should be paused by android. That's normal and expected behavior.
✓ Displaying the process list needs some additional power, especially if you are working with the app (e.g. scrolling). If the process list is not shown (e.g. while you are using another app), the process list does not use any cpu power.
✓ If the screen is off, only the values for the notification history are acquired to be able to properly update the usage history as soon as the screen is switched on again. Neither the notification history nor the process list are updated if the screen is off since you could not see the update anyway, saving cpu power and lowering power consumption.
✓ The ad library uses some cpu power. You can get rid of this by using the pro version.

Two different time laps?

Hello
Just bought Amazfit Stratos and I am looking to find how to apply two different time laps running one after other. For example i want to run for 20 sec and rest for 22 and this cycle will be for 40 times. So each one finished the next will start till the end of 40 cycles.
Is it possible?
In the mobile app go to Intervals. Select one interval and select duration, if you want set pace alerts. Then add another interval, set duration, without alerts, for the rest period. After that select repetition of intervals, select both and set number of repetitions to 39, because the first two intervals count too for the total of 40.
Anoik said:
In the mobile app go to Intervals. Select one interval and select duration, if you want set pace alerts. Then add another interval, set duration, without alerts, for the rest period. After that select repetition of intervals, select both and set number of repetitions to 39, because the first two intervals count too for the total of 40.
Click to expand...
Click to collapse
The thing is I can’t find intervals in my Amazfit app :/
Can you help me through?
Anoik said:
In the mobile app go to Intervals. Select one interval and select duration, if you want set pace alerts. Then add another interval, set duration, without alerts, for the rest period. After that select repetition of intervals, select both and set number of repetitions to 39, because the first two intervals count too for the total of 40.
Click to expand...
Click to collapse
i created the interval and synced the data to smart watch but i couldnt find the activity on "activities"
panais86 said:
i created the interval and synced the data to smart watch but i couldnt find the activity on "activities"
Click to expand...
Click to collapse
Go to Run, Run Settings and then go to Intervals.
Anoik said:
Go to Run, Run Settings and then go to Intervals.
Click to expand...
Click to collapse
Thank you. Another one question. Is there a way when the interval is active to have 5 sec (every sec) vibration notifications or less? If yes how can i activate it?

Categories

Resources