• TekArt

    TekArt is an Organisation where people develop Android App through innovative ideas. App for the next Generation....

Friday 11 April 2014

Posted by Unknown
16 comments | 05:07
Hello guys, how are you today? Hope you will all in the best of your life.

Today we are going to see how to connect our android app with mysql databse using php. Just follow the video and post comments if you have any problem.




For more info visit on facebook https://www.facebook.com/androidcoolstuffs

Thank you

16 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi! thanks a lot for this tutorials! I exactly followed the steps shown in the video tutorials,but after running the app its not fetching the data, all I get after entering values in edit text is the message " fetching data ....." but no data is shown from the database. Also after checking in logcat it shows the error: "Error parsing data org.json.JSONException java.lang.String cannot be converted to JSONArray" ! How to resolve this?

    ReplyDelete
    Replies
    1. got the same error. Any suggestions?
      Thanks

      Delete
    2. Same issue here, any fix ?

      Delete
    3. I had the same issue, it's happening because there was something wrong in the demo.php file.
      in my case I just changed the mysql_select_db value into the php file, this is the database name you can find the name into the phpMyAdmin, in the video he says that value is the table name but actually is the database name.

      These are the values for the database connection:




      just replease each one for yours.

      Delete
    4. mysql_connect("MySQL_HOSTNAME","MySQL_USERNAME","MySQL_PASSWORD") or die(mysql_error());
      mysql_select_db("YOUR_DATABASE_NAME");

      Delete
    5. hey francisco i am having trouble importing the project file into eclipse. Can I just use the import function of eclipse or do i have to create files 1 by 1. main activity etc

      Delete
  3. I have Error n logCat

    05-29 09:20:08.217: E/log_tag(1430): Error in http connection java.net.UnknownHostException: Unable to resolve host "myhostname.com": No address associated with hostname
    05-29 09:20:08.217: E/log_tag(1430): Error converting result java.lang.NullPointerException
    05-29 09:20:08.245: W/EGL_emulation(1430): eglSurfaceAttrib not implemented
    05-29 09:20:08.257: D/OpenGLRenderer(1430): TextureCache::get: create texture(0xb7f752e0): name, size, mSize = 35, 61440, 1200228
    05-29 09:20:08.257: E/log_tag(1430): Error parsing data org.json.JSONException: End of input at character 0 of

    ReplyDelete
  4. I have this error:
    log_tag﹕ Error parsing dataorg.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONArray
    What can i do?

    ReplyDelete
  5. Hi! Nice video but can't see the files

    ReplyDelete
  6. Hi! Nice video but can't see the files

    ReplyDelete
  7. Sir, In this project you have only fetch the data from database.
    Can u pls upload a video that will insert the data in database.
    OR else can u pls send the java code n php code for inserting value to database.
    Email Id: chiragmali79@gmail.com

    ReplyDelete
  8. Sketch is best android app for drawings.
    http://techpave.com

    ReplyDelete