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. Favorite app reviewed thus far?

Curious as to what applications are currently scoring the highest
(especially as ~90% of them were never publicly announced). I want to
avoid any exact ratings, lists, or mentions of "bad applications" to
prevent any potential arguments. So - just the single favorite thus
far (and a description if a detailed one doesn't exist on the google
groups forums please!).

So, out of the 30 I've reviewed, my favorite has been Light Racer 3D
( http://www.youtube.com/watch?v=cpghliDfzdI ). Simple, yes, but the
art style does work, the game is very responsive, and well, just found
I was having fun. :)
--~--~---------~--~----~------------~-------~--~----~

2. Hey Google I need to know

i dont have an android phone, so i cant use the judging application. I
dont know whether my submitted app was qualified for this adc 2 first
round judging. I looked in various forums where people are discussing
and reviewing various apps in the judge application. But i didnt find
my app name there.
It is very much disappointing for me :(

Hey Google i need to know whether my app is in the race or it was
disqualified/dead before first round. If you provide a list of the
qualified entries for the first round that could be a solution.

-omnitial
--~--~---------~--~----~------------~-------~--~----~

3. onscreen keyboard on/off?

4. Get next Alarm

5. AD HOC

6. More accessibility API questions

7. ApplicationContext.java and Activity.java. Is ApplicationContext not used ?