Hi Steve, All my PDF apps have the "Clear defaults" option disabled because no defaults are set. I don't have associated app neither with JPG nor PNG. When I click such a file in file manager (or gallery, or any other app) I'm getting application selection to select in which application it should open (PDF app is not present in the selection). The same I have in CN1 application with lowercase extensions.
But uppercase JPG or PNG are always handled like PDF, I tested both extensions on more devices and the behavior is the same. Best regards Ivan Ilavsky On Thu, Apr 13, 2017 at 6:34 PM, Steve Hannah <[email protected]> wrote: > I don't see anything explicitly setting this in our code. My guess is > that android treats ".PNG" differently than ".png", and you have previously > chosen your PDF program to open files with .PNG. Check out the settings > for your PDF application in settings to see if this is the case. > Directions would be similar to this: > http://www.guidingtech.com/13517/change-default-program- > android-file-type-open/ > > Best regards > > Steve > > On Thu, Apr 13, 2017 at 6:22 AM, Ivan <[email protected]> wrote: > >> Hi guys, >> >> on Android: when I try to open image with uppercase extension: JPG, PNG >> in associated application using Display.getInstance().execute(path) the >> device allways tries to open it as PDF. >> With lowercase extension works everything ok. >> >> Is this CN1 bug or Android problem? >> >> (I'm using workaround renaming the file to lowercase extension currently, >> but it's not very comfortable) >> >> thanks >> >> Ivan >> >> If you are experiencing an issue please mention the full platform your >> issue applies to: >> IDE: Eclipse >> Desktop OS: Ubuntu 16.04 >> Simulator >> Device: Xiaomi Redmi Note 4 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "CodenameOne Discussions" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> Visit this group at https://groups.google.com/grou >> p/codenameone-discussions. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/codenameone-discussions/cf15222d-f4c3-4907-be9b-08701261 >> 1ff2%40googlegroups.com >> <https://groups.google.com/d/msgid/codenameone-discussions/cf15222d-f4c3-4907-be9b-087012611ff2%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Steve Hannah > Software Developer > Codename One > http://www.codenameone.com > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/codenameone-discussions/Dq8hhyNwqPg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > Visit this group at https://groups.google.com/ > group/codenameone-discussions. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/codenameone-discussions/CAGOYrKW6ebfC0O5hi_ > kE7A2pnFxAj0O4VoErhSUdRwKxcf9Y-g%40mail.gmail.com > <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKW6ebfC0O5hi_kE7A2pnFxAj0O4VoErhSUdRwKxcf9Y-g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ivan Ilavský Tamebytes s.r.o. [email protected] +421 905 664177 http://www.tamebytes.sk -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CA%2BysJ8yjpxr0AA%2BJ%3DnqKyzV%3D%2Bk6T6oH%2Bvwq%3DPA%3DcSKQTJ4fiwA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
