I'm trying to place Label1 above changing wallpapers to confirm that a bunch of unseen images aren't displayed overnight but the only time I see Label1 is after the phone wakes from a long sleep, just before it gets covered by the wallpaper.
Ok, so I managed to make an app that lets me create a List of images for the wallpaper, and changes the wallpaper at set intervals, based on using this:
Am currently using a Widget to display the counting of the images but most of the app users are not going to drag the Widget onto the desktop.
How can I set the Elevation of WallPaper so that Label1 is always visible?
I am lost in the:
Thanks in advance.
Ok, so I managed to make an app that lets me create a List of images for the wallpaper, and changes the wallpaper at set intervals, based on using this:
B4X:
Sub SetWallPaper(Bmp As Bitmap)
Dim r As Reflector
r.Target = r.RunStaticMethod("android.app.WallpaperManager", "getInstance", _
Array As Object(r.GetContext), Array As String("android.content.Context"))
r.RunMethod4("setBitmap", Array As Object(Bmp), Array As String("android.graphics.Bitmap"))
Log(" NEXT img # = " & Starter.imgCount)
Panel1.Visible = True
' Panel1.Elevation = 100dip ' not
Label3.Text = Starter.imgCount
End Sub
How can I set the Elevation of WallPaper so that Label1 is always visible?
I am lost in the:
B4X:
Sub SetElevation(v As View, e As Float)
Dim jo As JavaObject
Dim p As Phone
If p.SdkVersion >= 21 Then
jo = v ' What is v?
jo.RunMethod("setElevation", Array As Object(e))
End If
End Sub