Cannot get twitter4j.properties configuration to work


#1

Hi everyone,

I’ve got a problem to get Twitter4J to work on Android.

  1. I create a project name: C:\VerifyProject
  2. Add the sample source code from here: http://twitter4j.org/en/code-examples.html
  3. According to the config page: http://twitter4j.org/en/configuration.html
    I create a file: twitter4j.properties at: C:\VerifyProject\twitter4j.properties, then add all 4 values into it.
  4. I use Ant for building project, it builds successfully.
  5. I install the APK and run it from the phone and got error: “Authentication credentials missing”

It seems like twitter4j.properties is not used properly somewhere but I can’t figure it out.

  1. I have a directory “libs” containing only one package: twitter4j-core-android-2.2.6.jar
    Is it ok enough to run the sample?
  2. Anyone have suggestion/solution for my problem?

Thanks for your support.