Activity Starter Configuration for App Inventor

FTP client for Android handsets.
Post Reply
nariza
Posts: 2
Joined: Fri Jun 10, 2011 7:12 pm
AntiSpam sum: 8

Activity Starter Configuration for App Inventor

Post 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.

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: Activity Starter Configuration for App Inventor

Post 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

nariza
Posts: 2
Joined: Fri Jun 10, 2011 7:12 pm
AntiSpam sum: 8

Re: Activity Starter Configuration for App Inventor

Post 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

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: Activity Starter Configuration for App Inventor

Post 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

webrunner
Posts: 1
Joined: Tue Jun 21, 2011 11:58 pm
AntiSpam sum: 8

Re: Activity Starter Configuration for App Inventor

Post by webrunner »

...declared in extra keys?

Question: how to create
ExtraKey2
ExtraValue2
in App Inventor?


thx

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: Activity Starter Configuration for App Inventor

Post by support »

I don't know how the planned to pass multiple key/value. Ask to App Inventor support.

Post Reply