Re: [codenameone-discussions] Re: Access photos permission

2016-12-08 Thread Gareth Murfin
oh that could be bad!

On 9 December 2016 at 13:20, Shai Almog  wrote:

> Yes as we mentioned in the permissions post https://www.codenameone.com/
> blog/switching-on-android-marshmallow-permission-prompts.html
> SDK 21 didn't include this but if you submit to google with SDK 23 you
> can't revert. They don't accept that which is REALLY frustrating.
>
> --
> 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/RAVmkVhMrGs/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/2bb3126f-0de0-4193-a907-
> 04307893bd24%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

-- 
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/CANOaY6n02sfCzoeZz%3D6HtKeSQ7yf7658dX2aqFBNHMCfccpKnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-08 Thread Shai Almog
Yes as we mentioned in the permissions post 
https://www.codenameone.com/blog/switching-on-android-marshmallow-permission-prompts.html
SDK 21 didn't include this but if you submit to google with SDK 23 you 
can't revert. They don't accept that which is REALLY frustrating.

-- 
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/2bb3126f-0de0-4193-a907-04307893bd24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-08 Thread Gareth Murfin
no, not even sure how to do that, all I want to do is launch a browser and
visit it.

On 8 December 2016 at 13:32, Shai Almog  wrote:

> Do you have an app associated with that URL by any chance?
>
> --
> 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/RAVmkVhMrGs/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/26a7d735-49f2-4571-9adc-
> c63b7dfe10df%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

-- 
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/CANOaY6%3D1OPRuYMdWLQ-rLkziD%3DknX2mqo_%2BA9gwTDd32f-F_Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-07 Thread Gareth Murfin
and then after that it asks for access to "photos,media and files on 
device", JUST from opening a link. Android 6 permissions are killing me, 
also none of this shows in simulator even with android 6 permissions ticked.

On Wednesday, December 7, 2016 at 8:08:35 PM UTC+8, Gareth Murfin wrote:
>
> Client sent me a video, simply opening a browser link inside the app says 
> "requires permission. this is required to open the file", all I can doing 
> is:
>
> Display.getInstance().execute(url);
>
> On Wednesday, December 7, 2016 at 7:34:20 PM UTC+8, Gareth Murfin wrote:
>>
>> Thanks Shai I will ask client to do that, I dont see anything in that 
>> link thatI aum using that would need access to media and files... Maybe it 
>> is due to us playing a video inside the app or something but that is stored 
>> in the jar.
>>
>> On Tuesday, December 6, 2016 at 1:18:47 PM UTC+8, Shai Almog wrote:
>>>
>>> After you grant a permission to an app Android doesn't re-prompt. You 
>>> need to go to the apps settings in Android and revoke its permissions to 
>>> make the app prompt for them again.
>>>
>>

-- 
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/c5d63b6a-bbb2-47bc-a812-47e64936a374%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-07 Thread Gareth Murfin
Client sent me a video, simply opening a browser link inside the app says 
"requires permission. this is required to open the file", all I can doing 
is:

Display.getInstance().execute(url);

On Wednesday, December 7, 2016 at 7:34:20 PM UTC+8, Gareth Murfin wrote:
>
> Thanks Shai I will ask client to do that, I dont see anything in that link 
> thatI aum using that would need access to media and files... Maybe it is 
> due to us playing a video inside the app or something but that is stored in 
> the jar.
>
> On Tuesday, December 6, 2016 at 1:18:47 PM UTC+8, Shai Almog wrote:
>>
>> After you grant a permission to an app Android doesn't re-prompt. You 
>> need to go to the apps settings in Android and revoke its permissions to 
>> make the app prompt for them again.
>>
>

-- 
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/6b1d61ac-670c-4a69-8491-81c5a4ac92c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-07 Thread Gareth Murfin
Thanks Shai I will ask client to do that, I dont see anything in that link 
thatI aum using that would need access to media and files... Maybe it is 
due to us playing a video inside the app or something but that is stored in 
the jar.

On Tuesday, December 6, 2016 at 1:18:47 PM UTC+8, Shai Almog wrote:
>
> After you grant a permission to an app Android doesn't re-prompt. You need 
> to go to the apps settings in Android and revoke its permissions to make 
> the app prompt for them again.
>

