Skip to content

rsato/android-sample-twitter4j-auth

Repository files navigation

android-sample-twitter4j-auth

About this sample

This is sample project using Twitter4J Authentication/Authorization on Android.

Problem on Android with Networking operation

Networking operation on Main thread(e.g. onCreate), Android throws "android.os.NetworkOnMainThreadException." Writing code below to ignoring Exception, but should limit it to be used on a test.

StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);

Move networking operation to other tasks

This sample is using Loader and LoaderManager.LoaderCallbacks in the Android Support Library.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published