Hi.
I'm using a Samsung Tab E with Android 4.4.4.
I'm making some tests sharing files between Android and Windows using the DonManfred's library and the example found here:
and other code found here:
My example is attached.
I have no problems if, in Debug Mode, I copy a file from Windows to Android or viceversa, or I try to delete a file on Windows from my Android device.
Problems comes when I'm in Release Mode.
When I'm performing the sub lvFiles_ItemClick ( with the execution of the smbclient.Copy) or the BtnnCopy_Click (with the execution of the smbclient.Copy2) the stop of the app is obtained and the Logs write:
When I'm performing the lvFiles_ItemLongClick (with the execution of the smbclient.delete) the stop of the app is obtained and the Logs write:
Someone can help me to fix this problem?
Thanks a Lot to everyone.
I'm using a Samsung Tab E with Android 4.4.4.
I'm making some tests sharing files between Android and Windows using the DonManfred's library and the example found here:
jcifs-ng SMB-Client (SMB2)
Foreword: I do have nearly zero knowledge about SMB-Protocol. I know Windowsshares and how to access them. But my knowledge about the Different Protocolversions is really low. About two weeks ago someone contacted me and asked me to write a wrapper for a SMB Library because the available SMB...
www.b4x.com
jcifs-ng SMB-Client
Have been playing with "DonManfred's" library with some success. So far I have been able to read and list files but to create a file using SMB is a different story. Does anyone have sample code that I can start with? Lars
www.b4x.com
My example is attached.
I have no problems if, in Debug Mode, I copy a file from Windows to Android or viceversa, or I try to delete a file on Windows from my Android device.
Problems comes when I'm in Release Mode.
When I'm performing the sub lvFiles_ItemClick ( with the execution of the smbclient.Copy) or the BtnnCopy_Click (with the execution of the smbclient.Copy2) the stop of the app is obtained and the Logs write:
java.lang.Exception: Sub smbclient_copyprogress was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:202)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5590)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
When I'm performing the lvFiles_ItemLongClick (with the execution of the smbclient.delete) the stop of the app is obtained and the Logs write:
java.lang.Exception: Sub smbclient_delete was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:202)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5590)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
Someone can help me to fix this problem?
Thanks a Lot to everyone.