Page 1 of 1

How to develop for android?

Posted: Sat Feb 04, 2017 10:05 am
by sunsflower
I'd like to make a small game on android. I wonder must I code on pc and then pack a love apk and install this package on android everytime I want to test my game? Is there anything I can do to simplify this process(it is just a little bit irksome..)

Re: How to develop for android?

Posted: Sat Feb 04, 2017 11:04 am
by nyenye
You can download the Love launcher for Android from Google Play, and with it you can run .love packages (without needing to create an .apk)

https://play.google.com/store/apps/deta ... 2d.android

Hope it helps!

Re: How to develop for android?

Posted: Sat Feb 04, 2017 11:09 am
by sunsflower
er...how exactly can I run this .love package? using a terminal simulator perhaps?

Re: How to develop for android?

Posted: Sat Feb 04, 2017 1:00 pm
by joker
The way I do it is by copying the apk to my mobile then using a file manager I open the .love file using the love2d app.

Re: How to develop for android?

Posted: Sat Feb 04, 2017 6:32 pm
by bgordebak
Just so you know, some file managers can't open .love files in LÖVE for Android. If that's the case, install another file manager.

And you can totally develop your love file on Anroid using some terminal emulator like termux. I develop, zip, rename and test my game on Android. When I think I'm done, I make the apk on PC.

Re: How to develop for android?

Posted: Sat Feb 04, 2017 7:51 pm
by Positive07
I use Dropbox, it let's me send the file from my computer to the phone and then in the phone I can lunch the .love file from there and it lets me use LÖVE

Re: How to develop for android?

Posted: Sun Feb 05, 2017 7:26 am
by sunsflower
oh thanks for sharing! I root an old phone and use termux. It is a lot more easier now :awesome:

Re: How to develop for android?

Posted: Sun Feb 05, 2017 2:14 pm
by bgordebak
Yeah, termux is great! And it helps if you have an external keyboard, but you can use the Hacker's Keyboard also.

Re: How to develop for android?

Posted: Sun Feb 05, 2017 6:20 pm
by bgordebak
sunsflower wrote:oh thanks for sharing! I root an old phone and use termux. It is a lot more easier now :awesome:
And you don't need to root your phone to use termux. Other people might look here too, so I wrote this as a record.

Re: How to develop for android?

Posted: Mon Feb 06, 2017 8:20 am
by bgordebak
By the way, you don't have to zip your game in order to test it on Android. Put your files in /sdcard/lovegame directory (you need to create it), and when you run LÖVE, it will run your game. It's the default directory LÖVE for Android looks.