Android application permission [duplicate]

2

I created an application in eclipse for android, when I install it on mobile phone it does not give permission, in case it was an APK for web radio streaming, on Samsung devices it works 100%, but in motorola they do not work.

When you install a whatsapp application at the time of installing it, you have some questions asking for permission. So here comes my question, how to put this code in my APK for when to open it ask the same questions before I start using it?

Thanks in advance for the help.

    
asked by anonymous 19.07.2017 / 09:34

2 answers

0

You need to sign the APK for the app. See this link: link You can also follow this response: link

    
19.07.2017 / 10:39
0

Assuming you have not yet created permissions, you should go to AndroidMainfest.xml and set the permissions you want:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.app.myapp" >
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    ...
</manifest>

To know what permissions to use, see this page: Whitelist - Android

  

From Android 6.0 (API level 23), users grant permissions to applications while they are running, not when they are installed.

Maybe this is the case with your motorola, so I'd advise you to take a look at another page: Request for Runtime Permissions

I hope it helps.

    
19.07.2017 / 10:39