Use Google search by Image uploading an image from gallery - android

I'm trying to create an Android application to recognize an image by Google images search. I want that a user provides an image to Google (by uploading it from the gallery) and Google returns the web page with the best guess for the loaded image.
I would open the google images search page (https://www.google.it/imghp?hl=it&tab=wi&ei=ZzCGWIW9EcyuswHu7KroDA&ved=0EKouCBYoAQ) inside of my activity.
But, in this page, in order to see the camera icon next to the search bar that lets you upload images, you must set your browser with the "pc view".
So how can I open in my activity this page directly in "view PC" mode? In addition there is a way to directly execute the image search using Google image search without opening the associated page but through an http request?
I am also interested in different approaches to the problem.
Thanks in advance.

To open the page in PC mode, you could set the user agent to that of a desktop browser
webview.getSettings().setUserAgentString("DESKTOP_USERAGENT");
An alternative would be to send the image to Chrome and allow the user to perform the reverse image search using the built-in menu, but that is no longer a native solution.

Related

Is it possible to have a chrome extension on android chrome?

I've been searching but all I can find is a reference to download another browser called yandex and install the chrome extensions I have on that.
I want to create an app that uses a chrome extension in android to allow the user to download images and store them in a folder.
E.g. My app: the user will search google images and each image that the user views, an icon will appear top right on the image which provides the user with a menu to download to a specific folder.
But the only extensions I've been able to download are for desktop.
Can I achieve what I want with my app?

Google Custom Search API on Android - search by uploading image file?

In my app, I would like to take the photo, and then upload it to the search engine API and receive JSON/XML with the search result, so the user can choose the most matching option.
Is it possible to use image search by uploading the image file (like you would do that in regular google image search), instead of providing the image URL?

How can i download images from Google Play developer console

I'm about to create a different version of my existing app. I need hi-res icon, featured graphic, and screenshots of previous application. How can I download them from Google Play developer console?
You can use Google Chrome developer tools to find out the link to your apps graphic in the google play developer console.
The link to this graphic is like that: https://lh3.ggpht.com/tl0FC9sBdKWSI37JejuhKrMjlrZkZNbAJmDhaYvs6WahtRvNZC6XEiTIcyQiJ7a2QQ=h300-rw
As you can see there is "h300-rw" at the end of this link. It is the dimension of your image. If you change that for example to "h1024-rw" then you'll get a hi-res image:
https://lh3.ggpht.com/tl0FC9sBdKWSI37JejuhKrMjlrZkZNbAJmDhaYvs6WahtRvNZC6XEiTIcyQiJ7a2QQ=h1024-rw
Follow these simple steps:
1) goto your App Page in Google Play
2) copy the Image Address of the image you needed https://lh3.googleusercontent.com/GFLeShFxtwkDtDWMFVeieXc3nXlNwggWmh99TfwgrMANc4L3ZD2T-EEWaBbeQmjQWw=s180-rw
3) paste it on the browser and remove =s180-rw
4) download thats it.
You can download Google Play Console images in .png by following these steps :
Right click on the image and click on "Open image" (on Chrome) or "Display image "(on Firefox)
Add =h1204 at the end of the url if you want to get the image with 1204 height (you can set any value you want)
Add =w1204 at the end of the url if you want to get the image with 1204 width (you can set any value you want)
Now, you can now download the image by saving it (you will see that the format will be .PNG)
Visit the app page on your computer, tap on the screenshot you wish to download.
Right click on the image and click Open Image in new Tab.
Switch to new tab and again right click on the image and choose Save Image As....
Jquery selector is best option to extract images from play store and app store as both stores allow web crawl.
U can find a unique class to identify image section and then crawl it.
Currently it won't show the '=s180-rw' anymore. However you can just append anything like '=s1024-rw' after the URL and it will show the 1024 image.

Select multiple images from device's gallery in Hybrid application

I am developing an application for Android I want the button in the .html file to show the device's native gallery (in my case is android) which user can select multiple images and present it's thumbnails in the html page.
I already watch the video in This Website and I still get confusing.
Thank you for all suggestion and solutions.
Ps. I found the solution of select multiple images Here but I am not sure how to use it. ;(
Unfortunately, this is not possible with the current Gallery application of Android.
Within the Gallery application, you can select multiple photos and you can share them using SEND_MULTIPLE Intent. But that is different.
When you select photo from your application, that is called PICKER. And PICKER Intent does not support multiple selection.

How can I change the way the google docs website displays a PDF in Android?

I am using the following link inside a WebView to show a pdf file in my android application:
http://docs.google.com/gview?embedded=true&url=http://174.136.1.35/dev/android/1_android-Survey-Report-for-pdf-1200-x-768.pdf
This works, and displays the PDF, as you can see in the attached images. The problem I have is that
I want to disable the zoom controls, and the desktop and download
links.
Is this possible, and if so, how?
You are basically opening a web view and loading it with a webpage from the internet, specifically Google Docs. Without some special functionality built into the website, there isn't going to be way to get rid of the extra buttons, links, and labels you're seeing. Instead of this, you could download the PDF that your link is pointing to as a PDF and try to display that directly. There is a stack overflow question on this topic

Categories

Resources