Search found 203 matches

by KimD
Tue Apr 21, 2020 1:58 am
Forum: LiveCode Builder
Topic: FFI - how do I get the value of an Android field/constant
Replies: 0
Views: 913

FFI - how do I get the value of an Android field/constant

I just know that this is going to turn out to be incredibly easy, but I've spent a day working on it and got no where. Using the FFI, how do I get the value of a field (constant)? For example, for android.os.Environment (https://developer.android.com/reference/android/os/Environment), how do I retri...
by KimD
Wed Apr 15, 2020 3:48 am
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1588

Re: Getting started with Java bindings - Solved

Thanks Paul. You solved it. I had - Standalone App Settings > Inclusions > Search for required inclusions When I changed it to - Standalone App Settings > Inclusions > Select inclusions, and manually selected my new library It worked fine on my Android device. I should have thought of that. Doh! Tha...
by KimD
Tue Apr 14, 2020 4:19 am
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1588

Re: Getting started with Java bindings

Thanks Paul. Try & Catch don't seem to have been implemented in LCB. They don't appear in the dictionary and I get a compile error if I try to use them. I haven't worked with Log before. I've tried a few things, based on what I read in the dictionary, but I can't work out how to output what has been...
by KimD
Thu Apr 09, 2020 12:34 am
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1588

Re: Getting started with Java bindings

Thanks Paul. Yes - I'd also got to thinking that Windows must be unsupported, hence my questions 2 & 3. Given that I cut-n-paste the code from the extending LC guide, I'd have hoped that it would work on Android. I've currently got no idea how to even begin to debug this. I tried capturing "the resu...
by KimD
Wed Apr 08, 2020 6:07 am
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1588

Re: Getting started with Java bindings

Thanks. I've got about 1 day on each of LCB, FFI & Java. It's a steep learning curve. BTW - is there any LC Forum that you're NOT following ;-)
by KimD
Wed Apr 08, 2020 5:32 am
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1588

Re: Getting started with Java bindings

Hi Bogs. Well, no other advice so far, but at least I've learnt how to create code blocks ;-) Thanks. Kim
by KimD
Tue Apr 07, 2020 12:11 am
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1588

Getting started with Java bindings

I have a two (hopefully modest) tasks* that I'd like to use LCB + FFI + Java to achieve on Android. Knowing almost nothing about any of these three, I thought that I'd start with a very small training exercise. I had previously completed the LCB Hello World example. So: 1) I cut-n-paste the javauuid...
by KimD
Mon Apr 06, 2020 2:48 am
Forum: Android Deployment
Topic: Storage permissions & API call
Replies: 8
Views: 960

Re: Storage permissions & API call

Thanks. I think that I've worked out how I can achieve what I want. A Livecode Builder Library utilising the Foreign Function Interface to execute a Java script that will return the file path to the Android Downloads folder. Now all that I need to do is teach myself LCB, the FFI & Java ;-)
by KimD
Sat Apr 04, 2020 12:20 am
Forum: Android Deployment
Topic: Storage permissions & API call
Replies: 8
Views: 960

Re: Storage permissions & API call

Hi Jacque Thanks for trying, but if I try - put specialFolderPath("external documents") & "/Download" into tPath set the defaultFolder to tPath Then the result is "can't open directory" LC dictionary - 'If you set the defaultFolder to a folder that doesn't exist, the result is set to "can't open dir...
by KimD
Fri Apr 03, 2020 10:39 pm
Forum: Android Deployment
Topic: Storage permissions & API call
Replies: 8
Views: 960

Re: Storage permissions & API call

Thanks Bogs & Jacque More detail - what I'm trying to achieve is to allow my app to read files that are already in the Android DOWNLOADS folder. I.E. (1) someone sends Android user an email with type XYZ attachment, (2) user opens this email using Gmail, (3) user hits the Gmail download attachment b...
by KimD
Fri Apr 03, 2020 4:21 am
Forum: Android Deployment
Topic: Storage permissions & API call
Replies: 8
Views: 960

Re: Storage permissions & API call

Update
I've solved my first problem with - androidRequestPermission "android.permission.WRITE_EXTERNAL_STORAGE"
Still stymied on how to make an Android API call using LC.
by KimD
Fri Apr 03, 2020 12:18 am
Forum: Android Deployment
Topic: Storage permissions & API call
Replies: 8
Views: 960

Storage permissions & API call

Two questions relating to an ongoing battle with the Android downloads folder: 1) If I make the assumption that the downloads folder is located at /storage/emulated/0/download, then my app is currently working on my Android test device; but only if I first go into My Test Device > Settings > Apps > ...
by KimD
Sun Mar 22, 2020 11:16 pm
Forum: iOS Deployment
Topic: Application Loader - "No suitable application records were found"
Replies: 8
Views: 2174

Re: Application Loader - "No suitable application records were found"

Another thing that I do - I start by uploading to Apple a version of my app without a custom Plist. Only after I've got that working do I try uploading the version with the custom Plist.
by KimD
Sun Mar 22, 2020 11:10 pm
Forum: iOS Deployment
Topic: Application Loader - "No suitable application records were found"
Replies: 8
Views: 2174

Re: Application Loader - "No suitable application records were found"

Hi Simon Sorry, but I only have the vaguest recollection of this issue now. From what I can remember, for me the problem was caused by me having a mis-match between: 1) developer.apple.com website > Certificates, Identifiers & Profiles > Identifiers > Register an App ID - I'd pay particular attentio...
by KimD
Fri Nov 22, 2019 2:44 am
Forum: CGIs and the Server
Topic: put header "Status:400" fails
Replies: 4
Views: 1167

Re: put header "Status:400" fails - CLOSED

Hostm got back to me (very quickly) with the following - "We can confirm that the issue with status code 400 is not LiveCode-specific, as we’ve tested it with other server-side languages with the same result on our servers. It appears to be have something to do with LiteSpeed, the web server that we...

Go to advanced search