如何使用维基百科的API中的android [英] How to use Wikipedia api in android

查看:114
本文介绍了如何使用维基百科的API中的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序来获得位置名称,然后把它变成一个使用GoogleMap,并显示该位置的wiki页面。我绑搜索,但有一些PhoneGap的Andr​​oid应用程序。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