graph.inject(client); client.show("JakeWharton"); /* Hey UIUC people! Come join me for a nerdy chat tomorrow evening. «@_chaebacca http://t.co/SCsRFkdg» FEST Android v1.0.1 released (while at 37,000 feet!) with a slew of new asserts, generics, and spelling corrections. http://t.co/JSGRoO7m @neilmctee @robolectric This is because Build.SDK.VERSION still reports '0'. Now that we are using real code, it should probably return '16' For this day and age, it's amazing how difficult and slow it is to move money around between banks and individuals. JavaWriter -‐ A utility which aids in generating Java source files. https://t.co/ enypYzsW */
} @Override public void onCreate() { super.onCreate(); graph = ObjectGraph.create( new ThisModule(), new ThatModule(), new OtherModule(this) // This module takes the context ); } public void inject(Object object) { graph.inject(object); }
} class FakeTwitter implements Twitter { @Override public List<Tweet> tweets(String user) { return Arrays.asList( new Tweet("The quick brown fox"), new Tweet("Jumps over the lazy dog"), new Tweet("OMG WTF BBQ") ); } }