SMB Not initialized

kalarius

Active Member
Licensed User
Longtime User
hi,

I use the
follow code to read and write to a file that is into windows XP sp3 pro machine

dim SMB1 as smb

SMB1.Initialize("smb1")
SMB1.SetCredentials("User1","1234","Workgroup")

SMB1.DownloadFile("SMB://192.168.1.10/fakelos/","sms.txt","/mnt/sdcard","sms1.txt")
SMB1.ListFiles("SMB://192.168.1.10/fakelos/","*.exe")

Log(LastException)

***************
at the log writes Exception not initialized

I have write the events for downloadcompleted
but no event raized

I have edit the manifest for the permisions

and I do not know what to do
because I want to transfer the file to sdcard.
the telephone android ver is 2.2

***** I have download the paolo example (I have write the same code but it does not work too )

please advice
 

abner69

Member
Licensed User
Longtime User
Klarius,

can u please use the [CODE ]your code here [/ CODE] (no spaces) tags when posting? It makes it sooo much easier to read! also, your problem now has 3 different threads started... Use the Post Reply button here to post a reply to the question. ;)

Workgroup should be WORKGROUP if you're talking to a Win XP computer..
did you Dim SMB1 in the globals, or Activity_Create?

Please post a copy of your logs here to assist further..

...Pablo
 
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
I have use WORKGROUP and Workgroup with small and capital letters
I do the same with username and password
I have dim it to global and to activity
all have the same result

nothing
also the events does not raised
 
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
Klarius,

can u please use the [CODE ]your code here [/ CODE] (no spaces) tags when posting? It makes it sooo much easier to read! also, your problem now has 3 different threads started... Use the Post Reply button here to post a reply to the question. ;)

Workgroup should be WORKGROUP if you're talking to a Win XP computer..
did you Dim SMB1 in the globals, or Activity_Create?

Please post a copy of your logs here to assist further..

...Pablo

I post to more one thread because never reply me more than once at the thread even if I have an other question.
 
Upvote 0
Top