this works:
@Taifun since this file://
is not needed, please remove it from source code, so it can accept full path and absulute path.
EDIT:
In fact, this TaifunFile.GetUri is not necessary.
this also works (if the image path starts with "file:///"):
![image](https://community.appinventor.mit.edu/uploads/default/original/3X/9/f/9ff156d3a1d7f32361e32e6194bcfdf7cafa0330.png)
1 Like
Alex123
24
OMG this solution finally works! Thanks @Kevinkun appreciate it
![image](https://community.appinventor.mit.edu/uploads/default/original/3X/a/2/a290624292922514b9c7d8c02b0121d2e6077cc3.png)
this is my fault to direct you to use another extension to change path to Uri.
in fact this contentUri accept full path.
1 Like
Alex123
26
@Kevinkun FYI, this works on AI Companion Emulator. However, it doesn't work after being exported into .APK file. Any suggestions on this? ![:sweat_smile: :sweat_smile:](https://community.appinventor.mit.edu/images/emoji/google/sweat_smile.png?v=10)
![image](https://community.appinventor.mit.edu/uploads/default/original/3X/d/f/df9ee18fb24af5ff0ddd161ff4bfc11d13951a08.png)
Taifun
27
What is the path to the taken image?
Use additionally a label in the After Picture event to display it...
Taifun
It's working on my phone after install the apk.
My phone is Android 11. What's yours? Maybe you need to manually ask reading permission.
Alex123
30
I am using bluestacks v5.10.210.1003 N32
. Tried using an android device which also has the same issue too
andriod version? and have you asked reading permission?
Taifun
32
Looks like an older device...
The data subfolder is strange...
Taifun
Alex123
33
android 14. And also, how do i ask reading permission?
Alex123
35
Does it mean it does not support the latest new version? ![:sweat: :sweat:](https://community.appinventor.mit.edu/images/emoji/google/sweat.png?v=10)
android 14 is out? are you sure ?
Alex123
37
My bad is Android 11... Want to see your reaction ![:joy: :joy:](https://community.appinventor.mit.edu/images/emoji/google/joy.png?v=10)
Alex123
38
Jokes aside, I still keep on getting this error
![image](https://community.appinventor.mit.edu/uploads/default/original/3X/2/0/208fe69df4c6679497e923b8152eb4cc6a14a547.png)
not sure where this path "/data/data/appinventer.ai....." come from.
Do you have other blocks?
Alex123
40
This is all the blocks I have