Autore Topic: Real3D SDK con Basic4Android  (Letto 848 volte)

Zate

  • Visitatore
Real3D SDK con Basic4Android
« il: 08 Luglio 2011, 20:18:29 CEST »
0
Premetto che di xml non so nulla.

Ho fatto un giochino molto semplice con Basic4Android il quale crea automaticamente il file AndroidManifest.xml, eccolo qui:
Codice (XML): [Seleziona]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="zate.zanzar.killer"
     android:versionCode="1"
     android:versionName=""
          android:installLocation="internalOnly">
      <uses-sdk android:minSdkVersion="4" />
      <supports-screens
         android:largeScreens="true"
         android:normalScreens="true"
         android:smallScreens="true"
         android:anyDensity="true"/>
    <application android:icon="@drawable/icon" android:label="Zanzar Killer">
       
        <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".main"
                 android:label="Zanzar Killer" android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name="menù" android:label="Menù" android:screenOrientation="portrait"></activity>
<activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name="tempo" android:label="Tempo" android:screenOrientation="portrait"></activity>


    </application>
       

</manifest>

Come scritto qui bisogna
"Add“<uses-feature android:name="android.hardware.real3d.barrier.landscape"/>to AndroidManifest.xml" e "Add “<uses-library android:name="com.android.real3d" />“ to AndroidManifest.xml.". Quindi modificando AndroidManifest:
Codice (XML): [Seleziona]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="zate.zanzar.killer"
     android:versionCode="1"
     android:versionName=""
<uses-feature android:name="android.hardware.real3d.barrier.landscape"/>
<uses-library android:name="com.android.real3d" />
          android:installLocation="internalOnly">
      <uses-sdk android:minSdkVersion="4" />
      <supports-screens
         android:largeScreens="true"
         android:normalScreens="true"
         android:smallScreens="true"
         android:anyDensity="true"/>
    <application android:icon="@drawable/icon" android:label="Zanzar Killer">
       
        <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".main"
                 android:label="Zanzar Killer" android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name="menù" android:label="Menù" android:screenOrientation="portrait"></activity>
<activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name="tempo" android:label="Tempo" android:screenOrientation="portrait"></activity>


    </application>
       

</manifest>
Modifico AndroidManifest in sola lettura (in modo che basic4android non lo sostituisca) ma quando apro l'emulatore non cambia niente.
Basic4Android è compatibile con Real3D SDK? Se sì, come faccio?