yes, see here
EDIT: sorry, that solution uses some blocks, which are not avaialble in MIT App Inventor...
In a perfect App Inventor world you do not have to ask for any permission manually... before any permission is required, it should be asked for that permission automatically...
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by
Taifun.