Permissions Example Needed

trope

Member
I am new to the program, and ready to dive in.

I have decided to write an application which accesses CONTACTS.

Could someone point me in the right direction - a link, tutorial, etc - so I can learn how to access contacts.

I have searched the forum, and found numerous examples of code, but I think I am missing the part where I have to tell the compiler to ASK the user for permission ( or something to that effect ).

Thank you.
 

NJDude

Expert
Licensed User
Longtime User
The permissions are added automatically by B4A and the libraries, in this case, if you use a contacts library, this library will add all the necessary permissions to the AndroidManifest.xml.
 
Upvote 0

trope

Member
:sign0104:

Cool, thanks!

One more question, as I am developing and learning, I am sharing my final APK with a friend across country. Do I need to send the manifest file along with the APK? The reason I ask, is because when I sent my HELLO WORLD apk he said it threw an error during install.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
The APK is all you need, that is the app file.

Regarding the error, what error did your friend get? does he allows NON MARKET apps to be installed on his phone? (you can enable/disable that under Settings -> Applications)
 
Last edited:
Upvote 0
Top