Need help in developing Android App

Discussion in 'Mobile Phones and Media Players' started by Kiaku, Aug 14, 2013.

  1. Kiaku
    OP

    Kiaku GBAtemp Regular

    Member
    273
    38
    Mar 22, 2010
    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:
    Warning: Spoilers inside!

    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.