-
Notifications
You must be signed in to change notification settings - Fork 0
ByteDAO
ali ghahremani edited this page Mar 15, 2019
·
3 revisions
make byte DAO object like
ByteDAO byteDAO = new ByteDAO(this, GRepo.Mode.LOCAL);Modes :LOCAL,EXTERNAL,CACHE
local: app privete storage (user and other apps can not access)
external: root of public storage (user and other apps can access)
cache: files in this mode will be removed by cleaner apps
for Saving:
byteDAO.Save("test", YourByteArray);for Loading:
byte[] loadedByte = byteDAO.Load("test");for removing:
byteDAO.Remove("test");for get list of saved bytes
List<File> files = byteDAO.GetAll();for remove all saved bytes:(be careful when you are using this on EXTERNAL mode)
byteDAO.RemoveAll();