-- 
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/55e42977-6a87-4295-bc8e-49027fb34b27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-04 Thread Gareth Murfin
Unfortunately I cannot recreate them, only client can, I have tried geny 
motion with android 6 etc :-(

On Saturday, December 3, 2016 at 2:20:31 PM UTC+8, Shai Almog wrote:
>
> In the device if you deny the permission you would usually see an output 
> stack pointing you at the rough direction.
> Is it possible that there is native code that triggers that permission?
>

-- 
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/988892f5-2b6f-495c-bc5a-ab800aaf73b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-02 Thread Shai Almog
In the device if you deny the permission you would usually see an output 
stack pointing you at the rough direction.
Is it possible that there is native code that triggers that permission?

-- 
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/88e3ff82-dae8-4083-910f-6921e4277a77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-01 Thread Shai Almog
That's a generic article about Android permission prompts. Did you activate 
permission prompts in the simulator?

-- 
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/95975491-4192-4cd2-a420-4bada29093f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-01 Thread Gareth Murfin
this explains a bit 

http://www.howtogeek.com/230683/how-to-manage-app-permissions-on-android-6.0/

although surely you dont need permission to write it internal storage?

On Friday, December 2, 2016 at 11:54:56 AM UTC+8, Gareth Murfin wrote:
>
> ripped out everything i could yet its still happening. ;-(
>
> On Friday, December 2, 2016 at 11:27:42 AM UTC+8, Gareth Murfin wrote:
>>
>> im thinking this... 
>>
>>  String roots[] =FileSystemStorage.getInstance().getRoots();
>> for (int i=0; i> {
>> _("ROOT: "+roots[i]);
>> }
>>
>> On Friday, December 2, 2016 at 11:25:26 AM UTC+8, Gareth Murfin wrote:
>>>
>>> I actually did find a references to the capture api imported, i removed 
>>> it but i am still getting this. 
>>>
>>> Could this cause it ? surely this is internal, weird thing is I only see 
>>> on 2 phones.
>>>
>>>   String[] files = Storage.getInstance().listEntries(); 
>>> String whatHappened = deleteFiles(files);
>>>
>>> or what about this 
>>> ?  com.codename1.io.Util.downloadUrlToStorageInBackground(winnerPhoto, 
>>> nameOfPhoto, imageCompleteListener);
>>>
>>> Only happens on Android 6.0 it seems so far.
>>>
>>> On Thursday, December 1, 2016 at 1:46:13 PM UTC+8, Shai Almog wrote:

 It's possibly related to the capture API.

>>>

-- 
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/443d865c-66cf-4b35-9a08-7b5762a83da0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-01 Thread Gareth Murfin
ripped out everything i could yet its still happening. ;-(

On Friday, December 2, 2016 at 11:27:42 AM UTC+8, Gareth Murfin wrote:
>
> im thinking this... 
>
>  String roots[] =FileSystemStorage.getInstance().getRoots();
> for (int i=0; i {
> _("ROOT: "+roots[i]);
> }
>
> On Friday, December 2, 2016 at 11:25:26 AM UTC+8, Gareth Murfin wrote:
>>
>> I actually did find a references to the capture api imported, i removed 
>> it but i am still getting this. 
>>
>> Could this cause it ? surely this is internal, weird thing is I only see 
>> on 2 phones.
>>
>>   String[] files = Storage.getInstance().listEntries(); 
>> String whatHappened = deleteFiles(files);
>>
>> or what about this 
>> ?  com.codename1.io.Util.downloadUrlToStorageInBackground(winnerPhoto, 
>> nameOfPhoto, imageCompleteListener);
>>
>> Only happens on Android 6.0 it seems so far.
>>
>> On Thursday, December 1, 2016 at 1:46:13 PM UTC+8, Shai Almog wrote:
>>>
>>> It's possibly related to the capture API.
>>>
>>

-- 
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/037ea784-8340-43e3-a8c9-32095851a3ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-01 Thread Gareth Murfin
im thinking this... 

 String roots[] =FileSystemStorage.getInstance().getRoots();
for (int i=0; i
> I actually did find a references to the capture api imported, i removed it 
> but i am still getting this. 
>
> Could this cause it ? surely this is internal, weird thing is I only see 
> on 2 phones.
>
>   String[] files = Storage.getInstance().listEntries(); 
> String whatHappened = deleteFiles(files);
>
> or what about this 
> ?  com.codename1.io.Util.downloadUrlToStorageInBackground(winnerPhoto, 
> nameOfPhoto, imageCompleteListener);
>
> Only happens on Android 6.0 it seems so far.
>
> On Thursday, December 1, 2016 at 1:46:13 PM UTC+8, Shai Almog wrote:
>>
>> It's possibly related to the capture API.
>>
>

-- 
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/57ddfb9d-e75d-48fa-9c67-24d099df88e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-12-01 Thread Gareth Murfin
I actually did find a references to the capture api imported, i removed it 
but i am still getting this. 

Could this cause it ? surely this is internal, weird thing is I only see on 
2 phones.

  String[] files = Storage.getInstance().listEntries(); 
String whatHappened = deleteFiles(files);

or what about this 
?  com.codename1.io.Util.downloadUrlToStorageInBackground(winnerPhoto, 
nameOfPhoto, imageCompleteListener);

Only happens on Android 6.0 it seems so far.

On Thursday, December 1, 2016 at 1:46:13 PM UTC+8, Shai Almog wrote:
>
> It's possibly related to the capture API.
>

-- 
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/656f0ca9-7e8b-4a47-afa9-790204c4d245%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-11-30 Thread Shai Almog
It's possibly related to the capture API.

-- 
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/10f4f4b0-fcf6-4c85-8ad9-fc917fcbfdb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Access photos permission

2016-11-30 Thread Gareth Murfin
I think its something new from Android it says do you want "Raffler to 
access photos, media and fileso n your device?" - I am downloading an image 
of the winner, and storing it is this it do you think? See screenshot never 
seen this on any other device apart from 2, one from client one from mate.  

https://dl.dropboxusercontent.com/u/4194619/15240287_10154567724660568_1813990978_n.png



On Thursday, December 1, 2016 at 12:00:18 AM UTC+8, Gareth Murfin wrote:
>
> Thanks i dont see anything, I have capturePhoto call in commented out 
> code, could that be causing it somehow ?
>
> On 30 November 2016 at 12:55, Shai Almog  wrote:
>
>> In the developer guide 
>> https://www.codenameone.com/manual/advanced-topics.html 
>> We have a section where every Android permission is mapped to the 
>> methods/classes that trigger it. You can just search thru that. But make 
>> sure to check the build hints first to see that a cn1lib didn't inject a 
>> permission or something.
>>
>> -- 
>> 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/RAVmkVhMrGs/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/354432c5-0d34-4731-be9b-f18aecc8c643%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Gareth Murfin
> (Android Freelancer - www.garethmurfin.co.uk)
>
>

-- 
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/529822f5-31b2-4278-8f3b-bb9306fcda91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.