Permissions on my first Android app

Discussion in 'Android App Developers' started by Natey2, Dec 29, 2010.

  1. Natey2
    Offline

    Natey2 Active Member

    Joined:
    Oct 23, 2010
    Messages:
    1,339
    Likes Received:
    4
    Trophy Points:
    38
    Any Android Developers here? :)

    I downloaded the SDK and built my first "Hello Android" console app (13.1KB .apk) using eclipse, per the docs.
    It even ran fine on my first attempt!
    :) :) :)
    Both under the emulator, and when installed on my DroidX.

    But I see that under Permissions, the app lists:
    Storage - modify/delete SD card contents
    Phone calls - read phone state and identity.

    How do I get my very simple console app to require no special permissions?

    Thanks!

    Sent from my DROIDX using DroidForums App
  2. Natey2
    Offline

    Natey2 Active Member

    Joined:
    Oct 23, 2010
    Messages:
    1,339
    Likes Received:
    4
    Trophy Points:
    38
    Anyone know how to fix this?
  3. tzcoder
    Offline

    tzcoder New Member

    Joined:
    Feb 9, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    This happens if you are targeting Android 1.5 but installing on a higher version, I suggest you target your app for 1.6 and above to get rid of the permissions. These permissions get added automatically to maintain compatibility.

    So right click on your Project select Properties > Android and change the Project build target to 1.6 or above and the perms should go away.

    Also look at your manifest file "AndroidManifest.xml" under the permissions tab, see if there is anything there.
  4. Natey2
    Offline

    Natey2 Active Member

    Joined:
    Oct 23, 2010
    Messages:
    1,339
    Likes Received:
    4
    Trophy Points:
    38
    Thanks for the tip, tzcoder!

    I added:

    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" />

    It would have probably worked with something lower than 8 too.

    Sent from my DROIDX using DroidForums App
  5. XHaZeX
    Offline

    XHaZeX New Member

    Joined:
    Mar 11, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Wat program do u use to make ur apps and stuff

    Sent from my DROIDX using DroidForums App
  6. Natey2
    Offline

    Natey2 Active Member

    Joined:
    Oct 23, 2010
    Messages:
    1,339
    Likes Received:
    4
    Trophy Points:
    38
    eclipse

    Sent from my DROIDX using DroidForums App