Application Icon and manifest.xml

Every new android project has default application icon:

This icon can be simply replaced by your own. This is my icon:

Tutorial how to change icon: adding <application android:icon=”@drawable/ic_launcher” android:label=”@string/app_name”> to manifest.xml and saving icon.png in res/drawable

http://www.connorgarvey.com/blog/?p=97

http://www.youtube.com/watch?v=xmVGeUeS988

 

My final manifest.xml

As previously mentioned, there is some manifest.xml file. During instalation of an app you will be asked to give  your permision to do following features. All those features are set in this manifest file. By default phonegap asking us to include following code in our manifest.xml:

<uses-permission android:name=”android.permission.CAMERA” />
<uses-permission android:name=”android.permission.VIBRATE” />
<uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” />
<uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />
<uses-permission android:name=”android.permission.ACCESS_LOCATION_EXTRA_COMMANDS” />
<uses-permission android:name=”android.permission.READ_PHONE_STATE” />
<uses-permission android:name=”android.permission.INTERNET” />
<uses-permission android:name=”android.permission.RECEIVE_SMS” />
<uses-permission android:name=”android.permission.RECORD_AUDIO” />
<uses-permission android:name=”android.permission.RECORD_VIDEO” />
<uses-permission android:name=”android.permission.MODIFY_AUDIO_SETTINGS” />
<uses-permission android:name=”android.permission.READ_CONTACTS” />
<uses-permission android:name=”android.permission.WRITE_CONTACTS” />
<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” />
<uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” />
<uses-permission android:name=”android.permission.GET_ACCOUNTS” />
<uses-permission android:name=”android.permission.BROADCAST_STICKY” />
<uses-feature android:name=”android.hardware.camera” />
<uses-feature android:name=”android.hardware.camera.autofocus” />

But as we know, we do not need most of that. Our application uses only camera API and local storage. Internet connection also isn’t required as all css and js files are installed withing application. So our final permission we ask for,  is only to mantain camera and save those images on our phone. Asking for permission to mantain/modify contacts, recieve messages and so on looks suspicious when application doesn’t include none of those features.

Everything we need is:

<uses-permission android:name=”android.permission.CAMERA” />

<uses-feature android:name=”android.hardware.camera” />

<uses-feature android:name=”android.hardware.camera.autofocus” />

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: