Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,783,129 Members 45,629 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
st-tps
Old
(Last edited by st-tps; 12th February 2014 at 07:03 AM.) Reason: App updated to v1.0
#1  
st-tps's Avatar
Senior Member - OP
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Default [APP][WIDGET] NotiCounter Widget v1.1 - 12 Feb - Bugfix - GEAR Exclusive

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 22 Users Say Thank You to st-tps For This Useful Post: [ Click to Expand ]
 
Patosbuddy
Old
#2  
Member
Thanks Meter 22
Posts: 82
Join Date: Nov 2011
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
 
Patosbuddy
Old
#3  
Member
Thanks Meter 22
Posts: 82
Join Date: Nov 2011
Click image for larger version

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

Sent from my SM-N9005 using xda app-developers app
 
Patosbuddy
Old
#4  
Member
Thanks Meter 22
Posts: 82
Join Date: Nov 2011
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
 
NZ_Nitro
Old
#5  
Senior Member
Thanks Meter 33
Posts: 286
Join Date: Apr 2011
Quote:
Originally Posted by Patosbuddy View Post
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
 
st-tps
Old
#6  
st-tps's Avatar
Senior Member - OP
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Quote:
Originally Posted by Patosbuddy View Post
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
Gear owners! Download my widgets: NotiCounter Widget and NotiList Widget - Galaxy Gear Exclusives!
For a complete compilation of my Gear Exclusive Apps, check out my External Site.

If you like it and find 'em useful, Iīll gladly recieve a little something

The Following User Says Thank You to st-tps For This Useful Post: [ Click to Expand ]
 
Brendo
Old
#7  
Brendo's Avatar
Senior Member
Thanks Meter 517
Posts: 2,368
Join Date: Oct 2006
Location: Brisbane, Australia

 
DONATE TO ME
Sweet. Nice work

Sent from my Nexus 5 using XDA Premium 4 mobile app
Samsung Galaxy S IV (i9505) | 16GB
[ROM: Stock KK 4.4.2 | XXUFNC9 | MODEM GSM/LTE: XXUEML4/XXUFMC9 | BL: PRE-KNOX | K: ADAM | RECOVERY: PhilZ]
DOMINATION | XPOSED

OTHER DEVICES:
 
Google Nexus 5 | 32GB
Samsung Galaxy Tab 8.9 (P7310) | 32Gb
[ROM: CM10.2 | CPU: 1.4ghz]
Samsung Galaxy TabPro 10.1 LTE (T525) | 16Gb

Pebble (Kickstarter)
Galaxy Gear (Null_)
Gear Live ()
Google Glass (Explorer)

--------
My Android Downloads
 
hurdlejade
Old
#8  
Senior Member
Thanks Meter 66
Posts: 470
Join Date: Sep 2012
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!
 
st-tps
Old
#9  
st-tps's Avatar
Senior Member - OP
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Quote:
Originally Posted by hurdlejade View Post
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.
 
Basil 123
Old
#10  
Basil 123's Avatar
Senior Member
Thanks Meter 157
Posts: 815
Join Date: Nov 2010
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


__________________
Note 3 X-Note rom



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes