Книги автора: Beginning Android
Книга: Beginning Android
Step #2: Supply a Uri
Step #2: Supply a Uri
You also need to add a public static member… somewhere, containing the Uri
for each collection your content provider supports. Typically this is a public static final
Uri put on the content-provider class itself:
public static final Uri CONTENT_URI =
Uri.parse("content://com.commonsware.android.tourit.Provider/tours");
You may wish to use the same namespace for the content Uri
that you use for your Java classes, to reduce the chance of collision with others.
Похожие страницы
- Интегрированная безопасность (NT Integrated Security)
- Chapter 5 Installing and Configuring VirtualCenter 2.0
- namespace-uri()
- 7.7.2. mod_security
- Azuri (Eight19): превращение солнечной энергетики в жизнеспособный бизнес
- Step-by-Step Installation
- Choosing, Configuring, and Installing the Boot Loader
- Configuring Wireless Networks
- Configuring X
- Installing and Configuring OpenOffice.org
- Capturing Screen Images
- Configuring and Managing Print Services