Dropbox Sync Library

DonManfred

Expert
Licensed User
Longtime User

Andrick

New Member
Licensed User
Longtime User
Download this file too and extract the xml and jar from this archive and put them into the additional libs folder
Thanks a million for your fast reaction !
I got it working !, going to play with the dropbox sync now
 

Debugz

Member
Licensed User
Longtime User
Hi Erel,
in german we said: "to ask holes in the stomach".
it's like to bombard somebody with questions.
But my b4a Project grows quickly in the last year and is a matter of the heart.
It should be crownded with your DropboxSync Library.
My App works well wenn i navigate in my own Dropbox Apps/My_App.
I have no Problem with the up and download.
But when a Friend of mine startet the App on his Smartphone, he sees the folder My_App, but without content.
I thought the keys will handle the Permissions.
Who is my error in reasoning.
Thanks and regards
Norbert
 

Debugz

Member
Licensed User
Longtime User
no only on my account.
when a user say
manager.LinkAccount
he linked to my account (allow "MyEmailaddress")
i thought the keys allow the file access.
Ok, when it is an impasse, which way is it to share files on the Dropbox the other users.
 

oyvinrog

Member
Licensed User
Longtime User
hi,

LinkAccount seems to work fine, but the
manager_AccountReady event does not react when I press Button1
 

oyvinrog

Member
Licensed User
Longtime User
I resolved it. I tried to access a file having the .db extension. I had to contact Dropbox support to change the permission (they have no permission that supports accessing .db files). Afterwards, it worked
 

asmag

Member
Licensed User
Longtime User
Hi Erel!

I'm working on a project update of a sqlite database using the dropbox services but is going some errors when using the DropBox Sync Library. Here is the error:

LogCat connected to: B4A-Bridge: motorola XT1069
--------- beginning of main
running waiting messages (1)
~i:** Activity (main) Resume **
~i:** Service (service1) Destroy **
~i:** Service (service1) Create **
~i:** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
Installing file.
~i:** Activity (main) Pause, UserClosed = false **
PackageAdded: package:eek:ber.com.br.consultasaldo
** Activity (main) Create, isFirst = true **
main_activity_create (B4A line: 72)
manager.Initialize(key, secret, "manager")
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/dropbox/sync/android/DbxAccountManager;
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:53)
at ober.com.br.consultasaldo.main._activity_create(main.java:257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:165)
at ober.com.br.consultasaldo.main.afterFirstLayout(main.java:84)
at ober.com.br.consultasaldo.main.access$100(main.java:16)
at ober.com.br.consultasaldo.main$WaitForLayout.run(main.java:72)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dropbox.sync.android.DbxAccountManager" on path: DexPathList[[zip file "/data/app/ober.com.br.consultasaldo-1/base.apk"],nativeLibraryDirectories=[/data/app/ober.com.br.consultasaldo-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 16 more
Suppressed: java.lang.ClassNotFoundException: com.dropbox.sync.android.DbxAccountManager
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 17 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
~i:** Activity (main) Resume **

My device is Moto G2.

Best Regards

Abel
 

asmag

Member
Licensed User
Longtime User
Yes, I did!

Are there another version of dropbox-sync-sdk-android.jar ?

I tried to solve it another way: using the simple library application was trying to create a library to download / upload files using java package available on the dropbox site, but gives an error saying not find the com.dropbox.core package. Have you any idea?

Att. Abel
 

asmag

Member
Licensed User
Longtime User
Version 2.25

I plan to get the latest version. This version 2.25 is still being enough for me to use in my projects. For now, the projects are restricted to my company.

Att. Abel
 

asmag

Member
Licensed User
Longtime User
Thank you Erel!

As soon as possible, i will upgrade my version of B4A.

Att. Abel
 

DonManfred

Expert
Licensed User
Longtime User
Last edited:

luciano deri

Active Member
Licensed User
Longtime User
I try to do my first app with code of this tutorial, i connect at DropBox app that i had create, but after not enter in sub Manager_AccountReady.
on log file without fiter can read this
B4X:
client.cpp:79: bad_state: This app is not allowed to use the Sync API for file access.
What am I doing wrong?
 
Top