How do I add weblink previews like Facebook to my Android application? - android

I have googled the heck out of this but I could not find any pointers. So any help would be great.
I am trying to implement a link preview for my users in a feed stream like Facebook on an Android native app as below!!
I am looking for solutions which require least amount of data usage by the user and hence reducing loading time so that this ca be accomplished cleanly.
Do I have to store the image, title and description data on my own server??
Please HELP!

I think I have found a solution in a blog. It stores the image thumbnails in the cache. However I am worried about the memory leaks.
http://www.androidhive.info/2012/07/android-loading-image-from-url-http/
Please check this out and tell me how we can tackle memory leaks.

You could use a third-party service like ThumbnailApp, which I wrote about here for a similar question, except you would need to use the HTTP API and not the JavaScript SDK. There are also other services like ShrinkTheWeb but I'm not sure they give you the title / description.

Related

How to find all downloaded items information?

I am developing one application related to downloads.
For that i am searching.I got some examples,but these examples are not full fill my
requirement.
My requirement is getting the information about all downloaded items.
If any one know the solution,please help me
Thanks in advance
My requirement is getting the information about all downloaded items.
Fortunately, this is not possible, for obvious privacy and security reasons. Applications do not have to somehow magically make their Internet operations available for you to spy upon.

What to put in DisplayUrl in AdMob promotion?

I know it sounds and actually is stupid. I am trying to promote my app with AdMob. In the promotion form there, I put
URL: market://details?id=com.xxxx.xxxxxx.xxxxx
DisplayUrl: ????
Whatever I enter for DisplayUrl, system is giving me invalid format error.
I have read the guidelines http://helpcenter.admob.com/content/content-guidelines#displayURL but it does not help at all. Can someone help me?
UPDATE: I fed up with that option Text & Tile and went with image option with which I can upload my own image and be done with it. So much for 1 cent/click saved.
I don't know if this helps you, but I was having the exact same problem, which I might add, was very frustrating! :-P
I believe what they're looking for, for that field (which they should really explain BETTER), is they want a url to a website, that a desktop browser can go to. Like for example...
URL: market://details?id=com.xxxx.xxxxxx.xxxxx
DisplayUrl: play.google.com/store
Now please keep in mind, I tried adding both http:// and https:// and got the same
There were problems with your submission. and Invalid Display URL format. error
I know that fixed my problem! :-)
Honestly, since I'm sure at least 60% of ads are to the Google Play Store, I think they should really suggest that, or maybe give an alternative suggestion. Since they are such sticklers on the format, they should give us more guidance, and maybe an example? :-P
I hope that fixes your problem :-)
From the documentation, it would appear that the DisplayUrl is specifying the location of a html document that is to be retrieved and displayed in the ad box. Do you get a webpage at the url that you are putting in this option if you view it in a normal web browser? Also, have you given your app permission to the internet?
Updated
Also, here are the directions on adding a mobile site or Android app: http://helpcenter.admob.com/content/add-your-mobile-site-or-android-app

How can I get Android market RSS feed

Apple provides an RSS feed for their marketplace. Is there something similar for Android?
I mean something similar to http://itunes.apple.com/us/rss
I don't believe there is such a thing available for Android Market.
If you really need it, I suppose you could use pages like the following and parse the content:
https://market.android.com/details?id=apps_topselling_paid
Far from a brilliant solution, but I think it's probably one of the best available at the moment.
I was looking for this as well and found this link: http://androinica.com/2009/07/tips-follow-the-android-market-with-an-rss-reader-for-beginners/. Apparently you can do this using Androlib and Cyrket. The link contains details on how to do it.

How to Read information from an image of a card(credit,debit...)in android?

The requirement is to get information on the different types of cards such as Credit ,Debit, License, SSN, medical insurances etc.
We need to get a photo from the mobile phone then extract details of main fields (name and contact details of user, issuer’s main details if has mentioned and Card NO) and store within our application .
As i find Abby mobile ocr engine is a better solution.
But i need a open source sdk or api to resolve this problem. And also guide to do the installation on the windows xp and to do a very little example.
I searched on the internet couple of days, but could not fine a good solution.
Thanks a lot.
You may have seen this already but here is some good information about OCR using OpenCV which is opensource.
https://stackoverflow.com/questions/1284214/simple-ocr-programming-tutorials-articles
"I have a problem core to our business, please solve the issue for me." It's not a simple problem by any means, you're going to have to expend significant efforts improving your algorithm to read all sorts of different fields.
Best bet? Make the application take a photo and upload it to your service, you have much more flexibility and processing power there. Any existing partial solutions will likely be unsuitable for Android usage.

Image Recognition for Android/iPhone

I'm looking at developing an app that could benefit from having a image recognition system. I've seen this sort of thing in iPhone and Android apps. Take a picture of a book and the app takes you to Amazon where you can find that book. I'm not looking for general image recognition, but more the ability to pick a single image out of a library of about 10k images.
Any ideas of what services are available for this sort of thing?
Google Goggles does something similar to Amazon Remembers. It uses OCR if text can be identified and they want to use it with the similar image search from Google Images. I think they generate some kind of hash for an image with the feature that if the images are similar the images are similar to.
My best guess would be try to start with the character recognition and do a text search for the title of your card. This means your user has to make a very clear image maybe even in a specific position. But for a first application this would be great already. As somebody playing magic I would buy the tool for trading and cataloging my cards.
Actually, while short of getting an actual Amazon employee to tell you there is no way to confirm this, I am fairly certain that the Amazon Remembers feature you refer to is actually the work of crowd sourcing- using lots of people combing through data to make it appear like a computer is doing it. I think they may actually be using there own Mechanical Turk system.
Edit: Also, I found this SO question that might interest you. It is specifically for playing cards, but some of the answers (such as the machine learning example) can be modified to be more helpful for what you want to do with magic cards.

Categories

Resources