Dropbox Sync Library

After updating to the new lib version my new app crashes without error when calling the dropbox-init parts.

In the other app (other account) with the old api etc. all works fine
 
Solved, my fault - didnt update the sdk-file to new version, too
 
@TommyE28 have you tried to call Sync and then wait for SyncCompleted before downloading the file?

Now i have call sync, but not event will raise. Have wait over 3 minutes.

Sub sync4drpb_click
manager.Sync
End Sub

'Event-Code
Sub Manager_SyncCompleted (Success As Boolean)
If Success Then
Log("Sync complete")
Else
ToastMessageShow("Sync fail!",False)
End If
End Sub

On both devices the same effekt.
I use 2 devices: Archos 101XS(Android 4.1), Nexus 4(Android 4.4.2)
 
I created an app with Permission Type = text files. But it would not allow text files with .tab extension to be downloaded. It allowed only txt and csv files. There is nowhere in the settings or anywhere else where it allows you to edit the permission type. Do I have to delete the app and create a new one with permision Type= all files so I can download all types of files?
Thank you
 
I am new to this environment, now sure what to do with the Manifest information

I assume it is to be added/inserting into the AndroidManifest in the Basic4Android\MyApp\Objects

Code: Copy
** Activity (main) Create, isFirst = true **


Error occurred on line: 29 (main)


mainafterFirstLayout (java line: 98)
java.lang.IllegalStateException: Required Sync API Activity isn't included in application manifest: com.dropbox.client2.android.AuthActivity, com.dropbox.sync.android.DbxAuthActivity
    at com.dropbox.sync.android.DbxAccountManager.validateAppContext(DbxAccountManager.java:483)
    at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:143)
    at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:115)
    at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:48)
    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:520)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:235)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:174)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
    at b4a.example.main.afterFirstLayout(main.java:98)
    at b4a.example.main.access$100(main.java:16)
    at b4a.example.main$WaitForLayout.run(main.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:5059)
    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:792)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
    at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
 
Last edited:
Almost got it, now the program prompts for my email and password
I enter them and tap "Send"

I have verified my developer codes

Then I get:
LogCat connected to: 0146DE220400D00A
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main


** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (userform) Create, isFirst = true **
** Activity (userform) Resume **
Starting Job: Token
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
An error occurred:
(Line: 34) End Sub
java.lang.Exception: Sub service_start signature does not match expected signature.
public static anywheresoftware.b4a.pc.RemoteObject anywheresoftware.b4a.samples.dropbox.httputilsservice_subs_0._service_start() throws java.lang.Exception
 
java.lang.Exception: Sub service_start signature does not match expected signature.
THIS line contains the error - wrong password
 
I am looking into the root of my account.

It shows 5 of the files/folders there...
 
Back
Top