What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Permissions on my first Android app

Natey2

Senior Member
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
 
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.
 
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
 
Back
Top