clipboardData on Mobile?

2021-01-27 Thread Dan Friedman via use-livecode
Greetings!

Is there a way to set the clipboardData a mobile device?  (iOS and Android).

Client want's a "copy" button so they can paste the text outside of the app (in 
Notes, or a external document).


-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: lock screen

2021-01-22 Thread Dan Friedman via use-livecode
Same here.   Anytime I want to lock the screen, I do this:

on lockTheScreen
  if not the lockScreen then
lock screen
  end if
end lockTheScreen

When needed, I use this:

on unLockTheScreen
  repeat until not lockScreen
unlock screen
  end repeat
end unLockTheScreen


That's my 2 cents.

-Dan


On 1/22/21, 7:38 AM, "use-livecode on behalf of Paul Dupuis via use-livecode" 
 wrote:

When I have a handler that needs to lock the screen I will often do the 
following

begins handler

put the lockScreen into tPreserveLockScreen
if not tPreserveLockScreen then lock screen
...
code
...
if not tPreserveLockScreen then unlock screen

end handler

Code in our main LC app is large enough that there are instances where 
the some code that calls the handler needs to lock the screen and other 
code that call it does not, but the handler always wants to hide changed 
until done.


On 1/22/2021 9:24 AM, Craig newman via use-livecode wrote:
> Something else you might want to to know, though it may only be academic.
>
> LockScreen commands are queued. So if you lock the screen twice, you have 
to explicitly unlock twice in order to clear the locked state.
>
> It does not matter what happens in the flow of code in terms of screen 
locking, whether other command or function calls are made. The queue rules 
throughout. All is reset at idle time.
>
> Craig
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
Behalf Of Brian Milby via use-livecode
> Sent: Friday, January 22, 2021 6:50 AM
> To: How to use LiveCode 
> Cc: Brian Milby 
> Subject: Re: lock screen
>
> I’m sure someone else can be more clear, but when the engine gets to an 
idle state then locks should be cleared.  In your example, it would probably 
clear at the end of that mouseUp handler, but aTest would completely run with 
the screen locked.
>
> Sent from my iPhone
>
>> On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
 wrote:
>>
>> Just looking for clarity with regard to lock screen.
>>
>> Is there only one state for the screen, either locked or not locked and 
when is that state changed.
>>
>> ---
>> on mouseUp
>>
>> lock screen
>>
>> aTest
>>
>> end mouseUp
>>
>> 
>> on aTest
>>
>> — is the screen still locked here
>>
>> end aTest
>>
>> 
>>
>> At what point is unlock screen called by livecode without me calling it 
directly.
>>
>> The docs say when all pending handlers have completed but what exactly 
is a pending handler.
>>
>>
>>
>> Thanks
>>
>> Terry
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Anyone heard of "App Clips"?

2020-11-13 Thread Dan Friedman via use-livecode
I have a client asking for us to implement a "App Clip".  Anyone know if LC can 
deal with this?

https://developer.apple.com/app-clips/

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Line length

2020-10-26 Thread Dan Friedman via use-livecode
Bob,

I do what you're talking about all the time.   Here's my setObjectHeightToText 
command that I use (pass it the long id of the field, and the minimum height 
you want):

on setObjectHeightToText lID,minH
  put the rect of lID into tRect
  put item 2 of tRect + the formattedHeight of lID into item 4 of tRect
  if minH > 1 then
if item 4 of tRect - item 2 of tRect < minH then
  put item 2 of tRect + minH into item 4 of tRect
end if
  end if
  set the rect of lID to tRect
end setObjectHeightToText

Hope that helps!

-Dan
 

On 10/26/20, 10:18 AM, "use-livecode on behalf of Bob Sneidar via 
use-livecode"  wrote:

I have a field on one of my apps whose width needs to change depending on 
content, but there is a minimum and a maximum width aspect, so that an empty 
field doesn’t appear like a weird tiny rectangle or stretch to overlap other 
objects. 

I use something like:

if the formattedWidth of field x < tMinWidth then set the width of field x 
to tMinWidth
else if the formattedWidth of field x > tMaxWidth then set the width of 
field x to tMaxWidth
else set the width of field x to the formattedWidth of field x

Bob S


> On Oct 24, 2020, at 3:35 AM, Klaus major-k via use-livecode 
 wrote:
> 
> Hi Richmond,
> 
>> Am 24.10.2020 um 12:17 schrieb Richmond via use-livecode 
:
>> 
>> Over in the Forums someone has asked a question about measuring the 
length of text lines.
>> Of course one can count characters, but in most alphabetic systems 
different characters have different lengths.
>> Is there a way to measure the length as in LENGTH of a line rather than 
count the number of characters it
>> contains?
> 
> ...
> put the formattedwidth of line 1 of fld 1
> ...
> 
>> Richmond.
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Dan Friedman via use-livecode
Phil,

One thing I have noticed is if you have a put command with no destination, 
mobile devices DO NOT LIKE THIS!!   It will halt script execution completely as 
if it were an error.   For example:

put myVar

This would normally put the contents of myVar into the message box.  But on a 
real phone, it's a disaster!   Maybe you have one of these put's somewhere that 
is halting executing and causing the DG not to be filled.   Just a thought.

-Dan



On 10/23/20, 10:25 AM, "use-livecode on behalf of Phil Davis via use-livecode" 
 wrote:

That's a good question. On desktop, the array variable is full of data. 
On the iPad it's apparently empty. I'll drill down further and see 
what's going on.

Thanks for the idea.
Phil


On 10/23/20 1:03 AM, JeeJeeStudio via use-livecode wrote:
> What do you see when you answer the data you set the dgdata to? Does it
> show the values?
>
> Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
> use-livecode@lists.runrev.com>:
>
>> I'm building an iPad app that reads a bunch of files into an array and
>> then sets the dgData of a form DG to that array. The array is
>> well-formed for DG use. After setting the dgData of the DG, the result
>> is empty. Only one problem: the DG now contains no data. (I also tried
>> setting the dgText of the DG to a flat version of the same data and got
>> the same outcome.)
>>
>> I can then create another array from custom property data and set the
>> dgData of the same form DG to that array and it works.
>>
>> On the desktop, however, the same DG loading process never fails.
>>
>> The data being loaded is all text - nothing esoteric.
>>
>> Does anyone have any ideas how I can find & fix the problem(s)? Or have
>> you run into this before?
>>
>> Thank you -
>> Phil Davis
>>
>> --
>> Phil Davis
>> 503-307-4363
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Odd data in message box

2020-10-18 Thread Dan Friedman via use-livecode
//@Dan: Do you have a custom errorDialog handler in your message path?

I do not.

-Dan

 

On 10/18/20, 9:44 AM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

True, but what would anyone go out of their way to write an error 
handler that provides less useful information than what LC provides if 
left alone?

And some of the error info I see shared in the forums is from newer 
users, who seem unlikely to have ventured into the relatively arcane 
world of custom error processing.

I hope I simply misunderstand what I've been seeing, that perhaps there 
isn't something broken in recent versions of the IDE's error handling.

In Dan's message from yesterday he wrote:

   1. Why didn't the debugger throw an error?  Instead, it put this error
  chunk in the message box?

@Dan: Do you have a custom errorDialog handler in your message path?

-- 
  Richard Gaskin
  Fourth World Systems



J. Landman Gay wrote:
> If there's an errorDialog handler, errors bypass the IDE. That's one way 
it 
> could happen.
> 
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On October 17, 2020 4:06:03 PM Richard Gaskin via use-livecode 
>  wrote:
> 
>> J. Landman Gay wrote:
    >>> On 10/17/20 12:13 PM, Dan Friedman via use-livecode wrote:
>>>> Where did Jacque get that list of codes?
>>>
>>>  From a plugin Richard and I wrote some years ago. It dynamically loads 
the 
>>>  error list based on
>>> the version of LC you're using. You can look up individual codes, or 
paste 
>>> in a list of errors
>>> which is what I did with your report.
>>
>> Tools like that can be useful at runtime to help fill out logs and such.
>>
>> But I've been seeing a surprising number of conversations here and in
>> the forums suggesting that people are seeing raw error info in the IDE.
>>
>> If that's true, what broke with the IDE's more guided error handling?
>>
>> --
>>  Richard Gaskin


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Odd data in message box

2020-10-17 Thread Dan Friedman via use-livecode
Mark and Jacque,

Thank you for your assistance.  There was invalid data in sTime.  
Interestingly, it wasn't from the data I was loading... it was old data coming 
from a reference to an array in a datagrid.  Setting the datagrid's Persistent 
Data to false resolved the problem.

A couple follow up questions:

1. Why didn't the debugger throw an error?  Instead, it put this error chunk in 
the message box?
2. Where did Jacque get that list of codes?   Is there some support docs I 
don't know about that explain these types of thing?

Again, thank you both for your help.  What would we do without this list, and 
the talented and helpful people on it?!

-Dan 


On 10/16/20, 12:36 PM, "use-livecode on behalf of Mark Wieder via 
use-livecode"  wrote:

On 10/16/20 9:57 AM, Dan Friedman wrote:
> Mark,
> 
> THANK YOU for the reply...   Line 2185 is:
> 
>   put sTime + ((timeOffset*60)*60) into sTime

That's what I thought. The error you're getting (see Jacque's annotated 
list) is pointing to an invalid value for sTime in some iteration of 
that function call. My guess is either sTime is empty or not a numeric 
value.

Try something like this to pinpoint the error:

   if char 1 of timeOffset = "-" then
 put ((timeOffset*60)*60) into pTimeOffset
 put sTime - pTimeOffset into sTime
   else
 try
 put sTime + ((timeOffset*60)*60) into sTime
 catch e
 put the sTime & cr executionContexts & cr after msg
 end try
   end if


-- 
  Mark Wieder
  ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Odd data in message box

2020-10-16 Thread Dan Friedman via use-livecode
Mark,

THANK YOU for the reply...   Line 2185 is:

put sTime + ((timeOffset*60)*60) into sTime


function convertToLocalTime sTime  //sTime is already been converted to seconds 
format
  //convert the time using the hour offset for local time zone
  put word 6 of the internet date into timeOffset
  put (abs(timeOffset))*1 into timeOffset
  put timeOffset/100 into timeOffset
  if char 1 of timeOffset = "-" then
put ((timeOffset*60)*60) into pTimeOffset
put sTime - pTimeOffset into sTime
  else
put sTime + ((timeOffset*60)*60) into sTime   //<- 2185
  end if

  return sTime
end convertToLocalTime


Thank you!  
 
Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com
 

On 10/16/20, 9:49 AM, "use-livecode on behalf of Mark Wieder via use-livecode" 
 wrote:

    On 10/16/20 8:46 AM, Dan Friedman via use-livecode wrote:

> There is no problem with this function, and it's producing the correct 
time.   However, when it's all said and done, I get this in the message box:
> 
> 394,2185,1

what's line 2185 look like?

-- 
  Mark Wieder
  ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Odd data in message box

2020-10-16 Thread Dan Friedman via use-livecode
I get a bunch of data from my server.  In this array, there are some dates.  I 
roll through each one converting the date to local time:

function convertToLocalTime sTime  //sTime is already been converted to seconds 
format
  //convert the time using the hour offset for local time zone
  put word 6 of the internet date into timeOffset
  put (abs(timeOffset))*1 into timeOffset
  put timeOffset/100 into timeOffset
  if char 1 of timeOffset = "-" then
put ((timeOffset*60)*60) into pTimeOffset
put sTime - pTimeOffset into sTime
  else
put sTime + ((timeOffset*60)*60) into sTime
  end if
  
  return sTime
end convertToLocalTime

There is no problem with this function, and it's producing the correct time.   
However, when it's all said and done, I get this in the message box:

394,2185,1
465,2185,1
253,2185,1
241,2181,1,convertToLocalTime
353,0,0,stack "/Users/Dan1/Desktop/Ignite/MY App/App/main.livecode"
219,2130,9,convertToLocalTime
465,2130,9
253,2130,9
241,2129,1,convertKevinDate
353,0,0,stack "/Users/ Dan1/Desktop/Ignite/MY App/App/main.livecode"
219,38,41,convertKevinDate
119,38,41
118,38,41
118,38,41
465,38,41
241,38,1,FillInData
353,0,0,button id 1410 of card id 1406 of stack "Data Grid Templates 
1571787360744" of stack "/Users/Dan1/Desktop/Ignite/MY App/App/main.livecode"
675,3536,1,FillInData
253,3536,1
253,3536,1
490,3536,1
253,3536,1

Any thoughts? 

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


backKey with DataGrid

2020-10-06 Thread Dan Friedman via use-livecode
Here's a weird one...   I have a card with a number of objects on it.  There is 
a button named "Back" which takes you back to card X.  There is also a 
dataGrid.  In the mainStack script, I have a this backKey command:

on backKey
  //this is sent only on Android when the user presses the hardware "back" key
  if there is a btn "Back" of this card then
send "mouseUp" to btn "Back" of this card in 1 tick
  end if
  
  exit to top
end backKey

When the card opens, and you tap the backKey (on an android device of course), 
it works great!   Now, if I scroll the dataGrid, the backKey message fails.  If 
I then tap any other control on the screen (not the dataGrid), then the backKey 
message works again.  This is true even if the dataGrid has no data (ie.:  set 
the dgData of grp "myDataGrid" to "").

I have verified that there is only 1 button named "Back" on the entire card 
(including the template for the dataGrid).

When I say the "backKey" message fails, what really happens is the statement  
"if there is a btn "Back" of this card" does result as true, but the sending of 
the "mouseUp" message isn't sent (or perhaps it's not received).  Also, if I 
just tap the "Back" button it does go back.

Any ideas?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Looping though a numerically indexed array

2020-09-10 Thread Dan Friedman via use-livecode
David,

Maybe there are better ways, but here's what I always do when I have an array 
with numbered keys...

put the keys of pArray into aKeys
sort lines of aKeys numeric
repeat for each line k in aKeys
   //do something with pArray[k]
end repeat

Hope that helps.   :)

-Dan
 

On 9/10/20, 2:39 PM, "use-livecode on behalf of David Bovill via use-livecode" 
 wrote:

