B4A Library ChatHead wrapper + GIF overlay

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
Hello, To do it with just one click, what would the java code be like, since you have it with LonCklick.
Thank you!
 

peacemaker

Expert
Licensed User
Longtime User
Great code.
Any suggestion of a text popup menu sample after clicking over the head ?
Or simpler just open an activity ?
 

Star-Dust

Expert
Licensed User
Longtime User
My library also works on Android 8.1 and does not need to be re-compiled because it already provides all the news on permiss-request.
Then using the same code the library checks the SDK version and if less than 26 does not ask for permissions, instead if it is equal to or higher than SDK 26 it asks for permissions.

but I had suggested the code you will find in the examples to open a menu after clicking the Head (floating button).
So look more at the example that the library and can help you for what you want to do
 
Last edited:

Jarek I&Q

Member
Licensed User
OK, I made it.
I don't know if I did it right, but the button is motionless now, just like I wanted it to.

I commented on that in the Java code:
B4X:
case MotionEvent.ACTION_MOVE: 
...
...
 

Ibrahim Saleh

Member
Licensed User
Longtime User
Im getting this error when trying to compile project
B4A Version: 10.0
Java Version: 8
Parsing code. (0.02s)
Building folders structure. (0.02s)
Compiling code. (0.07s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(Android Support Library)
Generating R file. (0.00s)
Compiling generated Java code. Error
javac 1.8.0_271
src\com\hover\bubble\oservice. java:856: error: cannot find symbol
WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY,//TYPE_SYSTEM_ALERT,
^
symbol: variable TYPE_APPLICATION_OVERLAY
location: class LayoutParams
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
 

JordiCP

Expert
Licensed User
Longtime User
Try changing targetSDK version to 28 or higher in the manifest file.

Which Android SDK version are you using?
 
Last edited:

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
What will this error be?
Gracias
 

Star-Dust

Expert
Licensed User
Longtime User

JordiCP

Expert
Licensed User
Longtime User
Ok, Taking your modified project as reference, I only had to change the TYPE_PHONE --> TYPE_APPLICATION_OVERLAY to make it work
Also changed the Activity buttons background, otherwise the text was not seen

Santa is back!!!
 

Attachments

  • GIF_overlay_updated.zip
    168.4 KB · Views: 227
Cookies are required to use this site. You must accept them to continue using the site. Learn more…