Android的图形页面无法正常工作无法正常、图形、页面、工作

由网友(萝莉小仙女)分享简介:这是我的命!我似乎已经做了所有我需要做的,但它只是不会工作!I seem to have done all I need to do but it just wont work!下面是我做的:-created使用密钥工具密钥库:-created a keystore using keytool:$密钥工具-ge...

这是我的命!

我似乎已经做了所有我需要做的,但它只是不会工作!

I seem to have done all I need to do but it just wont work!

下面是我做的:

-created使用密钥工具密钥库:

-created a keystore using keytool:

$密钥工具-genkey -v -keystore PADReleaseKey.keystore -alias pocket_aces_release -keyalg RSA -keysize 2048 -validity 10000

$ keytool -genkey -v -keystore PADReleaseKey.keystore -alias pocket_aces_release -keyalg RSA -keysize 2048 -validity 10000

-got从它的MD5 fingerpring和使用的:

-got the MD5 fingerpring from it and used:

$密钥工具-list -alias pocket_aces_release PADReleaseKey.keystore

$ keytool -list -alias pocket_aces_release PADReleaseKey.keystore

- 旧它来获得mapAPI键和嵌入式它在我的应用程序中:

-used it to get the mapAPI key and embedded it inside my application:

<com.google.android.maps.MapView
    android:layout_weight="1" android:id="@+id/mapview"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:apiKey="0qLwM2TNe70Ho-Y1wZiN2MqF_jFIXLc-0gwLRsw"        
    android:clickable="true"/>

导出使用Eclipse和我之前所创建的密钥库和别名签名的应用程序包。

exported a signed application package using eclipse and the keystore and alias I have created before.

利用亚行安装安装了它在我的Andr​​oid机。

installed it on my android machine using adb install.

但仍然没有地图显示!!!!我已经这样做了好几次,但它不工作...

but still no map is showing!!!! I have done this several times, but it does not work...

任何人都可以指向我什么我做错了?

can anyone point me to what am i doing wrong?

感谢。

推荐答案

当你说不图是显示你能解释一下这一点?你看到的灰色空白方块的负载?如果是这样你的API密钥那是正常的问题。

When you say "no map is showing" could you elaborate on that a little more? Are you seeing a load of grey blank squares? If so thats normally an issue with your API key.

另外,你运行它具有谷歌API的目标模拟器?我写了一个非常在获取地图工作的基本指南,它可以帮助你。

Also are you running it on an emulator that has the Google APIs target? I wrote a really basic guide on getting maps working, it may help you.

问候

阅读全文

相关推荐

最新文章