Re: [codenameone-discussions] Re: Captured audio: missing file extension

2017-04-19 Thread Ivan Ilavsky
yes, with extension .3gpp it works for me again, thanks

On Wed, Apr 19, 2017 at 1:39 AM, Steve Hannah 
wrote:

> Capture.captureAudio() uses 3gpp format.  When you copy the file to file
> system storage, add the .3gpp extension and then it should work with
> Display.execute().
>
> I'm experimenting a little with the mimetypes and extensions right now in
> the android port to see if I can improve things for mimetype detection.  I
> will likely be changing the temp file produced by captureAudio() to use the
> .3gpp extension anyways.
>
> Notice that you shouldn't pass the path that you get back from
> captureAudio() directly to Display.execute().  You should first copy it to
> file system storage, then pass the copy to execute().
>
> Steve
>
> On Tue, Apr 18, 2017 at 1:01 AM, Ivan Ilavsky 
> wrote:
>
>> May be it's changed for longer time. One of the users discovered it now
>> after last libs update ... the extension is missing and the application is
>> not able to play the audio file on Android using 
>> Display.getInstance().execute(path);
>> (this worked for me previously)
>> How can I fInd out what encoding/mime type is used (AAC, AMR, ..) ?
>>
>>
>> On Tue, Apr 18, 2017 at 7:30 AM, Shai Almog  wrote:
>>
>>> Hi,
>>> are you sure?
>>> Looking at the history from the past 3 weeks:
>>> https://github.com/codenameone/CodenameOne/commits/master
>>> I can't see anything that should impact this. The only thing remotely
>>> close is https://github.com/codenameone/CodenameOne/commit/75a54f9ea8
>>> 9470bb4c3e67ac836dd85a9814052a and it's a trivial change.
>>>
>>> --
>>> 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/to
>>> pic/codenameone-discussions/KffK7T0UUn8/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> codenameone-discussions+unsubscr...@googlegroups.com.
>>> 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/6d09bf30-4dd1-46d8-8d60-05bfe13b
>>> e190%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/6d09bf30-4dd1-46d8-8d60-05bfe13be190%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Ivan Ilavský
>>
>> Tamebytes s.r.o.
>> ivan.ilav...@tamebytes.sk
>> +421 905 664177 <+421%20905%20664%20177>
>> 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 codenameone-discussions+unsubscr...@googlegroups.com.
>> 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/CA%2BysJ8xM21oT0_6saV3BbuhQ1dAW8
>> sUmjyDHn4RqjXtxvThwXA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/CA%2BysJ8xM21oT0_6saV3BbuhQ1dAW8sUmjyDHn4RqjXtxvThwXA%40mail.gmail.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/KffK7T0UUn8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> 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/CAGOYrKXhb35vAOMJZBhtd69YfCjfR
> dhBS1GCaNxEOmThe-kz9w%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXhb35vAOMJZBhtd69YfCjfRdhBS1GCaNxEOmThe-kz9w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/

Re: [codenameone-discussions] Re: Captured audio: missing file extension

2017-04-18 Thread Ivan Ilavsky
May be it's changed for longer time. One of the users discovered it now
after last libs update ... the extension is missing and the application is
not able to play the audio file on Android using
Display.getInstance().execute(path);
(this worked for me previously)
How can I fInd out what encoding/mime type is used (AAC, AMR, ..) ?


On Tue, Apr 18, 2017 at 7:30 AM, Shai Almog  wrote:

> Hi,
> are you sure?
> Looking at the history from the past 3 weeks: https://github.com/
> codenameone/CodenameOne/commits/master
> I can't see anything that should impact this. The only thing remotely
> close is https://github.com/codenameone/CodenameOne/commit/
> 75a54f9ea89470bb4c3e67ac836dd85a9814052a and it's a trivial change.
>
> --
> 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/KffK7T0UUn8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> 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/6d09bf30-4dd1-46d8-8d60-
> 05bfe13be190%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ivan Ilavský

Tamebytes s.r.o.
ivan.ilav...@tamebytes.sk
+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 codenameone-discussions+unsubscr...@googlegroups.com.
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%2BysJ8xM21oT0_6saV3BbuhQ1dAW8sUmjyDHn4RqjXtxvThwXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Open image with uppercase extension JPG, PNG using Display.getInstance().execute(path)

2017-04-17 Thread Ivan Ilavsky
Hi Shai,

the image is in Android/data/ directory.
The full URL is:
file:///storage/emulated/0/Android/data/sk.easysoft.maintplan/IMG_20170417_09254.JPG

On Fri, Apr 14, 2017 at 7:53 AM, Shai Almog  wrote:

> Hi,
> Is the image under the app home path?
> How does the full URL to the file look?
> I think it might reach an edge case in getMimeType(String) and Android
> might not recognize some types correctly
>
> --
> 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
> codenameone-discussions+unsubscr...@googlegroups.com.
> 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/7fa5d1ca-ff28-43a8-8465-
> 78dd383eaa4f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ivan Ilavský

Tamebytes s.r.o.
ivan.ilav...@tamebytes.sk
+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 codenameone-discussions+unsubscr...@googlegroups.com.
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%2BysJ8wx2_a8xCsGYAHS0GeX-C-GwkNQPVbmi7RD5uky376u0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Open image with uppercase extension JPG, PNG using Display.getInstance().execute(path)

2017-04-13 Thread Ivan Ilavsky
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 
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  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 codenameone-discussions+unsubscr...@googlegroups.com.
>> 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
> codenameone-discussions+unsubscr...@googlegroups.com.
> 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.
ivan.ilav...@tamebytes.sk
+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 codenameone-discussions+unsubscr...@googlegroups.com.
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.


Re: [codenameone-discussions] Re: iOS Install: Cannot connect to codename-one.appspot.com

2017-02-07 Thread Ivan Ilavsky
works! App installed. Fixed for me, thanks!

Dňa 6.2.2017 15:23 používateľ "Shai Almog"  napísal:

> I did see some usage of http instead of https. This is fixed now.
>
> --
> 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/LNwPwgOkp7U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> 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/ce7b5e69-2ce0-450f-a00f-
> 16a65b339384%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 codenameone-discussions+unsubscr...@googlegroups.com.
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%2BysJ8xDGedwOh4CDFM33x3CXHF7NiTb7MzeE-tyU-hGHTxA1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Codescan cn1lib vs iOS build

2017-01-18 Thread Ivan Ilavsky
right, there is no other settings except these I've sent you
What should cause the compilation problem?

Dňa 19.1.2017 5:48 používateľ "Shai Almog"  napísal:

> You are not sending an iphone_old build or something like that by any
> chance right?
>
> --
> 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/Tf7Oq9QNRRk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> 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/48ebf452-d0f3-4e6a-adaf-
> aeb5ab05f2b6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 codenameone-discussions+unsubscr...@googlegroups.com.
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%2BysJ8z4PMjQ8i8aYfPdyC_j%2BF7FQNYk17yYjUba8Z26Mr2nxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.