×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Red face Device Error Exception in player application when call is in progress.

    Hi,

    please help me as soon as possible with code.
    I have a j2me player programm(jar file) in my mobile. i have two issues please solve this.

    1. ill make call to my mobile from another mobile then i recieve a call . then ill open my application ,currently the player programm(my application) is hanging. if ill cut the call from other side my mobile will show "player.java.mediaexception:device error".
    i want a code such that as soon as ill open my application . if am in some call then my application should popsup a message "call in progress .Do you want to close application".

    2. if ill play a song from standard mobile player and then open my application currently my application is hanging. but i want application to show a message. " do u want to continue application because standard player is running" if yes then it should close the standard player and continue. if no it should close my application.



    Please help me . I badly need of this solution . please provide some code , example, please please help me.


    Thanks&Regards,
    sayeeda,

  2. #2
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    53

    Re: Device Error Exception in player application when call is in progress.

    1. Try using pauseApp() and resumeMIDlet() functions of MIDlet to pauss/stop and resume/start your player.
    2. You can display the message but I dont think you can close other applications from your application.

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Re: Device Error Exception in player application when call is in progress.

    Thank you for replaying.

    When a device is in recorder mode . if call comes after recieving the call an after conversation is over i want my recorder to resume. by using pauseapp or resume am not able to resume the recorder.

    please help me.


    Thanks,
    sayeeda

  4. #4
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Device Error Exception in player application when call is in progress.

    Hi prakash,
    well u can use showNotify() and hideNotify to handle external interruption. Whenever any external events occuring hideNotify() will calling automatically so what u have to do is just maintain the state of ur application at hideNotify and pause ur recording or playing whatever is currently run. When external event stops then showNotify call in this u can maintain ur current state of application by resume the player.

    please try and do reply..

    thanks,
    jitu_goldie..
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. Replies: 9
    Last Post: 2012-02-10, 07:36
  2. application error with 3gp file in J2ME
    By ruchig_iic in forum Mobile Java Media (Graphics & Sounds)
    Replies: 10
    Last Post: 2012-01-16, 21:40
  3. Replies: 5
    Last Post: 2007-04-16, 08:57
  4. Voice call does not come to device while using GPRS
    By cartman_ume in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2007-03-16, 08:30
  5. Replies: 1
    Last Post: 2006-03-08, 04:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×