I want to show my AppIcon and some text on Top Left Corner at Home Screen. Please look at the picture you will get an idea
Asked
Active
Viewed 1,840 times
0
-
simply generate notification when you launched app. – N J Feb 03 '16 at 09:05
-
3Possible duplicate of [Android: How to create an "Ongoing" notification?](http://stackoverflow.com/questions/5693997/android-how-to-create-an-ongoing-notification) – Dhaval Parmar Feb 03 '16 at 09:05
-
Check this: [link](http://developer.android.com/intl/es/training/notify-user/build-notification.html) – PurpleSoft Feb 03 '16 at 09:07
-
@DhawalSodhaParmar its working good, app icon is showing but text is not showing? – Pir Fahim Shah Feb 03 '16 at 09:17
-
I don't think its possible to show a notification in the statusbar with text. – Alex Feb 03 '16 at 09:20
-
@DhawalSodhaParmar Yes it is showing for first time but after that it disappear is there not a method to show text permanently as like app icon? – Pir Fahim Shah Feb 03 '16 at 09:24
-
no there is no other way to show text permanent because its for get user attention that app is running and using something. text is only showing when you drag notification penal. – Dhaval Parmar Feb 03 '16 at 09:26
-
@PirFahimShah you are taking about text "SpyVideo Enable"?? – Dhaval Parmar Feb 03 '16 at 09:28
-
@DhawalSodhaParmar yup about that, – Pir Fahim Shah Feb 03 '16 at 09:37
2 Answers
1
You might use drawing over apps. Here a link: How to draw a view on top of everything?
Maybe that helps.
-
what exactly this code do, is it showing app icon and text on home screen top? – Pir Fahim Shah Feb 03 '16 at 09:24
-
This code draws over the whole home screen. You can put a view on top of the statusbar. Its similar to what Facebook messenger is doing. – Alex Feb 03 '16 at 09:26
-
this link might be a better example:http://stackoverflow.com/questions/9815901/display-view-above-status-bar – Alex Feb 03 '16 at 09:28
1
for R.Video enable you are already using ongoing notification.
for SpyVideo Enable
text showing at bottom centre of screen. you can use chat head like Facebook! download this samplecode. instead of ImageView you have to use TextView.

Dhaval Parmar
- 18,812
- 8
- 82
- 177
-
yes, but i need to show the text with app icon like in OnGoingNotification, is it not possible in OnGoingNotification – Pir Fahim Shah Feb 03 '16 at 09:40
-
Can you help me in recording video in background and when i click on the app then video recording stop, and video save in gallery path? plz – Pir Fahim Shah Feb 03 '16 at 09:42
-
@PirFahimShah: check this answers http://stackoverflow.com/a/14952081/1168654 and http://stackoverflow.com/a/16552892/1168654 and http://www.codeproject.com/Questions/845710/Android-Record-video-in-background-and-simultaneou – Dhaval Parmar Feb 03 '16 at 09:45
-
you are really a star. Glad to help you in brightness your future, Once again Thanks – Pir Fahim Shah Feb 03 '16 at 10:37
-
you have to fix some error in different android version http://stackoverflow.com/q/26305107/1168654 – Dhaval Parmar Feb 03 '16 at 11:22
-
i solved it, i am releasing the camera parameter if it is not null, now its working. Thank you – Pir Fahim Shah Feb 03 '16 at 11:28