Ah that explains it. The extents works but I seem to remember for each is 
considerably faster
On 2 Sep 2020, 16:29 +0100, Brian Milby via use-livecode 
, wrote:
> As long as the array is indexed starting at 1 with no gaps it should work 
by looping for each element. I just did a quick test to confirm. I built a 100 
element array and it looped in order. I deleted 2 keys and then it didn’t. I 
then added those 2 missing keys back and it worked again.
>
> Sent from my iPhone
>
> > On Sep 2, 2020, at 10:55 AM, David Bovill via use-livecode 
 wrote:
> >
> > I’m pretty sure there must be a way to efficiently loop through 
numerically indexed arrays
> >
> > Repeat for each key and repeat for each element does not seem to sort 
the keys in numeric order,. Of course I can get the keys and sort them before 
repeating - but is there a more efficient way?
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS app denied: AVAudioSession

2020-08-24 Thread Dan Friedman via use-livecode
Update...

Turns out, I was looking for the call for microphone consent in the wrong 
place.  I was looking at app launch, but it was appearing when using 
mergAVCamCreate.  So, I AM seeing the microphone consent even though I am not 
using the Microphone.   Here's what I'm doing:

on mouseUp  //a button on the card
mergAVAudioSessionSetCategory "ambient" //Added this, but still getting the 
microphone consent
mergAVRequestMediaAccess "video"
end mouseUp

on mergAVMediaAccess pType,pGranted
  if (pType = "video") and pGranted then
set the returnTo of stack "barcodeScanner-iOS" to the long id of me
open stack "barcodeScanner-iOS"
  end if
end mergAVMediaAccess

on preOpenStack  //stack "barcodeScanner-iOS"
  mergAVCamCreate
  mergAVCamSet "rect",the rect of btn "scannerRect"
  mergAVCamSet "visible",true
  mergAVCamStartBarcodeReader
end preOpenStack

Why would this bring up the microphone consent dialog?


Thank you!
-Dan
 

On 8/21/20, 8:53 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2020-08-21 16:39, Dan Friedman via use-livecode wrote:
> Any thoughts?   Client is waiting for this post!

The only difference between 9.6.1-rc-1 and rc-2 was the removal of some 
no-longer-used references to an Ad SDK on Android. 9.6.1 was the same as 
9.6.1-rc-2 (except for version).

Apple update their review processes all the time, so it is possible they 
changed something between the two app submissions.

The most important question here is: Can you reproduce the request for 
microphone access which Apple observed?

If not, then you need to find out how they did and dispute the rejection 
- it could be human error on their side...

If you can, then it suggests that you might have some code buried 
somewhere setting the audio category - or use of the video camera is 
using a default category Apple doesn't like.

Make sure you aren't asking for a video camera with both audio and video 
- i.e. just audio only.

Failing that, there is mergAVAudioSessionSetCategory - you could try 
explicitly setting the category to "ambient" on startup.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS app denied: AVAudioSession

2020-08-21 Thread Dan Friedman via use-livecode
Ralph,

I have no idea.  This is the screen shot that Apple included in the "Resolution 
Center" when they denied the app.   I assume they are using people in another 
country to review apps?

-Dan
 

On 8/21/20, 10:49 AM, "use-livecode on behalf of Ralph DiMola via 
use-livecode"  wrote:

Dan,

Why is there a foreign language in the left top bar header to the right of 
the time? I spent some time in Japan and this message suspiciously looks like 
katakana and kanji.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
Of Dan Friedman via use-livecode
Sent: Friday, August 21, 2020 12:15 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: Re: iOS app denied: AVAudioSession

Mark,

THANK YOU for the quick reply.   I wasn't using 9.6.1-rc-1 and rc-2, I was 
using 9.6.1-rc-2 and the final release of 9.6.1.

>> Can you reproduce the request for microphone access which Apple observed?
I cannot.  I installed the submitted app (using TestFlight) on my iPhone X 
and I DID NOT get the Microphone request dialog.

Apple did provide a screen shot of the dialog they see, but it's strange... 
  Why is it in a different language?   And, could this have anything to do with 
the issue?
See it here:  https://www.clearvisiontech.com/temp/fromApple.png

What would you suggest I do next?


Thank you!

Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com


On 8/21/20, 8:53 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

    On 2020-08-21 16:39, Dan Friedman via use-livecode wrote:
> Any thoughts?   Client is waiting for this post!

The only difference between 9.6.1-rc-1 and rc-2 was the removal of some 
no-longer-used references to an Ad SDK on Android. 9.6.1 was the same 
as 
9.6.1-rc-2 (except for version).

Apple update their review processes all the time, so it is possible 
they 
changed something between the two app submissions.

The most important question here is: Can you reproduce the request for 
microphone access which Apple observed?

If not, then you need to find out how they did and dispute the 
rejection 
- it could be human error on their side...

If you can, then it suggests that you might have some code buried 
somewhere setting the audio category - or use of the video camera is 
using a default category Apple doesn't like.

Make sure you aren't asking for a video camera with both audio and 
video 
- i.e. just audio only.

Failing that, there is mergAVAudioSessionSetCategory - you could try 
explicitly setting the category to "ambient" on startup.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS app denied: AVAudioSession

2020-08-21 Thread Dan Friedman via use-livecode
Mark,

THANK YOU for the quick reply.   I wasn't using 9.6.1-rc-1 and rc-2, I was 
using 9.6.1-rc-2 and the final release of 9.6.1.

>> Can you reproduce the request for microphone access which Apple observed?
I cannot.  I installed the submitted app (using TestFlight) on my iPhone X and 
I DID NOT get the Microphone request dialog.

Apple did provide a screen shot of the dialog they see, but it's strange...   
Why is it in a different language?   And, could this have anything to do with 
the issue?
See it here:  https://www.clearvisiontech.com/temp/fromApple.png

What would you suggest I do next?


Thank you!
 
Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com
 

On 8/21/20, 8:53 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2020-08-21 16:39, Dan Friedman via use-livecode wrote:
> Any thoughts?   Client is waiting for this post!

The only difference between 9.6.1-rc-1 and rc-2 was the removal of some 
no-longer-used references to an Ad SDK on Android. 9.6.1 was the same as 
9.6.1-rc-2 (except for version).

Apple update their review processes all the time, so it is possible they 
changed something between the two app submissions.

The most important question here is: Can you reproduce the request for 
microphone access which Apple observed?

If not, then you need to find out how they did and dispute the rejection 
- it could be human error on their side...

If you can, then it suggests that you might have some code buried 
somewhere setting the audio category - or use of the video camera is 
using a default category Apple doesn't like.

Make sure you aren't asking for a video camera with both audio and video 
- i.e. just audio only.

Failing that, there is mergAVAudioSessionSetCategory - you could try 
explicitly setting the category to "ambient" on startup.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


iOS app denied: AVAudioSession

2020-08-21 Thread Dan Friedman via use-livecode
I recently uploaded an iOS app to Apple with no problems.   After it was 
approved and released, my client wanted to change the app description in the 
app store.  As you know, you can only do this as a new version (stupid!).  So, 
I made a new build of the same exact app (without changing a line of code) and 
submitted it to Apple.   It was denied because:



Guideline 2.5.1 - Performance - Software Requirements

During review, we were prompted to provide consent to use the microphone. 
However, we were not able to locate any features in your app that use the 
microphone for audio recording.

Next Steps

The microphone consent request is generated by the use of either 
AVAudioSessionCategoryRecord or AVAudioSessionCategoryPlayAndRecord audio 
categories. If you do not intend to record audio with your app, please choose 
the AVAudioSession session category that fits your app's needs or modify your 
app to include audio-recording features.

If these features are located in your app, please reply to this message in 
Resolution Center to provide information on how to locate them.

Please see attached screenshot for details.



The app doesn't use the Microphone.  The ONLY difference I can see between this 
build and the previous is the first build was with LC Business 9.6.1 (rc 2), 
and this build is with LC Business 9.6.1.  I do have "mergAV" selected in 
Inclusions in the Standalone App Settings (I am using the camera to capture a 
barcode), but "mergMicrophone" is not selected.   Is there an new issue in LC 
Business 9.6.1 that is setting the AVAudioSession to something is shouldn't?   
Maybe I should just rebuild with LC Business 9.6.1 (rc 2) and submit?

Any thoughts?   Client is waiting for this post!

Thank you in advance,
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Calendar External?

2020-08-19 Thread Dan Friedman via use-livecode
Quick question  With Apple's eventKit, would it be possible to create an LC 
External to add an event to the device's calendar?

I have a client who wants their app to add an event to the phone's calendar 
(iOS and Android).   Importing a ICS file is an option, but the user doesn't 
have the ability to edit, remove or interact with the event once it's in the 
calendar.

Any thoughts?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


autoCapitalizationType in ask dialog

2020-08-17 Thread Dan Friedman via use-livecode
I know you can use mobileSetKeyboardType to set the keyboard, but is it 
possible to set the autoCapitalizationType for the ask command on mobile?  It 
seems to be defaulting to "none", when you would think a default would be 
"sentences".

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Add Event To Calendar?

2020-08-06 Thread Dan Friedman via use-livecode
I'm sure someone has tackled this task... Is there any way to add an event to a 
calendar on mobile (iOS and Android)? Looking for a mobileAddCalendarEvent 
command.  

Thanks in advance,
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Odd Files in an Android apk

2020-08-02 Thread Dan Friedman via use-livecode
Using LC version 9.6.1 (rc1), I built by Android app.   The app seemed a bit on 
the large side.  So, upon examining the files in the apk, I found this:


Volume in drive D has no label.
 Volume Serial Number is 7C03-D597

 Directory of D:\apktest\assets\tsNet.lcextd\iOS

08/02/2020  09:22 PM  .
08/02/2020  09:22 PM  ..
07/28/2020  02:45 AM 6,751,828 External-Device-10_2
07/28/2020  02:45 AM 6,751,828 External-Device-11_2
07/28/2020  02:45 AM 6,666,588 External-Device-12_1
07/28/2020  02:45 AM 6,666,588 External-Device-13_2
07/28/2020  02:46 AM 6,666,588 External-Device-13_5
07/29/2020  05:17 AM 4,769,472 External-Simulator-10_2
07/29/2020  05:17 AM 4,769,472 External-Simulator-11_2
07/29/2020  05:17 AM 4,533,360 External-Simulator-12_1
07/29/2020  05:17 AM 4,533,360 External-Simulator-13_2
07/29/2020  05:17 AM 4,533,360 External-Simulator-13_5
  11 File(s) 56,642,444 bytes
   2 Dir(s)  101,128,318,976 bytes free


Why would there be an iOS folder in the tsNet directory of an Android apk?

Also, I did not select the "Android x86" checkbox in the Application Setting, 
but the external for tsNet External-x86 was still included in the apk:


Volume in drive D has no label.
 Volume Serial Number is 7C03-D597

 Directory of D:\apktest\assets\tsNet.lcextd\Android

08/02/2020  09:29 PM  .
08/02/2020  09:29 PM  ..
07/28/2020  02:45 AM 5,145 Classes
07/28/2020  02:45 AM 2,867,456 External-arm64-v8a
07/28/2020  02:45 AM 2,223,820 External-armeabi
07/28/2020  02:45 AM 1,904,364 External-armeabi-v7a
07/28/2020  02:45 AM 2,653,944 External-x86
07/28/2020  02:45 AM 2,941,840 External-x86_64
   7 File(s) 12,596,569 bytes
   2 Dir(s)  101,128,314,880 bytes free


Perhaps this is a Bug or are all these files somehow required?   Any thoughts?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Styled text on mobile

2020-07-18 Thread Dan Friedman via use-livecode
Scriptable rich text in a native mobile text field?   I second that!

-Dan
 

On 7/18/20, 9:01 AM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

J. Landman Gay wrote:

 > It's possible. For a LiveCode field, note that the font has to have
 > a font variant for each style. Some time ago LC stopped supporting
 > artificially altered font styles. The native system font on each
 > mobile OS supports all styles.
 >
 > Or do you mean something else?

I probably should have specified: I was hoping there might be at least 
something in the works to bring the scripted mobile-native editable 
field up to par with other apps that allow styles to be applied to text 
the user writes.

I would expect to build the UI to set style attributes as we do on the 
desktop, if it were possible.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


returnKey and ask on iPhone

2020-07-14 Thread Dan Friedman via use-livecode
Question... Why doesn't the returnKey on my iPhone change to the "Next" option?

mobileSetKeyboardReturnKey "next"

ask "" with pLabel titled askTitle
if the result = "cancel" then
exit thisThing
end if
put it into tAskData

What am I doing wrong?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


iOS - open next field?

2020-06-30 Thread Dan Friedman via use-livecode
Is there a way you activate and utilize the "prev" and "next" button on iOS 
keyboards?   You know, these buttons:

https://i.stack.imgur.com/FzrPy.png

If you have more than one text field on a card, we want to "tab" between 
fields. 

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Ikea's app does this.  Many other apps also provide an in-app AR expierence.   
How are they doing it?   And how can I do this in my LC app?

-Dan



