Hi, Ignore my previous reply. I misunderstood your question. If you want other applications to require permission to access your application, then you need to use the <permission> tag in menifest. http://developer.android.com/reference/android/R.styleable.html#AndroidManifestPermission
Also, look at this page: http://developer.android.com/guide/topics/security/security.html Go to the heading "Declaring and Enforcing Permissions" Regards Sarwar Erfan On Aug 4, 4:30 pm, Sarwar Erfan <[email protected]> wrote: > 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

