makeImageRequest

Former Member
Former Member
I'm author of "Image Notify" and "NotifyApp".

Garmin Connect Mobile for android ver 3.8, makeImageRequest not work.
Receive bitmap is fill black on my fenix3.
version down to 3.7.0.3, work fine.
makeImageRequest API is changed?

hidden var paletteTEST=[
0x000000,
0x555555,
0xAAAAAA,
0xFFFFFF
];

Comm.makeImageRequest(
"http://127.0.0.1:8080/",
{"id" => index},
{
:palette=>paletteTEST,
:maxWidth=>width,
:maxHeight=>height
},
method(:onImageRecive)
);
  • Thanks for the report. We'll take a look and see what the issue is.
  • Would you be able to post the image you're using, or email it to [email][email protected][/email]? This would help us speed up or investigation of the issue. Thanks.
  • Former Member
    Former Member over 8 years ago
    Does the call work if you set an alpha value in your palette colors?

    hidden var paletteTEST=[
    0xFF000000,
    0xFF555555,
    0xFFAAAAAA,
    0xFFFFFFFF
    ];


    Recent changes to the compiler updated how alpha/transparent values for color palettes are being handled. Unfortunately this bug was caught after the GCM Android release went out. In the future alpha channels will go back to being 0xFF but setting them to 0xFF should work with the 3.8 release of GCM Android. The good news is if you update your code to set the alpha channel to 0xFF to work around this issue and it will still work once the bug is fixed.
  • Former Member
    Former Member over 8 years ago
    Work fine

    Does the call work if you set an alpha value in your palette colors?

    hidden var paletteTEST=[
    0xFF000000,
    0xFF555555,
    0xFFAAAAAA,
    0xFFFFFFFF
    ];


    Recent changes to the compiler updated how alpha/transparent values for color palettes are being handled. Unfortunately this bug was caught after the GCM Android release went out. In the future alpha channels will go back to being 0xFF but setting them to 0xFF should work with the 3.8 release of GCM Android. The good news is if you update your code to set the alpha channel to 0xFF to work around this issue and it will still work once the bug is fixed.


    Thank you.I modify my code, work fine both 3.7 and 3.8.
    Today version up to 3.8.0.1, it work fine also.
    Thank you for your work.:o