Skip to content

Most visited

Recently visited

navigation
RuntimePermissions / res / values /

strings.xml

1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="ok">OK</string>
4
    <string name="contacts_string">Total number of contacts: %1$,d\nFirst contact:<b>%2$s</b></string>
5
    <string name="contacts_none">No contacts stored on device.</string>
6
    <string name="contacts_empty">Contacts not loaded.</string>
7
    <string name="add_contact">Add a contact</string>
8
    <string name="show_contact">Show first contact</string>
9
    <string name="contacts_intro">This fragment demonstrates access to the contact database on the device.\n
10
            Clicking \"Add a contact\" adds a new contact named "__DUMMY ENTRY" directly into the database.\n
11
    Clicking \"Show first contact\" accesses the contact database to display the name of the first contact.</string>
12
    <string name="camera_unavailable"><b>Camera could not be opened.</b>\nThis occurs when the camera is not available (for example it is already in use) or if the system has denied access (for example when camera access has been disabled).</string>
13
    <string name="back">Back</string>
14
    <string name="show_camera">Show camera preview</string>
15
    <string name="show_contacts">Show and add contacts</string>
16
    <string name="main_introduction">Click the buttons below to show a camera preview or access the contacts database.\nNote that the contacts option is only available on Android M to illustrate the use of optional, M-only permissions that are not requested on lower SDK platforms.</string>
17
    <string name="permision_available_camera">Camera Permission has been granted. Preview can now be opened.</string>
18
    <string name="permision_available_contacts">Contacts Permissions have been granted. Contacts screen can now be opened.</string>
19
    <string name="permissions_not_granted">Permissions were not granted.</string>
20
    <string name="permission_camera_rationale">Camera permission is needed to show the camera preview.</string>
21
    <string name="permission_contacts_rationale">Contacts permissions are needed to demonstrate access.</string>
22
</resources>
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)