(No WRAP, but B4A)
I've been in a new challenge. I reworked a little release published by
@JordiCP. Find
Here
He entered the Java code taken by GitHub (see
https://github.com/henrychuangtw/Android-ChatHead) and wrapped it with "#IF JAVA" inside a B4A module.
With his permission I extended a bit of the B4A code and retouched the Java code (for that little I remember Java) and I realized one thing I longed for: A flying button that always stands out even on other Apps On the Desktop.
I hope that's what I'm excited about how I was excited about me.
FloatingStandOut
Author: Star-Dust
Version: 0.06
- FloatingStandOut
Fields:
- ActiveService As Boolean
- stick_to_border As Boolean
- half_stick_to_border As Boolean
- WhiteCircle As Boolean
- PathImage As String
- NameFileImage As String
- HeightImage As Int
- WidthImage As Int
- x As Int
- y As Int
Methods:
- process_globals As String
- SetEvent (EventName As String) As String
SetEvent("FL")
Sub FL_OnClick(X as int, Y as int)
Sub FL_OnDoubleClick(X as int, Y as int)
Sub FL_OnLongClick(X as int, Y as int)
Sub FL_OnMove(X as int, Y as int)
- SetImageBitmap(img As Bitmap)
' Change image
- SetStartActivity (OnClick As Boolean, OnDoubleClick As Boolean, OnLongClick As Boolean) As String
- SetStopFloating (OnClick As Boolean, OnDoubleClick As Boolean, OnLongClick As Boolean) As String
- Start (Me_CallBack As Object) As String
Es. Start(Me,Application.PackageName)
- Stop As String
- SpecialPermission
Methods:
- GetPermission As Boolean ' Verify special permission - SDK 23+
- SDK_Version As int ' Get SDK version
- OpenSettingPermission ' Opening setting permission panel
- ActivatePermissionResumable ' Check the permissions, open the setting panel if there are no permissions.
Use resumable sub, then return control to the app while waiting for the setting result
N.B. Don't forget ADD to Manifest
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>