FORUMS

[APP][WIDGET] NotiCounter Widget v1.1 - 12 Feb - Bugfix - GEAR Exclusive

225 posts
Thanks Meter: 154
 
By st-tps, Senior Member on 23rd December 2013, 09:47 PM
Post Reply Email Thread
This app is exclusively written to be used as an widget on the NULL_ Rom @ the Samsung Gear!

This app includes two simple 1x1 widgets that shows the number of unread notifications on your Gear.
I also has the option to play custom sounds based on what application is sending the notification.

A great tutorial for using this widget is made by almulder1092 and available here!

Basics:
* Tap widget = Manual update or notifications app launch.
* Play sound upon recieved notification, either a default sound or custom sound per application.
* Trigger update upon ScreenOn and when the Stock notification app is launched
* Customized Text size
* Customized Text Color
* Customized background
* Shows a 0 or a blank spot upon 0 onread notifications

Widget 1 - Bold Text:
* Bold text

Widget 2 - Normal Text:
* Normal text

Permissions:
The app needs SU access since it chmods the badge.db where the unread notifications is listed. Haven´t found any other way around that yet.
Tip: Go into SuperSU and click on NotiCounter Widget and select to inactivate Notifications so you don´t need to see the splash screen every time the app requests SU rights.


It´s still an beta so please report bugs, have experienced some FC´s (should be solved with v0.3b) but overall it works fine.
Keep in mind to use only one widget at a time to keep away from trouble. If you want to change any settings, remove widget from home screen, change settings with app and then put the new widget on home screen.

Screenshots:







Changelog:

Click to show the full Changlog.
0.2b
- Fixed the off centre issue

0.3b
- FC´s should be gone now!
- Added two new Widgets that don´t use the ScreenOn Intent and only updates on time basis (3 min/update) May not be useful since the FC´s now are solved anyways.

0.4b
- Settings added - Start app first and choose settings, then add your widget on Home Screen
- Sound can be played upon recieved notification, choose a custom file of choice. Works only if Screen On is choosen.
- Set update interval: Screen On or a custom time of choice.
- A total of 6 widgets, all with different layouts (See earlier in post). Settings applies on all widgets.

0.5b
- Bugfix: multiple instances of widget running in background wich made sound weird when enabled.
- Built in sound file added, just tick the "Play sound?" box and not choose any custom file and the built in file will be used instead.

0.6b
- Tap the widget and the Notification App opens! turn this feature on in settings. If box is unticked a tap updates the count as in prevoius versions.

0.7b
- SU rights requested from Settings app and with visuals telling when app is ready. Please remove widgets on home screen before update app. (Using an external library for SU request so I can´t do anything about the sometimes long waiting times during update)
- Added two Experimental widgets (Elipse and Round) wich both triggers their update when the badge.db file i written to. This means that the widget will update upon reading the incoming notifications aswell! Screen on settings and update time is not important in these widgets. Please try this and come back with feedback.

0.8b
- Since the last Experimental release didn´t work for anyone but me... Here´s another one with a total rethink about updating widget after notification reading. Please tick the ScreenOn box before adding the experimental widgets. Update as previous versions.

0.9b
- Some users have experienced problems with multiple services (ghost widgets) starting in the background when updating to null_ 17 (Have no clue why yet, seems quite random) As a sollution for this I´we added a setting that makes it possible to Lock a single widget. Use it like this: Enter settings and tick the "Lock one widget" box, choose the widget you plan to use in the menu to the right. Save and go back to the Home Screen and put the widget on there as usual. If a service tries to start it will automatically get destroyed. If you try to add another widget it will update the first time and then get destroyed (Still be visible on Home Screen but be "dead")
- Disabled the option to choose "Screen On" or update time since that might be a thing that´s causing the above issue, Screen On is default now.

0.10b
- The multiple service issue wasn´t null_ related. The services had one single line saying they would autostart at boot, wich mean that when we all upgraded to new rom and rebooted all services got autostarted, Plain silly! This is changed in this release. The "Lock widget" stays for a while just to be sure that this was the full problem.


0.11b
- HUGE UPDATE!
- Rebuilt GUI with Holo Theme to match null_ rom
- New Icon, Thanks fOmey for that!
- Sound on Gear vibrate mode only (If Gear is set to silent or sound, the widget sound won´t play)
- Experimenal widgets from 0.10b is now default
- ScreenOn is now default, time based update is removed, widget will NEVER update upon Screen Off.
- Custom sounds added."Edit List" shows a list off the custom apps you´we chosen."Add Apps" shows the list of notifications, tap an app name to set a sound for that application.
- A sound library with 11 files is attached, will be copied to /sdcard/NotiCounter upon first launch.
- I may have forgotten something aswell..
Note1 about Custom sound function:
Since Samsung doesn´t close their SQL db as they supposed to I have to do a major file operation before I can pull the name of the incoming notification. Thats why there´s a slight delay (aprox 2-3 sec) before the sound will play! Nothing I can do about that atm.
Note2: In order to add custom sounds for your apps, your gear will need to have a notification from the app already on the gear or the list will be empty.
Thanks almulder1092 for the Feedback

0.12b
- Quick Fix release
- Bug that caused an error if no sound file was selected is fixed
- a Silent soundfile is copied to /system/media/audio/notifications upon first start off app and with a reminder to choose that file if you want sound enabled on the Gear. The reminder shows if you tick the "Use sound" box and have Sound choosen as option in Gear settings. A reboot is necessary to see the new file in Gear sound settings!

0.13b
- the Silent soundfile is copied to /sdcard/notifications instead. Wasn´t working well in /system/
- the old soundfile placed in /system/ is autoremoved when starting app for the first time.
- When no sound file is selected, the GUI will show the text "Default" instead of a blank.
- Most informative messageboxes only shows on the first start off the app.
- Added a Restore Settings button wich restores all saved data made by the app.
- Thanks to almulder1092 for the excellent test drive off this release!

1.0 - Stable
- First stable release!
- The Add App list is now showing the apps selected under Notifications in Gear Manager.
- Text size is configurable
- Text color is configurable, it´s set using the RGB colorpicker showed in the post above.
- Background now has 4 options, Elipse, Round, Transparent and custom, last option let´s you choose whatever image file you want!
- Show 0 or blank spot (at 0 unread notifications) at any background, not limited to Transparent no more.
- Added three power saving modes (Not that it´s a battery hog but it´s better to let the user decide how to update!)
- New custom built filemanager wich fits nicely on the Gear screen.

1.1 - Stable
- Fixed a bug that caused an FC if "Play Sound" was activated but no sound file was manually selected.

Download:
NotiCounter Widget v1.1

If you want an earlier release, all is listed here!)



Wishlist:
- Start Notification app when taping widget (Implemented)
- Notification update after message app check. (Implemented)
- Custom sound based on Notification content (Implemented)
- Custom Text size, color and background (Implemented)


Thanks
Goes to fOmey for the null_ Rom and the finding of the badge.db file!
And to almulder1092 for the excellent bughunt!


And to the Donors:
Srwilliams
The Following 23 Users Say Thank You to st-tps For This Useful Post: [ View ] Gift st-tps Ad-Free
23rd December 2013, 11:02 PM |#2  
Senior Member
Thanks Meter: 32
 
More
Love it.
But as you say. I get some info that it has stopped.
Is it me or is it a bit to high out of center?
Is it possible to make it bolder?
Tested some changing in the options but no luck.
Didn't try to restart between the changing.

Sent from my SM-N9005 using xda app-developers app
23rd December 2013, 11:02 PM |#3  
Senior Member
Thanks Meter: 32
 
More
Click image for larger version

Name:	uploadfromtaptalk1387839757004.jpg
Views:	1186
Size:	31.8 KB
ID:	2471139

Sent from my SM-N9005 using xda app-developers app
23rd December 2013, 11:45 PM |#4  
Senior Member
Thanks Meter: 32
 
More
Love it.
But as you say. I get some info that it has stopped.
Is it me or is it a bit to high out of center?
Is it possible to make it bolder?
Tested some changing in the options but no luck.
Didn't try to restart between the changing.

Sent from my SM-N9005 using xda app-developers app
24th December 2013, 07:19 AM |#5  
Senior Member
Thanks Meter: 33
 
More
Thumbs up
Quote:
Originally Posted by Patosbuddy

Love it.
But as you say. I get some info that it has stopped.
Is it me or is it a bit to high out of center?
Is it possible to make it bolder?
Tested some changing in the options but no luck.
Didn't try to restart between the changing.

Sent from my SM-N9005 using xda app-developers app

well done this is perfect
24th December 2013, 08:17 AM |#6  
st-tps's Avatar
OP Senior Member
Flag Sweden
Thanks Meter: 154
 
More
Quote:
Originally Posted by Patosbuddy

Love it.
But as you say. I get some info that it has stopped.
Is it me or is it a bit to high out of center?
Is it possible to make it bolder?
Tested some changing in the options but no luck.
Didn't try to restart between the changing.

Sent from my SM-N9005 using xda app-developers app

I'll try to track the FC's, I'we found one that I'll try to solve: if you have one unread notification, goes to message app and reads it and then back to home screen and tries to update widget it freezes.
the good thing is that the app restarts right away after pressing OK.

I haven't put that much effort in fixing the off center issue, it's on the To do list.
What do you mean with options? What I know I haven't done any
The Following User Says Thank You to st-tps For This Useful Post: [ View ] Gift st-tps Ad-Free
24th December 2013, 10:49 AM |#8  
Senior Member
Thanks Meter: 102
 
More
which version of custom ROM is required? i installed it, put it on my desktop, gave root access, yet i see no counter at all.. and i do have unread notifications.

edit: it took a little bit longer, but it works now!
24th December 2013, 01:11 PM |#9  
st-tps's Avatar
OP Senior Member
Flag Sweden
Thanks Meter: 154
 
More
Quote:
Originally Posted by hurdlejade

which version of custom ROM is required? i installed it, put it on my desktop, gave root access, yet i see no counter at all.. and i do have unread notifications.

edit: it took a little bit longer, but it works now!

It´s developed using null_ 15 but since it´s based on stock files the custom rom version won´t make a difference.
You can always tap the widget to update manually.

Regarding FC´s tried the thing I explained earlier but no FC so I Assume I need help locating the reasons.
If someone experienced an FC and can explain how to recreate it I would be very happy, then I can attach log and see whats causing it.
27th December 2013, 05:57 AM |#10  
Basil 123's Avatar
Senior Member
Thanks Meter: 235
 
More
Really nice. Useful if you're using nova launcher. Just a minor niggle - is centred too high. Always looks out of alignment with other widgets.

Nice one
27th December 2013, 06:00 AM |#11  
Junior Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by st-tps

It´s developed using null_ 15 but since it´s based on stock files the custom rom version won´t make a difference.
You can always tap the widget to update manually.

Regarding FC´s tried the thing I explained earlier but no FC so I Assume I need help locating the reasons.
If someone experienced an FC and can explain how to recreate it I would be very happy, then I can attach log and see whats causing it.

I installed it, didn't actually put it on the screen -- it was just installed -- and got an FC for some reason
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes