3
je suis en train de mettre en œuvre la carte de gdata api dans mon projet android .. mais je suis incapable de résoudre cette erreurGdata carte Api dans Android
"java.lang.VerifyError: com.google.gdata.client.media.MediaService"
J'utilise toutes les bibliothèques nécessaires pour mettre en œuvre apis Gdata
MapsService myService = new MapsService("createMap"); error is coming due to this line
est-il la moindre idée ..
thnx ..
je suis en train de suivre Code
//
**MapsService myService = new MapsService("createMap");**
try {
// Replace username and password with your authentication credentials
myService.setUserCredentials("username","password");
createMap(myService);
} catch(AuthenticationException e) {
System.out.println("Authentication Exception");
} catch(ServiceException e) {
System.out.println("Service Exception: " + e.getMessage());
} catch(IOException e) {
System.out.println("I/O Exception");
}
}
public static MapEntry createMap(MapsService myService)
throws ServiceException, IOException {
// Replace the following URL with your metafeed's POST (Edit) URL
// Replace userID with appropriate values for your map
final URL editUrl = new URL("http://maps.google.com/maps/feeds/maps/userID/full");
MapFeed resultFeed = myService.getFeed(editUrl, MapFeed.class);
URL mapUrl = new URL(resultFeed.getEntryPostLink().getHref());
// Create a MapEntry object
MapEntry myEntry = new MapEntry();
myEntry.setTitle(new PlainTextConstruct("Demo Map"));
myEntry.setSummary(new PlainTextConstruct("Summary"));
myEntry.getAuthors().add(new Person("My Name", null, "username"));
return myService.insert(mapUrl, myEntry);
}
supporte-t gdata dans Android ??? –
Avez-vous résolu le problème? J'ai le même problème. –