Shail
|
Posted: January 10, 2012 18:53 by Shail
|
|
Hi , I am using twitter_api_me-1.8.2-rim api's and TwitterAPIME-RIM-OAuthSample to integrate my blackberry java application with twitter. The library was too good but I am facing 2 issue as: 1.The Login page while test on OS 5 device showing invalid characters and showing content in hindi on os 6 device. 2. when I set http connection property as conn.setRequestProperty("Accept-Language", "en"); conn.setRequestProperty("Content-Language", "en-US"); It is showing valid characters on click on No Thanks button but problem remains on login page. 3.I am giving call back url as my application server name with index page that on simulator giving run time exception. Please reply me soon as I googled alot for this issue and already spent a great time to resolved it but still facing the same issue. Thanks & Regards, Shail |
Twitter Login page showing invalid characters when using twitter_api_me-1.8.2-rim api's
Replies: 5 - Last Post: January 13, 2012 16:23
by: Ernandes Mourao Junior
by: Ernandes Mourao Junior
showing 1 - 6 of 6
Ernandes Mourao Junior
|
Posted: January 11, 2012 20:19 by Ernandes Mourao Junior
|
|
Is your device in English? What is your current location? The url callback must be same as you registered fr your app on Twitter's dev website. Support this project: Donate now! |
Shail
|
Posted: January 12, 2012 05:25 by Shail
|
|
Thanks Ernandes for reply. Yes my device is in English.I am in Delhi India.Yes I set the call back url same as on Twitter's dev website. and even set the htpconnection peoprty of language as "en", still persist the error. And one more think to ask ,Is their any API exist to post audio bleep using access token so that I can directly after authentication will call that api and able to post audio bleep. Could you please help me asap . Regards, Shail |
Ernandes Mourao Junior
|
Posted: January 12, 2012 11:50 by Ernandes Mourao Junior
|
|
So it makes me think Twitter displays the login page's language according to your IP address, not based on your Http parameters. When you access Twitter page from your browser, in which language it is? Are you setting the url in the constructor? It is pretty forward. Check out the example in Wiki page. Currently, this API does not support Media posting. I would like to implement that for next release. But I have no estimate for that yet. Regards, Support this project: Donate now! |
Shail
|
Posted: January 13, 2012 12:13 by Shail
|
|
Hi Ernandes, Yes Twitter login page is in English when I used to open on any browser in Delhi India. I am following the same code and as it is Wikis for RIM.You can visit following link for screen shot of screen of login page for OS5. http://stackoverflow.com/questions/8091900/twitter-integration-in-blackberry-login-page-not-in-english For OS 6 and OS 7 I tested that is showing login page in Hindi. After calling Login function It is calling onAuthorize function as: public void onAuthorize(Token token) { Credential c = new Credential(CONSUMER_KEY,CONSUMER_SECRET, token); UserAccountManager uam = UserAccountManager.getInstance(c); try { if (uam.verifyCredential()) { TweetER.getInstance(uam).post(new Tweet("Posting Tweet " )); twitter_username = token.getUsername(); UiApplication.getApplication().invokeLater(new Runnable() { public void run() { UiApplication.getUiApplication().pushScreen(new NextScreen (twitter_username)); } }); } } catch (Exception e) { } } And after authentication It is traversing us to sometime to next screen or sometime giving IlligalArgument exception. Thanks for Reply. Regards, Shail |
Ernandes Mourao Junior
|
Posted: January 13, 2012 16:23 by Ernandes Mourao Junior
|
|
Sorry, but I have no idea what it is. I would have to test it myself to have a better look on what may be happening. Unfortunately, I am out of time, to check up on it. Please, keep digging and let me know in case you find the problem and a solution. If so, I can change the API accordingly and then release a patch. Thanks in advance! Regards, Support this project: Donate now! |
showing 1 - 6 of 6
Replies: 5 - Last Post: January 13, 2012 16:23
by: Ernandes Mourao Junior
by: Ernandes Mourao Junior







