Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 9
Registered: ‎04-30-2012
My Device: 9300
My Carrier: blackberry

RMS application hangs blackberry

HI,

     when i tried to run my own application in blackberry it works fine.when i exit, i have used to store the details given for that application through RMS.And once again if i open the application it hangs the mobile.If i am not try to save details of the app means it reopens fine.tel me whether blackberry supports RMS.

    Only in blackberry the apllication gets hang.

BlackBerry Development Advisor
Posts: 15,700
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: RMS application hangs blackberry

[ Edited ]

Yes, the RMS RecordStore APIs are supported on BlackBerry Smartphones.  Can you provide more information about what your application is doing?  Have you stepped through your application using the debugger?  If so, what line is it hanging on?  Are you able to hold down the menu key and task switch out of your application?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Posts: 9
Registered: ‎04-30-2012
My Device: 9300
My Carrier: blackberry

Re: RMS application hangs blackberry

Hi, Thank you for your information.

 

                                 My application got loaded fine and its connecting to the local server for the fist time.once i close the application and try to open for the very next time, the mobile gets frozen.wat i am doing in my app was once you connect to the local server i am storing the serial number of the mobile.so that for the next time it wont ask the serial number in my application.But without connecting to the server if you got exit, and open meand it works fine.

                                 I have used RMS in my application to store the datas.This applcation was created in SDK and converted for blackberry.I have converted the jar file to cod.Is there anyother convertion i have to do for that RMS handling.

                           I think that the resource is not getting closed.Once it got frozen i restarted and open the switch application still my app is loaded its not getting deleted or closed.Is there any other setting i have to do for the app created in SDK.But it works fine in other mobiles Nokia etc.

                                

 

BlackBerry Development Advisor
Posts: 15,700
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: RMS application hangs blackberry

I recommend stepping through your application with the debugger.  That should be the quickest way to determine where your application is hanging.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
New Contributor
Posts: 9
Registered: ‎04-30-2012
My Device: 9300
My Carrier: blackberry

Re: RMS application hangs blackberry

HI,

      As you have told me to run the debugger i found the log like this,

 

 

 AM: Starting SAMPLEAPP

 [          ] AM: Started SAMPLEAPP(287)

 [          ] AM: Foreground is set: SAMPLEAPP(287)

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to background: process=net_rim_bb_ribbon_app(125) pid=125

