Dropbox Sync Library

wizard699

Active Member
Licensed User
Longtime User
I've a problem.
When I call managerDB.Initialize .... the app was terminate.
I've insert code in Manifest ... in /values .... but the problem remain.
Cell was an Alcatel with Android 4.1.1 and I've user 3.0 SDK-
 

wizard699

Active Member
Licensed User
Longtime User
java.lang.ExceptionInInitializerError

at com.dropbox.sync.android.CoreAccountManager.initNativeLib(CoreAccountManager.java:228)
at com.dropbox.sync.android.CoreAccountManager.<init>(CoreAccountManager.java:141)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:200)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:160)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:107)
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:53)
at in.raguso.educom.login._activity_create(login.java:330)
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 in.raguso.educom.login.afterFirstLayout(login.java:98)
at in.raguso.educom.login.access$100(login.java:16)
at in.raguso.educom.login$WaitForLayout.run(login.java:76)

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:4947)
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:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchMethodError: no method with name='<init>' signature='(J)V' in class Lcom/dropbox/sync/android/EnvExtras;
at com.dropbox.sync.android.NativeLib.nativeClassInit(Native Method)
at com.dropbox.sync.android.NativeLib.<clinit>(NativeLib.java:33)
 

wizard699

Active Member
Licensed User
Longtime User
Thaks Erel but the problem is the same. Here the log
java.lang.ExceptionInInitializerError

at com.dropbox.sync.android.CoreAccountManager.initNativeLib(CoreAccountManager.java:228)
at com.dropbox.sync.android.CoreAccountManager.<init>(CoreAccountManager.java:141)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:200)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:160)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:107)
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:53)
at in.raguso.educom.login._activity_create(login.java:343)
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 in.raguso.educom.login.afterFirstLayout(login.java:98)
at in.raguso.educom.login.access$100(login.java:16)
at in.raguso.educom.login$WaitForLayout.run(login.java:76)

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:4947)
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:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchMethodError: no method with name='<init>' signature='(J)V' in class Lcom/dropbox/sync/android/EnvExtras;
at com.dropbox.sync.android.NativeLib.nativeClassInit(Native Method)
at com.dropbox.sync.android.NativeLib.<clinit>(NativeLib.java:33)
 

wizard699

Active Member
Licensed User
Longtime User
Ok Erel thje error was removed. Now I can test all the functionality.
Thanks a lot for the support.
 

wizard699

Active Member
Licensed User
Longtime User
Only a doubt. All goes well ... first time the app have request the account name and create the structure folder Application/app_name.
Ok.
But why, entering with another telephon ... my app request a dropbox login? Key and secretkey not are used to make a automatic syn to the Application folder, without any login?
My scope is to use dropbox as a invisible repository for file that i want to download into my app, without enter account name from my app.

It's clear? .... and, It's possible?
 
Last edited:

wizard699

Active Member
Licensed User
Longtime User
Ok...seems that with dropbpx, user without app dropbox or account can't use this application area. Then, what service can I use to make a public repository with some file that app have to download? Dropbox is more simple to use for the customer that have to update files. But with this limitation dropbox not is the service that I can use. Some ideas?
 

wizard699

Active Member
Licensed User
Longtime User
I've made in this manner, and download start and finish correctly ... but the file downloaded seems to be something "wrapper" of dropbox. In fact I found that the file was an HTML file that wrap the original file that I shared on dropbox.
The "link" it's not directly the file that I shared on dropbox ...
How can I resolve???
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
All this is unclear to me. I hope the reason is not that I am becoming stupid (or worse, that I was always) :D

I state that I have never used the clouds, nor DropBox.

I have to register the app, for which I get the app key and app secret values.

At this point, will my app allow the user to manage his dropbox? Without asking the user account and pw?

If so, I can not allow two or more users to access a single dropbox, I suppose.

My purpose is to allow two or more users to manage one common file useful to synchronize their local SQLite db.

Is it achievable?


Thanks
 
Top