Android Web Browser - G1 Android Development

I am in need of a bit of help.
Currently, I am working on a new project which will introduce a web application site for the Android ( You can check additional progress online, (Only viewable by your Google Android Phone) at http://sk8erandroid.hopto.org/Android/Android )[ My apologies if this is advertising, I do not mean to advertise in any form or fashion, just getting a bit of help]...
Anyway, back to the matter at hand.
The Android browser is pretty complex ( IMO [ In my opinion ] ), and I was wondering if there was a way to detect Portrait / Landscape mode.
I tried
Code:
if(document.height != 430){
alert("Error: Please swap your device to Portrait");
}
It works, however, once thrown out of Landscape mode, and the function is called again, it doesn't seem to work.
I want the Web Apps Market to be only viewable in portrait mode ( due to some code configurations, and mainly due to some CSS style configs which aren't very compatible in Landscape mode ( mainly due to the fact where items and such are placed, and the scaling of the Android Web Browser ).
Anyway, sorry to make such a long post, but, thanks in advance.

Keep in mind that G1 won't be the only android-powered device, and probably the new ones won't have the same resolution as G1, so maybe it's a good idea to rework your web interface.
Anyway, as a user I would like the application to allow me to choose how to view it

Hmm, well, currently, just the Android G1 is supported.
I will add in support for other Devices after the G1 device layout is stable.
As for the view, that will also be added a bit later, but, as for now, my current CSS coding is configured to work only in portrait made under certain view points.
The view of the actual web applications is controlled by the creator of the Web Application, but, the actual Web Market's only support is Portrait mode.
I resolved the issue though, I was just being lazy, so I updated my code, and got it working.

Related

Jataayu - Mobile Web Browser for PPC & Smartphone

Jataayu's endeavour is to make the vision of ubiquitous mobile web access a reality - by enabling its Truly Mobile browser -jB5 with ART® technology - on the widest range of feature phones.
More about jB5
Rich Heritage
jB5 - the truly mobile web browser, has been evolving continuously over the last 6 years and more, right from the time the first WAP browser made its appearance in year 2000. jB5 is architected to extend the excellence of its earlier WAP1x and WAP2 browsers to the HTML world.
Award-Winning Technology
jB5 with its Adaptive Rendering - ART® has evoked tremendous interest in the mobile devices technology marketplace. Within 9 months of its launch, jB5 with ART® has won for Jataayu the ZDNet Asian Top Techno Visionary 2006 award.
Multi-mode adaptation
jB5 provides ART based, very usable, fit-to-display-width rendering which allows page viewing without horizontal scrolling at all. It also provides Natural mode rendering to see screens in a Virtual Desktop view. jB5 also has a Text Only mode which allows some very quick browsing without taking either the time or the bandwidth to download images, when they are not required by the user. ART provides full flexibility to add more rendering modes, as and when, device characteristics make them necessary
What’s special about ART®
ART –or Adaptive Rendering Technology, provides the most usable adaptation of web pages for mobile phones. ART provides the flexibility to select the rendering mechanism best suited for the variety of device capabilities in use today and provides for a continuous enhancement of adaptation algorithms. ART enables a new level of content presentation ultimately making it easier for users to access content and services than before.
Some Useful tools
Bookmark Imports
JB5 provides you the facility to import all your bookmarks/favorites from your Desktop PC using the Import Bookmark feature. This provides desktop users the power of getting all their favorites/bookmarks into their jB5 quickly.
Personalize Wizard
allows you to preserve values entered in form fields for future use. Thus pages containing form fields that need to be filled in frequently like login pages, query pages, etc, can be saved once and accessed without having to re-enter these fields again. Pages stored using Personalize Wizard will take you directly to the resulting page, thus bypassing the initial page where these fields would otherwise have to be entered.
Exclusive features of jB5 for Win Mobile 5.0
Home Screen Favorite
jB5 has a unique feature where you can move some of your really favorite links to the home screen. This creates a separate entry on the home screen with a specific icon if available. Clicking on this link will directly launch jB5 and fetch the page. A maximum of 3 links can be configured on the home screen.
WAP Push
jB5 supports WAP Push messages. Two types of push messages – SI (Service Indication) and SL (Service Loading) are currently supported. The push inbox is integrated with the messaging application as an independent account type. Thus on installation of jB5 you will see a new messaging component called WAP Push among other components such as SMS, Email and MMS in the application.
It is better than the previous version as there have been a few bug fixes and addition of a few good features.
Some of the features included on the Windows Mobile platform are SSL support, exit option, option to attach files, Selectable User Agent to represent jB5 as either a jB5 browser or a Mozilla browser, import bookmarks from Pocket IE, shortcut key to change the display mode and a text only mode.
Played with it a bit. The scrolling is not so hot.
When "pushing" the page around, you can either do horizontal or vertical - not both. That's somewhat annoying once you get used to Picsel (or Opera).
Also, the "Page down" feature of the scroll bar (tapping between the arrow to the thumb handle) does not work - it scrolls a single line only.
The only nice thing I have seen so far is that rendering is pretty darn fast when compared to my other 3 browsers..
It'll be updated to remove the bugs.
Hi mushipkw!
I like the browser - it has now moved to my second favourite browser. Opera mobile 8.65 is still my favourite because:
- tabbed view of open windows makes moving between windows really easy
- use of the "grab" to move the page around with the stylus is a very natural navigation tool. I might get used to the Auto-scroll function at some stage, but at the moment I like using my stylus.
- context sensitive menu. I like to be able to open a link in a new window by holding down the stylus on a link and then having appropriate options. Also, being able to get out of full screen mode via the context menus would also be good.
But I still prefer yours to Picsel, PIE, Minimo, ....
Mike
mushipkw said:
It'll be updated to remove the bugs.
Click to expand...
Click to collapse
Great to see it's, at last, updated further. The version I tested for my Smartphone Web Browing Bible ( http://forum.xda-developers.com/showthread.php?t=323651 ) was still pretty buggy and, back then, it seemed the project was put on a hold.
trying PPC version. Installation works but when I try to run it, I get:
The Device Locale you are using is not supported in this version. Please use English (United States) for running jB5
skrat64 said:
trying PPC version. Installation works but when I try to run it, I get:
The Device Locale you are using is not supported in this version. Please use English (United States) for running jB5
Click to expand...
Click to collapse
Which language are you using now in ur PPC
I am using Czech localized WM6. But I have never seen message like this.. and every other english speaking application is running perfectly. So?
Pretty nice. Tried it for about 2 minutes and every page that has a login screen, after entering my user/pass it wont let me click the "Login" button. Tried it on 3 different web pages and the same result each time.
skrat64 said:
I am using Czech localized WM6. But I have never seen message like this.. and every other english speaking application is running perfectly. So?
Click to expand...
Click to collapse
Maybe this app wil only work with English.
I made a greek translation of the program. The most have finnised, I will update the file when is ready.
Just unzip and put it in program's folder!

WebKit Browser Release for Windows Mobile - Iris Browser

http://torchmobile.com/products/
Some core features include:WebKit Rendering Engine
Our developers have unparalleled expertise with WebKit, the rendering engine that is quickly becoming the de facto standard for cutting edge Web browsing. We built the Iris Browser to bring you everything that WebKit has to offer, including standards-compliance, efficiency, portability and stability.
Customizable Interface
The graphical user interface of the Iris Browser is highly customizable. This means that we can adapt it to your specific requirements.
Touch Screen Control
The Iris Browser is equipped with intuitive touch screen controls, giving you more control than ever over your Web browsing experience without making you navigate complicated menus.
Advanced HTML & CSS Support
We believe in being ahead of the curve. That's why the Iris Browser supports both HTML 4 and HTML 5 (canvass), as well as CSS 2.x and 3.x, allowing you to view cutting edge Web sites with exciting new features.
Languages
Devices are shipped all over the world. Your software shouldn't limit your market. The Iris Browser supports internationalization of the user interface and viewing Web sites with international encodings.
Zoom & Tap Function
The Iris Browser lets you focus on what you want to see. When you view a Web site, you're looking at the full page that is shrunk down to fit the size of your display. Nothing is missing. You can focus on what interests you by tapping on the screen and zooming into specific sections of the page.
Multiple Windows and Tabs
You want your Web browsing experience to be smooth and simple, so we designed the Iris Browser to support multiple windows as well as multiple tabs, allowing you to easily transition between Web pages.
Input Methods
The Iris Browser can handle any input method that's on your platform.
Handwriting recognition. On-screen keyboards. iTap. Auto-complete. No problem!
Software mouse cursor
Not all Web pages are created equal. In fact, some are impossible to navigate without a mouse cursor. The virtual mouse in the Iris Browser lets you chart your own Web experience through all sites, giving you the freedom to take a desktop browsing experience with you on the go.
Special Effects
You want your device to be unique. We do too. The Iris Browser provides a broad range of special effects, including animations and sound effects, letting you to tailor the application to your style. Some of the existing page transitions that you can choose from include slide-in/slide-out, tear away, shatter, swirl, and many more.
Rotating Devices
Now you can get the most out of your hardware. If you're using a device with a rotating screen, the Iris Browser automatically and seamlessly rotates the contents and reformats the page between landscape and portrait modes.
Advanced Security Features
We want your Web experience to be fun and safe. That's why the Iris Browser includes a number of advanced security features, including phishing and spoofing protection.
Pop-Up Blockers
Tested on my XDA Orbit WM6
it's pretty slow and compared to Opera mobile 8.5 the navigation is extremly annoying. (na good grab, where are the gestures?!)
I just tried this and it is 100% unusable on my PPC 6800. The memory usage and performance is horrible. I wish I had something better to say. I had high hopes for this browser. At least it seems to be open source.
I tried this on my PPC 6700 (apache) and it's way too slow for me, also none of the features they advertise works. (at least I can't figure out the zoom in thing they are talking about).
Same comments as the previous two when I tried it on my sprint 6800. Bummer. I don't think we have the program memory to handle this.
It's not that bad - definately a preview release and a promising project.
Zoom works fine, you can drag around the screen okay (a little slow), and the interface is okay,.
the only weird thing is fullscreen leaves the softkey menu bar there, just makes it blank. You have to hit a "ok" hard key to get it back.
They're on the right track, but still a long way to go before it will get any takers...
People ur wrong or u have a low connection, it works great, very fast, amazing, the best browser, opera, skyfire and others sucks, I have a PPC210, I love it.
I've grown to like this browser too, although there is still a feature they could relatively easily upgrade to be more comparable to Mobile Safari, which is to support 8 tabs or more. It currently supports 4, so...
Also, Iris appears to crash after a couple views of Show All tabs.
What was the latest version before they were bought out and stopped sharing the file?
Edit: Nevermind - it was probably 1.1.8
no! it' 1.19

Help from other devs needed - webviews, invalidate() and onConfigurationChanged()

What does onConfigurationChanged actually do on a webview? (let me clarify that - I know what it's FOR, and I know how to use it and override it, but what does the guts of the original super.onConfigurationChanged do itself?)
The reason I ask is that I'm having problems in my browser mods (see my sig) related to a new feature I've added where it maintains the zoom level across pages (so you don't zoom out to a comfortable reading level only to have it blatted when you move to the next page on a site). I'm doing this by pulling back getScale and then using the value to setInitialScale on the webview. So, when a new page is loaded, it's initial scale has been set to the zoom level/scale that was being used on the previous page. Net result - user doesn't see zoom level change from page to page. So far so hoopy.
The only problem is that there's an odd bug whereby the subsequent page loads into same horizontal width as the previous page. So, if you are reading a really wide page/site, and browse to a new site which is thinner, then you have a horizontal scroll bar and the columns do not reformat as they should if you've got "Auto fit pages" on in the settings. However, if you zoom in and then out again, the reformatting happens fine and you have a comfortable viewing layout.
Now I would have thought that it was just a case of calling invalidate() on the webview at a pertinent point in order to force a redraw (and if I look at the source code for webview that's precisely what they do when they zoom in/out). But for some reason that doesn't seem to do anything in my app. If I call invalidate after a page has finished loading (which seems the best point for a redraw) nothing happens.
The reason I ask about onConfigurationChanged is that flipping orientation to/from landscape again also resolves the issue. So I'm curious to know what it's doing in there that's relevant above and beyond an invalidate().
I freely confess that I really know naff all about Android - my Browser work has largely consisted of me flinging code against a wall to see what sticks - so would appreciate any help from devs who do actually know their Android stuff.
(as an aside, I wonder if this bug in the webview was the reason why the stock Browser was never built to preserve zoom level from page to page? It was easier to settle for merely irritating behaviour in the browser app rather than resolve the bug in the underlying web rendering implementation!)

[Q] No bookmarklet support?

I understand that the browser in Windows Phones is based on IE6/7. However, I was under the belief that both IE6 and 7 supported bookmarklets, so I was a bit surprised by the fact that I couldn't open "javascript:" addresses from IE, nor could I open a bookmarklet that I had, well, bookmarked. What gives? Does anyone know if this was removed as a security issue, or whether it will be fixed in Mango?
I wanted to use the Readable bookmarklet or look for another one that could reverse the color scheme on websites so that all the white on the internet wouldn't kill the SAMOLED screen and my eyes.
Yea... the rendering engine is based on ie6/7 not the entire browser codebase. The code could be there, however, for speed and bandwith purposes, it is probably all locked down. Can u use bookmarklets in IE9? If u can, then there is hope for the future of mango which uses extremely similar bits of code and the rendering engine is identical across phone and desktop/laptop browser.
Hope u can get that all to work out for u
Mango does support bookmarklets - apparently not to the extent that the IE9 desktop browser does, but javascript: "addresses" can executed, either from the address bar or from Favorites.
For example, if you're missing the "Forward" menu item, try Favoriting
javascript:history.forward();
(Works for me, at least)

Xoom WebKit CSS position:absolute issues

I have a webpage loaded on my Xoom's Android Browser which has 3 absolutely position div's - a header which is 40px in height and spans the entire width of the page, a left menu 200px in width and a main content section filling the remainder of the page.
Inside the content, a number of <select> controls are present and, when the page is posted back, more <select>'s are added to the content page based on the initial selections.
When the page first loads, I am able to select values from the lists and enter values into text fields, etc. When the page is posted back to the server, I am unable to enter any values into any of the form controls on the page; from text fields to lists.
When I click on a control, a focus rectangle appears around the control but also another artifact appears on the page in the position the control is in the content section but relative to the top left corner of the page.
I believe that it may be this artifact and positioning error that is causing my issue but there seems to be no debugging tools available that allow me to inspect the source of a webpage in the Android Browser.
I've loaded Opera Mobile onto my Xoom and this works without any problems. I attempted to use Firefox but this seemed to buggy. All the usual desktop browsers work without fail. Dolphin does not work on the Xoom.
I guess this indicates a problem with WebKit however I wouldn't even know where to begin to fix this (other than change the CSS position attribute, which I can't).
Can anyone offer any advice as to what I could try? Has anyone experienced anything like this? Unfortunately, I really need to get this working on a tablet - preferably a non-Apple unit.
Thanks in advance,
Kev
Are you writing html or just trying to get a certain site to work?
Haven't really read through the entire thread lol
Did you try to get into debug settings in the Xoom? I don't remember how but you can Google it.
Sent from my PC36100 using XDA App
This is not development. Moved to QA. Good luck with the problem, though.

Categories

Resources