I am developing an android app which connect with a web service to insert data in mysql, so if someone decompile my code and discover my file name could do many request...I have thought to implement a function with PHP which can detect that my android app is requesting it and not any other application. How can I do this? I have tried to use $_SERVER['HTTP_X_REQUESTED_WITH'] but it return a empty value.
I know that this is not the best solution, but I can't implement in my application a login to use oAuth for example, because it is a jokes app and a login is absurd. If you think that it could exist a best solution tell me about it.