Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (791)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Game not working on android LIBGDX [FIXED]  (Read 894 times)
0 Members and 1 Guest are viewing this topic.
Offline noxmortemx

Junior Newbie


Medals: 1



« Posted 2018-12-17 23:29:40 »

Everything works on desktop, but as soon as i try testing my app on my phone it just shows me a black screen for less than a second and then it turns off. The icon for the game stays there but not working plus logcat doesn't show anything. I can't use the emulator my cpu does't support it i have tried and got the blue screen of death. Using eclipse btw.
Offline VaTTeRGeR
« Reply #1 - Posted 2018-12-17 23:50:22 »

Try these step by step and answer the questions yourself, maybe it'll resolve your issue.


If you create a new LibGDX project without any modifications, can you run that on desktop and android without crashing?

How are you loading your assets/resources? Do you conform to what is specified in the wiki: https://github.com/libgdx/libgdx/wiki/File-handling#android

Are you accessing anything that is restricted on phones (networking, filesystem, notifications...): https://github.com/libgdx/libgdx/wiki/Starter-classes-and-configuration#permissions

Are you using custom shaders? Any special OpenGL function calls?

How much memory does your app need? Are you doing anything really really memory intensive at startup?
Offline noxmortemx

Junior Newbie


Medals: 1



« Reply #2 - Posted 2018-12-18 08:14:22 »

I can run it on windows, but not on android, i created a new project, default everything and it still the same.
Then i deleted the img, just the red screen, works on windows when i try it on android it just doesn't even load, just a millisecond of a black screen and nothing just goes back to home screen. I even exported it, nothing.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline VaTTeRGeR
« Reply #3 - Posted 2018-12-18 21:52:13 »

Seems like you have some underlaying problems but i can't help you with that. Maybe it's the device (low specs / old android version / OpenGL support / settings). Or Maybe you choose the wrong build settings for your device.

Can't help you any further with the given information because i'm not very deep into that android stuff...
I would look into getting logcat running now, but that's your problem since you have given no worthwhile information about your problem.
Offline noxmortemx

Junior Newbie


Medals: 1



« Reply #4 - Posted 2018-12-19 10:01:08 »

I had a problem with android sdk, u deleted it and reinstalled and now its working fine. I don't really know what was the problem but now its fixed Cheesy
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (2845 views)
2018-11-16 13:46:03

hadezbladez (1028 views)
2018-11-16 13:41:33

hadezbladez (2812 views)
2018-11-16 13:35:35

hadezbladez (551 views)
2018-11-16 13:32:03

EgonOlsen (3824 views)
2018-06-10 19:43:48

EgonOlsen (4237 views)
2018-06-10 19:43:44

EgonOlsen (2543 views)
2018-06-10 19:43:20

DesertCoockie (3355 views)
2018-05-13 18:23:11

nelsongames (3469 views)
2018-04-24 18:15:36

nelsongames (4467 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!