How to use Wikipedia api in android [closed]

若如初见. 提交于 2019-12-24 03:03:21

问题


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 .

My question is : Is there any Wiki API for android native app to get and search information ? and how to implement it ?


回答1:


I did a Google search for wiki API and it brought me here:

http://www.mediawiki.org/wiki/API:Main_page

It is not specifically for android but it should be able to work for you. An example:

http://en.wikipedia.org/w/api.php?format=json&action=query&titles=API&prop=revisions&rvprop=content




回答2:


If you can not find a usable api, you can use JSoup to parse wikipedia and return relevant information or you can build a url based on user's input and implement a webview



来源:https://stackoverflow.com/questions/21034759/how-to-use-wikipedia-api-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!