开发者

Do Intents supersede permissions when it comes access?

I am trying to submit an app, and when I spot the .apk it tells me this:

This apk requests 0 permissions that users will be warned about

but, in the Manifest, I made a note to include:

 <uses-permission android:name="android.permission.CAMERA" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Is this simply because I launch my camera in an Intent, rather than a contentView, etc...? Or is this a problem I need to look int开发者_开发技巧o before I submit?

THanks

Edit --

The app works on my phone when I remove them, so maybe they aren't needed? I was told a while back that launching the camera with an intent did not require a permission in the manifest, but I wanted to double check. I feel like the permission tags are correct, and I placed them in different parts of the manifest, and deleted them, but the app still ran - is it an issue I don't need to worry about then?


Assuming you are able to actually do these things (that your permissions tags are working) It may be that they are "normal" rather than "dangerous" permissions so they don't show up as prominent warnings during installation unless you click the thing at the bottom to see all used permissions.

http://developer.android.com/guide/topics/manifest/permission-element.html

Edit:

At least on my phone though, using the camera does show up on the first warnings screen.

Do the functions you requested the permissions to enable actually work? If they are working, what happens if you take the corresponding permissions out of the manifest (ie, if they still work, this would indicate that you didn't put them in the right place, and that you don't need them because your intent is causing the work to be done by some other application which already has permission and does not check a permission on the intent sender)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