salut
je suis un jeune développeur android
j ai un petit probleme au niveau de l affichage de la carte pour la géolocalisation
j ai essayer plusieur tuto et je change toujours le key fourni par google
mais , l application s exécute sur l émulateur , » je suis connecter sur net » mais la carte ne s affiche plus , juste un fond avec des carreaux et une point .
j espere que vous m aidez , car c est la partie importante de mon projet .
j ai essayer plusieur tuto mais j ai toujours le même problème .
voici le log:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 04-11 19:22:33.011: W/KeyCharacterMap(421): No keyboard for id 0 04-11 19:22:33.011: W/KeyCharacterMap(421): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 04-11 19:22:36.901: D/AndroidRuntime(512): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 04-11 19:22:36.901: D/AndroidRuntime(512): CheckJNI is ON 04-11 19:22:37.231: D/AndroidRuntime(512): --- registering native functions --- 04-11 19:22:38.451: D/AndroidRuntime(512): Shutting down VM 04-11 19:22:38.451: D/dalvikvm(512): Debugger has detached; object registry had 1 entries 04-11 19:22:38.482: I/AndroidRuntime(512): NOTE: attach of thread 'Binder Thread #3' failed 04-11 19:22:39.232: D/AndroidRuntime(520): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 04-11 19:22:39.232: D/AndroidRuntime(520): CheckJNI is ON 04-11 19:22:39.471: D/AndroidRuntime(520): --- registering native functions --- 04-11 19:22:40.441: I/ActivityManager(71): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.android.map/.HelloGoogleMapActivity } 04-11 19:22:40.511: D/AndroidRuntime(520): Shutting down VM 04-11 19:22:40.551: D/dalvikvm(520): Debugger has detached; object registry had 1 entries 04-11 19:22:40.591: I/AndroidRuntime(520): NOTE: attach of thread 'Binder Thread #3' failed 04-11 19:22:40.631: D/dalvikvm(233): GC_EXPLICIT freed 605 objects / 33608 bytes in 1844ms 04-11 19:22:40.931: W/MapActivity(421): Recycling dispatcher com.google.googlenav.datarequest.DataRequestDispatcher@44f512f0 04-11 19:22:40.981: V/MapActivity(421): Recycling map object. 04-11 19:22:41.091: I/ActivityManager(71): Process com.android.mms (pid 302) has died. 04-11 19:22:41.231: I/MapActivity(421): Handling network change notification:CONNECTED 04-11 19:22:41.231: E/MapActivity(421): Couldn't get connection factory client 04-11 19:22:41.331: I/ActivityManager(71): Displayed activity com.android.map/.HelloGoogleMapActivity: 859 ms (total 859 ms) 04-11 19:22:46.630: D/dalvikvm(197): GC_EXPLICIT freed 205 objects / 9672 bytes in 241ms 04-11 19:22:53.877: D/SntpClient(71): request time failed: java.net.SocketException: Address family not supported by protocol 04-11 19:23:05.632: I/EventLogService(233): Aggregate from 1334170385512 (log), 1334170374097 (data) 04-11 19:27:53.881: D/SntpClient(71): request time failed: java.net.SocketException: Address family not supported by protocol 04-11 19:32:53.953: D/SntpClient(71): request time failed: java.net.SocketException: Address family not supported by protocol 04-11 19:37:54.001: D/SntpClient(71): request time failed: java.net.SocketException: Address family not supported by protocol 04-11 19:40:49.230: D/dalvikvm(421): GC_FOR_MALLOC freed 2833 objects / 239920 bytes in 199ms 04-11 19:40:54.561: D/dalvikvm(233): GC_EXPLICIT freed 1057 objects / 159904 bytes in 242ms 04-11 19:42:54.021: D/SntpClient(71): request time failed: java.net.SocketException: Address family not supported by protocol 04-11 19:45:05.341: D/dalvikvm(233): GC_EXPLICIT freed 1354 objects / 66120 bytes in 253ms
voici la generation du code md5:
C:\Users\USER>keytool -list -alias androiddebugkey -keystore C:\Users\USER\.andr
oid\debug.keystore -storepass android -keypass android
androiddebugkey, 3 fÚvr. 2012, PrivateKeyEntry,
Certificate fingerprint (SHA1): 18:06:0C:49:983:BF:1B:48
D:16:01:7E:43:FD:B3:
E5:65:72:98
voici le code fournie par google :
Type Keystore : JKS
Fournisseur Keystore : SUN
Votre Keystore contient 1 entrÚe(s)
androiddebugkey, 3 fÚvr. 2012, PrivateKeyEntry,
Certificate fingerprint (SHA1): 18:06:0C:49:983:BF:1B:48
D:16:01:7E:43:FD:B3:
E5:65:72:98
C:\Users\USER>
Voici votre clé :
0aA0Edhkb1b2qxC7NKlO0--IDsBAcT9potHUFOg
Voici un exemple de code xml qui vous aidera à commencer à exploiter efficacement nos outils cartographiques :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <com.google.android.maps.MapView android:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="0aA0Edhkb1b2qxC7NKlO0--IDsBAcT9potHUFOg" />
mais j ai toujours des problèmes avec l affichage de la carte , et j ai esseyer de régénérer de nouveau le key par google , ca donne toujours code md5 invalide
j en sais pas ce que je dois faire merci d avance![]()
Partager