Problem with Android 4 StageWebView cutting off/covering up buttons on same View

So I'm trying to pull off something similar to the example here: http://cookbooks.adobe.com/post_Create_a_basic_web_browser_with_StageWebView-18850.html. Basically, a native browser view with a few Flex controls over top. Problem is, I've been running into a lot of display problems on Android 4 devices specifically. As far as I can tell, the StageWebView seems to be preventing the button overhead from being rendered in part or *at all* - as in, the button doesn't show up at all. It's just black.
See for yourselves. Here's a screenshot (the test page has a yellow background):
If I touch the screen or the web view, the button will (usually) abruptly show up above the page, where it's supposed to be:
Anyone else seen anything like this before? Any ideas what it could be?
Additional information for those who might want it:
- Project is being developed in Flash Builder 4.6 with the 4.6 SDK. Screenshots are from a Google Nexus 7 tablet (Android version 4.1.2, Adobe AIR version 3.4.0.254).
- the view in this case is an ActionScript class extending View with a skin. Here's the relevant code:
[SkinState("ready")]
[SkinState("loading")]
public class LogInWebView extends View
          [SkinPart(required="false")]
          public var previousButton:Button;
          private var browser:StageWebView;
          private var url:String;
          private var isFirstPageLoaded:Boolean;
          public function LogInWebView()
                    super();
                    isFirstPageLoaded = false;
          override public function set data(value:Object):void {
                    url = value.url;
                    invalidateProperties();
          // protected functions
          override protected function createChildren():void {
                    super.createChildren();
                    if (url) {
                              browser = new StageWebView();
                              browser.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
                              browser.addEventListener(Event.COMPLETE, onFirstPageLoaded, false, 0, true);
                              browser.loadURL(url);
          override protected function partAdded(partName:String, instance:Object):void {
                    super.partAdded(partName, instance);
                    if (instance === previousButton) {
                              previousButton.addEventListener(MouseEvent.CLICK, onPreviousButtonClick, false, 0, true);
                              if (browser) {
                                        browser.viewPort = new Rectangle(0, previousButton.height, stage.stageWidth, stage.stageHeight-previousButton.height);
          override protected function commitProperties():void {
                    if (isFirstPageLoaded && currentState != "ready" && browser) {
                              // display StageWebView now that it's loaded
                              skin.currentState = "ready";
                              browser.stage = this.stage;
                    } else if (currentState != "loading") {
                              skin.currentState = "loading";
                    super.commitProperties();
          // event listeners
          private function onFirstPageLoaded(event:Event):void
                    browser.removeEventListener(Event.COMPLETE, onFirstPageLoaded);
                    isFirstPageLoaded = true;
                    invalidateProperties();
- note: the button ONLY appears in state "ready" - it's not in state "loading."
Your thoughts?

Hi,
Not sure what your specific problem is, but I have encountered no problems at all by going a stage further with my implementation - it is based on http://soenkerohde.com/?s=stagewebview but I extended it to update on dimension changes of the container.
EG:
[code]
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth,unscaledHeight);
updateBrowser();
protected function updateBrowser(event:ResizeEvent=null):void {
if(myStage && stageWebView) {
  var offsets:Point = new Point();
  offsets = this.localToGlobal(offsets);
  stageWebView.viewPort = new Rectangle(offsets.x, offsets.y, unscaledWidth, unscaledHeight);
[/code]
Seems to work for me, anyway. Hope it does for you too.
G

Similar Messages

  • HT204406 Problem with iTunes match cutting off a song on my iPhone, not Mac or PC

    I have purchased the Katy Perry album "Prism" outside of iTunes and matched it with iTunes match. When I try to play the first song "Roar" on my iPhone, it plays only part of it and then cuts off and plays the second song.  This only happens on my iPhone, when I use iTunes match to play the song on either my mac or PC using iTunes, the song plays fine without any issues.
    I've tried turning off iTunes match, and then starting it again, no luck.  I powered off, then on my iPhone, no luck.  I've downloaded the song out of the cloud and still has the same problem... anybody have this problem too or can help?

    Some additional observations:
    When I look at the album, the song "Roar" has a length of "2:05", but once I play the song by pressing it, the song begins playing and the slider shows a length of 3:39 (close to the correct length).  However, once it hits 2:03, it stops and starts playing the next song.
    Interestingly, using iTunes on my mac, the song in the album view shows "2:04" but once I double-click the song, the length changes to "3:43", but plays the complete song without any problems.

  • A camera icon (with the ends cut off) is on my lock screen, and it wont open the camera app. how do i fix this?

    A camera icon (with the ends cut off) is on my lock screen, and it wont open the camera app. how do i fix this? does anyone else have this problem with the iphone 4s?

    What do you mean "with the ends cut off"?
    You swipe the screen upwards starting on this icon to open the camera app.

  • How can I share contacts with Android users via the "share contact" button via messaging or otherwise

    Appologies in advance if this has been asked before.
    I have an iPhone 5/iOS 6. My friend(s) use Android phones. At times, they request a contact I have, but every time I select "Share Contact" via the button in my iPhone's Contact list, either as an Email or Message, they recieve an unusable file format - in other words, it just doesn't get to them. If I manually copy and paste the fields into a txt, they will get the info. Is there an app, or something I need to do differently to be able to share contacts with Android users via the "Share Contact" button in iOS?
    Thanks,
    Nathan

    Shouldn't be an issue here, as the iPhone shares the contact info in standard vCard format.

  • TS2634 Iphone will not charge. the battery does not even show up. Have tried holding down both on/off and enter button at same time

    the battery does not even show up. Have tried holding down both on/off and enter button at same time
    Doesn't appear to have any life. Not that old

    I have tried several plus into the computer itself

  • Android 4 Problem - StageWebView cutting off button on same View

    So I'm trying to pull off something similar to the example here: http://cookbooks.adobe.com/post_Create_a_basic_web_browser_with_StageWebView-18850.html . Basically, a native browser view with a few Flex controls over top. Problem is, I've been running into a lot of display problems on Android 4 devices specifically. As far as I can tell, the StageWebView seems to be preventing the button overhead from being rendered in part or *at all* - as in, the button doesn't show up at all. It's just black.
    See for yourselves. Here's a screenshot (the test page has a yellow background):
    If I touch the screen or the web view, the button will (usually) abruptly show up above the page, where it's supposed to be:
    Anyone else seen anything like this before? Any ideas what it could be? Or what could be a fix? Project is being developed in Flash Builder 4.6 with the 4.6 SDK. Screenshots are from a Google Nexus 7 tablet (Android version 4.1.2, Adobe AIR version 3.4.0.254).

    Uhh... anyone?

  • Problem Solved: iTunes Songs Cutting Off

    Hello Everyone,
    I just thought I'd share my knowledge with you all. Granted, my solution may not be your solution but I'm putting it out there for everybody to know.
    I was on the phone with Apple iTunes Tech Support for 2 hours going through a really lengthy process of trying to figure out the solution when my host and I finally realized that the solution was a simple one (maybe not, if you have more than a dozen songs having this problem). The problem was that some of my iTunes songs, for no reason at all, were being cut off at the end (usually around a minute or so left in them) and then my iTunes would start playing the next song (unless I had it on the "loop one" setting and then it would loop back to the beginning of that song). The problem, it seems, stemmed from a corrupted song link to the actual file.
    The solution:
    1) Open a Finder Window
    2) Click on the Music tab
    3) Click on the iTunes folder
    4) Go into your iTunes Media (or iTunes Music) folder
    5) Click on the Music Folder within
    6) Click on whichever Artist the song comes from and then its Album
    7) Check to make sure you have the song in there
    8) Open iTunes
    9) Delete the problem song from your iTunes application (but make sure to click the option that says Keep File)
    10) Click on the same song in your Music Folder and open it in iTunes
    The link should now be fixed and your song should play without complications. You'll have to do this with every song that has this problem but at least it will work. By the way, reinstalling your iTunes doesn't fix the problem because it's the link that's corrupted, not the application nor the song, so you'll have to do it this way.
    Hope this helps!
    - Hannah (Failisse)

    Does the track play correctly in Quicktime Player?  If it does then it is an iTunes issue.  If it doesn't then it is possible the file was not completely downloaded, or is corrupt.  If you believe it is corrupt:
    If you are in a country where re-downloading is possible (check this with iTunes in the Cloud and iTunes Match Availability by Country - http://support.apple.com/kb/HT5085), delete the track (and the original file) and download again (Downloading [using iOS or computer] past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519).  See tips on downloading in https://discussions.apple.com/message/19097773, especially unchecking the "Allow Simultaneous Downloads" box in the downloads tab of iTunes.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • If you have problems with your ipod turning off and charging look at this..

    I have to send in my 80gb ipod video because I am having problems with the battery,I charge it until it says charged and in ten min it shuts off and when I try to turn it on it says that there is not enough battery life to even turn on so i called it in and they told me that I have short battery life and that I have to send it in and they will fix it...If anybody out there has the same problem call it in and they will replace it...and if you don't have the number here it is:1-800-275-2273

    hey man I'm glad they replaced it...but if you look
    most of the problems are with the battery or the hard
    drive...I know that people make mistakes and I do not
    expect it to be perfect,but some people expect for it
    to be working perfect...and those people tell other
    people that there product was defective,and that's
    how Apple loose customers..I didn't say I was Mad...I
    don't know why your getting mad, I'm sorry if I
    offended you, I was just trying to give Apple advice
    sorry.
    Not true, most problems are with software, then with the earphone jack I quote from a letter that I recieved from a service manager that I worked with several years ago who wrote me two weeks ago and I am quoting. "Although the percentage is small it seems that if I had to put it into words I would say that software glitches seem to be the number one problem with the earphone jack a close second. Although both are not a major percentage. All in all it is a great product." Not mad,and sure that Apple will be far better off with your advice. Maybe they will move up from the number one maker of the number one mp3 player in the world and make some serious money with it now that they have it. But be advised that they do not monitor this for advice. You might want to try here http://www.apple.com/feedback/ipod.html
    and I will run out and buy more stock.

  • Problem with opening final cut studio3 project files

    hello, i m using final cut studio 3 and it seems it ocured a problem with the projects
    after i work on a project and save it, i can t open it anymore(it apears a dialog box wich it says unable to open project file)
    i ve uninstalled final cut, installed again and the problem it s still there
    cam you give me an advice about what i can do?
    thank you

    Uninstalling/reinstalling rarely helps in issues like these and is usually a huge waste of time... It sounds more like a corrupt project than anything. Is FCP able to open other projects?
    Hopefully you have Autosave turned on, as that  may be your only salvation... So go to your Autosave Vault (usually located in your documents folder, in the Final Cut Pro Documents folder).

  • Problem with my Final Cut express HD's livetype & soundtrack programs

    Hi everyone, hope someone could help me
    In 2006 i but my Final cut Express HD for my laptop Macbook. I have used a lot, it always worked.
    I haven't used it this year and the only new thing a did to my laptop was installed the snowleopard software is now 10.6.8. But yesterday, i try to save a project in my LIVETYPE and SOUNDTRACK (programs that come with the Final Cut Express HD) it automatically close up deleting everything and appear a window saying: that quit unexpectedly and push reopen and repeat the error over and over again.
    the program (Livetype and Soundtrack) opens and are install perfectcly but it doesn't let you save or export anything it automatically close it up.
    Final cut is the only one that let you save projects.
    I have install and uninstall it many time and it still doesn't work.
    I will like to know what happens? and how can i fix it?!
    Thank you so much
    best regards
    isabella

    Thanks for your help! i try it and i thought it help, because this time the installation ask me new things like for example: my seriel number, etc. something the program didn't before.  But in the end everything is install perfectly but it repeat the same problem when i try to save a project  in livetype or soundtrack but not in final cut. This is what appears in my screen:
    Thanks again!
    regard

  • Problems with Android 2.1 for Xperia Mini-Pro: no Twitter on Timescape and not all contacts restored - please help!

    Hello all!  I own an Xperia Mini-Pro which I updated with Android 2.1 yesterday.  Having some problems, the main ones being: 1) Timescape does not allow me to sign in to Twitter (it claims my username and password are incorrect, despite successful log-ons with the same details via Twitter Mobile); and 2) not all my backed-up contacts have been restored to my phonebook (and yet they still exist somewhere in the phone - I know this because I can bring up full contact details for people who've sent me SMS - but I cannot find them if I use the phonebook interface).  Someone please help?  Cheers - Jos

    I suggest that you try to clear data and any cache in for the Timescape app.
    Menu> Settings> Applications> Manage Applications> Click on the first hardware button (the one with four squares)> Filter> All> Timescape> Clear data and any cache.
    Then check if you get the same error when trying to log in to Twitter.
    Regarding the contacts I think you should check if they maybe filtered in the phone book. Open the phone book and click on the first hardware button (the one with four squares) > Contacts to view.
    Check if some of your contacts might be filtered.
     - Community Manager Sony Xperia Support Forum
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • AirPrint with 3040A HP cut off

    I've been trying to use the AirPrint feature with my HP 3040A printer and everything works fine until it prints. I've tried with pictures, documents, screenshots...everything. It prints the image in the top left corner of the paper and cuts off the top and sides. It also doesn't print it at all at the size it should be. I've tried on two printers and I have the same issue. Any ideas?

    Sorry I looked but I couldn't find the 3040A there. According to Apple's list:
    http://support.apple.com/kb/ht4356
    the 3050A supports AirPrint but the 3040A is not listed there.
    Any chance you are sharing the printer through a Mac or PC?

  • Folio download problem with Android app

    I still have a problem with the app. It's ok with the certificate now and ok on google play store.
    The app was updated on two android tablets and when I try to download an issue which was uploaded a few months ago with v30 DPS tools, the app can't download it because I need to upgrade the app.
    The first one was build with v25 tools, is this something with the certificate.
    Yves

    What version number shows in the about dialog of your application? You can get to the about dialog from the "..." or hardware menu button on your device while in the library view. Select "About".
    Also, can you send me a private message with the adobe ID that you're using to publish your folios?
    Neil

  • Java card Applet RSA encryption Problems with Android

    hi all,I am new to java card development. I have used nxp jcop 31-36 java card and nexus s for testing the application.so i have faced lot of problems.first of all i want to encrypt data coming from the android app using RSA1024 and send back to the android application.there are the problems I faced
    1.RSA1024 and RSA2048 algorithms can't work with the nexus s Application.it means i can't receive any encrypt data from card.but when i test the application with eclipse jcop shell tool it is work properly.
    2.when i run the application in nexus s the application is crashed.it gives some wired sound when tap the java card to android phone.it may be java card application crashed or give some wired sound from android OS level.
    3.Then I Test the Application with Samsung S2. Sometimes it works but sometimes it crashed.in the S2 the encryption works fine(but we have to keep wile card 2 or 3 minutes).
    these are the steps i followed in established the connection i android phone.So fist i created the ISO dep connection and first select the Application(00A40400AID).Then using transive method i send data to java card.In the Java card in the installation i have created the RSA key pairs and get the RSA public key and private key.in some method i got the APDU buffer and read data and encrypt this data.Then those are send back to the card. First i want to know is there any problem in Android Os or JCOP 31/36 card.And other thing each time i requested to java crd is that need to reset the java card and how to reset the Java card.(some brief idea)

    Hi,
    1) Import android.smartcard libraries,
    2) Try to make a connection :
    ISmartcardConnectionListener connectionListener = new ISmartcardConnectionListener()3) create an instance of smartcardclient:
    smartcard = new SmartcardClient(this, connectionListener);4) get the list of readers :
    String[] readers = smartcard.getReaders();you can check if a specific reader is connected or nor with
    smartcard.isCardPresent(readers [0]);5) create a card channel and select your applet:
    cardChannel = smartcard.openLogicalChannel(cardReader, APPLET_AID);
    ICardChannel cardChannel = null;
    cardChannel = smartcard.openLogicalChannel(cardReader, APPLET_AID);6) you can send and receive APDUs with this line of code:
    byte[] response Apdu = cardChannel.transmit(commandApdu);Regards,
    Hana

  • Problems with a 3120 - shuts off randomly

    Hi there.
    I've owned my Nokia 3120 for about 2 and a half years now, so I guess it may be getting a little long in the tooth, but I haven't had any problems with it. Recently however, it has begun shutting off randomly, possibly as a result of the odd bump and scrape it's taken through the years (I have a toddler, and toddlers love to throw things). Any advice on what could be happening to the phone, and if I'm probably better off getting a new phone?
    Allan.

    Well, the plot has thickened on this particular little beastie. It hasn't shut off randomly in a bit - but I've noticed that if I try to write a text message 9/10 times it will freeze if I type more than about 15 characters and will stay like that a sec, go blank, and then return to the normal wallpaper screen as if nothing had happened with no backlight. It takes a sec for it to read the sim card, and then I can use my phone as normal, providing I don't want to text anyone.
    I do not believe that the battery connections have anything to do with this problem, judging from the fact that I have swapped the battery and ensured that the pins connecting it to the phone are in the same order as the phone I swapped the battery from.
    Allan.

Maybe you are looking for