I haven't used intents or data streams before, so this is a little new to me. Basically I want to be able to share pictures from gallery via FTP. I have managed to get my app to show in the Share list on gallery and it loads the desired activity when I share. I have logged the starting intent and it's extras and here is an example
gives
The above example had 2 files selected.
So, my problem is how can I get a filename and ideally path so I can use for ftp
B4X:
Dim sInt As Intent
sInt = Activity.GetStartingIntent
Log(sInt.ExtrasToString)
Log(sInt.GetData)
B4X:
** Activity (shareftp) Create, isFirst = true **
** Activity (shareftp) Resume **
(Intent) Intent { act=android.intent.action.SEND_MULTIPLE typ=image/* flg=0x1 cmp=barxdroid.fotop/.shareftp (has clip) (has extras) }
Bundle[{android.intent.extra.STREAM=[content://media/external/images/media/6616, content://media/external/images/media/6615], exit_on_sent=true}]
null
The above example had 2 files selected.
So, my problem is how can I get a filename and ideally path so I can use for ftp