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
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)”
why to use @SerializedName() for every variable?
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 ?
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?
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?
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
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!!
can somebody share the PHP files ..?
I'm using JsonArrayRequest and Method.POST. I use getParams() method to send parameters. In PHP file $_POST variable seems not to be set.
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?
where can i find php and mysql file used in this tutorial
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
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.
Sir , please tell me how use FunDapter in Fragment . getApplication(0)give error
What is the prupose of <?PHP $_PHP_SELF ?>
where is the php files?
Sir,how to get the json object in text box,do i need to use json converter for that too
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??
Is there a way to place a button to "refresh" the list view if new data is placed in the MySQL table?
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
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
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????
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);
nice
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.
will this work on real server like 000webhost??