How to give swiping precedence over scrolling on mobile?

2018-12-19 Thread Terry Judd via use-livecode
This is a problem that I have run into before and have never been able to solve 
satisfactorily. I’m using touchStart and touchEnd handlers to detect the 
direction and speed of a finger movement and if it is within certain bounds 
(large enough x, small enough y, and fast enough) then the user can swipe back 
and forwards through a series of cards. Good so far except when the area they 
are swiping on also includes a mobile scroller (to scroll a list selection 
widget/thingy). In that situation the swiping becomes a bit of a hit and miss 
thing – works sometimes but not others. On iOS there are a few scroller 
parameters look potentially useful (canCancelTouches, delayTouches, and 
lockDirection) but it’s not really clear (to me at least) which of these might 
help and if so whether I should be setting them to true or false.

Any ideas?

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

Re: [ANN] bnGuides alignment tool on ivecodeshare

2018-12-19 Thread Matthias Rebbe via use-livecode
Bernd,

thank you very much for useful plugin.


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

> Am 18.12.2018 um 16:44 schrieb Niggemann, Bernd via use-livecode 
> :
> 
> I have put a stack "bnGuides" on livecodeshare (or access it from "Sample 
> Stacks" from within LC).
> It is best used as a plugin.
> 
> http://livecodeshare.runrev.com/stack/918/BnGuides
> 
> It helps with visual guides to align objects. It complements the build-in 
> alignment tool.
> Feedback welcome.
> 
> Kind regards
> Bernd
> ___
> 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: [ANN] bnGuides alignment tool on ivecodeshare

2018-12-19 Thread Tom Glod via use-livecode
This is a cool little plugin for the community

PS >  I can't wait for the new stack share center.

On Tue, Dec 18, 2018 at 10:44 AM Niggemann, Bernd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have put a stack "bnGuides" on livecodeshare (or access it from "Sample
> Stacks" from within LC).
> It is best used as a plugin.
>
> http://livecodeshare.runrev.com/stack/918/BnGuides
>
> It helps with visual guides to align objects. It complements the build-in
> alignment tool.
> Feedback welcome.
>
> Kind regards
> Bernd
> ___
> 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: 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 and send us (either to 
panos.mera...@livecode.com or to 
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 
> 
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-19 Thread panagiotis merakos via use-livecode
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 and send us (either to panos.mera...@livecode.com or
to 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 
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 
> 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  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-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 
 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

FYI: How to reliably identify an Android Tablet microSD Card

2018-12-19 Thread Peter Reid via use-livecode
FYI

I've managed to put together some code that reliably locates the microSD card 
in 4 very different Android-based tablets. The approach involves 3 different 
methods:

1. Search for a known folder on the SD card starting in the standard "/mnt" 
folder using a breadth-first search strategy.

2. Search for a known folder on the SD card starting in the less standard 
"/storage" folder using a breadth-first search strategy.

3. Search for a known folder using full paths that are used by specific 
manufacturers. These look as though they should be located by method 1. (they 
are all paths from "/mnt") but sometimes fail 1. however they work if the full 
path is specified!

Here's my code for "findSDcard"...



on findSDcard
   constant \
  cSDcardRoot1 = "/mnt/ext_sdcard/Android/data/com.myorg.myapp/files", \
  cSDcardRoot2 = "/mnt/sdcard2/Android/data/com.myorg.myapp/files", \
  cSDcardRoot3 = "/mnt/m_external_sd/Android/data/com.myorg.myapp/files", \
  cSDcardRoot4 = "/mnt/sdcard/Android/data/com.myorg.myapp/files", \
  cSDcardRoot5 = "/mnt/extSdCard/Android/data/com.myorg.myapp/files", \
  cSDcardRoot6 = "/mnt/external_sd/Android/data/com.myorg.myapp/files", \
  cSDcardRoot7 = "/mnt/SDCard/Android/data/com.myorg.myapp/files"
  
global gDataPath -- /myapp-data
global gSDcard -- path to app's data folder

   set wholeMatches to true
   put empty into gSDcard
   put (char 2 to -1 of gDataPath) into tTargetFolderName
   if the platform is "android" then
  put "/mnt" into tDeviceRoot
  if there is a folder tDeviceRoot then
 -- search in standard /mnt folders:
 put empty into tFoundPath
 folderExists tTargetFolderName, tDeviceRoot, tFoundPath
 if tFoundPath is not empty then
put tFoundPath into gSDcard
 end if
  end if
  if gSDcard is empty then
 -- try non-standard /storage folders:
 if there is a folder "/storage" then
-- search in non-standard /storage folders:
put "/storage" into tDeviceRoot
put empty into tFoundPath
folderExists tTargetFolderName, tDeviceRoot, tFoundPath
if tFoundPath is not empty then
   put tFoundPath into gSDcard 
end if
 end if
  end if
  if gSDcard is empty then
 -- try bespoke SD locations:
 if there is a folder cSDcardRoot1 then
put cSDcardRoot1 into gSDcard-- Huawei
 else if there is a folder cSDcardRoot2 then
put cSDcardRoot2 into gSDcard-- Amazon
 else if there is a folder cSDcardRoot3 then
put cSDcardRoot3 into gSDcard-- Lenovo
 else if there is a folder cSDcardRoot4 then
put cSDcardRoot4 into gSDcard-- Fusion
 else if there is a folder cSDcardRoot5 then
put cSDcardRoot5 into gSDcard-- ??
 else if there is a folder cSDcardRoot6 then
put cSDcardRoot6 into gSDcard-- ??
 else if there is a folder cSDcardRoot7 then
put cSDcardRoot7 into gSDcard-- Hudl?
 end if
  end if
   end if
end findSDcard

on folderExists pFolderName, pRootPath, @pFoundPath
   constant cNoDotsRegex = "^\..*"
   
   -- breadth-first search for a given folder
   put empty into pPath
   if there is a folder pRootPath then
  put empty into tSubFolders
  put folders(pRootPath) into tFolderList
  filter lines of tFolderList without regex cNoDotsRegex
  repeat for each line tFolder in tFolderList
 if tFolder = pFolderName then
-- found it:
put pRootPath into pFoundPath
exit folderExists
 else
-- add sub-folder to list for checking:
put pRootPath & "/" & tFolder & return after tSubFolders
 end if
  end repeat
  if tSubFolders is empty then
 exit folderExists
  end if
  repeat for each line tSubFolder in tSubFolders
 folderExists pFolderName, tSubFolder, pFoundPath
 if pFoundPath is not empty then
exit folderExists
 end if
  end repeat
   end if
end folderExists



Note that the above was necessary because specialFolderPath("external 
documents") doesn't work reliably across the 4 Android-based tablets I'm trying 
to support.

If anyone has a more elegant or succinct method, please let me know.  In the 
meantime you're welcome to use the above code.

Peter
--
Peter Reid
Loughborough, UK

> On 28 Nov 2018, at 11:49am, Peter Reid  wrote:
> 
> I've got an app running on an Android 8.1 7in tablet which uses a microSD 
> card for its RW data storage. I've tried using:
> 
>   specialFolderPath("external documents")
> 
> which the docs describe as follows:
> 
>   • "external documents": The folder on the primary shared/external 
> storage device where application-specific data can be placed
> but this doesn't point to