如何使用维基百科的API中的android [英] How to use Wikipedia api in android
问题描述
我正在开发一个应用程序来获得位置名称,然后把它变成一个使用GoogleMap,并显示该位置的wiki页面。我绑搜索,但有一些PhoneGap的Android应用程序。
I'm developing an app to get Location name then put it into a googlemap and display that location wiki page . I tied to search but There is some phonegap android app .
我的问题是:是否有Android原生应用程序,以获取和搜索信息的维基API?以及如何实现的呢?
My question is : Is there any Wiki API for android native app to get and search information ? and how to implement it ?
推荐答案
我做了谷歌搜索维基API,它把我带到这里:
I did a Google search for wiki API and it brought me here:
http://www.mediawiki.org/wiki/API:Main_page
这是不是专门针对Android,但它应该能够为你工作。 举个例子:
It is not specifically for android but it should be able to work for you. An example:
<一个href="http://en.wikipedia.org/w/api.php?format=json&action=query&titles=API&prop=revisions&rvprop=content" rel="nofollow">http://en.wikipedia.org/w/api.php?format=json&action=query&titles=API&prop=revisions&rvprop=content
这篇关于如何使用维基百科的API中的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!