On 6/30/20, 9:44 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2020-06-30 15:46, Dan Friedman via use-livecode wrote:
> Klaus,
> 
> No, mobile.  If I open the link (https://nexen.ehpec.com/usdz.html) in
> Safari on my iPhone, I get total interaction with the AR (Augmented
> Reality) object.  If I open the same URL in a LiveCode browser (native
> or widget) it doesn't open the object at all.

It seems that WKWebView (which is the embeddable browser framework on 
iOS, and the only one*) does not support AR files - 

https://stackoverflow.com/questions/60685400/ar-images-not-working-inside-the-wkwebview.

Warmest Regards,

Mark.

* On iOS there is only allowed to be one browser framework - the one 
Apple provides. Chrome and Firefox (and all other 'alternative' 
browsers) are just 'familiar' UI wrappers around WKWebView.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Ralph,

On my old Moto it didn’t work.  However, one of the guys in my weekly poker 
game has a Note 10.  I opened that url on his Note 10 last night and it did the 
whole AR thing correctly.

-Dan


From: Ralph DiMola 
Sent: Tuesday, June 30, 2020 8:00 AM
To: Dan Friedman; 'How to use LiveCode'
Subject: RE: AR in LiveCode Browser?

It looks like I was wrong about what engine is used for the browser widget(see 
Mark's comment) I commented after I tried it on my Android phone with Chrome. 
All I got was a request for a download of the usdz file. Talked before I fully 
investigated (ask Margaret about that). I thought that the browser would 
directly open the AR. I'm a little fuzzy on how to open and view these AR's.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: Dan Friedman [mailto:d...@clearvisiontech.com]
Sent: Tuesday, June 30, 2020 10:47 AM
To: How to use LiveCode
Cc: Ralph DiMola
Subject: Re: AR in LiveCode Browser?

Ralph,

I tried the link in the Google App (which I assume uses Chrome) on my iPhone.   
It worked as expected, with total interaction with the AR (Augmented Reality) 
object.  But, it fails in a LiveCode browser (native or widget).

-Dan


On 6/29/20, 6:16 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

The LiveCode browser uses Chromium. Chrome does not support AR usdz files.
This seems to be an Apple iOS 12+ only format. When looking for LC Browser
compatibility try URLs in Chrome. If the link works in Chrome 99.9% of the
time it works in the LC browser widget. There's no obstacle stopping it from
being implemented in Chrome(therefore Android) but I guess there's some
licensing issues(money).

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
    Of Dan Friedman via use-livecode
Sent: Monday, June 29, 2020 7:48 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: AR in LiveCode Browser?

I am trying to display and use an AR object in a webpage in a LiveCode
browser.   It don't work!Feels like the LC browser (native or widget)
doesn't have access to the native AR features.   For example, if I open this
URL https://nexen.ehpec.com/usdz.html in Safari, it works great!   If I open
it in a LC browser, it doesn't launch AR.   Is the a limitation of LC?   Or
do I have to flip a switch somewhere?

Thanks in advance!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Klaus,

No, mobile.  If I open the link (https://nexen.ehpec.com/usdz.html) in Safari 
on my iPhone, I get total interaction with the AR (Augmented Reality) object.  
If I open the same URL in a LiveCode browser (native or widget) it doesn't open 
the object at all.

-Dan
 

On 6/30/20, 2:08 AM, "use-livecode on behalf of Klaus major-k via 
use-livecode"  wrote:

Hi Dan,

> Am 30.06.2020 um 01:47 schrieb Dan Friedman via use-livecode 
:
> 
> I am trying to display and use an AR object in a webpage in a LiveCode 
browser.   It don't work!Feels like the LC browser (native or widget) 
doesn't have access to the native AR features.   For example, if I open this 
URL https://nexen.ehpec.com/usdz.html in Safari, it works great! 

if I open that url in Safari, the .USDZ file gets downloaded and not 
displayed in Safari.
However I can open (and interact with) the file with QuickLook or even 
Preview.

We are talking about Desktop, aren't we?


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Ralph,

I tried the link in the Google App (which I assume uses Chrome) on my iPhone.   
It worked as expected, with total interaction with the AR (Augmented Reality) 
object.  But, it fails in a LiveCode browser (native or widget).

-Dan
 

On 6/29/20, 6:16 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

The LiveCode browser uses Chromium. Chrome does not support AR usdz files.
This seems to be an Apple iOS 12+ only format. When looking for LC Browser
compatibility try URLs in Chrome. If the link works in Chrome 99.9% of the
time it works in the LC browser widget. There's no obstacle stopping it from
being implemented in Chrome(therefore Android) but I guess there's some
licensing issues(money).

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
    Of Dan Friedman via use-livecode
Sent: Monday, June 29, 2020 7:48 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: AR in LiveCode Browser?

I am trying to display and use an AR object in a webpage in a LiveCode
browser.   It don't work!Feels like the LC browser (native or widget)
doesn't have access to the native AR features.   For example, if I open this
URL https://nexen.ehpec.com/usdz.html in Safari, it works great!   If I open
it in a LC browser, it doesn't launch AR.   Is the a limitation of LC?   Or
do I have to flip a switch somewhere?

Thanks in advance!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AR in LiveCode Browser?

2020-06-29 Thread Dan Friedman via use-livecode
I am trying to display and use an AR object in a webpage in a LiveCode browser. 
  It don't work!Feels like the LC browser (native or widget) doesn't have 
access to the native AR features.   For example, if I open this URL 
https://nexen.ehpec.com/usdz.html in Safari, it works great!   If I open it in 
a LC browser, it doesn't launch AR.   Is the a limitation of LC?   Or do I have 
to flip a switch somewhere?

Thanks in advance!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile Keyboard

2020-06-23 Thread Dan Friedman via use-livecode
Ralph,

I had this same issue on a project.  The problem is when the card/stack opens, 
LiveCode want to activate the first typable field it finds.  If my old memory 
is correct, what I did was this:

on preOpenCard
set the lockText of fld "thisDarnField" to true 
end preOpenCard

on openCard
send "doUnlockTheField" to this card in 1 tick //don't send this until 
everything is done loading (you could probably send this in the preOpenCard too)
end openCard

on doUnlockTheField
set the lockText of fld "thisDarnField" to false
end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain remembers 
this correctly!

-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

I have a card with one focusable input field.
How can I keep the keyboard from opening until the user taps into the field?

I tried putting "focus on nothing"s in various places such as preopencard
and opencard with no success?

I think this has been discussed before. Was there ever a solution for both
iOS and Android?

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Dismiss Answer Dialog on Android

2020-06-21 Thread Dan Friedman via use-livecode
On android, if you issue an answer command and tap outside the bounds of the 
dialog, it = the last button supplied.  For example:

answer "Are you sure you want to logout?" with "Cancel" or "Logout"

If you tap outside the dialog, the dialog is dismissed and it = "Logout".  Is 
this the correct behavior?   Shouldn't tapping outside the dialog do nothing, 
or beep?   I would think you would have to tap one of the choices to continue.  
 Maybe this is standard Android behavior?

Anyone have any insight to this behavior?  Or, is this a bug?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Datagrid Scrollers

2020-06-04 Thread Dan Friedman via use-livecode
Hello!I am having an issue with a DataGrid's scroller.   The DataGrid is in 
another group ("flyupMenu")  that is located off-screen at the bottom (the top 
of grp " flyupMenu " = the bottom of the card).   Then, when a button is 
clicked, "flyupMenu" is moved up into view.  At this point everything looks 
good.   However, you can't swipe the DataGrid to change the scroll.  It is 
nonresponsive or isn't there.   I found the DataGrid's scroller (it's the long 
id of the DataGrid), and it's location is the original position below the card. 
  I tried everything I can think of to "reset" the scroller, but nothing has 
worked.   I changed the size of the DataGrid, I set the rect of the scroller to 
the rect of the DataGrid, I reloaded the DataGrid's dgData... nothing has 
worked to get the scroller to respond to touch.

Any thoughts?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


ADA Compliency

2020-05-26 Thread Dan Friedman via use-livecode
Has anyone done anything in regards to ADA compliancy in mobile apps built with 
LiveCode?   Using the apple or android accessibility tools such as Screen 
reading, for example. 

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Counting unique items in a file

2020-04-27 Thread Dan Friedman via use-livecode
Skip,

Haven't tested, but pope about this...

function getUniqueNames inData,pColumn
  put "" into uNames
  set the itemDel to tab
  repeat for each line l in inData
add 1 to uNames[item pColumn of l]
  end repeat
  
  return uNames
end getUniqueNames

You should get back an array keyed by the unique names, and how many instances 
of each one


-Dan



On 4/27/20, 10:25 AM, "use-livecode on behalf of Skip Kimpel via use-livecode" 
 wrote:

Good afternoon LC'ers,

I am loading a tab delimited file into a variable and I need to pull out
all unique names from a certain column (let's say column 10) and count how
many times that name appears in that column.

I know there has to be an easy way of doing it.  Every time I try to start
coding this it get wyyy too long :)

Simple approach?

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


mobileControlGet and htmlText

2020-04-09 Thread Dan Friedman via use-livecode
Greetings!

Is it possible to get the htmlText (the content of the current HTML document) 
of a native browser?   On desktop, I can do this easily with: 
revBrowserGet(tBrowserId,"htmlText").   Is there a mobile equivalent?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: StackSize limit on iOS

2020-03-06 Thread Dan Friedman via use-livecode
Paul,

Thank you for the suggestion, but maxWidth is at the default.   Regardless, I 
don't think the maxWidth property is in play when you set the dimensions of a 
stack by script.

Any other thoughts?   Kinda stuck!


-Dan
 

On 3/6/20, 5:34 AM, "use-livecode on behalf of Paul Dupuis via use-livecode" 
 wrote:

just a guess, but does "printingStack" have a maxWidth value set (other 
than the default of 65535)?

On 3/5/2020 10:46 PM, Dan Friedman via use-livecode wrote:
> I am trying to produce a landscape PDF on a iPhone…
>
> open inv stack "printingStack"
> set the width of stack "printingStack" to (11*72)
> set the height of stack "printingStack" to (8.5*72)
> answer the width of stack "printingStack" //---  this returns 414 ??? 
//
>
> I am using LC Business 9.6
> I know this was working on a prior version of LC / iOS
>
> Is there some new trick to this?  Or, is there now some limitation on 
setting the size of a stack to something other than the width of the mobile 
device?   If so, how do we generate a standard size PDF?
>
> Thanks in advance,
> -Dan 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


StackSize limit on iOS

2020-03-05 Thread Dan Friedman via use-livecode
I am trying to produce a landscape PDF on a iPhone…

open inv stack "printingStack"
set the width of stack "printingStack" to (11*72)
set the height of stack "printingStack" to (8.5*72)
answer the width of stack "printingStack" //---  this returns 414 ??? 
//

I am using LC Business 9.6
I know this was working on a prior version of LC / iOS

Is there some new trick to this?  Or, is there now some limitation on setting 
the size of a stack to something other than the width of the mobile device?   
If so, how do we generate a standard size PDF?

Thanks in advance,
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mobileGetDeviceToken

2020-03-03 Thread Dan Friedman via use-livecode
Mark,

Yes, I realized that the issue is a change in iOS 13 after I posted.   Thank 
you for the news of pending the update.  Do you know when will DP3 be 
available?   I have apps that are failing as we speak.

-Dan


On 3/3/20, 10:32 AM, "Mark Waddingham via use-livecode" 
 wrote:

On 2020-03-03 18:18, Dan Friedman via use-livecode wrote:
> Greeting!   On iOS, prior to LC 9.6, mobileGetDeviceToken() would
> return something like this:
> 
>   <965b251c 6cb1926d e3cb366f dfb16ddd e6b9086a 8a3cac9e 5f857679 
> 376eab7C>
> 
> However, with LC 9.6, I'm getting this:
> 
>   {length=32,bytes=0xd923cbf42faacfae79b44e252fc64fc3...6c57203f87b56e10}
> 
> Anyone know how to extract a valid token from this??

Unfortunately you cannot. The problem occurred because we are now 
building against
the iOS13 SDK... Apple decided to change the return value of an internal 
call used
to turn the binary id into a string :|

A fix for this has already been merged, and will appear in 9.6-DP-3:

   QCC Report: <https://quality.livecode.com/show_bug.cgi?id=22577>

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


mobileGetDeviceToken

2020-03-03 Thread Dan Friedman via use-livecode
Greeting!   On iOS, prior to LC 9.6, mobileGetDeviceToken() would return 
something like this:

<965b251c 6cb1926d e3cb366f dfb16ddd e6b9086a 8a3cac9e 5f857679 
376eab7C>

However, with LC 9.6, I'm getting this:

{length=32,bytes=0xd923cbf42faacfae79b44e252fc64fc3...6c57203f87b56e10}

Anyone know how to extract a valid token from this??

>From what I read here, https://nshipster.com/apns-device-tokens/, LC isn't 
>returning what we need -- the token.


-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Face/Touch ID

2020-01-21 Thread Dan Friedman via use-livecode
Greetings!   

If memory serves we can use mergLA for Touch ID.   Is there a method for Face 
ID?

Thanks!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Parent Group of the Target

2020-01-07 Thread Dan Friedman via use-livecode
BR,

Try "the owner of the target".  Or, the long id of the owner of the target.  
Hope that helps.

-Dan


On 1/7/20, 7:20 AM, "use-livecode on behalf of Sannyasin Brahmanathaswami via 
use-livecode"  wrote:

I could have sworn we passed way before, but I can't find it anywhere on 
the list

what is the most efficient was to get the name of the "Parent Group" of the 
target?

Do we really have to parse this?

widget id 67388 of group id 67392 of card id 8169 of stack 
"/Users/brahmanathaswami/Documents/_Siva-Siva-App/Siva-Siva-Portal.livecode"

To get the name of "group id 67392"

?

BR




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android Native Text Field Odd Behavior

2019-12-02 Thread Dan Friedman via use-livecode
Is this a bug?  Can anyone confirm?

1. On an Android device, create a text entry native mobile control.
2. Type “test” (or any other text).
3. Type space.
4. Type back-space
5. Type any text

The first word you typed gets repeated.  Seems to be the same issue as this:  
https://github.com/AnySoftKeyboard/AnySoftKeyboard/issues/1323

Using LC9.5.1 rc1
Tested on Android 7 and 9

Thanks in advance!
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


put img into img after import snapshot

2019-11-30 Thread Dan Friedman via use-livecode
This works perfectly on desktop.  Why would it fail on mobile?

put 0,the bottom of btn "newsHeader",the width of this stack,the top of grc 
"scaleRectangle" into pRect
import snapshot from rect pRect
put img 2 into img 1 // THIS LINE DOESN’T DO ANYTHING
delete img 2
set the rect of img "editingImage" to pRect

“put img 2 into img 1” DOES work if it’s an image that’s not from the import 
snapshot command.  Is there something I have to do to the image before this 
will work?

Using LC 9.5.1 rc1

Thanks in advance!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


DataGrid: load images when in view

2019-11-08 Thread Dan Friedman via use-livecode
Greetings!

Say you have a form DataGrid that is displaying 100 entries.  Each entry has an 
image (loaded from a server) and some text.  When you set the dgData, it will 
get all 100 images as it's building the rows.  This is obviously going to take 
some time to load.  Is there a way to have the DataGrid only load the row's 
image when that row comes into view?  This way it will load the images as they 
are needed.

Thanks in advance!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Windows, Underlines and Printing

2019-11-03 Thread Dan Friedman via use-livecode
Craig,

Yes, it's working as expected on a Mac.   Seems to be only an issue on Windows.

-Dan


On 11/3/19, 7:11 AM, "use-livecode on behalf of dunbarx--- via use-livecode" 
 wrote:

Hi. 

I don't suppose you have tested on a Mac? If not, I will when I get to my 
office tomorrow. 

Craig


-Original Message-
    From: Dan Friedman via use-livecode 
To: How to use LiveCode 
Cc: Dan Friedman 
Sent: Sat, Nov 2, 2019 1:04 pm
Subject: Windows, Underlines and Printing

Greeting!

I have a field on a stack.  In that field is some text and one word is 
underlined.  If I print the card on a windows computer, the underline isn't 
printed.  If I print the card to PDF, the underline is printed.  I tried LC 
9.0.4 Indy, 9.5.0 Business and 9.5.1 rc1 Business.

Can anyone confirm?

-Dan


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Windows, Underlines and Printing

2019-11-02 Thread Dan Friedman via use-livecode
Greeting!

I have a field on a stack.  In that field is some text and one word is 
underlined.   If I print the card on a windows computer, the underline isn't 
printed.  If I print the card to PDF, the underline is printed.   I tried LC 
9.0.4 Indy, 9.5.0 Business and 9.5.1 rc1 Business.

Can anyone confirm?

-Dan


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Set font dynamically to fit text

2019-10-13 Thread Dan Friedman via use-livecode
Sannyasin,

I've been doing this for years.  Works well...

on doShrinkToFit lFldID,startingSize,minSize
  set the textSize of lFldID to startingSize
  repeat until the formattedHeight of lFldID <= the height of lFldID
set the textSize of lFldID to (the textSize of lFldID - 1)
if the textSize of lFldID < minSize then
  exit repeat
end if
  end repeat
end doShrinkToFit

Of course, the moment you start with this type of work, you'll immediately wish 
LiveCode would support fractional font sizes!

Hope that helps...

-Dan


On 10/12/19, 5:21 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami 
via use-livecode"  wrote:

Assuming one is not putting whole pages into small fields, does any one 
have an efficient run time LC algorithm that will set the font size so that the 
formatted text will all appear in the field without needing to scroll?

BR

Satchiai Iru - Be a Witness
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


DataGrid and scroll down refresh

2019-10-03 Thread Dan Friedman via use-livecode
Greeting!

For mobile, it has become VERY common to  scroll down past the top of a list to 
refresh the data (usually a loading wheel appears).  Is there a method to 
accomplish this with the DataGrid?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


So... Xcode, macOS and Livecode... where are we now?

2019-09-30 Thread Dan Friedman via use-livecode
Good Morning!   I have LiveCode 9.5.0 and MacOS  10.14.6.  What version of 
Xcode do I need for iOS and macOS development?

That's in advance!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: help with mobileSetKeyboardType

2019-09-26 Thread Dan Friedman via use-livecode
I too was not able to get this to work:

mobileControlSet “input”, “keyboardType”, “search”

But, I see that "search" is not listed in the docs as an acceptable 
keyboardType value.  When I tried any of the listed values, it did work.

Thanks for the assist Devin!

-Dan


On 9/26/19, 12:53 PM, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

FWIW, I couldn't get this to work at all:

mobileControlSet “input”, “keyboardType”, “search”

The only thing that worked for me was mobileSetKeyboardType, with the 
caveat that it had to be issued after the native control was created. 
And the glitch there is that it doesn't take effect until the keyboard 
is re-activated, so you have to make sure that the field isn't focused 
until after you set up the native control. That is, if the keyboard pops 
up due to auto-focusing when the card opens, the keyboard won't be right 
until the next time it appears.

On 9/26/19 1:45 PM, Devin Asay via use-livecode wrote:
> Dan,
> 
> I believe it’s because setting keyboard type with a mobile native control 
is done by setting a property with mobileControlSet:
> 
> mobileControlCreate "input","_editingField”
> mobileControlSet “input”, “keyboardType”, “number”
> 
> The mobileSetKeyboardType command works in all other circumstances, 
including with native LiveCode fields.
> 
    > Devin
    > 
> 
>> On Sep 26, 2019, at 12:31 PM, Dan Friedman via use-livecode 
 wrote:
>>
>> I am having some trouble with mobileSetKeyboardType.  Can anyone tell me 
why mobileSetKeyboardType works with this:
>>
>> mobileSetKeyboardType "number"
>> ask "Enter a number"
>>
>> But it doesn’t work with this:
>>
>> mobileSetKeyboardType "number"
>> mobileControlCreate "input","_editingField"
>> mobileControlSet "_editingField","rect","20,20,200,60"
>> mobileControlSet "_editingField","text","123"
>> mobileControlSet "_editingField","visible",true
>> mobileControlDo "_editingField","focus"
>>
>> Doesn't seem to matter what I set mobileSetKeyboardType to or when I set 
it.  It always shows the "normal" keyboard.
>>
>> Using LiveCode Business 9.5.0, testing on a iPhone X
>>
>> -Dan
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


help with mobileSetKeyboardType

2019-09-26 Thread Dan Friedman via use-livecode
I am having some trouble with mobileSetKeyboardType.  Can anyone tell me why 
mobileSetKeyboardType works with this:

mobileSetKeyboardType "number"
ask "Enter a number"

But it doesn’t work with this:

mobileSetKeyboardType "number"
mobileControlCreate "input","_editingField"
mobileControlSet "_editingField","rect","20,20,200,60"
mobileControlSet "_editingField","text","123"
mobileControlSet "_editingField","visible",true
mobileControlDo "_editingField","focus"

Doesn't seem to matter what I set mobileSetKeyboardType to or when I set it.  
It always shows the "normal" keyboard.

Using LiveCode Business 9.5.0, testing on a iPhone X

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Print to PDF on Android?

2019-09-20 Thread Dan Friedman via use-livecode
While you may see this as a workaround, it is not.   Having to leave your 
application to produce the PDF is absolutely unacceptable and unprofessional.  
It's also dangerous to even talk about.  I fear the fine folks at LiveCode will 
say, "Great!  They have a workaround.  Looks like we don't have to deal with 
this at all!".  LiveCode, this is a pretty big hole in the functionality of LC. 
 I do hope you will address this issue – and soon!

-Dan


On 9/20/19, 1:54 PM, "use-livecode on behalf of JJS via use-livecode" 
 wrote:

Nice.

Save a simple text as html and then launch it opens the browser.

*launch URL ("file:" & specialFolderPath("documents") & "order.html")*

It seems Chrome can print to pdf after all, press share and print, then 
you can choose.

So next i want to add an image.

And therefore i will export the image to a jpg or whatever file, then 
save the text written as html markup language instead of plain text, and 
add the image url as reference.

see if that works also.


Doei,

Jerry

Op 20-9-2019 om 16:08 schreef JJS via use-livecode:
> A workaround could be (for text) (for photos or mixed with text i 
> don't know for sure)
>
> save text as a text file
>
> launch the text file in a browser (we can laung a url or browser so 
> also probably the url of the file where it is stored)
>
> then in the browser press the 3 dots in the right upper corner
>
> then press SHARE and you can print it.
>
>
> If you have Opera browser installed, then there is an option to save 
> the page as a PDF and you can also print
>
> In FireFox you have to press PAGE and then you can choose save as PDF 
> or PRINT
>
> in Chrome i see no option to save as PDF.
>
> Maybe you can save the whole as an html file with text and photos, 
> then launch a browser, then save as pdf or print it.
>
>
> I'm gonna try someting, for me it's just text to print with this project.
>
> One advantage of Opera is it has standard unlimited VPN.
>
>
> Doei,
>
> Jerry
>
>
> Op 20-9-2019 om 05:46 schreef scott--- via use-livecode:
>> Hello Dan,
>>
>> Hello Dan,
>>
>> For Android PDF creation I use Jan Schenkel’s  Quartum PDF Library.  
>> <http://www.quartam.com>  It isn’t an ideal  (or even possible) 
>> solution in many cases because it doesn’t support unicode but in my 
>> case that wasn’t a deal breaker.
>>
>> -- 
>> Scott Morrow
>>
>> Elementary Software
>> (Now with 20% less chalk dust!)
    >> web   https://elementarysoftware.com/
>> email sc...@elementarysoftware.com
>> booth1-800-615-0867
>> --
>>
>>
>>> On Sep 19, 2019, at 9:47 AM, Dan Friedman via use-livecode 
>>>  wrote:
>>>
>>> Come on LiveCode!!  We really can't generate one of the most popular 
>>> file formats on the most popular mobile platform? This is a joke!   
>>> This is a MAJOR issue for me and I am sure others.  This pretty much 
>>> kills my project.  Damn.
>>>
>>> -Dan
>>>
>>>
>>> On 9/19/19, 9:41 AM, "use-livecode on behalf of Klaus major-k via 
>>> use-livecode" >> use-livecode@lists.runrev.com> wrote:
>>>
>>> Hi Dan,
>>>
>>>> Am 19.09.2019 um 18:39 schrieb Dan Friedman via use-livecode 
>>>> :
>>>>
>>>> I can't seem to find a way to generate a PDF on Android.  Is this 
>>>> really not possible?
>>> no, unfortunately still not supported by LC.
>>>
>>>> Thanks!
>>>> -Dan
>>> Best
>>>
>>> Klaus
>>>
>>> --
>>> Klaus Major
>>> https://www.major-k.de
>>> kl...@major-k.de
>>>
>>>
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _

Re: Print to PDF on Android?

2019-09-19 Thread Dan Friedman via use-livecode
Come on LiveCode!!  We really can't generate one of the most popular file 
formats on the most popular mobile platform?   This is a joke!   This is a 
MAJOR issue for me and I am sure others.  This pretty much kills my project.  
Damn.

-Dan


On 9/19/19, 9:41 AM, "use-livecode on behalf of Klaus major-k via 
use-livecode"  wrote:

Hi Dan,

> Am 19.09.2019 um 18:39 schrieb Dan Friedman via use-livecode 
:
> 
> I can't seem to find a way to generate a PDF on Android.  Is this really 
not possible?

no, unfortunately still not supported by LC.

> Thanks!
> -Dan

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Print to PDF on Android?

2019-09-19 Thread Dan Friedman via use-livecode
I can't seem to find a way to generate a PDF on Android.  Is this really not 
possible?

Thanks!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


WARNING ITMS-90339

2019-09-16 Thread Dan Friedman via use-livecode
Greetings!   FYI, I got this message in Application Uploader this morning:

WARNING ITMS-90339: "Deprecated Info.plist Key. The Info.plist contains a key 
'UIApplicationExitsOnSuspend' in bundle YourAPP [YourAPP.app] that will soon be 
unsupported. Remove the key, rebuild your app and resubmit."

I assume LC is aware of this and is working on a solution.  But, thought I 
would post anyway.

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS + UIWebView = Denied!

2019-09-03 Thread Dan Friedman via use-livecode
Mark,

That's good to hear!Thanks for the info.

-Dan
 

On 9/2/19, 10:23 PM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2019-09-03 06:06, Dan Friedman via use-livecode wrote:
> So, I uploaded an update to TestFlight today, and this is what I got 
> from Apple:
> 
> ITMS-90809: Deprecated API Usage - Apple will stop accepting
> submissions of apps that use UIWebView APIs . See
> https://developer.apple.com/documentation/uikit/uiwebview for more
> information.
> 
> Anyone know what this is about?  I'm guessing the LC Browser Widget is
> now invalid/deprecated?

Not quite yet - it is just a warning at this point - you can still 
submit your
app and it will be accepted.

We have been aware of this for a while (although, as usual Apple give 
precious
little warning about when the axe will fall) and have been working hard 
on adding
a WKWebView (the non-deprecated replacement) backend to the browser 
widget which
will solve the problem.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


iOS + UIWebView = Denied!

2019-09-02 Thread Dan Friedman via use-livecode
So, I uploaded an update to TestFlight today, and this is what I got from Apple:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of 
apps that use UIWebView APIs . See 
https://developer.apple.com/documentation/uikit/uiwebview for more information.

Anyone know what this is about?  I'm guessing the LC Browser Widget is now 
invalid/deprecated?

-Dan
 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android Speed Woes

2019-08-30 Thread Dan Friedman via use-livecode
Ok... so here's an update...

The card that contains all this is a calendar.  On this card is a header, a 
datagrid that lists the events of the selected day, and another group with 84 
controls in it (one button and field for each possible day) that makes up the 
calendar's grid, and more.   When you click "New Entry" or "Edit Entry", we 
hide the calendar and show the group "newEventG" which, as you know, contains 
several other groups for setting the event's properties (title, notes, dates, 
repeat, and more).  It is in the group "newEventG" that we are seeing all the 
sluggish behavior.

Last night, I painstakingly moved group "newEventG" to its own card.  Now, the 
speed is no longer an issue.  It's snappy and responsive.  I have to wonder if 
having a hidden group with so many controls was messing things up.

Mark, to answer your question, there isn't one image on the entire card.
ShowFocusBorder was on.
All these were correct:
- opaque must be false
- showName must be false
- hScrollbar must be false
- vScrollbar must be false
- showBorder must be false
- all bitmap effects must be empty

I am in a good place now and ok to continue with my project (although the 
tablet version is now funky as it moves to another card for event editing 
rather than the group overlay).  I hope all this helps LC resolve whatever this 
issue is.

-Dan


On 8/29/19, 11:56 PM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2019-08-29 16:24, Dan Friedman via use-livecode wrote:
> Hello again!   I am have a tough time getting things to run snappy on
> an Android device.  It's blazing fast on my computer, and more than
> acceptable on my iPhone, but on any android device, it's slow...
> noticeably sluggish.   The issue is mainly hiding/showing groups.  For
> example:
> 
> put the milliseconds into m
> lock screen --for visual effect in rect (the rect of grc "ne_BG")
> //removed the animation for speed testing
> hide grp "ne_mainControls"
> show grp "ne_repeatG"
> unlock screen --with visual effect push left
> answer (the milliseconds - m)
> 
> The result of m is:
> iMac = 10
> iOS = 1   (iPhoneX)
> Android = 516  (Moto G5 Plus Android 7.0)
> 
> The groups contain no images or complex graphics.  Just some buttons 
> and fields.
> 
> I have tried it with and without acceleratedRendering.  Actually, with
> acceleratedRendering enabled it took longer, m=558.
> 
> I have it setup like this:
> Card "calendar"
>Group "newEventG"  --> layerMode set to "Container"
>   Group "ne_mainControls"  --> layerMode set to "Dynamic"
>   Group " ne_repeatG"  --> layerMode set to "Dynamic"
> 
> Any thoughts or advice?  Most other functions are working within
> acceptable ranges/speeds.

So the first thing to do is (on Desktop) run with acceleratedRendering 
and ensure that:
1) 'the effective layerMode of group "newEventG"' is container
2) 'the effective layerMode of group "ne_mainControls" is dynamic
3) 'the effective layerMode of group "ne_repeatG" is dynamic

