オープンソースのtodoアプリをメインアプリに統合しようとしています。私はtodoアプリをライブラリプロジェクトとして作成し、マニュアルに記載されているようにmanifest.xmlを統合しました...しかし、1つの問題に直面しています。
私のライブラリプロジェクトマニフェストファイルでは、
<application android:name=".TodoApplication" android:icon="@drawable/todotxt_touch_icon" >
すでにアプリケーション名を持っているので、これをメインのマニフェストファイルに統合するにはどうすればよいですか...ライブラリプロジェクトのアクティビティを統合しましたが、この行を統合できず、そのために機能しません...
ライブラリプロジェクトのmanifest.xmlを見つけてください。
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.todotxt.todotxttouch"
android:versionName="0.7" android:versionCode="21"
xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Warning 'is lower than the project target API level' should be ok -->
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application android:name=".TodoApplication" android:icon="@drawable/todotxt_touch_icon"
android:label="@string/app_label" android:debuggable="true">
<uses-configuration></uses-configuration>
<supports-screens android:largeScreens="true"
android:normalScreens="true" android:smallScreens="true"
android:resizeable="true" android:anyDensity="true" />
<activity android:name=".LoginScreen" android:label="@string/app_label"
android:theme="@android:style/Theme.NoTitleBar"
android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Filter" android:label="Filter"
android:theme="@android:style/Theme.NoTitleBar" />
<activity android:name=".Preferences" android:label="@string/set_preferences" />
<activity android:name=".AddTask" android:label="@string/addtask"
android:theme="@android:style/Theme.NoTitleBar"
android:configChanges="orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity-alias android:name=".AddTaskShortcut"
android:targetActivity=".AddTask" android:label="@string/shortcut_addtask_name">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity-alias>
<activity-alias android:name=".AddTaskShare"
android:targetActivity=".AddTask" android:label="@string/share_addtask_name">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity-alias>
<activity android:name=".HelpActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity android:name=".TodoTxtTouch" android:theme="@android:style/Theme.NoTitleBar"
android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<!-- Task list widget -->
<receiver android:name=".TodoWidgetProvider" android:label="@string/app_label">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<intent-filter>
<action android:name="com.todotxt.todotxttouch.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/todo_widget_provider" />
</receiver>
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
</manifest>
私が立ち往生している主な部分は、アプリケーション名の部分です....ライブラリプロジェクトのアプリケーション名はすでにアプリケーション名を持っているので、メインのアプリマニフェストに統合するにはどうすればよいですか...その部分で立ち往生しています実行時エラーをスローするだけなので、機能しません。
ライブラリプロジェクトのすべてのアクティビティを、メインのアプリマニフェストファイルの完全なパッケージ名と統合しました。誰でも私が間違っているところを案内してくれます...