Sub Activity_Resume
Tim1.Enabled = True
If DefCM.GetDevicePhysicalSize < 6 Then
Activity.SetBackgroundImage(LoadBitmap(File.DirAssets, "bg1.jpg"))
If MB.IsInitialized = False Then
MB.Initialize(Me, "MB", Colors.RGB(0, 100, 175), Colors.yellow, 28, Colors.White, 28 , Colors.RGB(51, 153, 255), 100%x, 100%y)
MB.Set_Button_Font_Size(24)
MB.SetScale(1.3)
Activity.AddView(MB.AsView, 0, 0, 100%x, 100%y)
End If
Else
If MB.IsInitialized = False Then
MB.Initialize(Me, "MB", Colors.RGB(0, 100, 175), Colors.yellow, 24, Colors.White, 20 , Colors.RGB(51, 153, 255), 100%x, 100%y)
MB.Set_Button_Font_Size(20)
MB.SetScale(1.2)
Activity.AddView(MB.AsView, 0, 0, 100%x, 100%y)
End If
If DefCM.rS.Height > DefCM.rS.Width Then
Activity.SetBackgroundImage(LoadBitmap(File.DirAssets, "bg1.jpg"))
Else
Activity.SetBackgroundImage(LoadBitmap(File.DirAssets, "bgls.jpg"))
End If
End If