Creating Apps for use on Android mobile phones

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Dragondos2020
Posts: 29
Joined: Mon Apr 20, 2020 1:00 pm

Creating Apps for use on Android mobile phones

Post by Dragondos2020 » Sat Apr 25, 2020 10:09 pm

I have been using LiveCode as a hobbyist for a while now and been using Windows 10. I have successfully created .exe programs. I now want to branch out and start creating apps to use on my Android Phone. Real problems here. I can run my project with no problem within the LiveCode environment. However, when I run my project in an Android emulator, or copy the .apk file to my mobile phone. The following problems keep occurring, which I cannot find a way to overcome. To such an extent I am beginning to think that the idea of creating apps for mobile phones is a bad idea. I did think that by using LiveCode would be the best way forward for developing across the different platforms. Sorry I am digressing here. Back to the problems in question.

My problems are (1) That the layout changes (distorts) including the label of command buttons extending past the size of the button. In order to overcome this I have tried reducing the size of the font. But doing this makes the readability to small. This tends to apply to labels as well. (2) Some of the command buttons placed on the card will work fine, as coded. Whilst others did not. Yet they work just fine when run in the LiveCode environment. Indicating that my code is right for the LiveCode environment, but something is missing, which is needed to run within the emulator?

I have successfully installed the Android SDK and Java 8 and in LiveCode preferences, it clearly shows the path.
Any help, guidance or assistance would be greatly appreciated as my research hasn’t helped.

Thanks

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8418
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Creating Apps for use on Android mobile phones

Post by FourthWorld » Sat Apr 25, 2020 10:42 pm

If you're seeing distortion, cropping, or padding, it sounds like you're using fullScreenMode - is that correct?

Are you making a game? If not, what sort of app are you making?
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Dragondos2020
Posts: 29
Joined: Mon Apr 20, 2020 1:00 pm

Re: Creating Apps for use on Android mobile phones

Post by Dragondos2020 » Sat Apr 25, 2020 11:33 pm

Thanks for responding. I used fullscreenmode set to letterbox.

Not building a game. Creating a simple database for maintaining records of members of a club and membership fees. All with normal add, update, delete, view facilities.

Hope that helps.
Thanks

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8418
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Creating Apps for use on Android mobile phones

Post by FourthWorld » Sun Apr 26, 2020 12:36 am

Can you post a screen shot of your layout, or at least a mock-up of it?

I have an idea which will set you and many other newcomers in a good direction...
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Dragondos2020
Posts: 29
Joined: Mon Apr 20, 2020 1:00 pm

Re: Creating Apps for use on Android mobile phones

Post by Dragondos2020 » Sun Apr 26, 2020 1:12 am

Sorry. First time of using forum. How do I add a picture to this to post? The icon above shows a picture but does not give me the facility to add a picture.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8418
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Creating Apps for use on Android mobile phones

Post by FourthWorld » Sun Apr 26, 2020 1:55 am

See Attachments below the form's text entry field.
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 817
Joined: Wed Nov 22, 2006 3:42 pm
Location: France
Contact:

Re: Creating Apps for use on Android mobile phones

Post by Thierry » Sun Apr 26, 2020 7:07 am

Dragondos2020 wrote:
Sun Apr 26, 2020 1:12 am
How do I add a picture to this to post?
The icon above shows a picture but does not give me the facility to add a picture.
Hi,
Guess you need 10 posts to be able to do this, same as writing Urls.

Best,
Thierry
Thierry Douez
- Senior computer scientist
- Conseil, dévelopement et support en Français
https://sunny-tdz.com
https://sunny-tdz.com/livecode/externals

Dragondos2020
Posts: 29
Joined: Mon Apr 20, 2020 1:00 pm

Re: Creating Apps for use on Android mobile phones

Post by Dragondos2020 » Sun Apr 26, 2020 8:22 am

Image
Sorry to be a pain. Honestly I can see no way of attaching. Using the picture icon literally produces what you see at the top of this message. Can you give me an email address, or is that not protocol.

Dragondos2020
Posts: 29
Joined: Mon Apr 20, 2020 1:00 pm

Re: Creating Apps for use on Android mobile phones

Post by Dragondos2020 » Sun Apr 26, 2020 8:30 am

I have been responding via my smartphone. Maybe using the desktop computer will give me the option to send pictures/attachments. I will be back home later today so will have another try. Appreciate your patience.
Thanks

bogs
Posts: 5098
Joined: Sat Feb 25, 2017 10:45 pm

Re: Creating Apps for use on Android mobile phones

Post by bogs » Sun Apr 26, 2020 10:58 am

Sorry Dragondos2020, ForthWorld probably forgot, but as Thierry mentioned you need at least 10 posts before posting pictures or links.

You can work around this, though. There are a lot of sites, such as 'post image', where you can upload a picture so it is 'on the web'.

You can then take the link to share it, paste it here, and modify it in a suitable way that someone can re-construct it. As as example, this is an image I uploaded and have the link to.
https://postimg.cc/N25w71dj

However, being under 10 posts, I would have to modify it like this:
/ postimg . cc / N25w71dj

and type something like "Remove spaces" so that someone trying to reach that link will know there are no spaces.

Obviously, if there are spaces in the address naturally, modify it some other way heh :)

Another example would be something like:
postimg(dot)cc(slash)N25w71dj

I'm sure you get the idea.
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8418
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Creating Apps for use on Android mobile phones

Post by FourthWorld » Sun Apr 26, 2020 11:49 am

Or you can email it to me at ambassador AT fourthworld.com and I'll post it for you.
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Dragondos2020
Posts: 29
Joined: Mon Apr 20, 2020 1:00 pm

Re: Creating Apps for use on Android mobile phones

Post by Dragondos2020 » Sun Apr 26, 2020 12:38 pm

Thanks for the option of sending images to your email. I have just done that with additional comments.

Many thanks

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5837
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Creating Apps for use on Android mobile phones

Post by jacque » Sun Apr 26, 2020 5:21 pm

Dragondos2020 wrote:
Sat Apr 25, 2020 11:33 pm
Thanks for responding. I used fullscreenmode set to letterbox.
Try showAll fullscreenmode. If that doesn't work, try noBorder. Those are the two used most on mobile.

Some things on mobile need to be scripted differently from those in the IDE. If you can specify what fails we can help. It's all dependent on what you need to do.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Dragondos2020
Posts: 29
Joined: Mon Apr 20, 2020 1:00 pm

Re: Creating Apps for use on Android mobile phones

Post by Dragondos2020 » Sun Apr 26, 2020 7:35 pm

Thank you for your advice. I will change the fullscreenmode as suggested. My other problem involves when I have the menu options added. They work as expected moving from card to card. However, the buttons I have added work as expected when running in Livecode environment. But do not when running within the emulator.
Thank you Jacque.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8418
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Creating Apps for use on Android mobile phones

Post by FourthWorld » Sun Apr 26, 2020 9:56 pm

Here are the screenshots (thanks for sending those)...
FA39B9C9F07245F2ADC03C4B217CF73A.jpg
745399A4EAC648DF8DE2DCBEDD115E4E.jpg
76FF68BE65FC4B688CFF0F835D210A9D.jpg
21FC24B286044A9A9A7DB70E472C83E7.jpg
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Android Deployment”