0 Replies - 607 Views - Last Post: 06 March 2010 - 12:58 PM

#1 TheGDeveloper  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 22-September 09

Omnia and j2me

Posted 06 March 2010 - 12:58 PM

Hi, i have an Omnia mobile Phone the i900 version
i have an idea about an application and i need to use the accelopmeter api
there is an e-friend from here that told me that i can do it with the jsr 256
i have written the application and it is ok with the emulator but when i am trying to run ir on my phone it says that there is a java exception

the code is pretty simple

[quote]
SensorInfo[] sensors;
        boolean tookIt;
        SensorInfo accel;

        sensors = SensorManager.findSensors("acceleration", null);
        if( sensors.length > 0 ) {
            tookIt= true ;
            accel = sensors[0];
        } else {
            tookIt = false;
        }
[/quote]


i have seen the information tab of java software that exists on omnia and writes the jsr that are supported but it says nothing about jsr 256
what can i do?
is there any way to update the kvm of omnia or windows mobile in general?
are there any other ideas?

thanks in advance

Is This A Good Question/Topic? 0
  • +

Page 1 of 1