If (1) does not turn out to be the case then acceleratedRendering will 
have a slightly negative effect (as the engine will be doing what it 
would do without acceleratedRendering on, but also paying the overhead 
of caching the result!). To fix this you'll need to tweak the properties 
of the newEventG group:

- opaque must be false
- showName must be false
- hScrollbar must be false
- vScrollbar must be false
- showBorder must be false
- all bitmap effects must be empty

Essentially the rule here is that for a group to be a container layer it 
must not have to render anything itself (as it is just meant to 
'contain' other layers).

If you get the groups effective layerModes as above I'd imagine you 
*might* see a slight increase in performance with acceleratedRendering 
on - the showing and hiding of the dynamic layers is essentially 'free' 
in this scenario - but their content does need to be cached first. 
Caching of dynamic layers happens incrementally as parts of them are 
visible.

However, given the difference in speed between the platforms with 
acceleratedRendering off I'm inclined to think something else is going 
on here... The CPU on a Moto G5 Plus is substantially less powerful than 
even an iPhone6S - but definitely not 50x!

You mentioned in another thread that 

Re: Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Mark,

put the milliseconds into m
put "" into jones
repeat 1
put "a" after jones
end repeat
put jones into pFart
put the milliseconds - m into m
answer m

iMac = 1
Moto G5 = 16
Moto G6 = 10
iPhone X = 7

