简体   繁体   中英

HaxeFlixel - Hello World with android wont start / turn off

Im trying to build hello world in haxeflixel for android. So there is deal: i create new project build it and then send it into device and run it. After few seconds app turns off. Its my first android app ever, so basically im pretty lost. I added only one line in create method in MenuState class: add(new FlxText(100, 100, 0, "hello world")); . My thinking was that i need to change resolution but after few tries nothing change. My current res is 800 x 480 .
I think that its in AndroidManifest.xml. But there should be default manifest if i understand it correctly.
So where is catch? What i did wrong? Thanks for tips.
Edit: forgot mention that spash logo didnt appear either. And its turned on in code

pastebin with logcat (splited on two)
link 1
link 2

or maybe working hello world sample could be handy. From that point i can look for my mistakes.

try this:

add(new FlxText(0, 0, 100, "hello world"));

Just under super.create();. Maybe it solves the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM