Surfing the internet over 3GP/UTMS/... is pretty slow and pretty expensive in my country. I want to have a tiny, fast web browser without not needed functions to keep data traffic as small as possible.
The WebView does not have a lot of properties to get control of traffic releated stuff. That's why i wrote this little library. The attachement contains a fully working example and shows all functions.
What you can do with it:
------------------------
- Get and set the state of accepting cookies
- Get and set the state of loading images
- Get and set the state of enabling javascript
- Get and set the state of enabling plugins
- Get the progress of current page loading
- Get the title of the current page
- Scrolling the current page half the page or full up and down
- Zoom in and out
I tested it a long time, it works perfect on my tablet with Android 3.2 and Smartphone with Android 2.3.7 (Custom Rom)
The meaning of the scrolling and zooming functions is simpel. I hold the tablet in one hand and don't want to wipe with my fingers all the time over the display. So I made a few buttons on the side of the webview. Now i can surf the internet with tapping a few buttons
Here is a screenshot of my selfmade tablet webbrowser:
http://www.thalmy.ch/diesunddas/minibrowser.jpg
Whats coming next:
-------------------
Get the favicon of the current page. This works right now, but i can not display the image because favicons are ICO bitmaps. I have to find out how I can convert them to BMP bitmaps. And I also want to read the OS Browser bookmarks wich are stored in an internal database.
The WebView does not have a lot of properties to get control of traffic releated stuff. That's why i wrote this little library. The attachement contains a fully working example and shows all functions.
What you can do with it:
------------------------
- Get and set the state of accepting cookies
- Get and set the state of loading images
- Get and set the state of enabling javascript
- Get and set the state of enabling plugins
- Get the progress of current page loading
- Get the title of the current page
- Scrolling the current page half the page or full up and down
- Zoom in and out
I tested it a long time, it works perfect on my tablet with Android 3.2 and Smartphone with Android 2.3.7 (Custom Rom)
The meaning of the scrolling and zooming functions is simpel. I hold the tablet in one hand and don't want to wipe with my fingers all the time over the display. So I made a few buttons on the side of the webview. Now i can surf the internet with tapping a few buttons
Here is a screenshot of my selfmade tablet webbrowser:
http://www.thalmy.ch/diesunddas/minibrowser.jpg
Whats coming next:
-------------------
Get the favicon of the current page. This works right now, but i can not display the image because favicons are ICO bitmaps. I have to find out how I can convert them to BMP bitmaps. And I also want to read the OS Browser bookmarks wich are stored in an internal database.