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

New Developer
Posts: 77
Registered: ‎09-02-2010
My Device: torch
My Carrier: blackberry developer

java.lang.securityException+teitter api me1.4



in my application i am using  twitter api me 1.4 to access twitter ,i  registered my application wtith twitter and i got required keys and  access privileges to use xAuth for the sake of authentication But when i run my application which access twitter account of a particular userf,for every run  first time i getting the error like    "java.lang.securityException",but second time im getting success to post data.


my code is like



Credential c = new Credential("username", "password", "conkey", "consecret");
            UserAccountManager uam = UserAccountManager.getInstance(c);

         if (!uam.verifyCredential())

                TweetER ter = TweetER.getInstance(uam);
                Tweet t = ter.post(new Tweet("status"));




please help me.



thank u