×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    287

    Hanging Application While Charging??

    hi,

    In my application i am using vibration alert ,but while charging mobile application is hanging how can i solve this problem please help me.

    Code:
    iVibrate = CHWRMVibra::NewL();
    
    				CHWRMVibra::TVibraStatus iStatus = iVibrate->VibraStatus();
    
    				CHWRMVibra::TVibraModeState iState = iVibrate->VibraSettings();
    				iVibrate->StartVibraL(1000, 100);

  2. #2
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: Hanging Application While Charging??

    Quote Originally Posted by arun09 View Post
    hi,

    In my application i am using vibration alert ,but while charging mobile application is hanging how can i solve this problem please help me.

    Code:
    iVibrate = CHWRMVibra::NewL();
    
    				CHWRMVibra::TVibraStatus iStatus = iVibrate->VibraStatus();
    
    				CHWRMVibra::TVibraModeState iState = iVibrate->VibraSettings();
    				iVibrate->StartVibraL(1000, 100);
    I think while charging you can't vibrate your phone. May be it is the reason.

  3. #3
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Hanging Application While Charging??

    Hi,

    can you try with to reserve it first.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  4. #4
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    287

    Re: Hanging Application While Charging??

    Quote Originally Posted by sumit.rathi View Post
    I think while charging you can't vibrate your phone. May be it is the reason.
    hi,

    i have used the below written code for disabling vibration alert while charging phone.But this code is not working.please help me...

    Code:
     CTelephony::TBatteryStatus batteryStatus = iBatteryInfoV1.iStatus;
    				 TUint chargeLevel = iBatteryInfoV1.iChargeLevel;
    
    				  if(chargeLevel!=iTelephony->EBatteryConnectedButExternallyPowered)
    				 {
    
    
    				iVibrate = CHWRMVibra::NewL();
    
    				CHWRMVibra::TVibraStatus iStatus = iVibrate->VibraStatus();
    
    				CHWRMVibra::TVibraModeState iState = iVibrate->VibraSettings();
    				iVibrate->StartVibraL(1000, 100);
    }
    Last edited by arun09; 2009-07-03 at 10:19.

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,988

    Re: Hanging Application While Charging??

    i think this will start vibrating the phone: iVibrate->StartVibraL(1000, 100);

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Hanging Application While Charging??

    which device you are trying some newer devices donot allow vibration when connected to USB or charger.

  7. #7
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    287

    Re: Hanging Application While Charging??

    Quote Originally Posted by skumar_rao View Post
    which device you are trying some newer devices donot allow vibration when connected to USB or charger.
    nokia 6220 classic

  8. #8
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: Hanging Application While Charging??

    I have told you already that you can't vibrate your mobile while charging.

  9. #9
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    287

    Re: Hanging Application While Charging??

    Quote Originally Posted by sumit.rathi View Post
    I have told you already that you can't vibrate your mobile while charging.

    Vibration alert is needed for our application. but while charging we need to disable the vibration. How can we done this while charging the mobile???

  10. #10
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,988

    Re: Hanging Application While Charging??

    hi arun, i think you are doing the wrong thing in CTelephony to detect if the charger is connected or not.You can see the link for checking charger connectivity:

    http://wiki.forum.nokia.com/index.ph...r_is_connected

    And also it does not any notify function i.e. callback , which will indicate that when you have connected the charger, so you have to implement a timer to check the connectivity

Similar Threads

  1. problem in Auto starting application in s60_2nd_fp3
    By gaurav.gupta in forum Symbian
    Replies: 14
    Last Post: 2009-04-30, 11:09
  2. Call for webkit GUI and application engine model
    By yant in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-04-16, 10:04
  3. 3250: Too many SMSs received crash the application
    By kewldeep in forum Mobile Java General
    Replies: 4
    Last Post: 2007-01-27, 00:00
  4. Application without icon in application menu
    By iulian_moldovan in forum Symbian
    Replies: 3
    Last Post: 2006-12-14, 09:38

Posting Permissions

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