-Dan
 

On 8/29/19, 5:09 PM, "use-livecode on behalf of Mark Wieder via use-livecode" 
 wrote:

On 8/29/19 4:40 PM, Dan Friedman via use-livecode wrote:
> Sean,
> 
>>> Another test would be to see how fast it creates a variable with 10,000 
characters using a repeat loop ...
> 
> put "" into jones
> repeat 1
> put "a" after jones
> end repeat
> put the milliseconds into m
> put jones into pFart
> put the milliseconds - m into m
> answer m

You really want to store the milliseconds *before* the repeat loop to 
have any chance of seeing a difference.

-- 
  Mark Wieder
  ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Sean,

>>Another test would be to see how fast it creates a variable with 10,000 
>>characters using a repeat loop ...

put "" into jones
repeat 1
   put "a" after jones
end repeat
put the milliseconds into m
put jones into pFart
put the milliseconds - m into m
answer m

iMac = 1
Moto G5 = 0 
Moto G6 = 0
iPhone X = 0


-Dan
 

On 8/29/19, 4:10 PM, "use-livecode on behalf of Pi Digital via use-livecode" 
 wrote:

Dan is talking 500 times difference in response tho. That’s a bit more 
substantial. Plus speed degradation to a device designed to run Android 7.0 
shouldn’t be to that degree either, for display or under the hood. The G5 has 
an octo 1.4ghz, the iPhoneX is 6core 2.39, only 4 times as fast (8-10 times 
offscreen), not 200-500. \?/

Dan,
Another test would be to see how fast it creates a variable with 10,000 
characters using a repeat loop then how long to copy that to another variable. 
If the numbers are wildly different to the iPhone’s and desktop’s then maybe 
Jacque is on to something and it is a device specific lag. Otherwise it’s 
likely a display issue, which could be device specific but could equally be 
something deeper worth looking into. 

Sean

> On 29 Aug 2019, at 23:23, J. Landman Gay via use-livecode 
 wrote:
> 
> I'd say it's the phone. The Moto G5 has a budget processor and an old 
version of Android OS. An iPhoneX is newer and much faster so it isn't really a 
fair comparison. 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Sean,

I wouldn't say AR is non-functional.  When I enable it I do see a difference.  
Although, in almost all cases it makes it worse.  I see jerky scrolling and 
screen artifacts.
I am using 9.5.0 Business.   I compiled the app in 9.0.4 Indy, and m=562.   
Interesting that I just tried it on a Moto G6 and m=585.  Slower than the G5!

>> Is this timing consistent if triggered by a button?
That's how I am firing this.

>> What timing do you get with lock screen muted?
If I comment out the lock screens, I get m=756 (Moto G5)

-Dan

On 8/29/19, 2:40 PM, "use-livecode on behalf of Pi Digital via use-livecode" 
 wrote:

Hi Dan

I don’t think this is fully related to your issue based on the script you 
show but...

I’ve been doing extensive testing this week and have come close to the 
conclusion now that AcceleratedRendering is completely non functional for all 
platforms. However, I’ve got a feeling that none of my recent emails to LC on 
the matter have got through during their outage. 

Is no one else seeing this loss in performance? So far all my tests have 
shown it to be affecting every platform standalone and the IDE. 

Back to your issue, Dan. 
What version LC are you using?
Is this timing consistent if triggered by a button?
What timing do you get with lock screen muted?

Also, put the timer calculation to a variable to ensure it is not the 
answer dialogue itself producing erroneous timings. 

NB. Additionally, if your groups are not moving up down left right then 
they are best set to static rather than dynamic or scrolling. This won’t be 
affecting your performance in this instance but worth noting. It’s only useful 
setting it to ‘dynamic’ if the values, text or images are changing 
frequently/rapidly or moving about the display. 

Sean Cole
Pi Digital Prod Ltd

> On 29 Aug 2019, at 21:24, Dan Friedman via use-livecode 
 wrote:
> 
> Hello again!   I am have a tough time getting things to run snappy on an 
Android device.  It's blazing fast on my computer, and more than acceptable on 
my iPhone, but on any android device, it's slow... noticeably sluggish.   The 
issue is mainly hiding/showing groups.  For example:
> 
> put the milliseconds into m
> lock screen --for visual effect in rect (the rect of grc "ne_BG") 
//removed the animation for speed testing
> hide grp "ne_mainControls"
> show grp "ne_repeatG"
> unlock screen --with visual effect push left
> answer (the milliseconds - m)
> 
> The result of m is:
> iMac = 10
> iOS = 1   (iPhoneX)
> Android = 516  (Moto G5 Plus Android 7.0)
> 
> The groups contain no images or complex graphics.  Just some buttons and 
fields.
> 
> I have tried it with and without acceleratedRendering.  Actually, with 
acceleratedRendering enabled it took longer, m=558.
> 
> I have it setup like this:
> Card "calendar"
>   Group "newEventG"  --> layerMode set to "Container"
>  Group "ne_mainControls"  --> layerMode set to "Dynamic"
>  Group " ne_repeatG"  --> layerMode set to "Dynamic"
> 
> Any thoughts or advice?  Most other functions are working within 
acceptable ranges/speeds.
> 
> -Dan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Hello again!   I am have a tough time getting things to run snappy on an 
Android device.  It's blazing fast on my computer, and more than acceptable on 
my iPhone, but on any android device, it's slow... noticeably sluggish.   The 
issue is mainly hiding/showing groups.  For example:

put the milliseconds into m
lock screen --for visual effect in rect (the rect of grc "ne_BG") //removed the 
animation for speed testing
hide grp "ne_mainControls"
show grp "ne_repeatG"
unlock screen --with visual effect push left
answer (the milliseconds - m)

The result of m is:
iMac = 10
iOS = 1   (iPhoneX)
Android = 516  (Moto G5 Plus Android 7.0)

The groups contain no images or complex graphics.  Just some buttons and fields.

I have tried it with and without acceleratedRendering.  Actually, with 
acceleratedRendering enabled it took longer, m=558.

I have it setup like this:
Card "calendar"
   Group "newEventG"  --> layerMode set to "Container"
  Group "ne_mainControls"  --> layerMode set to "Dynamic"
  Group " ne_repeatG"  --> layerMode set to "Dynamic"

Any thoughts or advice?  Most other functions are working within acceptable 
ranges/speeds.

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Fonts on Android

2019-08-28 Thread Dan Friedman via use-livecode
Ralph,

The font came from Google Fonts (https://fonts.google.com/specimen/Barlow).  I 
would think its ok.

FWIW... I am just looking for a Helvetica-like font.  I have my project set to 
the default fonts "(system)".  But it looks like crap on Android!  So, I'm just 
looking for something that will look good and render correctly.  I will need a 
regular, bold and italic.

-Dan


On 8/28/19, 5:34 AM, "Ralph DiMola"  wrote:

>After running FontInfo(), I see this:
>
>*Barlow Bold
>bold
>*Barlow Regular
>Plain

What I would have expected is:
*Barlow
bold
plain

Then it would work as expected.

>When I set the font of my stack to "Barlow", everything (bold or not) 
comes up as Barlow Bold. 
>When I set the font of my stack to "Barlow Regular", everything (bold or 
not) comes up as Barlow Regular.

This is because the OS is seeing these as 2 different fonts.
Are the results of FontInfo() on the IDE or the Android device?

I have seen oddities like this when the internal font name is 
wrong/inconsistent or (for example)the regular version was created at a later 
date and the original name was "Barlow bold" and there was no other option than 
to name the new plain font to "Barlow regular". This would not allow them to 
operate as a family.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: Dan Friedman [mailto:d...@clearvisiontech.com] 
Sent: Tuesday, August 27, 2019 6:54 PM
To: rdim...@evergreeninfo.net; 'How to use LiveCode'
Subject: Re: Fonts on Android

Ralph,

Thank you for the reply.  But, I don’t see how this helps.  I have two 
fonts:

Barlow-Bold.ttf
Barlow-Regular.ttf

After running FontInfo(), I see this:

*Barlow Bold
bold
*Barlow Regular
plain

When I set the font of my stack to "Barlow", everything (bold or not) comes 
up as Barlow Bold. 
When I set the font of my stack to "Barlow Regular", everything (bold or 
not) comes up as Barlow Regular.

Only thing I can think to do is to run thought EVERY object in my project 
and set the textFont of that control to "Barlow Bold" or "Barlow Regular".  
Then there's text fields with mixed text...  Do I run through every text field 
and change the font of all bold text?   There has to be a way to map "Barlow 
Regular" to plain text, and "Barlow Bold" to bold text.  I must be missing 
something.

-Dan



On 8/27/19, 3:07 PM, "Ralph DiMola"  wrote:

When I run into this problem I use the routine below to enumerate all 
the
fonts and their styles.
If you have both a "Plain" and "Bold" style for a font then you use the 
font
name and set its style to "Bold"
If you use a "bold" base font then its "plain" style IS the bold font 
and
setting its style to "Bold" will do nothing.

function FontInfo
   local fnames,fstyles,tlist
   
   put the fontnames into fnames
   sort fnames
   repeat for each line tfnt in fnames
  put "*" after tlist
  put the fontstyles(tfnt,0) into  fstyles
  repeat for each line tsty in fstyles
 put space & tsty & cr after tlist
  end repeat
   end repeat
   delete char -1 in tlist
   return tlist
end FontInfo

Ralph DiMola
IT Director
        Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
Behalf
Of Dan Friedman via use-livecode
Sent: Tuesday, August 27, 2019 5:11 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: Fonts on Android

Greetings!

I am able to get a custom font installed and running on a Android 
device.
But, how do you handle the font family?   Included in my app is
"myfont-Regular.ttf" and "myfont-bold.ttf".   When the app launches, I 
call:

set the textFont of stack "main" to "myfont" 

It's only using the bold version (probably because it's first
alphabetically).  Is there a way to map a font to a style so that text 
is "
myfont-Regular" and bold text is "myfont-bold"?

Thanks in advance,
-Dan

 

___
use-livecode mailing list
u

Re: Fonts on Android

2019-08-27 Thread Dan Friedman via use-livecode
Ralph,

Thank you for the reply.  But, I don’t see how this helps.  I have two fonts:

Barlow-Bold.ttf
Barlow-Regular.ttf

After running FontInfo(), I see this:

*Barlow Bold
bold
*Barlow Regular
plain

When I set the font of my stack to "Barlow", everything (bold or not) comes up 
as Barlow Bold. 
When I set the font of my stack to "Barlow Regular", everything (bold or not) 
comes up as Barlow Regular.

Only thing I can think to do is to run thought EVERY object in my project and 
set the textFont of that control to "Barlow Bold" or "Barlow Regular".  Then 
there's text fields with mixed text...  Do I run through every text field and 
change the font of all bold text?   There has to be a way to map "Barlow 
Regular" to plain text, and "Barlow Bold" to bold text.  I must be missing 
something.

-Dan



On 8/27/19, 3:07 PM, "Ralph DiMola"  wrote:

When I run into this problem I use the routine below to enumerate all the
fonts and their styles.
If you have both a "Plain" and "Bold" style for a font then you use the font
name and set its style to "Bold"
If you use a "bold" base font then its "plain" style IS the bold font and
setting its style to "Bold" will do nothing.

function FontInfo
   local fnames,fstyles,tlist
   
   put the fontnames into fnames
   sort fnames
   repeat for each line tfnt in fnames
  put "*" after tlist
  put the fontstyles(tfnt,0) into  fstyles
  repeat for each line tsty in fstyles
 put space & tsty & cr after tlist
  end repeat
   end repeat
   delete char -1 in tlist
   return tlist
end FontInfo

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net
    

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Dan Friedman via use-livecode
Sent: Tuesday, August 27, 2019 5:11 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: Fonts on Android

Greetings!

I am able to get a custom font installed and running on a Android device.
But, how do you handle the font family?   Included in my app is
"myfont-Regular.ttf" and "myfont-bold.ttf".   When the app launches, I call:

set the textFont of stack "main" to "myfont" 

It's only using the bold version (probably because it's first
alphabetically).  Is there a way to map a font to a style so that text is "
myfont-Regular" and bold text is "myfont-bold"?

