Dropbox Sync Library

GMan

Well-Known Member
Licensed User
Longtime User
No, that depends not on the IDE - its a "pure" permission problem
 

MaFu

Well-Known Member
Licensed User
Longtime User
Problem is:
If it has READONLY Permission on Server (as described on this Thred), the compiler says Access Denied.
If the File has READ&WRITE Permission, the Compiler deletes the File and Directory values\strings.xml.
How can I compile and keep this data?
If the file have NETWORK write permission, it sholdn't be a problem to set the FILE readonly attribute.
 

GMan

Well-Known Member
Licensed User
Longtime User
Thats right, but AFAIK he wrote about a company server where he didnt has full access to and cant change that, too.
Furthermore I can't get the file "value/string.xml" readonly permissions, it's on our companies fileserver, I didn't have permissions to change the permisssions. After compiling the files will be deleted.
 

Steini1980

Active Member
Licensed User
Longtime User
I'm using the NETWORK Permissions, the FILE attribute will be ignored on the Fileserver.
Furthermore there's no Attribute on Folder level, so it delete Folder and File while compiling.
 

Steini1980

Active Member
Licensed User
Longtime User
Hi Erel,

I have upgraded B4A to 3.80, now I can add ressources. But I got the following errors:

  • If I Add the Ressources Folder inside my Project Ressources Folder:
    G:\DATEN\Software\MDE\Objects\res\values

    I got the Error Message while compiling and the Folder will be deleted anyway:
    Generating R file. Error
    ERROR: resource directory 'G:\DATEN\Software\MDE\Objects\res\values' does not exist

  • If I Add the Ressources Folder outside my Project Folder:
    D:\AndroidApps\values

    The Compilers keeps the Folder untouched, but I got this Error:
    Generating R file. Error
    invalid resource directory name: D:\AndroidApps\values/strings.xml


 

GMan

Well-Known Member
Licensed User
Longtime User
Must they be set as READONLY ?

And did you have a look at the "\" "/" in
D:\AndroidApps\values/strings.xml
 

Steini1980

Active Member
Licensed User
Longtime User
On Network Volume G:\ the READONLY property will be ignored.

On Local Volume (outside Project folder), it adds "/strings.xml" automatically to the Path.
If used Project Property to add the following Path: #AdditionalRes: D:\AndroidApps\values
 

Steini1980

Active Member
Licensed User
Longtime User
Thanks, compiling is now possible.
If I open the Activity, I get now the following Error:

** Activity (datainterchange) Create, isFirst = true **
java.lang.NoSuchMethodError: no static method with name='reportCrash' signature='()V' in class Lcom/dropbox/sync/android/NativeLib;
at com.dropbox.sync.android.NativeLib.nativeClassInit(Native Method)
at com.dropbox.sync.android.NativeLib.<clinit>(NativeLib.java:27)
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 b4a.dms.poellath.datainterchange._activity_create(datainterchange.java:346)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at b4a.dms.poellath.datainterchange.afterFirstLayout(datainterchange.java:98)
at b4a.dms.poellath.datainterchange.access$100(datainterchange.java:16)
at b4a.dms.poellath.datainterchange$WaitForLayout.run(datainterchange.java:76)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5414)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
at dalvik.system.NativeStart.main(Native Method)
 

Steini1980

Active Member
Licensed User
Longtime User
Yes, I forgot to upgrade the dropbox-sync-sdk-android.jar file too.

After Upgrading I get next error:
android.content.res.Resources$NotFoundException: String resource ID #0x0
at android.content.res.Resources.getText(Resources.java:1068)
at android.content.res.Resources.getString(Resources.java:1162)
at android.content.Context.getString(Context.java:340)
at com.dropbox.sync.android.DbxAccountManager.validateAppContext(DbxAccountManager.java:622)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:203)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:170)
at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:117)
at anywheresoftware.b4a.dropbox.DbxAccountManagerWrapper.Initialize(DbxAccountManagerWrapper.java:53)
at b4a.dms.poellath.datainterchange._activity_create(datainterchange.java:349)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at b4a.dms.xxx.datainterchange.afterFirstLayout(datainterchange.java:98)
at b4a.dms.xxx.datainterchange.access$100(datainterchange.java:16)
at b4a.dms.xxx.datainterchange$WaitForLayout.run(datainterchange.java:76)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5414)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
at dalvik.system.NativeStart.main(Native Method)

First installation and usage of Dropbox Sync was so easy, I can't understand why does the upgrade makes so much trouble...
 

Steini1980

Active Member
Licensed User
Longtime User
Meanwhile I updated to B4A V3.80, copied the Projektsource to local HDD Volume (instead of Network ressource) and created the resourcefile as described, but I get the same error.

Unbenannt.png
 
Top