Google Search api for Android systems

不打扰是莪最后的温柔 提交于 2019-11-29 10:29:12

问题


I'm trying to build an android app that would do a local search on google.

I know there is a Google Search API for Java, and I am able to use it for a desktop application. However, when I use the same jar file (gsearch.jar) in my android project, Some problems arise.

When I call the .localSearch() method of my gsearch.Client object, a runtime error is occurring. The error message is: "java.lang.VerifyError: gsearch.Client". This message is occurring in the Dalvik Debug Monitor log.

So what is the problem here? Can I not use the search API on the android?

More importantly, how do I do a local search from an android app? Does the android sdk have search APIs inbuilt? I could only find the Maps api, and Map search is not what I'm looking for..

Thanks for the help,

jrh


回答1:


Here a solution using a JSON call to google ajax local search without using java gsearch library.



来源:https://stackoverflow.com/questions/2499324/google-search-api-for-android-systems

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