Thanks in advance,
-Dan

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Fonts on Android

2019-08-27 Thread Dan Friedman via use-livecode
Greetings!

I am able to get a custom font installed and running on a Android device.  But, 
how do you handle the font family?   Included in my app is "myfont-Regular.ttf" 
and "myfont-bold.ttf".   When the app launches, I call:

set the textFont of stack "main" to "myfont" 

It's only using the bold version (probably because it's first alphabetically).  
Is there a way to map a font to a style so that text is " myfont-Regular" and 
bold text is "myfont-bold"?

Thanks in advance,
-Dan

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


mobilePickPhoto and Galaxy Note 8

2019-08-23 Thread Dan Friedman via use-livecode
Greetings!

I am using mobilePickPhoto to take a photo.  On all Apple devices it's working 
great. It's also working as expected on all Android devices except a Galaxy 
Note 8.  On this specific device the camera comes up, we take the photo and 
hear the shutter sound, but no photo is returned/created.  It's as if 
mobilePickPhoto was never called.  Again, this ONLY happens on a Galaxy Note 8. 
 Anyone have any insight to this?   Perhaps someone has a Galaxy Note 8 and can 
see if you're getting the same result?

Thanks in advance,
--Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


DataGrid height?

2019-07-27 Thread Dan Friedman via use-livecode
Hello!   I'm working with the dataGrid for the first time (LC 9.5).   Pretty 
cool!  But I'm having an issue...

Following this lesson, 
http://lessons.livecode.com/m/datagrid/l/9850-how-do-i-create-rows-that-can-expand-contract,
 I created a dataGrid with expanding/collapsing rows.  The expanding/collapsing 
part is working fine, and the entire dataGrid looks perfect.  But when it 
expands a row, some rows below are pushed too far down - leaving a big white 
space.  If I then collapse the row and then expand it again, it works correctly 
(for that row).
 
A little detail...  When the row is created, I am resizing the height of a text 
field (with the formattedHeight) so that the content fits.  This, of course, is 
altering the height of the row - which is exactly what I want.  Also, when I 
try this on a phone, there is no scroller (there is also no scrollbar on 
desktop).  I have another dataGrid in this project (that isn't calling for 
dynamic row heights) and it seems to have a scroller automatically (which is 
WAY cool!).

Any thoughts as to (1) why it's not expanding correctly, and (2) why there is 
no scroller on mobile (or desktop)?   My guess is that since I am changing the 
height of the row on the fly, I need to update some dataGrid property that I am 
unaware of.

Any insight would be appreciated!

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: ITMS-90546: Missing Asset Catalog

2019-07-24 Thread Dan Friedman via use-livecode
Panos,

Ok… Installed 10.1, rebuilt app and uploaded.  That worked.   THANK YOU for the 
quick assistance.

This also resolved this issue:
http://lists.runrev.com/pipermail/use-livecode/2019-July/255327.html



Thank you!

Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com


From: panagiotis merakos 
Date: Wednesday, July 24, 2019 at 10:46 AM
To: Dan Friedman 
Cc: How to use LiveCode 
Subject: Re: ITMS-90546: Missing Asset Catalog

Hello Dan,
You need xcode 10.1.

Xcode 10.2 or 10.3 are not supported. In fact you should not be able to build a 
standalone with xcode 10.3.

Best,
Panos

On Wed, Jul 24, 2019, 20:41 Dan Friedman 
mailto:d...@clearvisiontech.com>> wrote:
Panos,

XCode 10.3
LC 9.5.0 (dp 1)
macOS 10.14.3

Thanks!
-Dan


From: panagiotis merakos mailto:merak...@gmail.com>>
Date: Wednesday, July 24, 2019 at 10:29 AM
To: How to use LiveCode 
mailto:use-livecode@lists.runrev.com>>
Cc: Dan Friedman mailto:d...@clearvisiontech.com>>
Subject: Re: ITMS-90546: Missing Asset Catalog

Nope, I don't think this would cause a problem. It is strange this file is not 
created for you. What is the xcode version you use?

On Wed, Jul 24, 2019, 19:30 Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Panos,

My app does not support landscape and I have "Portrait" selected in the "iPhone 
Initial Orentation".  For this reason, I did not include Landscape spash 
screens.   Could this be the issue?

-Dan


On 7/24/19, 9:09 AM, "use-livecode on behalf of Dan Friedman via use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Panos,

I did include all icons and splash screens.  No, there is not a 
"Assets.car" in the app bundle.   Here's what's in the bundle:
_CodeSignature
 > CodeResources
appicon60...@2x.png
ca-bundle.crt
default-5...@2x.png
default-6...@2x.png
default-7...@3x.png
default-8...@3x.png
default-8...@2x.png
default-8...@3x.png
Default.png
defa...@2x.png
embedded.mobileprovision
Info.plist
PkgInfo
myApp

-Dan

On 7/24/19, 8:58 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hello Dan,

Yes, the standalone builder creates this for you (you need to supply
correct icons and splash screens for all supported devices).

Does the standalone app bundle contain a file called "Assets.car"?

Best,
Panos
--

On Wed, 24 Jul 2019 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> 
wrote:

> Using LC 9.5.0 (dp 1), I uploaded my app to Apple.  I got this back 
from
> them:
>
> ITMS-90546: Missing Asset Catalog - Your app is missing the asset 
catalog
> file in yourApp.app'. For more information see
> http://help.apple.com/xcode/mac/current/#/dev10510b1f7.
>
> A "Asset Catalog" doesn't sound like something I should be adding
> manually.  Could this be an issue with LC when building the 
standalone?
>
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


--
Panagiotis Merakos 
mailto:panos.mera...@livecode.com>>
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscriptio

Re: ITMS-90546: Missing Asset Catalog

2019-07-24 Thread Dan Friedman via use-livecode
Panos,

XCode 10.3
LC 9.5.0 (dp 1)
macOS 10.14.3

Thanks!
-Dan


From: panagiotis merakos 
Date: Wednesday, July 24, 2019 at 10:29 AM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: ITMS-90546: Missing Asset Catalog

Nope, I don't think this would cause a problem. It is strange this file is not 
created for you. What is the xcode version you use?

On Wed, Jul 24, 2019, 19:30 Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Panos,

My app does not support landscape and I have "Portrait" selected in the "iPhone 
Initial Orentation".  For this reason, I did not include Landscape spash 
screens.   Could this be the issue?

-Dan


On 7/24/19, 9:09 AM, "use-livecode on behalf of Dan Friedman via use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Panos,

I did include all icons and splash screens.  No, there is not a 
"Assets.car" in the app bundle.   Here's what's in the bundle:
_CodeSignature
 > CodeResources
appicon60...@2x.png
ca-bundle.crt
default-5...@2x.png
default-6...@2x.png
default-7...@3x.png
default-8...@3x.png
default-8...@2x.png
default-8...@3x.png
Default.png
defa...@2x.png
embedded.mobileprovision
Info.plist
PkgInfo
myApp

-Dan

On 7/24/19, 8:58 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hello Dan,

Yes, the standalone builder creates this for you (you need to supply
correct icons and splash screens for all supported devices).

Does the standalone app bundle contain a file called "Assets.car"?

        Best,
Panos
--

On Wed, 24 Jul 2019 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> 
wrote:

> Using LC 9.5.0 (dp 1), I uploaded my app to Apple.  I got this back 
from
> them:
>
> ITMS-90546: Missing Asset Catalog - Your app is missing the asset 
catalog
> file in yourApp.app'. For more information see
> http://help.apple.com/xcode/mac/current/#/dev10510b1f7.
>
> A "Asset Catalog" doesn't sound like something I should be adding
> manually.  Could this be an issue with LC when building the 
standalone?
>
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


--
Panagiotis Merakos 
mailto:panos.mera...@livecode.com>>
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: ITMS-90546: Missing Asset Catalog

2019-07-24 Thread Dan Friedman via use-livecode
Panos,

My app does not support landscape and I have "Portrait" selected in the "iPhone 
Initial Orentation".  For this reason, I did not include Landscape spash 
screens.   Could this be the issue?

-Dan
 

On 7/24/19, 9:09 AM, "use-livecode on behalf of Dan Friedman via use-livecode" 
 wrote:

Panos,

I did include all icons and splash screens.  No, there is not a 
"Assets.car" in the app bundle.   Here's what's in the bundle:
_CodeSignature
 > CodeResources
appicon60...@2x.png
ca-bundle.crt
default-5...@2x.png
default-6...@2x.png
default-7...@3x.png
default-8...@3x.png
default-8...@2x.png
default-8...@3x.png
Default.png
defa...@2x.png
embedded.mobileprovision
Info.plist
PkgInfo
myApp

-Dan 

On 7/24/19, 8:58 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode"  wrote:

Hello Dan,

Yes, the standalone builder creates this for you (you need to supply
correct icons and splash screens for all supported devices).

Does the standalone app bundle contain a file called "Assets.car"?

Best,
Panos
    --
        
On Wed, 24 Jul 2019 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Using LC 9.5.0 (dp 1), I uploaded my app to Apple.  I got this back 
from
> them:
>
> ITMS-90546: Missing Asset Catalog - Your app is missing the asset 
catalog
> file in yourApp.app'. For more information see
> http://help.apple.com/xcode/mac/current/#/dev10510b1f7.
>
> A "Asset Catalog" doesn't sound like something I should be adding
> manually.  Could this be an issue with LC when building the 
standalone?
>
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: ITMS-90546: Missing Asset Catalog

2019-07-24 Thread Dan Friedman via use-livecode
Panos,

I did include all icons and splash screens.  No, there is not a "Assets.car" in 
the app bundle.   Here's what's in the bundle:
_CodeSignature
 > CodeResources
appicon60...@2x.png
ca-bundle.crt
default-5...@2x.png
default-6...@2x.png
default-7...@3x.png
default-8...@3x.png
default-8...@2x.png
default-8...@3x.png
Default.png
defa...@2x.png
embedded.mobileprovision
Info.plist
PkgInfo
myApp

-Dan 

On 7/24/19, 8:58 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode"  wrote:

Hello Dan,

Yes, the standalone builder creates this for you (you need to supply
correct icons and splash screens for all supported devices).

Does the standalone app bundle contain a file called "Assets.car"?

Best,
Panos
--

    On Wed, 24 Jul 2019 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Using LC 9.5.0 (dp 1), I uploaded my app to Apple.  I got this back from
> them:
>
> ITMS-90546: Missing Asset Catalog - Your app is missing the asset catalog
> file in yourApp.app'. For more information see
> http://help.apple.com/xcode/mac/current/#/dev10510b1f7.
>
> A "Asset Catalog" doesn't sound like something I should be adding
> manually.  Could this be an issue with LC when building the standalone?
>
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

ITMS-90546: Missing Asset Catalog

2019-07-24 Thread Dan Friedman via use-livecode
Using LC 9.5.0 (dp 1), I uploaded my app to Apple.  I got this back from them:

ITMS-90546: Missing Asset Catalog - Your app is missing the asset catalog file 
in yourApp.app'. For more information see 
http://help.apple.com/xcode/mac/current/#/dev10510b1f7.

A "Asset Catalog" doesn't sound like something I should be adding manually.  
Could this be an issue with LC when building the standalone?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


9.5.0 and Icons

2019-07-23 Thread Dan Friedman via use-livecode
I have an iOS app where I have supplied an icon file for every phone size in 
standalone settings.   Yet, the icon does not appear on my device (iPhone X).   
Is this an issue, or could I have done something wrong?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mobileSetKeyboardDisplay

2019-07-23 Thread Dan Friedman via use-livecode
Monte,

Done.https://quality.livecode.com/show_bug.cgi?id=22256

Thanks for looking into this!

-Dan

 

On 7/22/19, 9:14 PM, "use-livecode on behalf of Monte Goulding via 
use-livecode"  wrote:

Could you open a report about the issue with an example stack please.

Thanks

Monte

> On 23 Jul 2019, at 1:01 pm, Dan Friedman via use-livecode 
 wrote:
> 
> First, may I say that mobileSetKeyboardDisplay is a beautiful thing!  
This is a game-changer in working with data in mobile apps.  My applause!  My 
hat's off!  Now, with that said...
> 
> It's not working right.  The first time you open a native field with 
mobileSetKeyboardDisplay set to "pan", it works perfect!  The second time 
however, it doesn’t scroll down far enough.  I presume this is related to the 
same issue that we have with the effective working screenRect.   The first time 
you call this, and the soft keyboard is open, you get the correct rect.  The 
second time you request it, you get an incorrect rect.  I have always just 
saved the first pass at it and used that from then on.   But, don't have the 
option with mobileSetKeyboardDisplay.  Can we get this fixed??   Please
> 
> -Dan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

mobileSetKeyboardDisplay

2019-07-22 Thread Dan Friedman via use-livecode
First, may I say that mobileSetKeyboardDisplay is a beautiful thing!  This is a 
game-changer in working with data in mobile apps.  My applause!  My hat's off!  
Now, with that said...

It's not working right.  The first time you open a native field with 
mobileSetKeyboardDisplay set to "pan", it works perfect!  The second time 
however, it doesn’t scroll down far enough.  I presume this is related to the 
same issue that we have with the effective working screenRect.   The first time 
you call this, and the soft keyboard is open, you get the correct rect.  The 
second time you request it, you get an incorrect rect.  I have always just 
saved the first pass at it and used that from then on.   But, don't have the 
option with mobileSetKeyboardDisplay.  Can we get this fixed??   Please

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Android 64-bit?

2019-07-15 Thread Dan Friedman via use-livecode
Dar,

https://developer.android.com/distribute/best-practices/develop/64-bit states, 
"Starting August 1, 2019, your apps published on Google Play will need to 
support 64-bit architectures."

So, no new or updated apps can be posted to Google made by LiveCode after 
August 1?   That can't be right!   Perhaps someone at LC will have some better 
news?

-Dan
 

On 7/15/19, 2:31 PM, "use-livecode on behalf of Dar Scott Consulting via 
use-livecode"  wrote:

Wow!  

Perhaps the constraint for August 1 is that all NEW apps and all UPDATES 
need to include 64-bit. Maybe, they will still serve your apps.

> On Jul 15, 2019, at 2:14 PM, Dan Friedman via use-livecode 
 wrote:
