Auf den SDK-Milestone M3-RC37a vom 14.12.2007 folgt nun SDK-M5-RC14. Das neue Android-Upgrade beinhaltet Änderungen der Developer-Tools und der Android-API (siehe RELEASENOTES und API-Änderungen). Es gibt u.a. einige Neuerungen für Manifest-Dateien (AndroidManifest.xml). Z.B.
vorher (M3-RC37a):
<intent-filter>
<action android:value="android.intent.action.INSERT"/>
<category android:value=
"android.intent.category.DEFAULT"/>
<type android:value=
"vnd.android.cursor.dir/vnd.google.note"/>
</intent-filter>
nachher (M5-RC14):
<intent-filter>
<action android:name="android.intent.action.INSERT"/>
<category android:name=
"android.intent.category.DEFAULT"/>
<data android:mimeType=
"vnd.android.cursor.dir/vnd.google.note"/>
</intent-filter>Auch wird innerhalb von XML-Layoutdateien das Attribut id durch android:id ersetzt.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id=id="@+id/layout"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button1"/>
...
</LinearLayout>Die SDK-Upgrade-Prozedur wird auf der Seite Upgrading the SDK beschrieben.
Keine Kommentare:
Kommentar veröffentlichen