Page 1 of 1

Activity Starter Configuration for App Inventor

Posted: Fri Jun 10, 2011 7:16 pm
by nariza
Good Afternoon :

I would like to ask you a question, I'm not a programmer and I'm having a really hard time figuring this out. I'm learning to program in google app inventor and I want to be able to upload an image I take with the camera using the activity starter to call andftp and upload the last picture taken, I saw on your web page that you have all the intents but are to be used when programing using code, could please guide me how to set up App inventor to call andftp to upload an image taken with the camera. Thanks.

Re: Activity Starter Configuration for App Inventor

Posted: Mon Jun 13, 2011 8:06 pm
by support
I think you need to define an ActivityStarter as explained at:
http://appinventor.googlelabs.com/learn ... arter.html

To browse FTP folder, you have to fill in:
Action: android.intent.action.VIEW
dataURI: ftp://yourftpserver.com
and additional info such as:
ftp_username
yourlogin

All actions, and additional info are defined at:
http://www.lysesoft.com/products/andftp/intent.html

Re: Activity Starter Configuration for App Inventor

Posted: Mon Jun 13, 2011 11:25 pm
by nariza
Hi :

I want to make work the intent "Upload files from SDCard to FTP server:" I've been trying the following configuration, the Uploading window from andFTP pops up, but it does not do anything, the progress bar stays in 0.

Action: android.intent.action.PICK
ActivityPackage:
ActivityClass:
DataType :vnd.android.cursor.dir/lysesoft.andftp.uri
DataUri: ftp://myserver.com
ExtraKey:
ExtraValue:
ResultName:

If I want to upload for example file:///sdcard/Pictures/app_inventor_1308006244419.jpg I don't know were to put it in the activity starter. Any additional suggestions. Thanks!

Nico

Re: Activity Starter Configuration for App Inventor

Posted: Sun Jun 19, 2011 7:26 pm
by support
You may try to run AndFTP first with simple browse feature. Once it works, then for upload:

The folder and file name to upload have to be declared in extra keys such as:
Action: android.intent.action.PICK
ActivityPackage:
ActivityClass:
DataType :vnd.android.cursor.dir/lysesoft.andftp.uri
DataUri: ftp://myserver.com
ExtraKey1: command_type
ExtraValue1: upload
ExtraKey2: local_file1
ExtraValue2: /sdcard/Pictures/app_inventor_1308006244419.jpg

Re: Activity Starter Configuration for App Inventor

Posted: Wed Jun 22, 2011 12:09 am
by webrunner
...declared in extra keys?

Question: how to create
ExtraKey2
ExtraValue2
in App Inventor?


thx

Re: Activity Starter Configuration for App Inventor

Posted: Sun Jun 26, 2011 9:15 pm
by support
I don't know how the planned to pass multiple key/value. Ask to App Inventor support.