create wall in android application - android

I can perform as a native application on android that contains a wall as the Facebook application, I have communication with the webservice using a mysql database but basically what I want to know is how I should send that information to place in my wall of my Android app, do not like the design of the wall, if I need the help of listview, or something else, also not like painting the data string in that wall, please help me, to be displayed as well as the wall facebook.

Your question is too open ended (and also a bit muddled). You can send down the data in whatever format you want (XML or JSON are the preferred ways). Of course you then need to read this data using some sort of serialization library (Jackson for JSON is a good one). Then you probably want to display the data in a ListView, creating a custom Adapter.
There are a lot of pieces to this kind of app, so you're better off building one feature at a time and asking questions about the specific problem you are having. I suggest you figure out how to get the data from the server into the phone first.

Related

Always connect to Webservice or local storage Android?

I'm developing a personal project with Android and struggling here with some doubts about the better way to develop it.
Well, my project consists of my app consuming a Rest Webservice (which I already developed with Java and Spring) and showing up a list of places on it. The thing is: This list could be huge, something like 2000- 3000 records with description and picture of each place.
I'm using volley and OKHttp to take care of my networking stuff, so far my list of places isn't that long, so everything is alright, but I'm afraid when the list starting to get big, I don't know how my app will handle this.
My questions would be:
1- Should I store the that list on my device and update the list every time I connect to the webservice?
2 - Am I doing correct, retrieving the entire list with just one request? If not, how's the best way to do it?
Thank you guys, I'm new to android stuff, and I'm developing everything by myself, don't have anyone experience around to ask that.
Cheers!
As mentioned in comments You need your app to do "paging" and to load some of the content every time you scroll down.
For example if you will open Facebook app and go over photos you will notice that the first ones always loading the fastest and as you keep scrolling some will be left blank for few moments, thats what paging is all about.
Make sure though not to overload the app with info, specially if you use bitmaps
You can read some good tutorials here

finding data sources for android app

I've come across this problem when thinking about creating different apps for Android. I see these apps that show you the weather cast or sport results, and I wonder which is the source they get all data from.
I assume they don't have their own database which they fill with data manually and live. I suppose they use some kind of web service, data source or something like that. I don't know if web service is the correct term to use in this case (english is not even my native language).
So I would like to know the correct term for what I'm looking for, plus any guidance on finding this kind of services, in order to be able to develop apps using this kind of data sources.
I think this question will help many programming students like me.
It depends what you trying to develope- Some apps use simple GET/POST Requests and get it's data back formatted as JSON or XML (which is the common case).
Some uses SOAP for getting their data.
In some cases they are using plain Sockets or CouchDB.
In some cases they are using Push Mechanism (specially for android) like GCM to send their data to the client.
It always depends what you want to do.

Making android app get data from rails table

I am new to rails and wish to make my Android app work with data created in my rails app.What is the best strategy to auto-generate/auto-update a JSON or an XML feed with the data created by my rails app to be used with my android app?
JSON is the way to go.
Make specific controllers and actions to provide the data that your Android app needs to consume, and use something like the RABL or jbuilder gem to create json templates with the data structure that you want. You will need to use the Json libraries for android
Some further reading for you as it's impossible to provide a more detailed answer to such a general question
http://railscasts.com/episodes/322-rabl
http://railscasts.com/episodes/320-jbuilder
and a nice simple tutorial on how to post json from Android
http://localtone.blogspot.co.uk/2009/07/post-json-using-android-and-httpclient.html
and how to consume json
http://hmkcode.com/android-parsing-json-data/
You should find the time to watch all of that video but it's the last half that is really important.
Then to handle versioning of your Rails API/REST interface or whatever you want to call it
http://railscasts.com/episodes/350-rest-api-versioning
Rails and Android or iPhone for that matter make an awesome combination.
The above should be enough to get you started at least to get you to the point where you can ask more specific questions, but once you get your head round the basics you really need to use a sync adapter to handle the traffic. The Android development team really URGE you to take the sync adapter approach as can be seen in this very long googl I/O video
http://www.youtube.com/watch?v=xHXn3Kg2IQE

How to make an app submit info into a webform

I was trying to write an android app to help people do easier searches on multiple websites like craiglist, ebay ..etc
I am not sure where really to start from, or the name of the technology I would be using. To make it more accurate question, these websites are all forms based that you either post stuffs or retreive stuffs through searching. How can I make my android app actually in which it will ask the user for a item name (that part I know) and then send item name to say craiglist so it gets the results back?
I was thinking of copying the url that is displayed on my broswer when I click search on any of the website and using the same link with string manipulation to include whats needed.
Is this correct? Any other ideas are I know? I am kinda all over the place, but I need a starting point.
Some sites might expose a public API for you to connect with, but that's site specific.
Sites that do not expose such a system can be "scraped", which means you're using string manipulation (as you mentioned) to parse our the data you're after.
Both ways require basic knowledge on how to perform HTTP operations, there are several ways to do this but the easiest way it to use the HttpURLConnection class as described in various tutorials on the web.
Googling for "android http GET POST tutorial" should point you in the right way to get started with your adventure :)

Fill Form Data in Android

I am new to Android development. Using android, I am trying to go to a certain website which is not under my control(developed by someone else and I can't change), fill the data in form fields.
Using WebView control, i am able to load the given URL. But i am stuck with sending/filling data to form fields.
How do i proceed with that?
You probobly need to do somthing like in this question.
You should realy check with the person responsible for the website. If you can get a bit of co-operation then they are less likely to change the form on you and break your code. I have a similar senario and the other party is very happy and will at least inform me before any major changes occure.

Categories

Resources