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. HoriztonalSlider - Indicator type thingy-ma-bob?

Hello,

Sorry for my lack of technical terminology when referring to this, but
I can't figure out what it's called! I've built a custom view for a
horizontal slider as described in the following URL: 
http://www.helloandroid.com/node/250

This works great, but I'd like to show the user an actual 'indicator'
of where they're pressing. For example, when you change the screen's
brightness level, you get a nice little handle to grab on to.

What is this thing called, and how can I implement it into this view?

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~

2. Where are the changelogs?

The OTA updates are being pushed, but where can we find out what
they're doing?  Is the community left to guess?

--~--~---------~--~----~------------~-------~--~----~

3. Hey Google, do this!

4. WifiManager issues

5. Extending call logs?

6. Google Market Download Numbers

7. is there a way to disable the GSM(phone) part of the phone only?