I have been able to create an *.apk file from my code, place the file in IIS, and download it onto a number of Android phones. Upon the install, the application works exactly as expected.
However, after a phone is rebooted, the application name is changed to the fully-qualifed java class name of the activity in the menu (so "MyActivity" becomes "com.mycompany.MyActivity"), and when I try to go to Menu > Settings, I get an error that causes android to force close my application.
Looking into DDMS, I see that I get an error indicating that it can not find my Preferences activity, despite the fact upon initial install, it works properly.
I'm using Eclipse on Windows XP, and have several Android devices at my disposal to test with.
Any idea what's going on?
AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.company.app"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/logo" android:label="@string/app_name"> <!--android:debuggable="true">-->
<activity android:name="com.company.app.ActivityMain"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.company.app.Preferences"
android:label="@string/app_settings">
<intent-filter>
<category android:name="android.intent.category.PREFERENCE"></category>
<action android:name="android.intent.action.MAIN"></action>
</intent-filter>
</activity>
<service android:name="com.company.app.Service"></service>
</application>
<uses-sdk android:minSdkVersion="3" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
</manifest>