Hi all
I am completly new to windev, webdev & windev mobile and would appreciate some help on a few things to do with files. I have completed my first windev mobile android project but now need to get it to work on my mobile. I use text files to read/write data but they are refered to using full windows paths in the simulation. What paths should I be using for Android?
27th March 2011 - Update
I have not managed to resolve this part yet!
RC_pfile is string = "
C:\My Mobile Projects\Recycling\win_rc_main.txt"
RC_pcdfile is string = "
C:\My Mobile Projects\Recycling\cpcodes.csv"
27th March 2011 - Update
Reading Files From Web Site - WinDev Mobile - Resolved
I have found a way to do this. properly, I've used dots (.) instead of spaces as the editor seems to remove them on the posts/
IF InTestMode() THEN
........//Depends on your firewalls but I would recommend using Proxy function
........Proxy("corpproxy",80,"[username]","[password]")
END
//HTM_WEB is an HTML Contol on the page with visibility set to false
RC_pcdmfile is string = "[
samplewebsite.co.uk];
RC_pcdmfile2 is string = "[
samplewebsite.co.uk];
ResStart is boolean
RS_HttpError is string = ""
ResStart = HTTPRequest(RC_pcdmfile)
IF ResStart = True THEN
........RC_htmel = HTTPGetResult()
........ IF Length(RC_htmel) = 0 THEN
................RS_HttpError = HTTPGetResult(httpHeader)
................ Error(RS_HttpError)
........ END
ELSE
.........//Only if HTTPRequest Fails
.........//Please note this has to be an HTML file only is cannot be a csv
.........HTM_WEB = RC_pcdmfile2
.........//The info is required to refresh the display and populate HTM_WEB
.........info("Click to Start Service")
.........// HTM_WEB is an HTML control on the main page with visibility set to false
.........RC_htmel = HTM_WEB..DisplayedValue
.........// Finally got the contents
.........Info(RC_htmel)
END
Your help would still be really appreciated on how to sort out the first part (paths on android).
Edited 4 time(s). Last edit at 03/27/2012 10:56AM by cccict.