2014년 12월 27일 토요일

how to set a text file contents to a text box using activity starter

i am able to select a file from the SD card using activity starter, now i want to view the content present inside the text file inside the text box present on the screen..
is that possible, if so how??
PLEASE REPLY ASAP, need to get this done quickly.
P.S-don't look into the bluetooth listpicker and send button..





1. you get back the path to the file in the ActivityStarter.ResultUri property, see also https://puravidaapps.com/pick.php

now remove the beginning of the result, which looks likefile:///mnt/sdcard, the path should begin with a slash and the directory of the sd card you like to read the file from, use the file component to read the file, see also the documentation http://ai2.appinventor.mit.edu/reference/components/storage.html#File

2. to go back to Screen2 you should use the close screen block, see also https://puravidaapps.com/manager.php

3. how to connect correctly using bluetooth, see screenshot


댓글 없음:

댓글 쓰기