no, the dropbox cache deletes itself, but only if I unlink from my dropbox account, but, if I do that before all files are uploaded on dropbox, maybe, no, shurelly, I can lost some of them, I asked if I can check when exactly all files are uploaded, so I can unlink my account just some seconds after asll files are upload on dropbox, and automatically, all temp files in folder data/data/mydropboxapp/tempfiles/*.* will e deleted, and more free spaces on device, If I never unlink my dropbox account, and sometime I backup them on fropbox, the files in temp folder became more and more and more, until 30/40 Mb total, and it is no good!Mean something like this ?
B4X:File.delete(Dir as String,Filename as String)
java.lang.Exception: android.content.res.Resources$NotFoundException: String resource ID #0x0
(Intent) Intent { act=android.intent.action.MAIN flg=0x20000000 cmp=b4a.example/.main }
no extras
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (mainmodule) Create **
Error occurred on line: 19 (mainmodule)
android.content.res.Resources$NotFoundException: String resource ID #0x0
at android.content.res.Resources.getText(Resources.java:230)
at android.content.res.Resources.getString(Resources.java:314)
at android.content.Context.getString(Context.java:327)
at com.dropbox.sync.android.DbxAccountManager.validateAppContext(DbxAccountManager.java:622)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:203)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:170)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:117)
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:53)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:680)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:308)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:158)
at b4a.example.mainmodule.onCreate(mainmodule.java:45)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2657)
at android.app.ActivityThread.access$1600(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5227)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
at dalvik.system.NativeStart.main(Native Method)
** Service (mainmodule) Start **
Which version of Dropbox SDK have you downloaded? This wrapper works with v2.x: https://www.dropbox.com/developers/sync/sdks/android
You can use this library from a service however LinkAccount should be called from an activity.
Error occurred on line: 197 (mainmodule)
java.lang.NullPointerException
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.getFile(DbxAccountManagerWrapper.java:147)
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.UploadFile(DbxAccountManagerWrapper.java:161)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:680)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:308)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at anywheresoftware.b4a.BA$3.run(BA.java:319)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5227)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
at dalvik.system.NativeStart.main(Native Method)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?