> 
> Greetings!   I got some notices from Google (android) that my apps need 
to be updated to 64-bit by August 1, 2019.   Does LiveCode generate 64-bit 
Android apps?  If so, can I do that with Indy 9.0.4?  If so, what versions of 
Android Studio and Android SDKs do I need to install?   Any guidance will be 
greatly appreciated and surely help keep my hair in my head.
> 
> -Dan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Android 64-bit?

2019-07-15 Thread Dan Friedman via use-livecode
Greetings!   I got some notices from Google (android) that my apps need to be 
updated to 64-bit by August 1, 2019.   Does LiveCode generate 64-bit Android 
apps?  If so, can I do that with Indy 9.0.4?  If so, what versions of Android 
Studio and Android SDKs do I need to install?   Any guidance will be greatly 
appreciated and surely help keep my hair in my head.

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mobilePickPhoto on Android

2019-05-03 Thread Dan Friedman via use-livecode
Panos,

Here’s an update…  I met in person with my client with his Samsung Galaxy S9+ 
running Android 9.  My standalone built with 9.0.4 rc3 is failing on his 
device.  I call mobilePickPhoto "camera", and the camera does come up.  I take 
the picture, the screen flashes, and then the camera is ready to take another 
photo.  The photos are being added to his photo library.  It doesn’t return to 
the app.  If I cancel the camera, it returns to the app and I get “cancel” as 
the result.  There must be something different about this particular device.  
Do you have any insight or things I might try?

Anyone out there with a Samsung Galaxy S9+ running Android 9 that can confirm 
mobilePickPhoto is or isn’t working?

-Dan


From: Dan Friedman 
Date: Tuesday, April 30, 2019 at 10:26 AM
To: panagiotis merakos , How to use LiveCode 

Subject: Re: mobilePickPhoto on Android

Panos,

Thank you for the reply.  This version fixed the issue on several of our 
devices.   However, my client is saying it’s failing on his Samsung Galaxy S9+ 
running Android 9.  I have verified that he has the updated build (made with LC 
9.0.4 rc 2) installed on his device.   He says he has made no software or 
hardware modifications to the device but is still having the same issue.  
Perhaps there is a different issue with camera access with this device?

-Dan



From: panagiotis merakos 
Date: Tuesday, April 30, 2019 at 4:04 AM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: mobilePickPhoto on Android

Hello Dan,

This sounds like https://quality.livecode.com/show_bug.cgi?id=21826, affecting 
only specific Android devices, and has been fixed in LC 9.0.4 RC-1+

Kind regards,
Panos
--

On Sat, 27 Apr 2019 at 01:09, Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Greetings!I am calling mobilePickPhoto "camera" on a Android device.   If I 
am running Android version 7.0, everything works great.   If I am running 
Android 8.0, then I get an empty back where length(image 1) is 0.   Using 
LiveCode 9.0.3.   Anyone know of an issue with mobilePickPhoto on late versions 
of Android.   FWIW, mobilePickPhoto "library" works fine on all versions of 
Android.

Thanks in advance,
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: mobilePickPhoto on Android

2019-04-30 Thread Dan Friedman via use-livecode
Panos,

Thank you for the reply.  This version fixed the issue on several of our 
devices.   However, my client is saying it’s failing on his Samsung Galaxy S9+ 
running Android 9.  I have verified that he has the updated build (made with LC 
9.0.4 rc 2) installed on his device.   He says he has made no software or 
hardware modifications to the device but is still having the same issue.  
Perhaps there is a different issue with camera access with this device?

-Dan



From: panagiotis merakos 
Date: Tuesday, April 30, 2019 at 4:04 AM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: mobilePickPhoto on Android

Hello Dan,

This sounds like https://quality.livecode.com/show_bug.cgi?id=21826, affecting 
only specific Android devices, and has been fixed in LC 9.0.4 RC-1+

Kind regards,
Panos
--

On Sat, 27 Apr 2019 at 01:09, Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Greetings!I am calling mobilePickPhoto "camera" on a Android device.   If I 
am running Android version 7.0, everything works great.   If I am running 
Android 8.0, then I get an empty back where length(image 1) is 0.   Using 
LiveCode 9.0.3.   Anyone know of an issue with mobilePickPhoto on late versions 
of Android.   FWIW, mobilePickPhoto "library" works fine on all versions of 
Android.

Thanks in advance,
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

mobilePickPhoto on Android

2019-04-26 Thread Dan Friedman via use-livecode
Greetings!I am calling mobilePickPhoto "camera" on a Android device.   If I 
am running Android version 7.0, everything works great.   If I am running 
Android 8.0, then I get an empty back where length(image 1) is 0.   Using 
LiveCode 9.0.3.   Anyone know of an issue with mobilePickPhoto on late versions 
of Android.   FWIW, mobilePickPhoto "library" works fine on all versions of 
Android.

Thanks in advance,
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC 9 and Externals

2019-03-18 Thread Dan Friedman via use-livecode
Mark,

Thank you for the reply!   Yes, it is a Mac External.  If I change the IDE to 
run at 32-bit, then I assume that it will produce apps that are 32-bit.  If 
that's true, then that's really not a solution as Apple is requiring that all 
apps be 64-bit.   I am probably going to have to have this external rebuilt, 
right?

-Dan


On 3/18/19, 8:44 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

Hi Dan,

On 2019-03-18 16:35, Dan Friedman via use-livecode wrote:
> FYI, it's working in LC 8.X. -- the stack is closed when the external
> paths are set, I am verifying that the external exists, etc.  It's
> working in 8, what changed in 9?

If this is a Mac external and it has not been rebuilt for a couple of 
years
(at least), then it is most likely that it does not have a 64-bit slice.
The 9 IDE (and standalones) build and run (by default) in 64-bit mode
on Mac - although you can still build standalones with a 32-bit slice 
and
(if you are not running 10.14) switch the IDE to run in 32-bit by using
Get Info on the LiveCode app bundle in Finder.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

LC 9 and Externals

2019-03-18 Thread Dan Friedman via use-livecode
Greetings!

I have been using an external in my projects for literally over 10 years.  I am 
updating a project from 8.1.5 to the latest version of LC, 9.0.3.  Suddenly, 
it's not working.  I tried it in 9.0.2, 9.0.1 and 9.0.0 same thing.  I tried it 
in the last version of 8 (8.1.9) and it worked perfectly.  Clearly, something 
changed in how externals are handled in LC 9.  Or, have they been retired?  
"Externals" still appears in the dictionary.  Does anyone have any insight to 
using externals in LC 9?

FYI, it's working in LC 8.X. -- the stack is closed when the external paths are 
set, I am verifying that the external exists, etc.  It's working in 8, what 
changed in 9?

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


browserNavigateBegin on Android

2019-03-06 Thread Dan Friedman via use-livecode
Greetings!

I have a browser widget on a card with browserNavigateBegin in the card script. 
 On Mac and iOS, the browserNavigateBegin is being called with a link is 
clicked in the browser.   However, on Android, it's not.  Is this a bug, a 
limitation of the browser widget, or do I have to flip a bit somewhere?

Any insight would be VERY appreciated!

-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can't Submit App to iTunes

2018-12-19 Thread Dan Friedman via use-livecode
Panos,

This an update to an older project.  LC is finding the icons and splash screens 
because it's not throwing an error or warning at build.  But, I cleared all the 
icons and splash screens in the Standalone Application Settings and re-selected 
them.  That seemd to resolve the issue!  Wheew!I'll make it a habit to 
re-select these files when updating older projects.  Something must have 
changed with these paths between versions of LC.

Thanks for the help!

-Dan


From: panagiotis merakos 
Date: Wednesday, December 19, 2018 at 8:01 AM
To: Dan Friedman 
Cc: How to use LiveCode 
Subject: Re: Can't Submit App to iTunes

Hello Dan,

Indeed, default-5...@2x.png is required. In fact the standalone builder puts a 
default image in the app bundle named "default-5...@2x.png" in case the user 
does not provide any.

Since you have provided all the necessary icons and splash screens, I do not 
see any reason why they don't appear (all of them) in the app bundle. I take it 
that all the icons and splash screens you have provided are all of the required 
dimensions, as specified in the tooltips of the icon/splash fields, is that 
correct?

If you think it is a bug, then I suggest you file a report at 
quality.livecode.com<http://quality.livecode.com> and send us (either to 
panos.mera...@livecode.com<mailto:panos.mera...@livecode.com> or to 
supp...@livecode.com<mailto:supp...@livecode.com>) you full stack and the set 
of images and icons you use.

BTW what is the minimum target iOS version in the iOS standalone settings? It 
might be worth changing it to "8.0 or later" and see if you still get these 
errors.

Kind regards,
Panos
--

On Wed, Dec 19, 2018 at 5:52 PM Dan Friedman 
mailto:d...@clearvisiontech.com>> wrote:
Panos,

Any word on this issue?   Colin Holgate suggested that I add all the portrait 
splash screen images even thou my app doesn't display in portrait.  I did that, 
and I got the exact same errors from Application Loader.

-Dan


From: panagiotis merakos mailto:merak...@gmail.com>>
Date: Tuesday, December 18, 2018 at 12:54 PM
To: How to use LiveCode 
mailto:use-livecode@lists.runrev.com>>
Cc: Dan Friedman mailto:d...@clearvisiontech.com>>
Subject: Re: Can't Submit App to iTunes

Hello Dan,

If you right click on the .app bundle and choose "Show Package Contents", are 
the image files there?

Best Regards
Panos
--

On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode 
<mailto:use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> 
wrote:
Greetings!

I've never had this problem before… When I attempt to upload my app via the 
Application Loader, I get a number of errors:

ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps 
and app updates submitted must support the 4-inch display on iPhone 5 and must 
include a launch image referenced in the Info.plist under UILaunchImages with a 
UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and 
located at the top-level of your bundle, or provided within each .lproj folder 
if you localize your launch images. Learn more about iPhone 5 support and app 
launch images by reviewing the 'iOS Human Interface Guidelines' at 
https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen.;

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced 
under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an 
app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format 
for iOS versions >= 10.0."

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an 
app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions 
>= 10.0."

All icons are included in the App Settings (and they are correct, I triple 
checked!).  Also, all Splash screens are included.  I did not include the 
Portrait splash screens as the app does not use portrait display.

Any thoughts?

LC Indy 9.0.2
iOS SDK 11.2
MacOS 10.12.6

-Dan
___
use-livecode mailing list
mailto:use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Can't Submit App to iTunes

2018-12-19 Thread Dan Friedman via use-livecode
Panos,

Any word on this issue?   Colin Holgate suggested that I add all the portrait 
splash screen images even thou my app doesn't display in portrait.  I did that, 
and I got the exact same errors from Application Loader.

-Dan


From: panagiotis merakos 
Date: Tuesday, December 18, 2018 at 12:54 PM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: Can't Submit App to iTunes

Hello Dan, 

If you right click on the .app bundle and choose "Show Package Contents", are 
the image files there?

Best Regards
Panos
--

On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode 
<mailto:use-livecode@lists.runrev.com> wrote:
Greetings!

I've never had this problem before… When I attempt to upload my app via the 
Application Loader, I get a number of errors:

ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps 
and app updates submitted must support the 4-inch display on iPhone 5 and must 
include a launch image referenced in the Info.plist under UILaunchImages with a 
UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and 
located at the top-level of your bundle, or provided within each .lproj folder 
if you localize your launch images. Learn more about iPhone 5 support and app 
launch images by reviewing the 'iOS Human Interface Guidelines' at 
https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen.;

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced 
under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an 
app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format 
for iOS versions >= 10.0."

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an 
app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions 
>= 10.0."

All icons are included in the App Settings (and they are correct, I triple 
checked!).  Also, all Splash screens are included.  I did not include the 
Portrait splash screens as the app does not use portrait display.

Any thoughts?

LC Indy 9.0.2
iOS SDK 11.2
MacOS 10.12.6

-Dan
___
use-livecode mailing list
mailto:use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Can't Submit App to iTunes

2018-12-18 Thread Dan Friedman via use-livecode
Panos,

Yes, but I don't think it's all of them.   Here's what's there:

_CodeSignature
appicon60...@3x.png
AppIcon83.5x83.5@2x~ipad.png
Assets.car
ca-bundle.crt
default-3...@3x.png
default-4...@3x.png
default-ipadprolandsc...@2x.png
Default-Landscape.png
myApp
embedded.mobileprovision
Info.plist
PkgInfo
Sounds  //my included folder


-Dan

From: panagiotis merakos 
Date: Tuesday, December 18, 2018 at 12:54 PM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: Can't Submit App to iTunes

Hello Dan,

If you right click on the .app bundle and choose "Show Package Contents", are 
the image files there?

Best Regards
Panos
--

On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Greetings!

I've never had this problem before… When I attempt to upload my app via the 
Application Loader, I get a number of errors:

ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps 
and app updates submitted must support the 4-inch display on iPhone 5 and must 
include a launch image referenced in the Info.plist under UILaunchImages with a 
UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and 
located at the top-level of your bundle, or provided within each .lproj folder 
if you localize your launch images. Learn more about iPhone 5 support and app 
launch images by reviewing the 'iOS Human Interface Guidelines' at 
https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen.;

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced 
under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an 
app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format 
for iOS versions >= 10.0."

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an 
app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions 
>= 10.0."

All icons are included in the App Settings (and they are correct, I triple 
checked!).  Also, all Splash screens are included.  I did not include the 
Portrait splash screens as the app does not use portrait display.

Any thoughts?

LC Indy 9.0.2
iOS SDK 11.2
MacOS 10.12.6

-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Can't Submit App to iTunes

2018-12-18 Thread Dan Friedman via use-livecode
Greetings!

I've never had this problem before… When I attempt to upload my app via the 
Application Loader, I get a number of errors:

ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps 
and app updates submitted must support the 4-inch display on iPhone 5 and must 
include a launch image referenced in the Info.plist under UILaunchImages with a 
UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and 
located at the top-level of your bundle, or provided within each .lproj folder 
if you localize your launch images. Learn more about iPhone 5 support and app 
launch images by reviewing the 'iOS Human Interface Guidelines' at 
https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen.;

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced 
under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an 
app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format 
for iOS versions >= 10.0."

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an 
app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions 
>= 10.0."

