MrKim Well-Known Member Licensed User Longtime User Sep 27, 2014 #1 I set a notification which requires SetInfo which requires an activity and all is well. When the user selects my notification the activity code is run, it works fine. The problem is the entire screen briefly flashes black when the code is run because it is an activity. Is there some way to prevent that? I have Code: #Region Activity Attributes #FullScreen: False #IncludeTitle: False #End Region set. I do have code that needs to run, and possibly a Toastmessage, but I don't want a full screen. Thanks for any help Last edited: Sep 29, 2014
I set a notification which requires SetInfo which requires an activity and all is well. When the user selects my notification the activity code is run, it works fine. The problem is the entire screen briefly flashes black when the code is run because it is an activity. Is there some way to prevent that? I have Code: #Region Activity Attributes #FullScreen: False #IncludeTitle: False #End Region set. I do have code that needs to run, and possibly a Toastmessage, but I don't want a full screen. Thanks for any help
barx Well-Known Member Licensed User Longtime User Sep 27, 2014 #2 maybe look at making the activity transparent Upvote 0
MrKim Well-Known Member Licensed User Longtime User Sep 29, 2014 #3 barx said: maybe look at making the activity transparent Click to expand... Tried that - still flashes a black screen. Upvote 0
barx said: maybe look at making the activity transparent Click to expand... Tried that - still flashes a black screen.
MrKim Well-Known Member Licensed User Longtime User Sep 29, 2014 #4 I also tried #FullScreen: True thinking it was the title that did it but no luck there either. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2014 #5 How are you making the activity transparent? See this post: http://www.b4x.com/android/forum/threads/hiding-an-activity.14824/#post-84047 Upvote 0
How are you making the activity transparent? See this post: http://www.b4x.com/android/forum/threads/hiding-an-activity.14824/#post-84047
MrKim Well-Known Member Licensed User Longtime User Sep 30, 2014 #6 I just created a layout in designer and set the alpha to 0 on the actvity. Then loadlayout in Activity_Create. Upvote 0
I just created a layout in designer and set the alpha to 0 on the actvity. Then loadlayout in Activity_Create.
warwound Expert Licensed User Longtime User Oct 1, 2014 #7 Setting the activity attributes in the manifest xml instead of in code might be flicker free. I think the xml is parsed before any code in your activity is executed. Upvote 0
Setting the activity attributes in the manifest xml instead of in code might be flicker free. I think the xml is parsed before any code in your activity is executed.
MrKim Well-Known Member Licensed User Longtime User Oct 1, 2014 #8 warwound said: Setting the activity attributes in the manifest xml instead of in code might be flicker free. I think the xml is parsed before any code in your activity is executed. Click to expand... You have the syntax for that? I have no clue. Upvote 0
warwound said: Setting the activity attributes in the manifest xml instead of in code might be flicker free. I think the xml is parsed before any code in your activity is executed. Click to expand... You have the syntax for that? I have no clue.
Erel B4X founder Staff member Licensed User Longtime User Oct 1, 2014 #9 See the link I posted above. Upvote 0
MrKim Well-Known Member Licensed User Longtime User Oct 2, 2014 #10 Erel, sorry, I missed that link. The manifest entry: Code: SetActivityAttribute(main, android:theme, @android:style/Theme.Translucent.NoTitleBar) was all that was necessary. Just changed 'main' to the name of my Activity. No need for a layout. Put my toastmessage in Activity_Resume Thanks once again for your help! Upvote 0
Erel, sorry, I missed that link. The manifest entry: Code: SetActivityAttribute(main, android:theme, @android:style/Theme.Translucent.NoTitleBar) was all that was necessary. Just changed 'main' to the name of my Activity. No need for a layout. Put my toastmessage in Activity_Resume Thanks once again for your help!