Wednesday, August 4, 2010

[android-developers] Re: Where permissions has to declare in a application.

in AndroidMenifest.xml

Example:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="one.some"
android:versionCode="1"
android:versionName="1.0">

<uses-permission
android:name="android.permission.READ_CONTACTS" />


<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".Some"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
</manifest>

Regards
Sarwar Erfan


On Aug 4, 4:23 pm, Sohan badaya <sohan.bad...@gmail.com> wrote:
> Hi All,
>
> I have a doubt
>
> For using Phone contact we have to set permission in menifest file
>
>   <uses-permission android:name="android.permission.READ_CONTACTS" />
>   <uses-permission android:name="android.permission.WRITE_CONTACTS" />
>
> My doubt is where(in which file) it is written in Contact Application
> that you have to set these permissions.
> because i want to make a sample application and i want if anyone want
> to get data from my application, have to get some permission.
>
> Please let me know that where we plan which permission has to get by
> other application to get data from a application.
>
> Thanks,
> Sohan Badaya

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate