How to post to news feed on facebook through android application - android

I am working on android application which will have stories fetched from our server.
I want is whenever someone reads a story. A news is posted on facebook like Ron read Storyname on/via Androidapplication.
I am still not clear how to define reading either by liking/sharing/recommending.
Forexample, Goodreads or TimesofIndia.
Can anyone tell how to do that ??
I am not asking for code.

The API you want is called Open Graph, you can find the information here: https://developers.facebook.com/docs/opengraph/overview/

Related

Facebook SDK for Android: Trying to get a notification when one "likes/comment" the post made by my Android app

I'm fairly new to Facebook SFD for Android.
What I'm trying to achieve is an Android app that uses facebook login, post to the user timeline and gets notified whenever one is commenting or liking that post.
I went thru Facebook tutorials for login and for Publish to Feed.
All went well.
Now I'm struggling with the last part. I don't see how to be notified whenever there is a like or comments. I browsed the web and stackoverflow forum without any success. I'm guessing that there is a mechanism to be notified by Facebook and that I don't have to start a process just to monitor the post...
Anyone could give me a hint on the API to use?
I'm currently looking at "Creating Object Types" section Associating Actions with Object Creation (https://developers.facebook.com/docs/opengraph/creating-object-types) but it looks like this describes how to do for facebook web app, and not for android app.
EDIT
I've found this https://developers.facebook.com/docs/graph-api/real-time-updates/ but not quite sure how to "translate" this into Android coding.
If anyone could help me with this, it would be greatly appreciated.
I guess you have to create a page in php that will handle the responses from Facebook, it starts with a
GET response from Facebook that you retrieve with $_GET["name"] in php, and you have to send back a confirmation to Facebook to confirm that the connection works, and Facebook will send you the answer you want via
a POST request ( $_POST["name"] ) (with a json object, containing the informations about the user in object for example, and the different updates in entry).
You can put all these informations in a database, and when the user start your application, you can automatically connect him to a php script that check if the database has new informations for him.
(specifying who he is, with a user variable that he keeps in the memory of his device, and then you ask for informations from the database about this user). I haven't tested, but it should work.

How to search wikipedia with search string and fetch data, parse and disply in my app...?

all
I have searched this in google, but I confused with lot of sites which are no clear step by step procedure I found.
If any have Idea what are all the things need to be done. Please guide me...!
Thanks in advance.
This looks similar the demo app in "Beginning Android" book. There they will create the http request and will send data to the server. They will get a HTML response, in which they will parse the data and displays to the user.
The main problem is, if u hard code the tag names, in future if it gets changes, then your app may not work. So better check whether there is any library (jar file) available for the wikipedia app. and try to make use of that.
Regards,
SSuman185

Getting the url of the android default browser

I am trying to create an application in which will be notifying the user about the phishy websites.So for this i need to get the url which the user has opened in the default browser.
After a lot of google search and stackoverflow search i am not getting any idea how to develop the app.Can you guys help me ...how i could get the url entered by the user (just want the url accessed).
Or any other way round to develop this type of app in android.
Any help would be highly appreciated.
Maybe you can proceed the following way.You can read browser bookmarks.Then see the arrange pattern of the bookmarks.Maybe it is sorted according to the accessed time.So you can get what you need

TTS read from twitter android

Have an app that can use tts to read text messages. It can also allow login to twitter and post to the news field. Interested in possibly fetching data from the news feed and reading this out aswell, similar to the sms functionality I already have in place.
Have not seen any source or tutorials for this, other than an appinventor project that seems to do what I would like!
Anyone offer ideas how I might go about getting something like this working in my app?
You can create a client to read Tweets as explained here:
http://www.vogella.de/blog/2010/02/15/twitter-android/
And to read the news just use this class android.speech.tts.TextToSpeech

Using Website Information Without WebView

I am very new to this, and I more looking for what information I need to study to be able to accomplish this.
What I want to do is use my GUI I have built for my app, but pull the information from a website.
If I have a website that looks like this:
(full website can be seen at http://www.atmequipment.com/Error-Codes)
What would I need from the website so that if a user entered an error code here:
It would use the search from the website, and populate the error description in my app?
I know this is a huge question, I'm just looking for what is actually needed to accomplish this, and then I can start researching from there. -- Or is it even possible?
What you're going to need is some kind of a web services api on the server you want to search. Then you can post http requests to send and receive information from the server.
you need to add the permision to access internet in your manifest file. Then use the android httpclient to read the website info. You can use the link below as a start.
http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/

Categories

Resources