All icons are included in the App Settings (and they are correct, I triple 
checked!).  Also, all Splash screens are included.  I did not include the 
Portrait splash screens as the app does not use portrait display.

Any thoughts?

LC Indy 9.0.2
iOS SDK 11.2
MacOS 10.12.6

-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Setting hidden of lines very slow

2018-11-30 Thread Dan Friedman via use-livecode
Kaveh,

Well, you learn something every day!   I didn't know you could hide a line of 
text.  Pretty cool!

FWIW, the fastest way that I know to remove all text stylings from a field of 
text is this:

put fld 1 into fld 1


-Dan
 

On 11/30/18, 8:37 AM, "use-livecode on behalf of Kaveh Bazargan via 
use-livecode"  wrote:

I am simulating a non-contiguous selection of text with a "Find all" button
that sets the style of all found items of text.

Then I want to inspect those "selections" only but showing the paras that
contain them and hiding all other lines. So I have a full view and a
"compact" view that the user can choose by clicking a button

On Fri, 30 Nov 2018 at 16:31, Glen Bojsza via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I was wondering at what stage or how the lines get chosen to be hidden or
> not?
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Safari vs Browser Widget

2018-11-29 Thread Dan Friedman via use-livecode
Greeting!  I am hoping someone has an answer for this…

I am working on a HTML5 web page that accesses the device's camera.  When I 
open the url in Safari (on my Mac or iOS device), I am asked if it's ok to use 
the camera and everything works perfectly!   However, if I load this same url 
in the Browser Widget (or a plain native browser), it doesn’t ask to use the 
camera and it all fails.   Is this a limitation of the implementation of the 
browser in LiveCode, or is there a setting I have to set?

Thank you!
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: App Dead on iOS 12

2018-09-17 Thread Dan Friedman via use-livecode
Monte,

I am definitely using 9.0.1 Stable.  NOT the RC's.

-Dan
 

On 9/17/18, 4:38 PM, "use-livecode on behalf of Monte Goulding via 
use-livecode"  wrote:

Hi Dan

Are you using the 9.0.1 stable or are you using one of the RCs? It sounds 
like you are hitting a bug that we fixed for RC 2.

Cheers

Monte


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: App Dead on iOS 12

2018-09-17 Thread Dan Friedman via use-livecode
Terry,

So, here's what I've discovered in the last 40 minutes…

If you add, "set the acceleratedRendering of stack myStack to true", then 
things start working again.  However, I did find that if I had more than one 
stack open, and the second stack did not have acceleratedRendering enabled, 
then the app crashed.

Most everything seems to be working ok once the app is open.   Visual Effects 
are working fine, but I’m having some issues with moving controls (on 
mouseMove) and the like…  S—l—u—g—i—s—h !!


Thank you!
 
Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com
 

On 9/17/18, 3:51 PM, "use-livecode on behalf of Terry Judd via use-livecode" 
 wrote:

Yeah - I just updated an iPad to iOS 12 and 2 LC apps that were already 
installed on it now just show a black screen (with the outlines of a couple of 
native fields) after the splash screen. I kinda assumed they would just still 
work.

Terry...

On 18/09/2018 7:56 am, "use-livecode on behalf of Dan Friedman via 
use-livecode"  wrote:

I see that all my apps are launching and immediately crashing on iOS 
12.  I rebuilt the app using 9.0.1 and I get the same result.  Since this list 
isn't blowing up with people complaining about this, I have must have missed 
the meeting about the secret button to click to get things working.   Anyone 
have any words of wisdom?

HELP!

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

App Dead on iOS 12

2018-09-17 Thread Dan Friedman via use-livecode
I see that all my apps are launching and immediately crashing on iOS 12.  I 
rebuilt the app using 9.0.1 and I get the same result.  Since this list isn't 
blowing up with people complaining about this, I have must have missed the 
meeting about the secret button to click to get things working.   Anyone have 
any words of wisdom?

HELP!

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


androidRecorderStartRecording Fail on Second Attempt

2018-09-04 Thread Dan Friedman via use-livecode
Greetings!   If I use androidRecorderStartRecording to record on Android, it 
works perfectly!   However,  If I attempt to call androidRecorderStartRecording 
again duiring the same app session, it doesn’t work… it just halts.

Here’s exactly what I’m doing:

In a button I do this:

androidRecorderSetRecordFormat "MPEG-4"
androidRecorderStartRecording fPath 

Click the button again, and I do this:

try
   androidRecorderStopRecording //will error if not currently recording
end try

I can call "play fPath" and the file plays correctly.

Click the button again, and I do this (same as before):

androidRecorderSetRecordFormat "MPEG-4"
androidRecorderStartRecording fPath   //FAILS!  //yes, fPath is valid it's the 
same path as previously used

I tried to get the result after the second call of 
androidRecorderStartRecording but it couldn't report the result as it had 
already halted execution.

I don't see a androidRecorderReset.  Also, I tried deleting fPath thinking it 
worked when there wasn't a file, but that didn't help.  If I reboot the app on 
the device, it will work again… but only once.

Any thoughts?   

Thanks in advance,
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Android Audio Recorder Woes

2018-08-31 Thread Dan Friedman via use-livecode
Panos,

Ug!  Yes, that was it.  I feel especially stupid because I already did it for 
Location Access.   Must be Friday!?!

Thank you!

-Dan


From: panagiotis merakos 
Date: Friday, August 31, 2018 at 1:34 PM
To: Dan Friedman 
Cc: How to use LiveCode 
Subject: Re: Android Audio Recorder Woes

Hello Dan,

Ok, so since 9.0.1 uses the new android permissions model, you might have to 
ask for permission to record audio first. See the command 
androidRequestPermission in the dictionary.

Best,
Panos

On Fri, Aug 31, 2018, 23:30 Dan Friedman 
mailto:d...@clearvisiontech.com>> wrote:
Panos.

Thank you for the reply!  I am using LC  9.0.1 (rc 2).


Thank you!

Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com


From: panagiotis merakos mailto:merak...@gmail.com>>
Date: Friday, August 31, 2018 at 1:27 PM
To: How to use LiveCode 
mailto:use-livecode@lists.runrev.com>>
Cc: Dan Friedman mailto:d...@clearvisiontech.com>>
Subject: Re: Android Audio Recorder Woes

Hello Dan,
Which LC version are you using?

Best,
Panos

On Fri, Aug 31, 2018, 18:51 Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Hello!   I am trying to implement the Android Audio Recorder options in my 
project, but it’s not working.  I have checked the “Android Audio Recorder” in 
the Standalone Application Settings, and the called this:

androidRecorderSetRecordFormat "MPEG-4"
put (specialFolderPath("documents") & "/ test.mp4") into fPath
androidRecorderStartRecording fPath

The androidRecorderSetRecordFormat seems to be ok as it’s failing on the 
androidRecorderStartRecording call.   Is there something else I need to do or 
set to get this working?

Thanks in advance
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Android Audio Recorder Woes

2018-08-31 Thread Dan Friedman via use-livecode
Panos.

Thank you for the reply!  I am using LC  9.0.1 (rc 2).


Thank you!

Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com


From: panagiotis merakos 
Date: Friday, August 31, 2018 at 1:27 PM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: Android Audio Recorder Woes

Hello Dan,
Which LC version are you using?

Best,
Panos

On Fri, Aug 31, 2018, 18:51 Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Hello!   I am trying to implement the Android Audio Recorder options in my 
project, but it’s not working.  I have checked the “Android Audio Recorder” in 
the Standalone Application Settings, and the called this:

androidRecorderSetRecordFormat "MPEG-4"
put (specialFolderPath("documents") & "/ test.mp4") into fPath
androidRecorderStartRecording fPath

The androidRecorderSetRecordFormat seems to be ok as it’s failing on the 
androidRecorderStartRecording call.   Is there something else I need to do or 
set to get this working?

Thanks in advance
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Android Audio Recorder Woes

2018-08-31 Thread Dan Friedman via use-livecode
Hello!   I am trying to implement the Android Audio Recorder options in my 
project, but it’s not working.  I have checked the “Android Audio Recorder” in 
the Standalone Application Settings, and the called this:

androidRecorderSetRecordFormat "MPEG-4"
put (specialFolderPath("documents") & "/ test.mp4") into fPath
androidRecorderStartRecording fPath

The androidRecorderSetRecordFormat seems to be ok as it’s failing on the 
androidRecorderStartRecording call.   Is there something else I need to do or 
set to get this working?

Thanks in advance
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Binary Rejected!

2018-08-24 Thread Dan Friedman via use-livecode
Ludivuc,

Thanks for the advice!   I also found an LiveCode Lesson on this very topic.   
http://lessons.livecode.com/m/4069/l/881992-creating-a-custom-plist


Thank you!
 
Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com
 

On 8/23/18, 10:56 PM, "use-livecode on behalf of Ludovic THEBAULT via 
use-livecode"  wrote:


> Le 24 août 2018 à 07:48, Dan Friedman via use-livecode 
 a écrit :
> 
> Hello,
> 
> My recent iOS app uploaded to Apple was rejected because the dialog 
asking for access to your location didn’t say why the app wanted to use 
location services.  Apple said, “We noticed that your app requests the user’s 
consent to access their location but does not clarify the use of this feature 
in the permission modal alert.”
> 
> I found the “NSLocationAlwaysAndWhenInUseUsageDescription” key in the 
app’s info.plist and changed it.  But, when I uploaded the app to Apple, the 
Application loaded app reported the following error:
> 
> ERROR ITMS-90035: "Invalid Signature. Invalid Info.plist (plist or 
signature have been modified). The file at path [xxx.app/] is not 
properly signed. Make sure you have signed your application with a distribution 
certificate, not an ad hoc certificate or a development certificate. Verify 
that the code signing settings in Xcode are correct at the target level (which 
override any values at the project level). Additionally, make sure the bundle 
you are uploading was built using a Release target in Xcode, not a Simulator 
target. If you are certain your code signing settings are correct, choose 
"Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild 
your release target. For more information, please consult 
https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html;
> 
> Obviously, they didn’t like me messing with the info.plist.  So, what the 
solution?   Is there a way to edit the 
“NSLocationAlwaysAndWhenInUseUsageDescription” key?   Assuming that’s the 
correct thing to be editing?
> 
> Any assistance would be VERY appreciated!
> 
> -Dan

Hello,

You need to modify the key before create the standalone :
Panos  tells you how to do it here : 
https://quality.livecode.com/show_bug.cgi?id=19780#c11 
<https://quality.livecode.com/show_bug.cgi?id=19780#c11>

But I hope the next release allows us to do it in the standalone builder.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Binary Rejected!

2018-08-23 Thread Dan Friedman via use-livecode
Hello,

My recent iOS app uploaded to Apple was rejected because the dialog asking for 
access to your location didn’t say why the app wanted to use location services. 
 Apple said, “We noticed that your app requests the user’s consent to access 
their location but does not clarify the use of this feature in the permission 
modal alert.”

I found the “NSLocationAlwaysAndWhenInUseUsageDescription” key in the app’s 
info.plist and changed it.  But, when I uploaded the app to Apple, the 
Application loaded app reported the following error:

ERROR ITMS-90035: "Invalid Signature. Invalid Info.plist (plist or signature 
have been modified). The file at path [xxx.app/] is not properly 
signed. Make sure you have signed your application with a distribution 
certificate, not an ad hoc certificate or a development certificate. Verify 
that the code signing settings in Xcode are correct at the target level (which 
override any values at the project level). Additionally, make sure the bundle 
you are uploading was built using a Release target in Xcode, not a Simulator 
target. If you are certain your code signing settings are correct, choose 
"Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild 
your release target. For more information, please consult 
https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html;

Obviously, they didn’t like me messing with the info.plist.  So, what the 
solution?   Is there a way to edit the 
“NSLocationAlwaysAndWhenInUseUsageDescription” key?   Assuming that’s the 
correct thing to be editing?

Any assistance would be VERY appreciated!

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Mobile Record Audio

2018-08-20 Thread Dan Friedman via use-livecode
Hello!

I need to record audio on both android and iOS and then upload that recording 
as a mp3 to a server (for use by another service that requires mp3).   
Recording isn’t the issue, there is the Android Audio Recorder for Android, and 
mergMicrophoneStartRecording fPath for iSO.   Is issue is saving it as a mp3.  
As I understand, both these commands will produce a mp4, not a mp3.  Anyone 
know a solution?


Thanks in advance!
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Android and https

2018-08-07 Thread Dan Friedman via use-livecode
Jacqueline,

Yes.  Before attempting to display the PDF, I am downloading the PDF from my 
site to begin with. So, internet functionality is working (although, not https).

-Dan
 

On 8/7/18, 1:53 PM, "use-livecode on behalf of J. Landman Gay via use-livecode" 
 wrote:

On 8/7/18 2:38 PM, Dan Friedman via use-livecode wrote:
> If I try to access a https link/page in my Android app, I get empty (the 
result is empty too).  If I do the same call on my iOS app, it’s fine.   Is 
there some type of secure issue with LC 9.0.1 on Android?  Or, am I supposed to 
flip a switch somewhere?

Did you tick the checkbox for Internet permissions in Android standalone 
settings?

-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Android, local PDF and the Browser Widget

2018-08-07 Thread Dan Friedman via use-livecode
Can anyone tell me why this fails on Android, when it works on iOS and desktop:

put specialFolderPath("documents") & "myTemp.pdf" into fPath
put someRandomPDFData into url ("binfile:" & fPath)
set the url of widget "Browser1" to fPath  //I get a white screen

I have also tried:
set the url of widget "Browser1" to ("file:/" & fPath)
set the url of widget "Browser1" to ("file://" & fPath)

FWIW, this returns true:
answer (there is a file fPath)

I have verified that someRandomPDFData is valid PDF data and the detailed files 
returns the correct file name and size

Using LC 9.0.1

-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android and https

2018-08-07 Thread Dan Friedman via use-livecode
If I try to access a https link/page in my Android app, I get empty (the result 
is empty too).  If I do the same call on my iOS app, it’s fine.   Is there some 
type of secure issue with LC 9.0.1 on Android?  Or, am I supposed to flip a 
switch somewhere?

Thanks in advance!
-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

  1   2   >