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




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


25 responses to “Android Volley Tutorial (Android PHP MySQL) – JSON, Custom Adapter (Part 3)”

  1. 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?

  2. 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

  3. 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!!

  4. 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

  5. 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??

  6. 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

  7. 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

  8. 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);

Leave a Reply