W
W
whoami?root root_toor2016-03-31 14:16:52
Java
whoami?root root_toor, 2016-03-31 14:16:52

Java/Android Loading images from JSON Custom Google Search?

Task: to make an application for android that loads pictures using links from a Json file received through the Custom Search Google API: https://www.googleapis.com/customsearch/v1?key=KEY...
I made my own key, code, JSON given by reference.
As an example, I found an almost 1 in 1 ready-made solution:
https://github.com/Kirchhoff-/Custom-Google-Search
sorry, but the author does not get in touch. I tried to understand the program, but I got only a general idea of ​​​​how it works (there is little experience with android).
The problem is that when running the app it shows this:
https://cloud.githubusercontent.com/assets/1084996...
but it should show query results:
https://cloud.githubusercontent.com/assets/1084996...
and the request itself can, as I understand it, be changed in the actionbar.
The inscriptions themselves are contained in the strings.xml file, i.e. the application initially shows that there are no requests, an empty search. And in fact, it simply does not start at all, no graphics, nothing! And it should!
If there are people working with android, please help! How to make the program work?! Or maybe someone has seen similar examples to figure it out ... I would be very happy to help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
whoami?root root_toor, 2016-04-01
@1q2w1q2w

I don’t know how it should work (it doesn’t respond to swipes or text input, I hope the author will still clarify the situation, well, or someone will figure it out).
But if someone is interested, I inserted a crutch:
getActivity().onSearchRequested(); to the onPageSelected() method.
Now, at least you can enter a request and then everything works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question