There aren't too many "absolutes" for this kind of thing, I would think more about components and how you want to save/retrieve information. So could save that new information to an SQLite database on their phone and when the device finally gets connected to the internet, it could automatically "push" that new information to your web application without making your user re-write their new profile again. Say a user wants to update their profile information for their friends to see, but his/her device is currently not connected to the internet. This can be done without saving to SQLite initially, but your MySQL is a necessary step. So, the message would need to be sent to your web application first and then to user B. A can have that message saved into SQLite into their Android device, but B will not "receive" that message. You could SQLite again for caching, but for the most part you would be taking advantage of the internet/your website to get the most up to date information. You probably wouldn't want to replicate all friends/their profiles, etc since it would take up a lot of data. There are caching mechanisms for Android you can take advantage of, but I wouldn't do so for an entire database (maybe just your news feed, recent messages, etc for example). I would probably not attempt to replicate your MySQL database into SQLite (if you mean MySQL from your site to SQL on an Android device). You can do whatever you want with the data afterwards within your app (show to your users in a ListView, etc). You use that link in your Android app and your app will receive the data. So you can set up your website to respond to something like: This would give you your list of paintings in a format called JSON, which is more friendly for app use because it gives the raw data and doesn't worry about the styling (text, colors, etc). 1) You need a Cursor to read the columns of interest, and 2) you need an Adapter to bind the database rows to a ListView. You need two things to bind data to a ListView in your ListActivity. you still ask for data via HTTP/HTTPS except you want the list of paintings formatted differently (not in HTML). Im not sure why your code is crashing, what the file R.work contains, etc. You can do the same in Android via the browser, but if you want the data to go to your app. When you display the paintings for sale on your website you may go the the link: That is a link that gets your list of paintings and displays them in HTML. In your example website you have a database in which you have a list of paintings to sell. I'm not sure which track would be best, but as you continue the current track they often tell you the best next steps. I imagine Treehouse does get into more detail about server side programming. I imagine you are looking for something in which you can "connect" many devices/users via the internet. However, this is local to each individual phone. Yes, Android has it's own database - SQLite.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |