java - HttpClient from apache in Android? -


I have already developed a desktop application using Java and now I want to develop the same application on Android the wanted. In my Java application, I used the httpclient library from APK to do all HTTP transactions, my question is, can I use the same class I used with HTTPPLL in my Java application in my new Android app is ???

Yes, very, most, or all your code can work in Android. Just make sure to continue using Apache Import and do not have Google equivalent (near).

For example:

  import com.google.api.client.http .HttpResponse;   

Make sure you continue to use it:

  import org.apache.http.HttpResponse;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -