Search found 143 matches

by jim1001
Wed May 02, 2018 2:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Android app first field already has focus but no onscreen kb
Replies: 9
Views: 847

Re: Android app first field already has focus but no onscreen kb

Dave, Thanks for latest reply. My wish is for the card to open with the native Android input field in focus and the keyboard visible. I can't make that happen at the moment. Not a major issue though - once the user clicks in the input field the keyboard appears as expected (& desired). I may have mo...
by jim1001
Tue May 01, 2018 7:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Android app first field already has focus but no onscreen kb
Replies: 9
Views: 847

Re: Android app first field already has focus but no onscreen kb

Dave, Many thanks for replying. So my handler setTraversalOn sets the traversalOn of my ordinary LiveCode fields to true OK - so what is your code to set traversalOn for Android native mobile fields? I thought you had to use mobileControlSet for them, no? At the moment I can't even focus on the Andr...
by jim1001
Tue May 01, 2018 1:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Android app first field already has focus but no onscreen kb
Replies: 9
Views: 847

Re: Android app first field already has focus but no onscreen kb

Dave Kilroy - have you used your traversalOn method for native android controls such as a multiline input field created by

Code: Select all

mobileControlCreate "multiline", "myMultiLineTextInput"
The dictionary doesn't say this property can be set for native android controls as far as I can see...

Thanks.
by jim1001
Fri Nov 24, 2017 12:25 am
Forum: Android Deployment
Topic: Opening files on Android
Replies: 9
Views: 1307

Re: Opening files on Android

Klaus, Jacque - thanks for your replies. Klaus: you should have said - I could have sent you my old phone. Then you would have no excuse. Although I expect it wouldn't be a welcome gift :wink: Jacque: specialFolderPath("External Documents") worked. I think it should be in the dictionary entry for sp...
by jim1001
Tue Nov 21, 2017 10:42 pm
Forum: Android Deployment
Topic: Opening files on Android
Replies: 9
Views: 1307

Re: Opening files on Android

Thanks for replies. What syntax are you using? Are you using the "launch" command? Yes, as Klaus did: put specialfolderpath("engine") & "/pdfs/my_doc.pdf") into tFile launch url tFile An easy workaround is to copy the file(s) from the app specialfolderpath to an outside location and launch URL on th...
by jim1001
Tue Nov 21, 2017 1:04 am
Forum: Android Deployment
Topic: Opening files on Android
Replies: 9
Views: 1307

Re: Opening files on Android

We may never know if Bert ever tried Klaus's code. However I found myself trying something similar. I can get native Android apps to launch documents (e.g. PDF, text) outside the app on the target filesystem. However not for files copied over with the app. I check in my LiveCode app that the files e...
by jim1001
Tue Oct 17, 2017 10:46 pm
Forum: Talking LiveCode
Topic: Creating LiveCode applications that play well with git
Replies: 136
Views: 13068

Re: Creating LiveCode applications that play well with git

I did some tests and can confirm I got the PDF Javascript viewer (pdfjs) working with my Levure Android project in 2 ways: 1) copying all the pdfjs files with the packager using the "copy files" feature then using relative paths with levureAppFolder() 2) pre-copying the pdfjs files to the device and...
by jim1001
Tue Oct 17, 2017 5:26 pm
Forum: Android Deployment
Topic: New approach for offline viewing PDF inside Android browser
Replies: 33
Views: 5730

Re: New approach for offline viewing PDF inside Android browser

Now able to let the user change the PDF displayed in the app by using MaxV's suggestion of copying over the DEFAULT_URL file specified in viewer.js. :D The first problem I had was specifying the URLs incorrectly. Then when the PDF controls showed without a PDF file (just an empty window) I changed t...
by jim1001
Tue Oct 17, 2017 4:57 pm
Forum: Talking LiveCode
Topic: Creating LiveCode applications that play well with git
Replies: 136
Views: 13068

Re: Creating LiveCode applications that play well with git

Trevor, thanks for the suggestions. No spaces in the filename or path but certainly worth checking.
I've just made a breakthrough however so please don't spend any more time on this for now. Will do some more tests & post results.
by jim1001
Tue Oct 17, 2017 4:34 pm
Forum: Android Deployment
Topic: New approach for offline viewing PDF inside Android browser
Replies: 33
Views: 5730

Re: New approach for offline viewing PDF inside Android browser

I wonder if you are able to get this working without copying over files with the app, i.e. by putting the folder pdfjs & its subfolders on your target Android device before installing your app and then referring to them using absolute paths? I just got this working! Now I'll try copying in a differ...
by jim1001
Tue Oct 17, 2017 4:09 pm
Forum: Android Deployment
Topic: New approach for offline viewing PDF inside Android browser
Replies: 33
Views: 5730

Re: New approach for offline viewing PDF inside Android browser

MaxV , Thanks for your latest post which I’ve only just come to look at again. I wonder if you are able to get this working without copying over files with the app, i.e. by putting the folder pdfjs & its subfolders on your target Android device before installing your app and then referring to them u...
by jim1001
Tue Oct 17, 2017 10:57 am
Forum: Bug Triage
Topic: textDecode() use & dictionary entry
Replies: 7
Views: 804

Re: textDecode() use & dictionary entry

Well, technically it isn't possible to use an SVG as an icon directly (we've been asking for that.) The trick above uses a special image font instead so you'll be limited to the images it provides...
Thanks for the clarification Jacque. I look forward to trying the image font.
by jim1001
Tue Oct 17, 2017 12:28 am
Forum: Talking LiveCode
Topic: Creating LiveCode applications that play well with git
Replies: 136
Views: 13068

Re: Creating LiveCode applications that play well with git

I’m trying to create an Android app similar to the stack here, only in Levure: http://forums.livecode.com/viewtopic.php?f=53&t=28518&start=15#p158077 This uses some javascript to display a PDF file in the same folder. I’ve tested it works on Android. With Levure I can get a test file I put in <levur...
by jim1001
Fri Oct 13, 2017 6:23 pm
Forum: Bug Triage
Topic: textDecode() use & dictionary entry
Replies: 7
Views: 804

Re: textDecode() use & dictionary entry

Thank you all for the very informative replies. I have a lot to look up & try now. I did have a search in the forums & elsewhere for putting SVG icons on buttons but concluded it wasn't currently possible. Delighted to be proven wrong. Thanks also for the vital background to binary data & encoding w...
by jim1001
Fri Oct 13, 2017 12:31 pm
Forum: Bug Triage
Topic: textDecode() use & dictionary entry
Replies: 7
Views: 804

textDecode() use & dictionary entry

This may be a stupid idea but I was thinking of using Unicode characters to label buttons instead of importing images to use as icons. This led me on to trying textDecode() which I tried, using the LiveCode dictionary as reference, without success. So I went to the basics (even if the first idea is ...

Go to advanced search