对于NavigationDrawer我创建了一个活动MASTER(并且有许多扩展Master.java的java文件) 但也有ExamList.java扩展了Master。
现在ExamList有一个SearchView ...但不知何故Master和ExamsList的主题不能一起工作(因为当ExamList扩展ActionBarActivity时,它工作正常,但是在扩展Master ...错误发生时)
AndroidManifest(此处仅提及相关行):
CREATE EXTERNAL TABLE IF NOT EXISTS client_reporting.campaign_web_events_export
....
stored as textfile location '${EXPORTDIR}/campaign_web_events';
insert overwrite table client_reporting.campaign_web_events_export
EXPORTDIR
(发生错误的行...) Master.java中的相关行:
<?xml version="1.0" encoding="utf-8"?>
ExamsList.java中的相关行
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<android:uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<android:uses-permission android:name="android.permission.READ_PHONE_STATE" />
<android:uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light.DarkActionBar">
<!--android:theme="@android:style/Theme.Holo.Light" >-->
<activity
android:name=".SplashScreen"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Exams_List"
android:label="@string/title_activity_exams__list"
android:theme="@style/Base.Theme.AppCompat.Light">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:resource="@xml/searchable"
android:value=".SearchResult2" />
</activity>
<activity
android:name=".Custom_List"
android:label="@string/title_activity_custom__list" >
</activity>
<service android:name=".ScheduleService" />
<service android:name=".NotifyService" />
<activity
android:name=".Master"
android:label="@string/title_activity_master" >
</activity>
</application>