Android Permissions WITHOUT Features!!???

Hi,

I did set "android.permission.ACCESS_COARSE_LOCATION",
for InnerActive Ads .....

now I saw that it automatically adds:
Features: android.hardware.location.network, android.hardware.location,

what does mean instead of 1044 Devices I only can serve 574 !!

Is there anything I don't know or how to request PERMISSION for a feature but
not automatically request that feature as a need!!??

So we could serve all devices, but only request permission for Coarse Location if
that device do offer that feature. (I think thats even basic in native Applications, where
I have to set separately what permission i need and what features I need, right?)

thx
chris

Hello Chris,

What you need to do is indicate that your Android app uses a feature, but that feature is not required. You would do this via <uses-feature> tags in the AndroidManifest.xml file as documented on the Android developer site (see the link below). This way your app can still be purchased by devices that do not have the specified feature.
http://developer.android.com/guide/topics/manifest/uses-feature-element.html

In Corona, you can add these <uses-feature> tags via the "build.settings" file as follows...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
settings =
{
   android =
   {
      usesPermissions =
      {
         "android.permission.ACCESS_COARSE_LOCATION",
      },
      usesFeatures =
      {
         {name="android.hardware.location", required=false},
         {name="android.hardware.location.network", required=false},
         {name="android.hardware.location.gps", required=false},
      }
   }
}

oh joshua!!...
thats just a great answer, even with example (hugs)
.. have to test asap :)

---
any new about the ads.init() (if its soon possible to call it several time while app is running and overwrite previous initiated network?) :)

Hi Chris,

I'm glad I could help! :)

Regarding support for calling ads.init() multiple times, this is the first I've heard of this feature request (at least me personally). Do you intend to set up your app to support both InMobi and inneractive? For what purpose? Is it because you want to switch ad networks if one of them fails to deliver ads?

If you have an existing support case for this, then can you send me the case number please... or to the forum thread where this was requested? I'll write up a feature request if it doesn't exist and it has a better shot of getting implemented if it has a good explanation why it is needed. Thanks!

Hi Joshua,

exactly. Its much better if we are able to choose what AdNetwork we use by remote.

Yes, we already have a feature request
http://developer.anscamobile.com/forum/2012/01/28/switch-ad-networks-fly

Chris

right now trying....
bit confusing, as before i had

1.
androidPermissions =
{
"android.permission.ACCESS_COARSE_LOCATION",
},

and now it is

2.
usesPermissions =
{
"android.permission.ACCESS_COARSE_LOCATION",
},

with the first AND usesFeatures =
it did not worked....

It could be helpful for the devs to have a page where that is explained better when 1 and when 2

A Forum search only brought 3 posts where usesPermissions is mentioned.

:)

views:1587 update:2012/2/7 8:40:54
corona forums © 2003-2011