Insert data into a database using android


Author: Aditya Agarwal
77317 View
22m 41s Lenght
210 Rating


In this video the data is inserted into a localhost database using an android app. This video demonstrates the use of the key skills such as the use of mysql, php and android. Please find the code for the following tutorial on the github url - https://github.com/Android-Workshop-Code/DatabaseIntegration


Comments

  1. Your tutorial is really helpful,can u upload tracking and phone no verification video in your tutorial
    Reply
  2. With this program I can use forms__
  3. bhai bol v le yar ..
  4. great video! but i am having some problem :( my app is running there is no error but its not inserting any data in database but when i am trying through localhost/tutorial.php then data is inserted in database means php file is fine than what's the problem can you please tell me?
  5. i got error while i typing the List<NameValuePair> .... any solution??
  6. here got some error and
    import org.apache.http.HttpEntity;
    import org.apache.http.HttpResponse;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.entity.UrlEncodedFormEntity;
    import org.apache.http.client.methods.HttpPost;
    import org.apache.http.impl.client.DefaultHttpClient;
  7. HttpClient httpClient = new DefaultHttpClient();
    HttpPost httpPost = new HttpPost(url);
    httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairList));
    HttpResponse httpResponse = httpClient.execute(httpPost);
    HttpEntity httpEntity = httpResponse.getEntity();
    is = httpEntity.getContent();
  8. Great video, But please try to give lecture through voice.
  9. Can u give the tutorial of android login page using phpmyadmin,pleas?
  10. Im confuse.. your localhost database is newdatabase with a newtable.. but how come u connect with mydatabase with mytable? why the difference?
  11. very useful tutorial ..but we need voice !!
  12. hey guys,
    what applications it ?
  13. why can't i import the HttpClient and the others? =/
  14. sir.. 'm using android studio to develop an app.. for now i just need to add 2 combo boxes and the data entered must be updated in database which is created in sl server on cloud.. can you suggest me how to do this???
  15. NameValuePair is deprecated so use instead:

    ContentValues values=new ContentValues();
    values.put("username",name);
    values.put("password",password);
    database.insert(Table_name,null,values);
  16. thanks Aditya sir for uploading this video..:) do this code will work efficiently to insert data into localhost database through same android app installed in more than 1 devices...??
  17. hello sur I want to ascke you how I can save a web page in a data base
  18. how to solve the problem with BasicNameValuePair?
  19. Hi! Thank you for this! How does your post command change if your database is hosted online?
  20. having problem with nameValuePair command....can you please help?