Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Find everything you need for the Galaxy S5 and discuss it in our S5 forum!
Have you seen that OnePlus One's awesome camera?? The forum is over here!

test: Reply
 
LinkBack Thread Tools
Old April 14th, 2010, 09:44 AM   #1 (permalink)
Senior Member
Thread Author (OP)
 
mrqs's Avatar
 
Join Date: Sep 2009
Location: Suomi Finland Perkele
Posts: 1,448
 
Device(s): htc sensation nokia n8 samsung galaxy (broken - waterdamage)
Carrier: Not Provided

Thanks: 46
Thanked 92 Times in 78 Posts
Question app requires permissions i've not set

it's not far from a hello world - there's two activities, first one with a button to switch to the other one and the other with a surface view drawing a bitmap and a line based on touchscreen input

yet when i create an apk (via eclipse -> export signed application package), throw it on my sdcard and tap to install (from estrongs), it tells me the app requires two permissions:
phone calls - read phone state and identify
storage - modify/delete sd card contents

here's my manifest:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.antero.testapp1"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon"
                 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                 android:label="@string/app_name">
        <activity android:name=".Menu"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".Game"></activity>
        <SurfaceView android:name=".GameView"></SurfaceView>
    </application>
    <uses-sdk android:minSdkVersion="3" />
</manifest>

__________________
All the best bands are affiliated with Satan - Bart Simpson
mrqs is offline  
Reply With Quote
sponsored links
Old April 14th, 2010, 12:22 PM   #2 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 23
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 8 Times in 7 Posts
Default

It sounds like you need to add the permissions in you manifest file.

Here is link to manifest permissions

Manifest.permission | Android Developers

Seems like you need to add permissions in your manifest file such as

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.antero.testapp1"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:label="@string/app_name">
<activity android:name=".Menu"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Game"></activity>
<SurfaceView android:name=".GameView"></SurfaceView>
</application>
<uses-sdk android:minSdkVersion="3" />
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_ST ORAGE" />
</manifest>
jon21569 is offline  
Reply With Quote
Old April 14th, 2010, 12:49 PM   #3 (permalink)
Senior Member
Thread Author (OP)
 
mrqs's Avatar
 
Join Date: Sep 2009
Location: Suomi Finland Perkele
Posts: 1,448
 
Device(s): htc sensation nokia n8 samsung galaxy (broken - waterdamage)
Carrier: Not Provided

Thanks: 46
Thanked 92 Times in 78 Posts
Default

but i don't use any of those features
i don't want the permission, that's the whole problem - how do i request not to have a permission?

Quote:
Originally Posted by mrqs View Post
yet when i create an apk (via eclipse -> export signed application package), throw it on my sdcard and tap to install (from estrongs), it tells me the app requires two permissions:
i should have clarified that - it tells that the app requires those two permissions, just like any app from the market will tell you which permissions they require; the app installs fine and runs as expected, but i don't get why it would request those two permissions
mrqs is offline  
Reply With Quote
Old December 1st, 2010, 12:28 AM   #4 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am experiencing the same unexpected behavior. Does anyone know how to resolve this?
Thane Anthem is offline  
Reply With Quote
Old December 1st, 2010, 02:26 AM   #5 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,221
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Carrier: Not Provided

Thanks: 31
Thanked 132 Times in 100 Posts
Default

I left my brain in my other pants, but I seem to recall some story where, in conjunction with an Android update (2.0? 2.1?), apps would automatically receive certain permissions ... I don't know if these were the ones, but they might be.
__________________
Don't forget to hit the "Thanks" button when someone helps you!!!
How To Ask Questions The Smart Way
-- 010\001\111 --
KlaymenDK is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:50 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.