P palmzac Active Member Licensed User Longtime User Mar 24, 2014 #1 Hi, I have a problem. I want to make my app to intent target & upload image to my server. ExtrasToString.ToLowerCase of intent is bundle[{android.intent.extra.stream=content://media/external/images/media/657}] . How to convert it to file location ? like File.Copy2( File.OpenInput(File.DirRootExternal,"2.jpg"), out1) Thank for your help ! Palmzac
Hi, I have a problem. I want to make my app to intent target & upload image to my server. ExtrasToString.ToLowerCase of intent is bundle[{android.intent.extra.stream=content://media/external/images/media/657}] . How to convert it to file location ? like File.Copy2( File.OpenInput(File.DirRootExternal,"2.jpg"), out1) Thank for your help ! Palmzac
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2014 #2 Try this: Code: Copy Dim jo As JavaObject = Intent Dim uriString As String = jo.RunMethod("getParcelableExtra", Array As Object("android.intent.extra.stream")) Now pass this string to this sub: http://www.b4x.com/android/forum/threads/using-photos-from-the-phone.37444/#post-221367 Upvote 0
Try this: Code: Copy Dim jo As JavaObject = Intent Dim uriString As String = jo.RunMethod("getParcelableExtra", Array As Object("android.intent.extra.stream")) Now pass this string to this sub: http://www.b4x.com/android/forum/threads/using-photos-from-the-phone.37444/#post-221367
P palmzac Active Member Licensed User Longtime User Mar 24, 2014 #3 Erel, It's work fine. Thank you ! Upvote 0