1
백업 애플리케이션을 개발했습니다. 내가미디어 파일을 백업 할 때 문제가 있습니까?
Backup bu = new Backup(this);
bu.runBackup(Contacts.People.CONTENT_URI);
bu.runBackup(Settings.System.CONTENT_URI);
bu.runBackup(Browser.SEARCHES_URI);
같은 호스트에 의해 이러한 백업을 수행 할 자, 수는 contacts, settings and browser
에 대한 백업 소요 내가
int count=0;
String file = uri.getHost() +"-"+ System.currentTimeMillis();
Cursor cursor = cr.query(uri, null, null, null, null);
count = cursorToCSV(cursor, file);
cursor.close();
String msg = String.format("Backed up %d records to %s file", count, file);
Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
return count;
같은 백업 클래스에서 사용 gethost를 방법을했습니다 나는 미디어 파일에 대한 백업을하고 싶습니다 images, videos, musics
그렇게 할 수 있습니까? 어떻게하면 좋을까요? 누구든지 대체 방법이 무엇인지 알 수는 있습니다. 난 내 자신의 코딩으로 이런 짓을 한