(2017/07/01)
Based on this wrapper, I also built some strange things on it, with different purposes. I am not working on most of them anymore, so I decided to share.
This one is funny. Similar to the video but with added elements
It combines several overlay elements and brings them into life simulating GIF animation (based on some previously converted GIF files to PNG) and sequencing them with a timer. In this version there are some xmas stars, a Santa and a spider skull
I publish it here since the thread already exists and is related to it... As always, perhaps the code style is not the best in the world to learn from, but I have tried to comment a bit and delete unneeded things so that it will be more easy to follow.
Important: in most recent android versions, you must grant directly to the app the permission to show elements on top of others (it is not enough with the declared manifest permissions). So, if nothing appears on your screen you should check it.
Hope you enjoy it
-----------------------------------
I'm happy to share this chatHead wrapper made with B4A and Inline Java. The original project is taken from here . I wrapped and modified it "a bit" for my purposes.
These views are not "normal" views in the sense that they don't need to be in an activity, but are added diectly to the WindowManager.
This allows for special uses, such as pop-up notifications which the user can interact with or simply discard. But also special care must be taken.
The attached zip is itself a small demo. All the "important" things are in the inline Java part in "oService", and how are they created and destroyed. The rest is just for the demo itself
Possibly many things can be improved, such as adding animations (I think in this case they are a bit tricky and still struggling with them)
Important: These views are not automatically destroyed when you destroy your app. Please pay attention at Service_Destroy
Also: the sound example in Files folder is from http://www.freesfx.co.uk/. It is free, but if you use it, they need to be mentioned
Enjoy!
(I am preparing the drop option as in facebook messenger, but will take a while )
Based on this wrapper, I also built some strange things on it, with different purposes. I am not working on most of them anymore, so I decided to share.
This one is funny. Similar to the video but with added elements
I publish it here since the thread already exists and is related to it... As always, perhaps the code style is not the best in the world to learn from, but I have tried to comment a bit and delete unneeded things so that it will be more easy to follow.
Important: in most recent android versions, you must grant directly to the app the permission to show elements on top of others (it is not enough with the declared manifest permissions). So, if nothing appears on your screen you should check it.
Hope you enjoy it
-----------------------------------
I'm happy to share this chatHead wrapper made with B4A and Inline Java. The original project is taken from here . I wrapped and modified it "a bit" for my purposes.
These views are not "normal" views in the sense that they don't need to be in an activity, but are added diectly to the WindowManager.
This allows for special uses, such as pop-up notifications which the user can interact with or simply discard. But also special care must be taken.
The attached zip is itself a small demo. All the "important" things are in the inline Java part in "oService", and how are they created and destroyed. The rest is just for the demo itself
Possibly many things can be improved, such as adding animations (I think in this case they are a bit tricky and still struggling with them)
Important: These views are not automatically destroyed when you destroy your app. Please pay attention at Service_Destroy
Also: the sound example in Files folder is from http://www.freesfx.co.uk/. It is free, but if you use it, they need to be mentioned
Enjoy!
(I am preparing the drop option as in facebook messenger, but will take a while )
Attachments
Last edited: