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
Highlighted
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10
Accepted Solution

Device memory is low.Some applications will be closed

Hi..

When i load the html page.I get this error.

"Device memory is low.Some applications will be closed."

 

I have deleted the other unneccessary applications but still i am getting this error. Any solution?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Device memory is low.Some applications will be closed

Are you a Java developer?

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Device memory is low.Some applications will be closed

Why are you asking this ?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Device memory is low.Some applications will be closed

[ Edited ]

Because you posted this on the Java Application Development forum.  I am not sure if you are asking this question as a Java developer or as a user.  If you are asking it as a BlackBerry user, then I suggest you ask on a forum that is specific to your device, which you can find here:

http://supportforums.blackberry.com/t5/BlackBerry-Smartphones-and/ct-p/Smartphones

 

If you are asking this as a developer, then we are going to try to help you debug your program. But it would appear your program is not running at the time this error is shown, which is confusing. Does the problem still happen if you remove your application?  

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Device memory is low.Some applications will be closed

Yes i am a java developer.

I have made an app that loads the html page but it shows Device memory is low everytime i load the html.

I have deleted many apps from my phone but still i get this error.

And 2nd surprising thing is that if i give google.com/index.html page to load it gets loaded but it shows error when i load the page that i want to load.

That means the problem is with my code or the device??

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Device memory is low.Some applications will be closed

[ Edited ]

Any reply?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Device memory is low.Some applications will be closed

Do you get a similar problem when you use the same URL in the Browser?

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Device memory is low.Some applications will be closed

Yes when i open the url in browser it gets open.

Is the problem in my code??

But the other urls get open with the same code then whats the problem??

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Device memory is low.Some applications will be closed

In my console view i am getting:

Viewfinder Layout: height = 360, width = 480
[319521.34] Viewfinder Layout: oldWidth = 0, oldHeight = 0
[319521.34] Viewfinder Layout: newWidth = 480, newHeight = 360
[319521.34] Viewfinder Post Layout: size change detected, setting new native window dimensions
[319521.56] CamContoller:activating user: 1010
[319521.56] CamControllerSmiley FrustratedtartCamera: camMode=1
[319521.56] CamController:setAntiFlickerFrequency current state=513; queuing command
[319521.56] CamController:setInputSrcResolution current state=513; queuing command
[319521.56] CamController:setFlash current state=513; queuing command
[319521.56] CamController:setPreset current state=513; queuing command
[319521.56] CamController:setZoomLevel current state=513; queuing command
[319521.56] CamController:setFocus current state=513; queuing command
[319521.56] CamController:setPreset current state=513; queuing command
[319521.56] Camera native window: created window 0x146c0010
[319521.56] Camera native window: setSize(480,360)
[319521.56] MMAPI Camera native window: setSize(480,360)
[319521.56] MMAPI Camera native win dow: setBounds(0,0,480,360)
[319521.56] PAINTING -- NOT PAINTABLE

 


is it the problem that i am getting device memory is low error?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Device memory is low.Some applications will be closed

Sorry, can I ask for further clarification.

 

You say that there is a problem when your load a URL.  I asked if you see the same problem when you load the same URL on the Browser.  There are two possibilities

a) If the answer is yes, then that suggests the URL is the problem. 

b) If the answer is no, then that suggests there is something in your processing causing the problem. 

 

You answered "Yes when i open the url in browser it gets open." which is a bit of both.  I suspect my question was not well phrased.  So let me ask a clearer question:

 

Does the same URL load correctly on the Browser?

 

Now your latest post contains log information that suggests the Camera is being invoked.  Is this your application?  Are you doing this at the same time as loading the URL?