Android Question CamEX Save Resolution

Croïd

Active Member
Licensed User
Longtime User
What solution is the possible for to save the resolution of the camera until the uninstall application?

If I completely close application, "statemanager" reinitializes "getpictures" by default !

Thank you in advance
 

Attachments

  • ResolutionCamEX.zip
    13.4 KB · Views: 197

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
'save the selected size:
File.WriteMap(File.DirInternal, "size.txt", CreateMap("width": size.Width, "height": size.Height)

'load it when you want to set the picture size:
If File.Exists(File.DirInternal, "size.txt") THen
 Dim m As Map = File.ReadMap(File.DirInternal, "size.txt")
 CamEx.SetPictureSize(m.Get("width"), m.Get("height"))
End If
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…