A Andrei E Member Licensed User Longtime User Aug 6, 2014 #1 Hi dear developers Is anyone can advice me about Http Parser for default android browser? I'm trying to hook html data from default browser like Erel's example Dim jo As JavaObject jo.InitializeStatic("android.net.http") Dim jo2 As JavaObject = jo.RunMethod("AndroidHttpClient", null) Return jo2.RunMethod("???", null) Best Regards
Hi dear developers Is anyone can advice me about Http Parser for default android browser? I'm trying to hook html data from default browser like Erel's example Dim jo As JavaObject jo.InitializeStatic("android.net.http") Dim jo2 As JavaObject = jo.RunMethod("AndroidHttpClient", null) Return jo2.RunMethod("???", null) Best Regards
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2014 #2 What exactly are you trying to implement? Upvote 0
DonManfred Expert Licensed User Longtime User Aug 6, 2014 #3 AndroidHttpClient is just the transport. It doe not parse or show any data. What exactly you want archieve? Upvote 0
AndroidHttpClient is just the transport. It doe not parse or show any data. What exactly you want archieve?
A Andrei E Member Licensed User Longtime User Aug 6, 2014 #4 I'm trying to extract all image's links Upvote 0
DonManfred Expert Licensed User Longtime User Aug 6, 2014 #5 - Use httputils2 to download the html-code and then parse it for links. or - you can use a webview with javascriptinterface and use a jquery javascriptcode to search for links and report them to your app. Search the forum... There is somewhere an example doing it. Upvote 0
- Use httputils2 to download the html-code and then parse it for links. or - you can use a webview with javascriptinterface and use a jquery javascriptcode to search for links and report them to your app. Search the forum... There is somewhere an example doing it.
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2014 #6 Check FlickrViewer example: http://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992/#content It finds the images and shows them. You can also use jTidy library to convert html to xml and then parse it with an XML parser. Upvote 0
Check FlickrViewer example: http://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992/#content It finds the images and shows them. You can also use jTidy library to convert html to xml and then parse it with an XML parser.