[          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=SAMPLEAPP(287) pid=287

 [          ] AM: Foreground is requested: SAMPLEAPP(287)

[          ] MIDP: Calling hello.SAMPLEmidlet.startApp()

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=1,p=SAMPLEAPP,h=18

 [          ] VM:LNTDa=commit,t=0,p=SAMPLEAPP,h=18

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:LNTDa=commit,t=0,p=SAMPLEAPP,h=18

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=SAMPLEAPP,h=18

 [          ] SaveAdd

 [          ] AM: Foreground is requested: SAMPLEAPP(287)

 [          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.launcher.ApplicationAreaGridField

 [          ] FocusHistory: Focus lost; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.launcher.ApplicationAreaGridField

 [          ] FocusHistory: Focus gained; App SAMPLEAPP; Component javax.microedition.lcdui.CanvasScreen

[          ] Starting scheduled tasks at: Tue May 08 03:04:35 America/New_York 2012

 [          ] Completing scheduled tasks at: Tue May 08 03:04:35 America/New_York 2012

 [          ] VM:IGCSc=0

 [          ] VM:+GC(f)w=9

 [          ] VM:-GCt=7,b=1,r=0,g=f,w=9

 [          ] VM:+CR

[          ] VM:-CR=2

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

 [          ] BbiAuth:ERR:No BBI Auth Token Request Engine available

 [          ] Soure Name hello.TextFieldDet

 [          ] VM:+GC(f)w=11

 [          ] VM:-GCt=7,b=1,r=0,g=f,w=11

 [          ] VM:QUOT t=1

 [          ] VM:+CR

[          ] VM:-CR=3

[          ] CB add symmetric (id):"bbmsgrstr"(0-S-0)51c484ce

 [          ] CB replaced (id):"bbmsgrstr"(0-S-0)51c484c9

 [          ] CB add symmetric "ServiceUID":"bbmsgrstr"(0-S-0)51c484ce

 [          ] CB replaced "ServiceUID":"bbmsgrstr"(0-S-0)51c484c9

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=1,p=net_rim_bb_qm_peer,h=153

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_qm_peer,h=153

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_qm_peer,h=153

 [          ] FD Back On Expired;

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

[          ] Soure Name com.sun.lwuit.Command

 [          ] 13 [Ljava.lang.String;@6d55a9ec

 [          ] hdfi1

 [          ] FD Turned Off;

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=2,p=net_rim_io_impl,h=174

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=145dd800,t=net.rim.device.api.i18n.DateFormatSymbols

[          ] FD Back On

[          ] wel0

 [          ] SAMPLT MOBILE _ APP - Mobile

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=SAMPLEAPP,h=5

 [          ] Save

 [          ] AR: add source 14

 [          ] AR: setAudioMode 32

 [          ] AR: remove source 14

 [          ] AR: setAudioMode 32

 [          ] MIDP: Called hello.SAMPLEmidlet.notifyDestroyed()

 [          ] MIDP: Switch-to-foreground messages (event 'c') are to be deleted; the message queue is:

[          ] [2 203

] [          ]

[          ] MIDP: Switch-to-foreground messages (event 'c') have been deleted if any; the message queue is:

 [          ] [2 203]

 [          ] [          ] AM: Exit SAMPLEAPP(287)

[          ] ApplicationManagerImpl.processExited : process process switching to background:  pid=287

[          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] Process SAMPLEAPP(287) cleanup started

 [          ] Process SAMPLEAPP(287) cleanup done

 [          ] AM: Foreground is set: net_rim_bb_ribbon_app(125)

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=net_rim_bb_ribbon_app(125) pid=125

 [          ] FocusHistory: Focus lost; App SAMPLEAPP; Component NULL

 [          ] TID:unable to execute in the app javax.microedition.midlet.MIDletMain@911c5222|java.lang.Object@16655666|-1

[          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.launcher.ApplicationAreaGridField

 [          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.ui.HomeScreenAnimatingTabLabelField

 [          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.launcher.ApplicationAreaGridField

[          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.ui.HomeScreenAnimatingTabLabelField

 [          ] VM:+GC(f)w=11

[          ] VM:-GCt=7,b=1,r=0,g=f,w=11

 [          ] VM:+CR

 [          ] VM:-CR=3

 [          ] 05/08 03:07:00.701 BBM FutureTask Execute: net.rim.device.apps.internal.qm.bbm.BBMApplication$BBMDataServiceClockTimer$2@6c54ba82

 [          ] 05/08 03:07:00.703 BBM FutureTask Finish : net.rim.device.apps.internal.qm.bbm.BBMApplication$BBMDataServiceClockTimer$2@6c54ba82

 [          ] VMSmiley TongueISVt=0,h=488c,id=4c0a2d957500b91a

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

 [          ] BbiAuth:ERR:No BBI Auth Token Request Engine available

 [          ] VMSmiley TongueISVt=1,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=1,p=net_rim_bb_geolocationagent,h=27

 [          ] FD Turned Off;

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=1,p=net_rim_bb_geolocationagent,h=17

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_geolocationagent,h=17

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_geolocationagent,h=17

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=1,p=net_rim_bb_geolocationagent,h=17

 [          ] SSL:->CH

 [          ] SSL:<-SH

 [          ] SSL:<-SC

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=14b82800,t=net.rim.device.api.crypto.certificate.x509.Content

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=14a51400,t=net.rim.device.api.crypto.certificate.x509.Conten

t [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

[          ] VM:GRRTr=14915000,t=net.rim.device.api.crypto.certificate.x509.Content

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=147f0400,t=net.rim.device.api.crypto.certificate.x509.Content

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_geolocationagent,h=17

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_geolocationagent,h=17

[          ] VMSmiley TongueISVt=1,h=47f4,id=d15a33128dfbb5d9

[          ] VM:ACGRt=1,c=0

 [          ] VM:GRRTr=1467bc00,t=net.rim.device.api.crypto.certificate.x509.Content

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=14621800,t=net.rim.device.api.crypto.certificate.x509.Content

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

[          ] VM:GRRTr=145b7c00,t=net.rim.device.api.crypto.certificate.x509.Content

 [          ] SSL:<-SHD

 [          ] TLS:->CKE

 [          ] SSL:->CCS

 [          ] TLS:->F

 [          ] TLS:<-F

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=1,p=net_rim_bb_geolocationagent,h=17

 [          ] VMSmiley TongueISVt=1,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=1,p=net_rim_bb_geolocationagent,h=17

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:LNTDa=commit,t=0,p=net_rim_bb_geolocationagent,h=17

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_geolocationagent,h=17

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=net_rim_bb_geolocationagent,h=17

[          ] TLS: S10

 [          ] FD Back On

 [          ] VM:IGCSc=0

 [          ] VM:+GC(f)w=9

 [          ] VM:-GCt=6,b=1,r=0,g=f,w=9

 [          ] VM:QUOT t=1

 [          ] VM:+CR

[          ] VM:-CR=4

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

[          ] ISM: InitIdxThread done[359284ms]

 [          ] VM:IGCSc=0

 [          ] VM:IGCSc=0

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=1,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

 [          ] VM:ECTTv=0,w=0

[          ] VM:ECTTv=0,w=0

[ VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:LNTDa=commit,t=0,p=net_rim_sync_daemon,h=9

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=3,p=net_rim_sync_daemon,h=9

 [          ] VM:LNTDa=commit,t=0,p=net_rim_sync_daemon,h=9

 [          ] VM:LNTDa=commit,t=0,p=net_rim_sync_daemon,h=9

 [          ] VM:IGCSc=0

 [          ] VM:+GC(f)w=9

 [          ] VM:-GCt=7,b=1,r=0,g=f,w=9

[          ] VM:QUOT t=1

 [          ] VM:+CR

 [          ] VM:-CR=2

 [          ] BbiAuth:ERR:No BBI Auth Token Request Engine available

[          ] VM:IGCSc=0

 [          ] VM:IGCSc=0

 [          ] VM:IGCSc=0

[          ] VM:IGCSc=0

[          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

 [          ] VM:IGCSc=0

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:LNTDa=commit,t=0,p=net_rim_services_impl,h=14

 [          ] VM:IGCSc=0

[          ] VM:IGCSc=0

 [          ] VMSmiley TongueISVt=0,h=488c,id=4c0a2d957500b91a

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

[          ] VM:IGCSc=0

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=net_rim_services_impl,h=14

 [          ] VM:IGCSc=0

 [          ] VM:IGCSc=0

 [          ] VMSmiley TongueISVt=0,h=488c,id=4c0a2d957500b91a

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

 [          ] VM:IGCSc=0

 [          ] VM:IGCSc=0

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

 [          ] VM:IGCSc=0

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=d385800,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=d2d1c00,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

[          ] VM:GRRTr=d29f800,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

[          ] VM:GRRTr=9f25c00,t=java.lang.String[]

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=1,c=0

[          ] VM:GRRTr=cb87800,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=cb6e000,t=java.lang.String[]

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=cb5c000,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

[          ] VM:ACGRt=0,c=0

[          ] VM:GRRTr=cb40800,t=java.lang.String[]

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=1,c=0

         ] VM:GRRTr=cb2bc00,t=java.lang.String[]

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=cb16800,t=java.lang.String[]

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=9f03c00,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=cb01c00,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=cae9800,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=cad3800,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=9ee5000,t=java.lang.String[]

[          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=cab8000,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=ca9a800,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:ACGRt=0,c=0

 [          ] VM:GRRTr=ca84400,t=java.lang.String[]

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 

same thing continued after exit also somthing is running,

when i open the app again

 

[          ] AM: Starting SAMPLEAPP

[          ] AM: Started SAMPLEAPP(288)

[          ] AM: Foreground is set: SAMPLEAPP(288)

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to background: process=net_rim_bb_ribbon_app(125) pid=125

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=SAMPLEAPP(288) pid=288

 [          ] AM: Foreground is requested: SAMPLEAPP(288)

 [          ] MIDP: Calling hello.SAMPLEMidlet.startApp()

 [          ] VM:LNTDa=commit,t=0,p=SAMPLEAPP,h=9

 [          ] VMSmiley TongueISVt=0,h=47f4,id=d15a33128dfbb5d9

 [          ] VM:LNTDa=commit,t=0,p=SAMPLEAPP,h=9

 [          ] VM:+GC(f)w=11

 [          ] VM:-GCt=6,b=1,r=0,g=f,w=11

 [          ] VM:QUOT t=1

 [          ] VM:+CR

 [          ] VM:-CR=3

 [          ] VMSmiley TongueISVt=0,h=4875,id=9a15b00dba73bc69

 [          ] switch

[          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] AM: Foreground is set: net_rim_bb_ribbon_app(125)

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to background: process=SAMPLEAPP(288) pid=288

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=net_rim_bb_ribbon_app(125) pid=125

 [          ] AM: Starting SAMPLEAPP

 [          ] AM: SAMPLEAPP already running

 [          ] AM: Foreground is requested: SAMPLEAPP(288)

 [          ] AM: Starting SAMPLEAPP

 [          ] AM: SAMPLEAPP already running

 [          ] AM: Foreground is requested: SAMPLEAPP(288)

 

can somebody help me at this situation.What i have to do for this.....

BlackBerry Development Advisor
Posts: 15,700
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: RMS application hangs blackberry

Did you set some break points?  What line of code did it hang on?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Posts: 9
Registered: ‎04-30-2012
My Device: 9300
My Carrier: blackberry

Re: RMS application hangs blackberry

Hi Thank you ,

 

I will show you the difference,

 

while the application is running,when i press the call end (red) button means,i can get things like

 

 

[          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] AM: Foreground is set: net_rim_bb_ribbon_app(125)

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to background: process=SAMPLEAPP(288) pid=288

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=net_rim_bb_ribbon_app(125) pid=125

 [          ] MIDP: Calling hello.SAMPLEmidlet.pauseApp()

 [          ] FocusHistory: Focus lost; App SAMPLEAPP; Component javax.microedition.lcdui.CanvasScreen

 [          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.launcher.ApplicationAreaGridField

 

After when i open the application means,opening fine

 

[          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] AM: Foreground is set: net_rim_bb_ribbon_app(125)

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to background: process=SAMPLEAPP(288) pid=288

 [          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=net_rim_bb_ribbon_app(125) pid=125

 [          ] MIDP: Calling hello.SAMPLEmidlet.startApp()

 [          ] FocusHistory: Focus lost; App SAMPLEAPP; Component javax.microedition.lcdui.CanvasScreen

 [          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.launcher.ApplicationAreaGridField

 

  

when i give exit command which is in my application means,

 

[          ] Soure Name com.sun.lwuit.Command

[          ] AR: add source 14

[          ] AR: setAudioMode 32

 [          ] MIDP: Called hello.SAMPLEmidlet.notifyDestroyed()

 [          ] MIDP: Switch-to-foreground messages (event 'c') are to be deleted; the message queue is:

 [          ] [2 203]

 [          ]

 [          ] MIDP: Switch-to-foreground messages (event 'c') have been deleted if any; the message queue is:

 [          ] [2 203]

 [          ]

 [          ] AM: Exit SAMPLEAPP(288)

 [          ] ApplicationManagerImpl.processExited : process process switching to background:  pid=288

 [          ] AM: Foreground is requested: net_rim_bb_ribbon_app(125)

 [          ] Process SAMPLEAPP(288) cleanup started

 [          ] AR: remove source 14

 [          ] AR: setAudioMode 32

 [          ] AM: Foreground is set: net_rim_bb_ribbon_app(125)

[          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=net_rim_bb_ribbon_app(125) pid=125

 [          ] Process SAMPLEAPP(288) cleanup done

 [          ] FocusHistory: Focus lost; App SAMPLEAPP; Component NULL

 [          ] TID:unable to execute in the app javax.microedition.midlet.SAMPLEmidleMain@708c4b39|java.lang.Object@f5d54f7d|-1

 [          ] FocusHistory: Focus gained; App net_rim_bb_ribbon_app; Component net.rim.device.apps.internal.ribbon.launcher.ApplicationAreaGridField

 [          ] NotifyListenerThread has died for event: endOfMedia and data: 0

 

After that when i open the application again means,

 

 

[          ] AM: Starting SAMPLEAPP

[          ] AM: Started SAMPLEAPP(289)

[          ] AM: Foreground is set: SAMPLEAPP(289)

[          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to background: process=net_rim_bb_ribbon_app(125) pid=125

[          ] ApplicationManagerImpl.setForegroundProcess : calling notifyApplicationSwitch to switch to foreground: process=SAMPLEAPP(289) pid=289

[          ] AM: Foreground is requested: SAMPLEAPP(289)

[          ] MIDP: Calling hello.SAMPLEmidlet.startApp()

[          ] 05/08 06:38:00.276 BBM FutureTask Execute: net.rim.device.apps.internal.qm.bbm.BBMApplication$BBMDataServiceClockTimer$2@34f71ae3

[          ] 05/08 06:38:00.279 BBM FutureTask Finish : net.rim.device.apps.internal.qm.bbm.BBMApplication$BBMDataServiceClockTimer$2@34f71ae3

 

                     I am getting stuck here.I have shown above the diifference which i have mentioned in pink color.First exit it was opening fine.For the next open it stuck there.Also i am receiving this message java.lang.string[],

 

I have used notify.destroy() method in the exit command.

 

Thanks,

Raj1.

 

 

 

                  

 

BlackBerry Development Advisor
Posts: 15,700
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: RMS application hangs blackberry

In my previous post I was referring to the lines of code within your application.  The debug output you highlight are not related to one another (one shows returning to the home screen and the other is a BBM task).

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker