viniciusfreitas
Lurker
Hi!
I have a R.raw.file, and there a important data there, but sometimes i need to update this data and could not find an way to do this.
I tried FileOutputStream and other way. Like below.
String value = "123456"
buffer = value.getBytes();
this.getResources().openRawResourceFd(R.raw.file).createOutputStream().write(buffer);
But I got a Bad File Number exception.
Anyone knows an way to update R.raw.file content?
thanks
I have a R.raw.file, and there a important data there, but sometimes i need to update this data and could not find an way to do this.
I tried FileOutputStream and other way. Like below.
String value = "123456"
buffer = value.getBytes();
this.getResources().openRawResourceFd(R.raw.file).createOutputStream().write(buffer);
But I got a Bad File Number exception.
Anyone knows an way to update R.raw.file content?
thanks