#DEPRECATED
THIS PROJECT IS NO LONGER WORKING.
Check the updated AndroidTwitterGoogleApiJavaClient repository for an updated way of interacting with Twitter. It includes documentation + a working example.
#DEPRECATED
THIS PROJECT IS NO LONGER WORKING.
Check the updated AndroidTwitterGoogleApiJavaClient repository for an updated way of interacting with Twitter. It includes documentation + a working example.
I just run the android project and it doesn't work.
I am trying to use twitter4j for my app to connect and post to twitter. I am following this tutorial. I have downloaded the example project from here and try to run it on android 2.3.3. I am sure that i have modified Constants.java file correctly according to my twitter developer website. In TwitterUtils.java i have enter OAUTH_TOKEN and OAUTH_TOKEN_SECRET also. but after running it, i got following error messages :
E/dalvikvm(374): Could not find class 'twitter4j.http.AccessToken', referenced from method com.ecs.android.sample.twitter.TwitterUtils.isAuthenticated
W/dalvikvm(374): VFY: unable to resolve new-instance 67 (Ltwitter4j/http/AccessToken;) in Lcom/ecs/android/sample/twitter/TwitterUtils;
D/dalvikvm(374): VFY: replacing opcode 0x22 at 0x0010
D/dalvikvm(374): VFY: dead code 0x0012-002f in Lcom/ecs/android/sample/twitter/TwitterUtils;.isAuthenticated (Landroid/content/SharedPreferences;)Z
E/dalvikvm(374): Could not find class 'twitter4j.http.AccessToken', referenced from method com.ecs.android.sample.twitter.TwitterUtils.sendTweet
W/dalvikvm(374): VFY: unable to resolve new-instance 67 (Ltwitter4j/http/AccessToken;) in Lcom/ecs/android/sample/twitter/TwitterUtils;
D/dalvikvm(374): VFY: replacing opcode 0x22 at 0x0010
D/dalvikvm(374): VFY: dead code 0x0012-002b in Lcom/ecs/android/sample/twitter/TwitterUtils;.sendTweet (Landroid/content/SharedPreferences;Ljava/lang/String;)V
D/AndroidRuntime(374): Shutting down VM
W/dalvikvm(374): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(374): FATAL EXCEPTION: main
E/AndroidRuntime(374): java.lang.NoClassDefFoundError: twitter4j.http.AccessToken
E/AndroidRuntime(374): at com.ecs.android.sample.twitter.TwitterUtils.isAuthenticated(TwitterUtils.java:18)
E/AndroidRuntime(374): at com.ecs.android.sample.twitter.AndroidTwitterSample.updateLoginStatus(AndroidTwitterSample.java:72)
E/AndroidRuntime(374): at com.ecs.android.sample.twitter.AndroidTwitterSample.onResume(AndroidTwitterSample.java:68)
E/AndroidRuntime(374): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
E/AndroidRuntime(374): at android.app.Activity.performResume(Activity.java:3832)
E/AndroidRuntime(374): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
E/AndroidRuntime(374): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
E/AndroidRuntime(374): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668)
E/AndroidRuntime(374): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(374): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime(374): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(374): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(374): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(374): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(374): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(374): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(374): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(374): at dalvik.system.NativeStart.main(Native Method)
Please advice how can I correct these problems. Thanks in advance.
its not working now due to change in OAuth protocal ,So how we can make it working using Oauth2.0 ..changes in the code explain??
01-18 12:08:49.123: E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(22991): Error during OAUth retrieve request token
01-18 12:08:49.123: E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(22991): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=http://api.twitter.com/oauth/authorize?oauth_token=JZiBQ88w5M9YCMjq3gEHU0aN4DMdAMuekdSiahzrI flg=0x60000004 }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.