|
Re: Sharp GX20 Question: msg#00142java.sun.kvm
Aha! I'll give that a go then - thanks! Ian -----Original Message----- From: A mailing list for KVM discussion [mailto:KVM-INTEREST@xxxxxxxxxxxx]On Behalf Of Kim Daniel Arthur Sent: 17 September 2003 15:34 To: KVM-INTEREST@xxxxxxxxxxxx Subject: Re: Sharp GX20 Question you need to specity both these paramters in the jad: MIDxlet-API: VSCL-1.0.1 Midlet-Install-Notify: http://a.valid.url.for.gx20.security-model both must be present else if fails you can also change the scale factor of the gx20 (which by default scales to 120x130): MIDxlet-Application-Resolution: w,h kimd ----- Original Message ----- From: "Ian Manders" <ian@xxxxxxxxxxxxxxxxxx> To: <KVM-INTEREST@xxxxxxxxxxxx> Sent: Wednesday, September 17, 2003 12:46 PM Subject: Sharp GX20 Question > Hi, has anyone here had any experience developing for the Sharp GX20? > > I've converted a game to the Sharp GX10 which works great, and am now trying > to get it working on the GX20. However, any DeviceControl or MediaPlayer > calls used stop the game working on the GX20 - it displays a "Discontinued" > message. I've tried the game under the emulator I have for GX20 work (I'm > not sure of the version - but the emujava.exe file is dated 22/04/2003) and > it gets as far as a DeviceControl or MediaPlayer call, before throwing up an > ALERT and exiting. > > In the case of using the following code: > > > { > DeviceControl dc; > > try > { > dc = DeviceControl.getDefaultDeviceControl(); > dc.setDeviceActive(DeviceControl.BACK_LIGHT, true); > } catch (Exception e) { System.out.println("DC error: " + e); } > } > > > it comes up with the following within the emulator: > > ALERT: Class com/vodafone/v10/system/device/DeviceControl is restricted to > access. > kvm_main return code = 123 > ----- APP jkVmStopped callback begin. > VM callback: appId = 1, event = jkVmStopped > ----- APP jkVmStopped callback end. > AMstartMidpApplication return code = -1 > finish WINSOCK success. > > So even with the try-catch it is being stopped in both the phone and the > emulator. This is the case for vibration and MediaPlayer methods as well. > > Does anyone know of a way to use the DeviceControl calls safely? > Alternatively, am I using an old version of the GX20 class librarys (same > date as the emulator - 22/04)? > > Cheers, > > Ian Manders > > =========================================================================== > To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body > of the message "signoff KVM-INTEREST". For general help, send email to > listserv@xxxxxxxxxxxx and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@xxxxxxxxxxxx and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@xxxxxxxxxxxx and include in the body of the message "help".
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Sharp GX20 Question, Kim Daniel Arthur |
|---|---|
| Next by Date: | Re: Sharp GX20 Question, Elliot Sumner |
| Previous by Thread: | Re: Sharp GX20 Question, Kim Daniel Arthur |
| Next by Thread: | Re: Sharp GX20 Question, Elliot Sumner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |