• Wednesday , 13 December 2017

Android Volley Tutorial (Android PHP MySQL) – JSON, Custom Adapter (Part 3)

Code Canyon



Android Volley Tutorial (Android PHP MySQL) – JSON, Custom Adapter (Part 3). In this part of this series Android Volley Tutorial, firstly I will start from PHP and …

Original source

3d Ocean

Related Posts

25 Comments

  1. Mohand Sh
    September 20, 2017 at 10:34

    why to use @SerializedName() for every variable?

  2. pory sovann
    September 20, 2017 at 10:34

    Sir, i kind of wonder how to paste Khmer in json_encode ? json_encode($data) but the result is "????????" something like that. could you guild me please ?

  3. Nicko Rosadino
    September 20, 2017 at 10:34

    Sir, I got an error after android icon, it says I should also add replace for label but when I try to change icon into label, it wants to change again the Icon. What should I do, Sir?

  4. Fully Renewed
    September 20, 2017 at 10:34

    Sir, after I fix the issue of fundapter with Android Manifest by adding xmnls tools and icon replace. a new error in building come out again saying I should replace label also because it already present in fundapter library android manifest..

    What should I do?

  5. Juan Carlos Campos
    September 20, 2017 at 10:34

    An other thing is how can I do to pass int variables from the data base to android because I use this!!

    dictionary.addStringField(R.id.Cantidad_cornisas, new StringExtractor<lista_cornisas>() {
    @Override
    public String getStringValue(lista_cornisas lista_cornisas, int position) {

    return lista_cornisas.Disponibles;
    }
    });

    And in lista_cornisas I declare Disponibles like int but it give me an error and I dont know what Im doing wrong

  6. Juan Carlos Campos
    September 20, 2017 at 10:34

    hi!! your video is excelent!! The thing is that I just see that when I put just one image to the directory and save the link into the respective line, the same image apeare every 5 rows when the app is running, but when I put an other image into the place that appeares that image, appeares the other every 5 rows and I want to know if you know the solution of that bug or something like that!!

  7. Satyaki Mallick
    September 20, 2017 at 10:34

    can somebody share the PHP files ..?

  8. Giovanni Putignano
    September 20, 2017 at 10:34

    I'm using JsonArrayRequest and Method.POST. I use getParams() method to send parameters. In PHP file $_POST variable seems not to be set.

  9. Helder Silva
    September 20, 2017 at 10:34

    Hi Oum Saokosal, awesome tutorials, i was just wondering if i could use the same method you used, if im using foreign keys in my tables?

  10. mohammadalijasiar
    September 20, 2017 at 10:34

    where can i find php and mysql file used in this tutorial

  11. ahmad jaafar
    September 20, 2017 at 10:34

    hello Oum, and i have done this tutorial in my case i have table mysql called user have two atributes (name and password) so i make the project customized for this table and the list view have only these layouts(name and password) i am using xamp for local server ,when i run the app and price the button viewalluser (button that open subActivity and show the users in listview) when i click on it the app crash and in debug there is this: (when i press viewallusers)
    Disconnected from the target VM, address: 'localhost:8725', transport: 'socket'
    thanks

  12. WebTech Developers
    September 20, 2017 at 10:34

    Hi, I subscribe your channel and your tuts are the best 🙂 Just one question. From this video I learned how to grab data from server, parse them and put in listView. How to get "setOnItemClickListener" and to pass single data from item to another activity?

    if it is easier send me reply on mail: webtech.devs@gmail.com

    best regards.

  13. Abdelilah Barakat
    September 20, 2017 at 10:34

    Sir , please tell me how use FunDapter in Fragment . getApplication(0)give error

  14. Kashif shaikh
    September 20, 2017 at 10:34

    What is the prupose of <?PHP $_PHP_SELF ?>

  15. HJ Park
    September 20, 2017 at 10:34

    where is the php files?

  16. Sowmya Thiruvenkadam
    September 20, 2017 at 10:34

    Sir,how to get the json object in text box,do i need to use json converter for that too

  17. TinOfbeans
    September 20, 2017 at 10:34

    I am getting this error pointing to the last line:

    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference

    Any ideas??

  18. alex629z
    September 20, 2017 at 10:34

    Is there a way to place a button to "refresh" the list view if new data is placed in the MySQL table?

  19. Augusto L
    September 20, 2017 at 10:34

    Hi , Sir i have some problem with the php file "index", i copy your code and the error is "Call to undefined function mysql_query() in C:xampphtdocsDogmatelog.php ", i have another code for login that i made from a past web proyect, but well the purpouse to read this php file from android its to get the match and the message "succes" right? for login

  20. Odinga Mubutu
    September 20, 2017 at 10:34

    I am having the same problem:
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2

    Don't know how to fix it. I research UTF-8, but don't how to.
    After spending a couple of days in this tutorial and now finding out I have error that I can't solve. I guess that's the price of learning

  21. Rizvan Adzhoyan
    September 20, 2017 at 10:34

    Hello, i have error

    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2

    can you are help me pls????

  22. Sercan Çepni
    September 20, 2017 at 10:34

    Hi, I need a teacher to help .
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1

    Error 1 : public class GirisActivity extends AppCompatActivity implements Response.Listener<String> {

    Error 2 : ArrayList<Urunler> urunlerListesi = new JsonConverter<Urunler>().toArrayList(response, Urunler.class);

  23. Google Programmer
    September 20, 2017 at 10:34

    nice

  24. hamza javed
    September 20, 2017 at 10:34

    Sir whenever i try to send an image or video more than 2 MB its failed. I searched about that someone tell me it because server timeout . can u tell me please how to fix it.

  25. Afrida Anzum Aesha
    September 20, 2017 at 10:34

    will this work on real server like 000webhost??

Leave A Comment

You must be logged in to post a comment.