0
在我的應用程序中,我必須編輯設備中的一些文本文件,並且必須將其上傳到服務器。Android - 編輯文件並上傳到服務器
所以我用
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File(fileName);
intent.setDataAndType(Uri.fromFile(file), "text/plain");
getActivity().startActivity(intent);
現在的問題使用默認的編輯在設備中,如果文件被修改我必須將文件上傳到服務器,同時從默認編輯回來。
是否有任何最好的和推薦的方式來獲取文件的狀態,同時從默認編輯器回到應用程序。