I’m taking sms backup using this
public void smsbackup() throws IOException
{
InputStream in = new FileInputStream("/data/data/com.android.providers.telephony/databases/mmssms.db");
File dir = new File("/mnt/sdcard/bcfile");
dir.mkdirs();
OutputStream output = new FileOutputStream("/data/data/com.android.app/files/");
byte[] buffer = new byte[1024];
int length;
while ((length = in.read(buffer))>0)
{
output.write(buffer, 0, length);
}
output.flush();
output.close();
in.close();
}
It throws an exception like permission denied I don’t know what permission will i give. Anyone tell me? Thanks in Advance.
You will need
because of
I wonder if you can ever access:
/data/data/com.android.providers.telephony/databases/mmssms.db