how to use htmlunit with my android project -
i have downloaded htmlunit 2.11 zip. have extract it. have tried paste them in project's libs folder. libs folder have added them in build path. error, while trying run app
conversion dalvik format failed error 1
then, stackoverflow found that, 1 said delete xalan
xercesimpl
xml-apis
. deleted them. getting error:
error generating final archive: found duplicate file apk: about.html
error message showed files conflicted. jetty-http
jetty-io
jetty-util
jetty-websocket
run app again. time shows warning. have ignored them. app crash saying classnotfound
by way, have deleted httpclient
jar. because 1 said httpclient
built in android.
this problem. now, can help me? want utilize htmlunit in app
edited:
it helpfull if show me steps, 'how add together htmlunit in project'
edited 2:
mainly have link, have after login (i have login through web view) link give me simple page. in page there textarea , submit button. , there javascript (i think these javascript run, when press submit button). can through webview, reason don't want utilize webview. whene press submit button, deliver value of textarea , value of hidden field existing cookies(which when logged in through webview) post method. need without webview. there other alternative beside htmlunit ?? heard httpclient, httpurlconnection. 1 more thing, agter submitting redirect me page. don't need redirected page.
n.b: if question not appropriate inquire previously, can suggest me, , post new question. give thanks
nothing of work because trying include htmlunit android project. htmlunit not compatible android because refernces java.* & javax.* classes not available in android.
hope there come version android.
android htmlunit
No comments:
Post a Comment