1

I don't know whether I should ask this question here. I have very little experience in development of android application. I did few researches. Let me explain my problem. I am making an android app to show a details of a university. I used a WebView to display the results from a HTML & CSS page it was very easy for me here is a demo. I thought of using JSON for fetching data form the database. Now I am not sure how to populate it. Please suggest me a way to populate the same data as in that example page.

I have visited http://android.stackoverflow.com but in FAQs I found this question shouldn't be asked there. I hope I am asking it in the right place.

SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
NewUser
  • 3,729
  • 10
  • 57
  • 79

2 Answers2

2

You can populate your data using Listview. You can use a custom or default adapter for setting it in the ListView. And you don't need to use JSON for fetching data from database. You can fetch data from database using Cursor.

Mohit Verma
  • 3,025
  • 1
  • 20
  • 36
  • Will you please give me few links where I can see the user interface. I will follow the design pattern. I have no idea about `Cursor`. It would be helpful if you provide few more details about it too. – NewUser Sep 17 '12 at 04:50
  • You can refer the developer.android.com for any queries. And if you want to learn more about display the data in listview then here is the link http://www.vogella.com/articles/AndroidListView/article.html – Mohit Verma Sep 17 '12 at 04:53
  • http://www.higherpass.com/Android/Tutorials/Accessing-Data-With-Android-Cursors/ http://developer.android.com/reference/android/database/Cursor.html – Mohit Verma Sep 17 '12 at 04:54
1

For such a simple solution with low amount of data you might also consider to create a pure mobile web-application using a JavaScript based template systems. It would suffice as an pragmatic approach.

The templates also provide flexibility at later points during your development cycle when you may switch the underlying software-platform (for instance from a web to a native app)

I recommend PURE or handlebars.

See

Community
  • 1
  • 1
Lorenz Lo Sauer
  • 23,698
  • 16
  • 85
  • 87