Hello there,
Thanks for the response.
I debug using the actual device, but you are right. It probably
treats the phone as if it were the emulator in that case.
I've followed the directions and obtained an MD5 fingerprint of my
keystore.
I used the sign-up form and passed it the fingerprint in the form of
XX:XX:XX ... etc.
The form returned an api key, which I actually use in the place of
this:
MyMapView = new MapView
(this,"MyApiKeyDerivedFromKeystoreMD5");
Logcat isn't giving me any useful information that might help me
determine the
cause.
-Questions
-How can I trouble shoot my api key to be sure it is not the
root cause of the problem? (i.e. incorrect)
-Does anyone know if there really is a check against the api key that
would prevent the application from launching?
(This would mean that map activities require network access in order
to be launched?)
Thanks again,
Josh Beck
On Dec 10, 6:23 am, Ludwig <[EMAIL PROTECTED]> wrote:
> 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;
> > [EMAIL PROTECTED]
> > public void onCreate(Bundle savedInstanceState) {
> > super.onCreate(savedInstanceState);
> > MyMapView = new MapView
> > (this,"MyApiKeyDerivedFromKeystoreMD5");
> > setContentView(MyMapView);
> > }
>
> > [EMAIL PROTECTED]
> > 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
-~----------~----~----~----~------~----~------~--~---