Problem:
-I have the simplest MapActivity known to Android. (Code Below)
-In Eclipse I run as->Android Application (G1 connected in debug
mode.)
        -Works fine. Gray Grid is displayed.
-Once I export, sign, and download it to my phone as an apk it says:
           -Install Successful!
               -The 'LAUNCH' button is grayed out. (Can't launch it.)
               -The application doesn't appear anywhere on the phone.
                -I do have '3rd Party Apps' enabled.
Any help or insight is appreciated!
Thanks,
Josh Beck

Here is my code:
----------------------
   maptest.java
----------------------

imports --ALL CORRECT--

public class maptest extends MapActivity {
        protected MapView MyMapView = null;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        MyMapView = new MapView
(this,"MyApiKeyDerivedFromKeystoreMD5");
         setContentView(MyMapView);
    }

    @Override
    protected boolean isRouteDisplayed() { return false; }
}


-----------------
   MANIFEST
----------------

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
    package="com.android.maptest">


<uses-permission android:name="android.permission.INTERNET" />


    <application android:icon="@drawable/icon" android:label="mymap">
    <uses-library android:name="com.google.android.maps" />
        <activity android:name=".maptest" android:label="mymap1">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>



Any idea why it would debug but not run when installed as an apk?

Thank you for any insight
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to