pulling data from a website in android application - android

I want to ask, I have a website(HTML and javascript) that allows user to login, maintain thier account. Now I want to create an android application that allows user to login and then pulls thier account details from the website and display on the android app. I have no idea where to start? After user logged in how to pull that user's account details from website? Any suggestion where to start and what to look for???
Can I simply load the url of website for login? Would the website work fine on android?

The best approach is to create a webservice to return a JSON or XML string with the information you need.
www.example.com/userDetails.php?userID=23&encryptedPassword=ACD23423FFFF23
If you need more security you can create a mechanism that generates expirable hashes that can be used for a specified period of time.
www.example.com/userDetails.php?userID=23&expirableHash=FFFF234234234DDCCCEEEE22

You should try with WebView which allows you to embed HTML page in your Android application.
Check this out: Building Web Apps in WebView

Related

Take input in the UI by the user and submit the data on behalf of the user on the website?

To be more precise, can my application take data from user and show a loading box to them and then open a website (non-interactable) and enter that data on behalf of the user on the website, also extract captcha and ask user to fill it in their UI and once that is filled by the user in the application's UI submit the captcha value to the website.
An android application like a medium of interaction between the user and the website?
I am a beginner level android developer and want to achieve this kind of functionality, any help would be great!
You need to create your own web service for accessing from mobile to that data on your server.
on your own server create a wrapper to access the primary data, when need to authorize or entering captcha open that page as a iframe on your server or direct link on a webview in your app to pass it.
also take look at jsoup library for accessing web element and parse that on mobile app.
hope to help you. :)

Login Page Creation AppInventor..?

How can I create an app in app inventor that login in to my college's web site and fetch student's information such as attendance and academic information.
The site uses https and also has a CAPTCHA.
I want to know how the username and password are submitted to the server and how the authentication is done..?
I am not sure exactly what you are trying to do.
AppInventor does have a WebViewer component which you can use to display webpages, fill in forms and view the results. If you use this in your app then you can interact with the website in much the same way as you would with a browser.
If you want to directly interface with your college's server then you can't use AppInventor unless there is a REST/SOAP service which I suspect there isn't.

Is possible to synchronize a particular facebook page onto an android app?

I was wondering if it is possible to catch feed of a particular facebook page without any authentication and just display all the posts posted by the admin of the page (possibly along with all comments and likes).
I took a look the facebook developers page but could not find anything relevant.
You can access the public information of any Facebook page without any permissions.
However, You do need to register your app on FB first. They only allow access to their Data from registered apps. It's FB's way of making sure they know who's using which data and how much of it.
You can create a new app at this URL
https://developers.facebook.com/apps
Here are links to mobile/web docs for using Facebook's API
https://developers.facebook.com/docs/

Facebook Android SDK Wall Stream

I am developing an application for a client who wishes to display their Facebook wall posts in the application. The Facebook SDK examples do a wonderful job explaining how to allow users to sign in, but this is not the functionality I desire. I only wish to stream information from a single profile for all application instances without any users having to sign in. If anyone has done anything similar, I would appreciate your suggestions. I will gladly provide any additional details.
One option would be to embed one of the social plugins inside a web view. Otherwise, you could embed an application token inside the application and then make a graph api call to /pageid/feed and use the json result to show the feed entries.
Your client can also create a page which is public and then just get its feed simply via RSS, no need to sign-in and no need for access token in this case. Url for RSS feed should be:
https://www.facebook.com/feeds/page.php?id=PAGE_ID&format=rss20
hope this helps

Login to my application using facebook credentials

This question might sound kiddish to you but I have to ask it.
I need to login from my application to my server using Facebook credentials. Is it actually possible? If the answer is yes, please guide me on this.
Facebook supports OpenID, which you can implement in your app.
http://developers.facebook.com/blog/post/246/
You can actually log in to stackoverflow using your facebook account as it uses OpenID as well.
Rohit, what Will mean is you need to implement OpenID in your server. For that you need to write couple of pages in your web app, that will take care of OpenID Authentication.. then if you want your mobile users to login using OpneID, you can simple open that webpage (where you've implemented the OpenID) from within your application using some webview component or some other relevant component whatever it may be.. track user's navigation to success page to determine user is authenticated or not.
this is one way.. in other way.. there could be other ways as well..
good luck
You can check this two link :
http://developers.facebook.com/docs/mobile/android/build/
http://developer.android.com/tools/help/adb.html#directingcommands
From this two link you will get all the information for logging , sharing using facebook from your android application.

Categories

Resources