Bug? Android 5.1 and B4A MsgBox2 issue.

Discussion in 'Bugs & wishlist' started by NJDude, Mar 18, 2015.

  1. NJDude

    NJDude Expert Licensed User

    It seems the new upgrade breaks B4A MsgBox2, the icon doesn't show up, it did just fine on 5.0.2.

    I've just got the upgrade on my Nexus 7 and after testing it I spotted that issue.

    EDIT TO ADD: It seems that the icon MUST be 32x32 (unless B4A is not resizing it).
     
    Last edited: Mar 18, 2015
    walterf25 likes this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    The icon is not resized by B4A. It is passed as is to the native API.
     
  3. NJDude

    NJDude Expert Licensed User

    Well, that's interesting, Android Msgboxes can use "larger" (resized) icons, but with B4A it seems it must be 32x32 or they won't show up.
     
  4. NJDude

    NJDude Expert Licensed User

    Scratch that, icons do not show on the MsgBox2 under Android 5.1 regardless of size.
     
    thedesolatesoul likes this.
  5. Erel

    Erel Administrator Staff Member Licensed User

    thedesolatesoul likes this.
  6. NJDude

    NJDude Expert Licensed User

    Just using the device's default material theme.

    Even if I add this line to the manifest: SetApplicationAttribute(android:theme, "@android:style/Theme.Holo"), still no icon.
     
    Last edited: Mar 19, 2015
  7. Erel

    Erel Administrator Staff Member Licensed User

    I will check it.
     
  8. Peter Simpson

    Peter Simpson Expert Licensed User

    Wow nicely spotted @NJDude.
    Even the space on the top left hand side where there would usually be an icon (if added) disappears moving the title over to the left. I never noticed that on my app on my N5 running 5.1 until I read this post. I've used my app today as well...
     
  9. DavideV

    DavideV Active Member Licensed User

    Hi, i've just upgraded my device to android (cyanogen) 5.1.1 and i get the same 'no icon' problem. It worked with android (cyanogen) 5.0.
    I'm using B4A V4.30, tested the 32x32 icon size too...
    Tried also to compile with API platform V22, same problem.

    Bye
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    It will be fixed in the next update. The previous workaround for the issue in Android 5.0.1 is now causing this issue.
     
    DonManfred and DavideV like this.
  11. Paul Leischow

    Paul Leischow Member Licensed User

    Will MsgBox2 be fixed any time soon?

    Just tried it on Android 5 compiled with B4A 5.0.2 and icon is still missing.
    Android 4.4.2 shows the icons perfectly.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Is the device running Android 5.0 or Android 5.1? It should work properly in Android 5.1.
     
  13. Paul Leischow

    Paul Leischow Member Licensed User

    Android 5.0 (5.1 is not yet available in Canada for my device)
    I noticed that 5.0 in the emulator gives same results of icon missing and 5.1 in the emulator is fine.
    Guess there is no work around for 5.0 ?
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    The problem with the workaround required for v5.00 is that it broke the msgbox in v5.1+. Therefore I removed it.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice