Permissions on my first Android app

Natey2

Senior Member
Joined
Oct 23, 2010
Messages
1,308
Reaction score
5
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
 
OP
Natey2

Natey2

Senior Member
Joined
Oct 23, 2010
Messages
1,308
Reaction score
5
Anyone know how to fix this?
 

tzcoder

New Member
Joined
Feb 9, 2011
Messages
2
Reaction score
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.
 
OP
Natey2

Natey2

Senior Member
Joined
Oct 23, 2010
Messages
1,308
Reaction score
5
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
 

XHaZeX

New Member
Joined
Mar 11, 2011
Messages
1
Reaction score
0
Wat program do u use to make ur apps and stuff

Sent from my DROIDX using DroidForums App
 
OP
Natey2

Natey2

Senior Member
Joined
Oct 23, 2010
Messages
1,308
Reaction score
5
Wat program do u use to make ur apps and stuff

Sent from my DROIDX using DroidForums App

eclipse

Sent from my DROIDX using DroidForums App
 
Top