Google maps api key jar signing on G1...fail

by Clay » Fri, 02 Jan 2009 13:33:54 GMT


Sponsored Links
 ello Everyone,

I am here with my hat in hand begging for a clue. So have tried to
follow the directions for release keys and jar signing to the letter,
and I am still in fail mode. Here are my references:

http://code.google.com/android/toolbox/apis/mapkey.html

http://code.google.com/android/devel/sign-publish.html

http://code.google.com/android/maps-api-signup.html


Here is the cookbook:

1. ant release.

Buildfile: C:\home\cgraham\projects\noi-momentarynow-android\build.xml
dirs:
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\home\cgraham\projects\noi-momentarynow-
android\bin\classes
resource-src:
[echo] Generating R.java / Manifest.java from the resources...
aidl:
[echo] Compiling aidl files into Java classes...
compile:
[javac] Compiling 143 source files to C:\home\cgraham\projects\noi-
momentarynow-android\bin\classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
dex:
[echo] Converting compiled files and external libraries into bin/
classes.dex...
package-res:
package-res-no-assets:
[echo] Packaging resources...
release:
[echo] Packaging bin/noi-momentarynow-android-unsigned.apk for
release...
[echo] It will need to be signed with jarsigner before being
published.
BUILD SUCCESSFUL
Total time: 7 seconds

2. sign the unsigned jar.

2a. create the key

c:\home\cgraham\projects\noi-momentarynow-android\bin>keytool -genkey -
v -keystore momentarynow-android-release-key.keystore -alias
mn_android -keyalg RSA -validity 10000

2b. update the key for the release key supplied by google

c:\home\cgraham\projects\noi-momentarynow-android\bin>keytool -list -
keystore momentarynow-android-release-key.keystore
Enter keystore password:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map_layout">
<RelativeLayout android:id="@+id/map_display_layout"
android:layout_width="wrap_content" android:layout_height="92px"
android:visibility="gone">
</RelativeLayout>
<RelativeLayout android:id="@+id/map_layout"
android:layout_below="@+id/map_display_layout"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<!-- release -->
<com.google.android.maps.MapView
android:layout_below="@id/map_display_layout"
android:id="@+id/maplocator_activity"
android:enabled="true"
android:clickable="true"

android:apiKey="SUPPLIEDBYGOOGLE-basedonMD5-from-momentarynow-
android-release-key.keystore"
android:layout_height="fill_parent"
android:layout_width="fill_parent"/>

</RelativeLayout>
</RelativeLayout>

c:\home\cgraham\projects\noi-momentarynow-android\bin>copy noi-
momentarynow-android-unsigned.apk noi-mo



Google maps api key jar signing on G1...fail

by Clay » Sat, 03 Jan 2009 01:11:57 GMT


 ne more thing... I did install a version of the APK on the phone with
a different key, but I fully uninstalled before installing this
version. could there be a G1 keystore issue?

Clay

On Jan 1, 9:33pm, Clay <claytan...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Google maps api key jar signing on G1...fail

by Clay » Sat, 03 Jan 2009 02:52:09 GMT


 o for some unknown reason this resolved itself, I did a clean sweep
and uninstall, regened the keys and followed the above cookbook
identically, and it now works

at least I created an ok tutorial.

Clay


On Jan 2, 9:11am, Clay <claytan...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Ads in apps... How to successfully generate a larger revenue?

Please re-post on Android Discuss:

2. Google Search

I have searched the forum and found other people in the past looking
to do local searches but I didn't see an answer.  I also found the
documentation for the AJAX api but I'm not sure if that is what I
need.  I'm a little lost and I'm not sure exactly where to begin.  An
example would be great.

I have a ListView and I need to show business names in it. The names
will come from a Google search based off of category and locale (i.e.
Monuments+MyCity+MyState.)  Idealy the results will come back in XML,
but I can handle anything else if necessary.

Any help is appreciated.

-- 

3. How to create "unsynced" contacts and insert it in the system PhoneBook with Android 2.1?

4. Starting Text to Speech activity

5. Emma code coverage for UI events on device

6. FourCC code for PixelFormat YCbCr_422_SP?

7. Good Cannels to Generate Larger Revenue