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
Contributor
Anzy
Posts: 36
Registered: ‎06-15-2011
My Device: 8900
My Carrier: Airtel

Re: Blackberry twitter api

Can you logine you  Twitter page. ...??

Please use plain text.
Developer
welsenKiriono
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: Blackberry twitter api

Thanx for the reply..
Yes, I can login my account in twitter..
Btw, my application already redirect to my callback url, so it means I have approved to authorize my app..
But the void onAuthorize is not invoked..
That's my problem..
Please use plain text.
Contributor
Anzy
Posts: 36
Registered: ‎06-15-2011
My Device: 8900
My Carrier: Airtel

Re: Blackberry twitter api

Hello ...

 I am using...and successfully getting Login Token , but  this will works only for GPRS not for Wifi

 

private final String CALLBACK_URL = "None";

    BrowserContentManager browserMngr = new BrowserContentManager(0);
                            
                            RenderingOptions rendOptions = browserMngr.getRenderingSession().getRenderingOptions();
                            rendOptions.setProperty(RenderingOptions.CORE_OPTIONS_GUID,    RenderingOptions.SHOW_IMAGES_IN_HTML,true);
                            //
                            add(browserMngr);
                            //
                            OAuthDialogWrapper pageWrapper =     new BrowserContentManagerOAuthDialogWrapper(browserMngr);
                            //
                            pageWrapper.setConsumerKey(Global.consumer_Key);
                            pageWrapper.setConsumerSecret(Global.consumer_Secret_Key);
                            pageWrapper.setCallbackUrl(CALLBACK_URL);
                            pageWrapper.setOAuthListener(SettingTab.this);
                            //
                            pageWrapper.login();

Please use plain text.
New Member
RsaveRzeas
Posts: 1
Registered: ‎12-15-2011
My Device: curve 8520
My Carrier: maxis

Re: Blackberry twitter api

anyone know what happen after 10x fail attemp password?

Please use plain text.
Developer
welsenKiriono
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: Blackberry twitter api

Hmmm... actually, i've successed to use this API in simulator..

But, i don't know why if in real device, app just redirect to url callback but onAuthorize is not invoked..

my code is exactly same with your code, but the callback url is my website domain..

Is it okay to instance callback url to null?

Please use plain text.
New Contributor
AkaiKitsune
Posts: 3
Registered: ‎12-29-2011
My Device: Gemini Curve 8520
My Carrier: XL

Re: Blackberry twitter api

Please help, I am actually suffering the same problem. I used the same code and it worked perfectly in the simulator. I can post on twitter and stuff. But when on actual device, it failed to invoke the onauthorize() method. I used the same code as above, and it still failed.

 

Anyone know how to solve it? Or at least know why it happened like that?

 

Please help, and Thank you in advance.

Please use plain text.
Contributor
Anzy
Posts: 36
Registered: ‎06-15-2011
My Device: 8900
My Carrier: Airtel

Re: Blackberry twitter api

Buddy...May be ur device browser uses "GPRS profile" insted of "Wifi" , please check that..

I also had this kind of issues.!!!

:Yes:

Please use plain text.
New Contributor
AkaiKitsune
Posts: 3
Registered: ‎12-29-2011
My Device: Gemini Curve 8520
My Carrier: XL

Re: Blackberry twitter api

@Anzy : My device browser used Wifi. And my partner tested it and worked just fine on GPRS setting... The problem only present on wifi connection.

And it worked on both connection when i tested it on simulator... I don't know why.
Please use plain text.
Developer
welsenKiriono
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: Blackberry twitter api

Mine is worse...

I try it in OS 5.. it's workk

but when i'm trying in OS 6, it didnt invoke onAuthorize?

So, is there any solution??

Please use plain text.
New Contributor
AkaiKitsune
Posts: 3
Registered: ‎12-29-2011
My Device: Gemini Curve 8520
My Carrier: XL

Re: Blackberry twitter api

After tinkering some more, i found my problem only exist when i tested it on OS7, and not )S6 and below. now i am even more confused >.<
Please use plain text.