I would assume that there is an additional check on the app that there is a
map key for it on the phone that is not present in the emulator. Try it with
a map key and see what happens on the phone.
Ludwig

2008/12/10 joshbeck <[EMAIL PROTECTED]>

>
> 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