Android .apk应用程序安装成功,但在我的Android模拟器中没有包含此应用程序

时间:2015-02-06 09:24:18

标签: c++ android-ndk sdl-2

[2015-02-05 19:20:51 - dsadas] Android Launch!    
[2015-02-05 19:20:52 - dsadas] adb is running normally.    
[2015-02-05 19:20:53 - dsadas] No Launcher activity found!    
[2015-02-05 19:20:54 - dsadas] The launch will only sync the application package on the device!    
[2015-02-05 19:20:55 - dsadas] Performing sync    Waiting for HOME ('android.process.acore') to be launched...    
[2015-02-05 19:21:40 - dsadas] Uploading MyFirstGame.apk onto device 'emulator-5554'    
[2015-02-05 19:22:10 - dsadas] Installing MyFirstGame.apk...    
[2015-02-05 19:22:30 - dsadas] Success!    
[2015-02-05 19:22:35 - dsadas] \MyFirstGame\bin\MyFirstGame.apk installed on device    
[2015-02-05 19:22:37 - dsadas] Done!

My Project是在SDL和C ++上编写的,我使用NDK进行eclipse。我没有错误,当我在手机上启动apk文件时,它正在安装成功,但屏幕上没有游戏,打开按钮被禁用..

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.libsdl.app"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="21" />


    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" android:hasCode="true">
        <activity android:label="@string/app_name"         android:name="org.libsdl.app.SDLActivity" android:screenOrientation="landscape">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intend.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name="android.app.lib_MyFirstGame"></activity>
    </application>

</manifest>

0 个答案:

没有答案