Friday, February 17, 2012

Retrieve the data from MySQL and display in listview android

Download the Demo Project From Following link and import it in your eclipse ide.

read the instruction in ReadMe.txt file...

if any question plz leave a comment.
Download
or
Download

20 comments:

  1. Thank you very much. Clear and brillant codes.
    May I ask a question?
    When i touch the screen for sliding to go to last record, layout background goes black and data sorting is break. For example first record in database is gone (not see on screen) and some data is shown twice.
    Thank you for your cooperation.

    ReplyDelete
  2. check ur listView properties :
    "cache Color Hint"
    should be
    "#00000000"

    ReplyDelete
  3. Thank you for quick reply.
    Sorry but have an another question.
    My application with your codes succesfully run on android device emulator with embedded in eclipse.
    When i installed apk file on my phone, data can't be seen on screen.
    Permissions INTERNET and ACCESS_NETWORK_STATE in manifest.xml are OK.
    Have you any suggestion for me?
    Thank you.

    ReplyDelete
    Replies
    1. Hi,
      I dont know what did i do, but it is now working, except when sliding the screen, data are lose or twice.
      Thank you very much again.

      Delete
  4. Hello Mr. Firzan, Your apps is successfully run but the data are redundant how can I fix for that issue?? I think because of this code why the data are repeatedly jArray = new JSONArray(result);
    JSONObject json_data = null;
    for (int i = 0; i < jArray.length(); i++) {
    json_data = jArray.getJSONObject(i);
    nl.add(json_data.getString("FullName"));
    tl.add(json_data.getString("Time"));

    }

    ReplyDelete
    Replies
    1. dear mark,insert some 3-4 records in table and try it...

      Delete
    2. hi dear the download is not available, will you please send on this id, yaser4u@gmail.com

      Delete
  5. Download Link Does not work
    Can U Mail me a code @ waqastalib@hotmail.com
    Thanks

    ReplyDelete
  6. link dead
    please emel me to adi3246@gmail.com

    ReplyDelete
  7. Wow really good... I m Expecting more sir... i tried this for past one month...

    ReplyDelete
  8. Facing error
    java.lang.RuntimeException : an error occured while executing doInBackground()

    Please help me to resolve it.

    ReplyDelete
    Replies
    1. check out php file in a proper location or not!!!

      Delete
  9. I searched so many tutorial to learn about Mysql to list. Your code is simple and perfect. Thanks..

    ReplyDelete
  10. can u give me example...I try too parsing session data from this code. So not all data from database printed at table.
    I use login, and from login I keep session login

    and from login ID ex: 2 , so from table stud , only ID 2 will show

    ReplyDelete
  11. How to delete list view items

    ReplyDelete
  12. It's interesting that many of the bloggers your tips helped to clarify a few things for me as well as giving... very specific nice content.Android Training in chennai |Best Android Training in Velachery | android development course fees in chennai

    ReplyDelete
  13. Casino Royale - Live Dealer Games - Virgin Games
    Casino Royale is https://vannienailor4166blog.blogspot.com/ a live casino with a large, eclectic portfolio of casino games. 바카라 사이트 Players can play this 출장안마 game with septcasino live dealers, nba매니아

    ReplyDelete