5

I'm creating an Android app which must do some web surfing in the background in order to provide a service to the user.

The site I must connect to has no API, it only provides standard HTTP access, with extensive cookie usage but (luckily for me) not much Javascript code.

I wonder if there is a library which behaves like python mechanize for Android, or if it's possible to use mechanize itself in the Android app.

Emiliano
  • 22,232
  • 11
  • 45
  • 59

2 Answers2

4

I'm not 100% sure it'll work in Android, but being Java-based, HtmlUnit is probably worth a look.

kabuko
  • 36,028
  • 10
  • 80
  • 93
  • Thanks, and it looks like it _can_ work on Android: http://stackoverflow.com/questions/4882280/htmlunit-on-android – Emiliano Mar 20 '12 at 12:14
0

Mechanize has been ported to Java, and does run in Android:

http://gistlabs.com/software/mechanize-for-java/

gnuf
  • 2,722
  • 1
  • 25
  • 32