I have written REST web service in netbean IDE using jersey framework and java. For every request user need to provide username and password , I know the authentication is not good. Using curl command like : curl -u username:password -X PUT http://localhsot:8080/user
Now I want to call REST web service from android class.What should I write? I am new to android. I have a android class which use DefaultHttpClient and CredentialUsernameAndPassword. But when i run in eclipse, sometime I get runtime exception or sdk exception.
是否有任何人向我提供守则和建议样本?
感谢