Author Topic: Has anyone got this running on the 2.1 Emulator  (Read 3766 times)

Offline hogus

  • byte
  • *
  • Posts: 1
    • View Profile
Has anyone got this running on the 2.1 Emulator
« on: August 16, 2010, 02:48:01 pm »
I've had endless hassles trying to get even basic jpct apps going on the Android Emulator.

I have done a number of tests using OpenGL on the 2.1 Android Emulator, so i'm pretty sure that isn't the problem, it should be able to deal with basic drawing and rendering

I first tried the demo application, which for some reason crashed on Config.maxPolysVisible = 5000;

When commenting this out it crashes later on.

I then tried the HelloWorld application in the wiki which fell over when it hit:
private RGBColor back = new RGBColor(50, 50, 100);

Deferring this to the moment that the clear actually gets called didn't seem to work either the application crashes before it even gets around to starting the main activity, which leads me to believe that there's something happening in a static block in the compiled jar somewhere.

Any ideas?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Has anyone got this running on the 2.1 Emulator
« Reply #1 on: August 16, 2010, 02:57:22 pm »
RGBColor is a stupid bean with some getters and setters that has no dependencies on anything else. I don't see why this should fail...any exception printed out or does the whole process terminates?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Has anyone got this running on the 2.1 Emulator
« Reply #2 on: August 16, 2010, 02:59:28 pm »
Are you sure what you got the correct jar (http://www.jpct.net/jpct-ae/download/alpha/jpct_ae.jar) and not the one for desktop jPCT?

Offline Darkflame

  • int
  • **
  • Posts: 55
    • View Profile
Re: Has anyone got this running on the 2.1 Emulator
« Reply #3 on: August 17, 2010, 01:11:58 pm »
Works fine on the emulator for me. Very slow, but certainly works.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Has anyone got this running on the 2.1 Emulator
« Reply #4 on: August 17, 2010, 10:17:19 pm »
Just tried it in the 2.2 emulator, it works just fine.