1. Kiaku

    OP Kiaku GBAtemp Regular
    Member

    Joined:
    Mar 22, 2010
    Messages:
    273
    Country:
    United States
    So I started trying out developing apps for Android. After multiple installations, building, customizing, etc, I was finally able to create an APK file of my app. Owning an Android phone myself (Samsung Captivate SGH i897), I installed the game into it through usb debugging mode and eclipse. The app runs and works!!...Well, not really. Here's the problem:
    [​IMG]
    This is a screenshot of how my game looks on my phone...Most noticeably, the app does not fill the entire screen (vertically). The app's screen is fixed downward...somehow. In addition, weird stretched and blurred images surround the screen when an animation that takes up the whole screen is played...

    [​IMG]
    And this is how the game should actually look like. It runs perfectly fine using moai.exe's OpenGL simulator (It's a program that comes with the moai-sdk that I'm using to develop my app)

    Searching various forums and googling for solutions for hours haven't helped me so far... I found out that the file "androidmanifest.xml" controls most of the app screen elements, but I don't know what I'm doing wrong. Below is the codes to my androidmanifest.xml:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
     
    <manifest
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:installLocation="auto"
        android:versionCode="1"
        android:versionName="1.0"
        package="com.gamefromscratch.moai">
       
        <application
            android:icon="@drawable/icon"
            android:debuggable="true"
            android:enabled="true"
            android:persistent="false"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
       
            <!-- Moai -->
            <activity
                android:name="MoaiActivity"
                android:label="@string/app_name"
                android:screenOrientation= "portrait"
                android:launchMode="singleTask"
                android:scaleType="center"
                android:configChanges="keyboard|keyboardHidden|orientation">
               
               
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
           
            <activity
                android:name="com.ziplinegames.moai.MoaiMoviePlayer"
                android:label="@string/app_name"
                android:screenOrientation="portrait"
                android:configChanges="keyboardHidden|orientation"
                android:theme="@android:style/Theme.NoTitleBar">
            </activity>
           
            <receiver android:name="com.ziplinegames.moai.MoaiLocalNotificationReceiver"></receiver>
           
            <!-- EXTERNAL DECLARATIONS: Placeholder (DO NOT MOVE OR REMOVE) -->
           
        </application>
       
        <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
     
        <!-- Moai -->
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.INTERNET" />
           
        <!-- EXTERNAL PERMISSIONS: Placeholder (DO NOT MOVE OR REMOVE) -->
       
        <supports-screens
                android:smallScreens="false"
                android:normalScreens="true"
                android:largeScreens="true"
                android:xlargeScreens="false"
                android:anyDensity="false" android:resizeable="false"/>
       
        <uses-configuration android:reqTouchScreen="finger" />
        <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="true" />
    </manifest>  
    I've been using moai-sdk along with rapanui-sdk with lua coding and successfully imported the project into eclipse. The app runs fine with moai's app simulator, but on a real device, it bugs up.
    Can someone who's developed an android app or knows how to fix this tell me what I need to add, change, or do in order to fix the graphical problems? I don't want to stop coding my app just because the screen doesn't fill... I can't tell if it's a problem within my app's source or if it's the options I need to fiddle with within eclipse. Thanks for your support.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - developing, Android,