** Activity (main) Create, isFirst = true **
main_activity_create (java line: 244)
java.lang.NoClassDefFoundError: com.dropbox.sync.android.DbxAccountManager
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:53)
at b4a.example.dropbox.main._activity_create(main.java:244)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.dropbox.main.afterFirstLayout(main.java:89)
at b4a.example.dropbox.main.access$100(main.java:16)
at b4a.example.dropbox.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Dim r As Reflector
r.Target = DbxManager 'DbxAccountManager object
Dim managerJO As JavaObject = r.GetField("manager")
Log(managerJO.RunMethod("hasLinkedAccount", null))
'after AccountReadyEvent
Dim fileSystemJO As JavaObject = r.GetField("fileSystem")
Dim cacheSize As Long = 0
fileSystemJO.RunMethod("setMaxFileCacheSize", Array(cacheSize))
Dim r As Reflector
r.Target = miscsubs.DbxManager 'DbxAccountManager object
Dim managerJO As JavaObject = r.GetField("manager")
Log("haslinked " & managerJO.RunMethod("hasLinkedAccount", Null))
Account Ready: true
Cannot get methods of class: com.dropbox.sync.android.DbxAccountManager, disabling cache.
java.lang.NullPointerException
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:323)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:97)
at eu.sitediary.client.showdbxsync._dbxmanager_accountready(showdbxsync.java:453)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA$3.run(BA.java:320)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
Account Ready: true
Cannot get methods of class: com.dropbox.sync.android.DbxAccountManager, disabling cache.
java.lang.RuntimeException: Method: hasLinkedAccount not found in: com.dropbox.sync.android.DbxAccountManager
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:346)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:97)
at eu.sitediary.client.showdbxsync._dbxmanager_accountready(showdbxsync.java:453)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA$3.run(BA.java:320)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: Method: hasLinkedAccount not found in: com.dropbox.sync.android.DbxAccountManager
Dim r As Reflector
r.Target = manager 'DbxAccountManager object
r.Target = r.GetField("manager")
Log(r.RunMethod("hasLinkedAccount"))
Dim r As Reflector
r.Target = DbxManager 'DbxAccountManager object
r.Target = r.GetField("fileSystem")
r.Target = r.RunMethod("getSyncStatus")
Log("Background Sync running is " & r.RunMethod("anyInProgress"))
'after AccountReadyEvent
Dim fileSystemJO As JavaObject = r.GetField("fileSystem")
Dim cacheSize As Long = 0
fileSystemJO.RunMethod("setMaxFileCacheSize", Array(cacheSize))
When AutoSync is set to true, a check is done each time with Dropbox to make sure you get the most recent file. If you are not getting it then there is a problem somewhere else.
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?