Sub Manager_DownloadProgress (ServerPath As String, TotalDownloaded As Long, Total As Long)
Dim lblDLSummary As label
If Total > 0 Then
lblDLSummary.Text = "Downloaded " & Round(TotalDownloaded / 1000) & "KB, Out Of " & Round(Total / 1000) & "KB"
Else
lblDLSummary.Text = "Downloaded " & Round(TotalDownloaded / 1000) & "KB"
End If
End Sub
There is no DownloadProgress event in this library. I guess that you are requesting this feature?
+1Thanks for the update Erel, I love this library -)
Prepared cache dir '/data/data/b4a.testsync/app_DropboxSyncCache/MYKEYXXXX'.
Trying to load lib /data/data/b4a.testsync/lib/libDropboxSync.so 0x4051c428
Dropbox initialized for application: MYKEYXXXX (b4a.testsync/1 DropboxSync/2.1.1 (Android; 2.3.5; HTC Desire HD armeabi-v7a; en_US))
false true
false true
Button_Click LinkAccount....
Requesting link for a Dropbox new account.
Starting activity: Intent { cmp=b4a.testsync/com.dropbox.sync.android.DbxAuthActivity (has extras) } from pid 4859
** Activity (main) Pause, UserClosed = false **
Starting activity: Intent { cmp=b4a.testsync/com.dropbox.client2.android.AuthActivity (has extras) } from pid 4859
DROPBOX_ERROR_USAGE: sync.cpp:244: This app is not allowed to use the Sync API for file access.
DROPBOX_ERROR_USAGE: sync.cpp:244: This app is not allowed to use the Sync API for file access.
saving to /data/data/b4a.testsync/app_DropboxSyncCache/MYKEYXXXX/logs/err-nouser-1396213559.txt
uploading log file /data/data/b4a.testsync/app_DropboxSyncCache/MYKEYXXXX/logs/err-nouser-1396213559.txt
java.lang.ExceptionInInitializerError
at com.dropbox.sync.android.CoreAccountManager.initNativeLib(CoreAccountManager.java:155)
at com.dropbox.sync.android.CoreAccountManager.<init>(CoreAccountManager.java:126)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:150)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:116)
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:53)
at fr.free.julienGley.SecretRecorder.main._activity_create(main.java:495)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at fr.free.julienGley.SecretRecorder.main.afterFirstLayout(main.java:98)
at fr.free.julienGley.SecretRecorder.main.access$100(main.java:16)
at fr.free.julienGley.SecretRecorder.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load DropboxSync: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:429)
at java.lang.System.loadLibrary(System.java:554)
at com.dropbox.sync.android.NativeLib.ensureLoaded(NativeLib.java:64)
at com.dropbox.sync.android.NativeLib.<clinit>(NativeLib.java:26)
... 21 more
The Sync library depends on a native library. Only the arm file is included.
The native library is not buggy. The native library for non-arm CPU is not included.
Does it exist a way to prevent the App from crashing and rather toasting a message "dropbox not supported" ?
Try
(your code)
Catch as exception
(your Error Message)
End Try