I am a beginner in Java and PHP.
I made a client Java app that uses webView to Pass a string to php client page which will insert this string to the DB.
my question is, how can I return a false value to the java client app in case the PHP failed to insert the string to the DB using webView.
the php code will be something like this:
if(Insertion suceed)
{return true;}
else {return false;}
but I dont know how to make it in the Java side.
P.S: I need the return value to display an alert to the java user to restart the app.