rfresh Well-Known Member Licensed User Longtime User Apr 16, 2012 #1 When my app runs, I want to display a value in the top msg bar. Sorry I may not be calling it the correct name (top msg bar). I would need it to display even when my app is paused. Can someone point me to what docs I would need to look at? Thanks...
When my app runs, I want to display a value in the top msg bar. Sorry I may not be calling it the correct name (top msg bar). I would need it to display even when my app is paused. Can someone point me to what docs I would need to look at? Thanks...
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2012 #2 You probably want to add a notification. http://www.b4x.com/android/help/core.html#notification Upvote 0
rfresh Well-Known Member Licensed User Longtime User Apr 16, 2012 #3 Is there a way to just have text display (2 chars) in the notification area instead of an icon? Upvote 0
barx Well-Known Member Licensed User Longtime User Apr 17, 2012 #4 A notification cannot have 'No Icon' you have to set a transparent Icon. The Ticker Text shown with notifications only shows for a few seconds. Just an idea ans I don't know how to do it off the top of my head. You could possibly build the icon drawable making it a image of the characters you wish to display. they set it as the notification icon. I would think this would require a canvas. Someone else could help more with this. Upvote 0
A notification cannot have 'No Icon' you have to set a transparent Icon. The Ticker Text shown with notifications only shows for a few seconds. Just an idea ans I don't know how to do it off the top of my head. You could possibly build the icon drawable making it a image of the characters you wish to display. they set it as the notification icon. I would think this would require a canvas. Someone else could help more with this.
rfresh Well-Known Member Licensed User Longtime User Apr 17, 2012 #5 I used the .Number member and it does display digits in the lower right corner of the icon, but it's extremely small and very hard to see. I have too many numbers to make images for all of them, but I like your thinking! Upvote 0
I used the .Number member and it does display digits in the lower right corner of the icon, but it's extremely small and very hard to see. I have too many numbers to make images for all of them, but I like your thinking!
barx Well-Known Member Licensed User Longtime User Apr 17, 2012 #6 What sort of info are you needing to display. Please give an example and for how long? Thanks Upvote 0
rfresh Well-Known Member Licensed User Longtime User Apr 17, 2012 #7 I wanted to display the screen brightness value (2-255). Upvote 0
F fatman Active Member Licensed User Longtime User Apr 17, 2012 #8 Activity.Title What about this: Activity.Title = "My text" Displays text in the titlebar of your application. I use this a lot for debugging and testing. Fatman Upvote 0
Activity.Title What about this: Activity.Title = "My text" Displays text in the titlebar of your application. I use this a lot for debugging and testing. Fatman
rfresh Well-Known Member Licensed User Longtime User Apr 17, 2012 #9 I didn't want the user to have to flick down the notification bar to see it... Upvote 0
rbsoft Active Member Licensed User Longtime User Apr 17, 2012 #10 Activity.Title = "My text" Displays text in the titlebar of your application. I use this a lot for debugging and testing. Click to expand... That's a good idea! Rolf Upvote 0
Activity.Title = "My text" Displays text in the titlebar of your application. I use this a lot for debugging and testing. Click to expand... That's a good idea! Rolf
rfresh Well-Known Member Licensed User Longtime User Apr 17, 2012 #11 fatman said: What about this: Activity.Title = "My text" Displays text in the titlebar of your application. I use this a lot for debugging and testing. Fatman Click to expand... Ahhh I understand now...unfortunately, my apps do not use the title bar. But that's a good Plan B... Upvote 0
fatman said: What about this: Activity.Title = "My text" Displays text in the titlebar of your application. I use this a lot for debugging and testing. Fatman Click to expand... Ahhh I understand now...unfortunately, my apps do not use the title bar. But that's a good Plan B...
margret Well-Known Member Licensed User Longtime User Apr 17, 2012 #12 I use a Panel at the top with a Label in it. You can update it is much as you like and when you don't need it, you can issue: PanelName.Visible = False Upvote 0
I use a Panel at the top with a Label in it. You can update it is much as you like and when you don't need it, you can issue: PanelName.Visible = False