tag:blogger.com,1999:blog-1469590520597310377.post7797247185262674713..comments2024-02-28T11:01:34.368+00:00Comments on Thoughts on development & design: Android & Twitter - OAuth Authentication TutorialRobhttp://www.blogger.com/profile/01080851737011489428noreply@blogger.comBlogger71125tag:blogger.com,1999:blog-1469590520597310377.post-67742285417229104892015-05-05T13:01:33.484+01:002015-05-05T13:01:33.484+01:00After entering UN and PW in twitter web view, the ...After entering UN and PW in twitter web view, the application is going to TweetsActivity class and Twitter t = ((TwitterApplication)getApplication()).getTwitter(); returns null, obviously. Can you let me know why the application is not redirecting to OnResume function?Rohith Raveendranhttps://www.blogger.com/profile/14479107294071512868noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-44528772614467285032014-09-19T16:01:02.998+01:002014-09-19T16:01:02.998+01:00Hi @Robbo - Thanks for your efforts and nice tutor...Hi @Robbo - Thanks for your efforts and nice tutorial.<br /><br />Me too facing the force close issue once the button is clicked.<br /><br />What I've done is:<br />1. In constants.java --> used my app keys <br />2. used ' twitter4j-core-4.0.2.jar' as the library<br /><br />Below is the logcat:<br /><br />09-19 20:28:57.066: E/AndroidRuntime(11366): FATAL EXCEPTION: main<br />09-19 20:28:57.066: E/AndroidRuntime(11366): Process: com.tmm.android.twitter, PID: 11366<br />09-19 20:28:57.066: E/AndroidRuntime(11366): java.lang.NoClassDefFoundError: oauth.signpost.commonshttp.CommonsHttpOAuthConsumer<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at com.tmm.android.twitter.AuthActivity.askOAuth(AuthActivity.java:106)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at com.tmm.android.twitter.AuthActivity.access$0(AuthActivity.java:104)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at com.tmm.android.twitter.AuthActivity$1.onClick(AuthActivity.java:53)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at android.view.View.performClick(View.java:4456)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at android.view.View$PerformClick.run(View.java:18465)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at android.os.Handler.handleCallback(Handler.java:733)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at android.os.Handler.dispatchMessage(Handler.java:95)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at android.os.Looper.loop(Looper.java:136)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at android.app.ActivityThread.main(ActivityThread.java:5086)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at java.lang.reflect.Method.invokeNative(Native Method)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at java.lang.reflect.Method.invoke(Method.java:515)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)<br />09-19 20:28:57.066: E/AndroidRuntime(11366): at dalvik.system.NativeStart.main(Native Method)<br /><br />Please help me ..<br /><br />Thanks,<br />RamaAnonymoushttps://www.blogger.com/profile/10828043881998207787noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-28088970700162821432014-05-25T00:50:03.302+01:002014-05-25T00:50:03.302+01:00Hi @robbo,
Thank you for the nice tutorial and git...Hi @robbo,<br />Thank you for the nice tutorial and git code.<br />I am able to authenticate my application to twitter, however I am not able to fetch tweets into the application.<br />The error in my log is as follows:-<br /><br />05-24 20:58:44.588: E/Twitter(1374): Error retrieving tweets<br />05-24 20:58:44.588: E/Twitter(1374): 401:Authentication credentials were missing or incorrect.<br />05-24 20:58:44.588: E/Twitter(1374): {"errors":[{"message":"The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.","code":64}]}<br /><br />Thus it seems to be issue that the code above refers to Twitter REST API v1 while we have to access v1.1. Can you help in solving this error? How can i fetch data from Twitter REST API v1.1.<br /><br />Thank you & Kind Regards,<br />Manisha LuthraAnonymoushttps://www.blogger.com/profile/06268089282943060193noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-89387126077109876492014-05-05T11:53:17.053+01:002014-05-05T11:53:17.053+01:00I download and changed CONSUMER_KEY/SECRET.While ...I download and changed CONSUMER_KEY/SECRET.While run application gettin Exception like this on my logcat<br /><br />05-05 16:19:40.447: E/AndroidRuntime(10665): java.lang.NoClassDefFoundError: oauth.signpost.commonshttp.CommonsHttpOAuthConsumer<br />05-05 16:19:40.447: E/AndroidRuntime(10665): at com.tmm.android.twitter.AuthActivity.askOAuth(AuthActivity.java:106)<br />Anonymoushttps://www.blogger.com/profile/09975780948245195169noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-80185086873246304242013-09-23T17:18:18.860+01:002013-09-23T17:18:18.860+01:00Hi, i was unable to proceed because definition of ...Hi, i was unable to proceed because definition of these two methods is not found here:<br />1. storeAccessToken()<br />2. setConsumerProviderAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-57585812608024942072013-09-18T14:13:46.442+01:002013-09-18T14:13:46.442+01:00Great blog! We offer affordable yet professional b...Great blog! We offer affordable yet professional bespoke website <a href="http://leedssoftwaredevelopment.co.uk" rel="nofollow"><b>App Development Leeds <br /></b></a> and software solutions to businesses in the Leeds area and throughout the UK.Anonymoushttps://www.blogger.com/profile/16556179912814561635noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-91671573682692094732013-07-16T11:30:14.047+01:002013-07-16T11:30:14.047+01:00showing Force close for api 1.1, how to resolve th...showing Force close for api 1.1, how to resolve this...Anonymoushttps://www.blogger.com/profile/12985156704611545938noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-2544152266379152752013-02-08T04:44:30.653+00:002013-02-08T04:44:30.653+00:00Sir a problem occur in getConsumerProvider method ...Sir a problem occur in getConsumerProvider method and a classCastException occur in aouth methodAnonymoushttps://www.blogger.com/profile/02387031201709772232noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-15662396884820357042013-01-09T07:40:19.821+00:002013-01-09T07:40:19.821+00:00this code working fine on emulator 2.1 but greater...this code working fine on emulator 2.1 but greater then not working<br />or on real device 2.3 , 4.0 also not working any solution. Anonymoushttps://www.blogger.com/profile/16177200069990139550noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-16192859233097575662012-12-30T14:25:31.447+00:002012-12-30T14:25:31.447+00:00This comment has been removed by the author.gentletouchhttps://www.blogger.com/profile/03914972909758343532noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-40497699794305930862012-12-27T14:31:22.357+00:002012-12-27T14:31:22.357+00:00Nice tutorial and working fine everythingNice tutorial and working fine everythingramanabvhttps://www.blogger.com/profile/13204152995816063971noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-50634802375092074762012-12-06T13:31:21.747+00:002012-12-06T13:31:21.747+00:00Hi. Thanks for very grand tutorials!
I have a big ...Hi. Thanks for very grand tutorials!<br />I have a big problem...<br />in this line : consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); get a error<br />this is a error http://prntscr.com/lgzec<br /><br />key and secret is 100% correct. <br /><br />Very thanks for your time...... Unknownhttps://www.blogger.com/profile/13881553629967047844noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-53677599807401091302012-11-26T12:55:15.103+00:002012-11-26T12:55:15.103+00:00The import twitter4j.http.AccessToken doesn't ...The import twitter4j.http.AccessToken doesn't seem to exist anywhere...Den Fyrenhttps://www.blogger.com/profile/15754298738278113763noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-84014058935491763792012-11-26T12:49:26.657+00:002012-11-26T12:49:26.657+00:00I cannot get the following import to work:
import...I cannot get the following import to work:<br /><br />import twitter4j.http.AccessToken<br /><br />I've inmported all the jars in the twitter4j-android-3.0.1 package, to no help.Den Fyrenhttps://www.blogger.com/profile/15754298738278113763noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-90368407432044447612012-11-26T12:43:58.974+00:002012-11-26T12:43:58.974+00:00This comment has been removed by the author.Den Fyrenhttps://www.blogger.com/profile/15754298738278113763noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-73971110885849529162012-10-17T19:50:09.791+01:002012-10-17T19:50:09.791+01:00I had the same problem. You can get them here (the...I had the same problem. You can get them here (the latest jar files) <br /><br />http://code.google.com/p/oauth-signpost/downloads/list <br /><br />and link them on Eclipse (Project->Properties->java build path-> add external jars...)<br /><br />Good Luck :DFlayshonhttps://www.blogger.com/profile/10700310586263677752noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-70564275625428962722012-10-17T15:33:34.305+01:002012-10-17T15:33:34.305+01:00can u help me
can u help me<br />Anonymoushttps://www.blogger.com/profile/00527448384538406175noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-64489070863148965642012-10-17T13:15:20.493+01:002012-10-17T13:15:20.493+01:00i downloaded and import in eclipse and i changed ...i downloaded and import in eclipse and i changed keys but when i click on button exit from app<br />any one can Help meAnonymoushttps://www.blogger.com/profile/00527448384538406175noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-14040061483029288512012-10-10T13:37:30.507+01:002012-10-10T13:37:30.507+01:00Thanks dude it's works greateThanks dude it's works greateAnonymoushttps://www.blogger.com/profile/10042065957315224497noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-839705556293038782012-09-04T17:27:46.129+01:002012-09-04T17:27:46.129+01:00i have dowload and import your code and also i mad...i have dowload and import your code and also i made changes in keys <br />but when i click on authenticate with twitter It show Unfortunatly tweeter has stopped message and exit from app<br />can you please help me maxhttps://www.blogger.com/profile/07935931383692784514noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-42602185705155388972012-09-01T11:18:35.692+01:002012-09-01T11:18:35.692+01:00Amazing information on Android Apps Development. T...Amazing information on <a href="http://www.rizecorp.com/androiddevelopment.html" rel="nofollow">Android Apps Development</a>. Thanks for sharing this information, keep posting....Anonymoushttps://www.blogger.com/profile/06162286850993845259noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-66837823407719982972012-06-21T15:10:53.962+01:002012-06-21T15:10:53.962+01:00@Esteban Villalobos: Confirmed -> you need to a...@Esteban Villalobos: Confirmed -> you need to add some valid "Callback URL" on the twitter page for the app or you'll get: "failed :http://twitter.com/oauth/request_token"Glenhttps://www.blogger.com/profile/07051919275971754622noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-27883005585357948132012-06-21T14:43:25.938+01:002012-06-21T14:43:25.938+01:00Hi SRIKANTH. I got the same forced close. Try movi...Hi SRIKANTH. I got the same forced close. Try moving the jar files from assets to libs:<br /><br />Then fix your build path:<br />properties -> java build path<br /><br />Worked fine after that. Cheers.Glenhttps://www.blogger.com/profile/07051919275971754622noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-55996573097883419832012-06-21T07:18:09.643+01:002012-06-21T07:18:09.643+01:00Twitters authentication and the codes which you gi...Twitters authentication and the codes which you given are great help to me, well thanks for everything.<br /><br /><a href="http://www.socialcubix.com/services/mobile/android-application-development" rel="nofollow">Android App Developer</a>crookhttps://www.blogger.com/profile/15137993222833667616noreply@blogger.comtag:blogger.com,1999:blog-1469590520597310377.post-89207165459789237052012-06-13T08:04:49.901+01:002012-06-13T08:04:49.901+01:00Can anyone tell which jar,s should i import,i impo...Can anyone tell which jar,s should i import,i imported twitter4j,but some of the imports were not resolved<br />import oauth.signpost.OAuthProvider;<br />import oauth.signpost.basic.DefaultOAuthProvider;<br />import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;<br />import twitter4j.http.AccessToken;<br />plz help !!!Dhruvahttps://www.blogger.com/profile/17011800713514398598noreply@blogger.com