Note that there are some explanatory texts on larger screens.

plurals
  1. POBlackberry FB share prob: low memory
    text
    copied!<p>I am using Blackberry Facebook SDK (FacebookBlackBerrySDK-v0.8.25.jar) for facebook integration for my app. I am using the following code.</p> <pre><code>ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS); Facebook fb = Facebook.getInstance(as); try{ FBUserDetails fbUserDetails = FBUserDetails.getInstance(); String prevUserDatails = fbUserDetails.getFBData(); User user = fb.getCurrentUser(); if(prevUserDatails != null &amp;&amp; !prevUserDatails.equals("") &amp;&amp; user.getEmail().equals(prevUserDatails)){ if(Dialog.ask(Dialog.D_YES_NO,"Do you want to post using FB account " + prevUserDatails + "?",Dialog.YES)==Dialog.NO){ fb.logout(true); user = fb.getCurrentUser(); } } if(user!= null){ fbUserDetails.persist(user.getEmail()); String result = user.publishStatus(decodedText); if ((result != null) &amp;&amp; !result.trim().equals("")) { Dialog.alert("Successfully posted to Facebook."); } else { Dialog.alert("Share Failed."); } }else Dialog.alert("user is equal to null."); }catch(FacebookException fe){ fe.printStackTrace(); } </code></pre> <p>When I am testing the app in Blackberry Strom 9300 (OS version 6.0.0.526), it is running properly first time. But when I am going to share the same text again in a short interval(it is obvious that the posting will fail), system is giving "the memmory available on your device is low. Close some of the items below." and I forced to close the application. Can anyone tell me what is the problem in the above code?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload