I need to have a tray icon for my app, up there with EDGE/3G, Battery and Sound-level.
I have tried the opennetcf's Notify class, but it don't do what I want it to.
Googled alot without any solution, doesn't even seem to be a popular request? I suppose this would be quite crucial to many apps!
What I want to do is:
Add an icon up there, when this is clicked, run some code in my app.
Posibility to change the look of the icon at run time, I guess this could be done by deleting and adding the icon again...
Related
I assume this would be appropriate in the development forum, move it if it isn't.
Would it be possible to replace notification icons (one at a time) using root explorer in r/w mode? It seems that if you find an icon that you would prefer, name it exactly as the one that is being replaced, then remove the old one from framework-res.apk/res(whatever you are replacing), and paste the new one there, it would work. Right?
Should this be done on a "test" ROM using a PC, then flashed to the Aria? Would those paths be available if you navigated into the ROM using Windows Explorer?
I have used the UOT kitchen, but I don't want entire icon sets. If I select them individually, would they replace only those that are of identical notification value? Would it replace the BT connected icon with comprable icon, but only that icon, leaving the rest of the stock Sense set intact?
I am also interested in replacing notification icons that are packaged in Tasker. I would do the same process, navigating into that app. Should I try this or is it known to be impossible?
duckredbeard said:
I assume this would be appropriate in the development forum, move it if it isn't.
Would it be possible to replace notification icons (one at a time) using root explorer in r/w mode? It seems that if you find an icon that you would prefer, name it exactly as the one that is being replaced, then remove the old one from framework-res.apk/res(whatever you are replacing), and paste the new one there, it would work. Right?
Should this be done on a "test" ROM using a PC, then flashed to the Aria? Would those paths be available if you navigated into the ROM using Windows Explorer?
I have used the UOT kitchen, but I don't want entire icon sets. If I select them individually, would they replace only those that are of identical notification value? Would it replace the BT connected icon with comprable icon, but only that icon, leaving the rest of the stock Sense set intact?
I am also interested in replacing notification icons that are packaged in Tasker. I would do the same process, navigating into that app. Should I try this or is it known to be impossible?
Click to expand...
Click to collapse
What ROM are you using? I did exactly what you described on CM6.1, replacing some status bar icons with their Sense equivalents.
I was even able to replace some notification icons in apps such as Music, Gmail, Email, etc.
I used Theme-Pro to do it and pushed all changes to phone in Recovery mode:
http://forum.xda-developers.com/showthread.php?t=781305
http://forum.xda-developers.com/showthread.php?t=729867
I'm a big fan of the many ADB "helper" applications on XDA, search around.
Tyr it, if you make a Nandroid backup, you've got nothing to lose, right?
Hi there
How can I add notification shortcuts ( wifi, bluetooth,.....etc )( like that of CM7 ) to status bar on official froyo rom ?
\
\
\
Thanks in advance
one easy way to do it is to write an app that has persistant notifications that link to those settings. so you will always have a "button" in your notification tray
http://developer.android.com/reference/android/app/NotificationManager.html
Notifications can take different forms:
A persistent icon that goes in the status bar and is accessible through the launcher, (when the user selects it, a designated Intent can be launched)
---------
Let me know if you need more. I can write some sample code when i get home
killersnowman said:
Let me know if you need more. I can write some sample code when i get home
Click to expand...
Click to collapse
already done that: http://forum.xda-developers.com/showthread.php?t=1037817
Looks good, but it's nice to write this stuff your self. Not too hard, good app to learn from.
From something awesome
@killersnowman
What I was talking abt is A persistent icon on status bar.
I thought This could be easy but I was wrong, it's difficult.
If u can simplify the steps, I'll try to do it.
@j4velin
Regarding NT.apk, It's very good app But i wish it has direct access from status bar ( I mean when pressing for ex. WIFI, it opens another screen to activate WIFI )
actually it's not a problem, Just wishing
Thank U very much
I really appreciate your help
You mean like clicking the batter icon or the clock in the status bar and going to those corrosponding settings? There is no method for achieving this. If you try that now you will see that the notification tray starts to slide down.
From something awesome
I mean like the pic.
Maybe someone else knows but im pretty sure that cant be changed or added without modifying or changing the current rom. Or a home screen replacement (never used one so im not sure)..
From something awesome
OK
Thank u so much
wish you best of luck
I have found this guide:
http://furycomputing.wordpress.com/...-it-easier-to-see-contents-of-an-application/
About resizing the live preview windows, but I was wondering, is it possible to do more with these? Besides resizing, I would like to be able to move them around the screen, mark them as "always on top", keep them open even if they are not being moused over, etc. I find them insanely useful. I have a secondary monitor (a TV) in another room, and they do wonder for me being able to change things on it with the keyboard and what not. The same thing goes if I have something minimized, I can use it to check the status of it.
Another possible solution would be a oversized taskbar that just used the live previews for icons, that would be amazing as well.
Any tweaks/hacks like this? Anyway to play with them?
Hey all, I'm looking for a weather app or module that will give me either a constant notification (like the google weather card but just needs to be constant) or sits somewhere in the quick settings (like the one integrated in CM12 is exactly what I would like). A lot of the apps I have tried do give the constant notification BUT they also keep an icon in the status bar which I am trying to avoid. A small handful, such as BrightWeather, offer the option to hide it and is the current one I am using so far. So does anyone have any suggestions on this?
I think amber has option for blank notification icon
Yeah it does, the only problem with Amber is that despite setting refresh interval to 3 hrs, I wakes my device a lot more often than that. I think it had woken to do something >15 times/hour. Tried to go through all the settings and not really sure what it was doing, but the battery drain was too significant
Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
meijeringw said:
Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
Click to expand...
Click to collapse
Are you using the new Toolbar API?
Thats what i think. I'm not sure, how can i check that?
Do you mean AppCombat?
You need to add the android:icon attribute under the application element, not under the activity
Also the design guidelines state that the icon shouldn't be used if you are using the Toolbar API - there are other ways to get your apps branding across to the user.
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
meijeringw said:
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
Click to expand...
Click to collapse
ActionBar != Toolbar. By default the new Toolbar API does not have an icon - this is due to the new design spec (Material Design) that the Toolbar was created for.
You need to find out if you are using the new Toolbar API or the old ActionBar API.
If you're using the Toolbar API then as I already said, it goes against the guidelines to have an icon in the Toolbar now as the primary function of it used to be to get the app branding across to the user which there are now other ways to do using material design (using a custom color palette etc).
If you are really stubborn and insist on going against the guidelines you have to use the below code to set an icon on the Toolbar:
Code:
toolbar.setLogo(R.drawable.ic_launcher);
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
meijeringw said:
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
Click to expand...
Click to collapse
Add this to your code:
Code:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);