Forums Register Login

Application working on Emulator not on device

+Pie Number of slices to send: Send
Hii

I am presently working on a Reminder application.This is an application, which allows the user to schedule the date, start time, end time and status of the meetings. The user will be alerted with a beep sound when there is a meeting scheduled at that time. The application allows the user to add, modify, delete or cancel any event from the list of events for any particular date. This information will be stored in the devices memory.

When the application starts in the startApp() of the midlet a Thread will be started where the application just reads the events from the persistant storage(rms) and i have user to a Timer and schedule a task. The task is a Alert message.The difference is between the current time and the alarmtime are calculated to set the delay for the Scheduled task to occur.
The application works fine on the emulator but not in the device. The target device is Nokia 6600.

Can anybody please tell me why it is not working ,and is there any other way to accomplish what i want.


Thanks
+Pie Number of slices to send: Send
When you say not working on device, do you mean you can't even install the application, or you get an error.

Remember the Emulator is using a "Default Device" and not your phone specifically. Usually if you have a target device, it is best to go to the manufacturer's website and get the emulator that they have and run it with that. then you can get a better feel for how it will work.

If you cannot install the application, it is because each device, and even Service Provider can make what it expects in a JAD file to be different, especially in MIDP 1.0.

Things in J2ME are just really touchy.

Mark
+Pie Number of slices to send: Send
Thank u Mr.Mark

I am able to install it on the device.Now i have tested the application on the Nokia Emulator S60_2nd_FP2_MIDP_SDK. The alert is not working on the device. When i start the application and add an event at a particular time and alarm(TimerTask) is set for that particular time. In the emulator the alert is displayed correctly at that particular time. But in the emulator the alert is never displayed.

When i close tha application and start it again, only the first screen is displayed and the application automatically closes. Probably there is exception which is not caught. To debug it if i give alert messages i again get exception saying Alert cannot return Alert, i.e the time gap between the two alerts are small.

Can anybody plz help me

Thanks
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1296 times.
Similar Threads
Design considerations
Pim toSerialFormat writes the current time and date
Rescheduling a Timer Task
Check for time
Timer in java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 20:55:23.