Android应用程序组件Content Provider应用实例(5)
接下来再来看程序的配置文件AndroidManifest.xml:
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="shy.luo.article"
- android:versionCode="1"
- android:versionName="1.0">
- <application android:icon="@drawable/icon" android:label="@string/app_name">
- <activity android:name=".MainActivity"
- android:label="@string/app_name">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity
- android:name=".ArticleActivity"
- android:label="@string/article">
- </activity>
- </application>
- </manifest>
- LOCAL_PATH:= $(call my-dir)
- include $(CLEAR_VARS)
- LOCAL_MODULE_TAGS := optional
- LOCAL_STATIC_JAVA_LIBRARIES := libArticlesProvider
- LOCAL_SRC_FILES := $(call all-subdir-java-files)
- LOCAL_PACKAGE_NAME := Article
- include $(BUILD_PACKAGE)
- ###################################################
- include $(CLEAR_VARS)
- LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libArticlesProvider:./libs/ArticlesProvider.jar
- include $(BUILD_MULTI_PREBUILT)
- USER-NAME@MACHINE-NAME:~/Android$ mmm packages/experimental/Article
- USER-NAME@MACHINE-NAME:~/Android$ make snod
-
USER-NAME@MACHINE-NAME:~/Android$ emulator

