Laur's blog
Sign in Subscribe

context

A collection of 2 posts
NullPointerException - getInstrumentation().getContext()
android

NullPointerException - getInstrumentation().getContext()

Here's a beginner mistake... The following code: public class ReactiveApiTest extends InstrumentationTestCase { protected LocalJsonClient mLocalJsonClient; public ReactiveApiTest() { super(); mLocalJsonClient = new LocalJsonClient( getInstrumentation().getContext() ); } // ... } Throws an exception: Attempt to invoke virtual method 'android.content.Context android.app.Instrumentation.getContext()' on a null object reference It to
Mar 11, 2015 1 min read
Formless Step in FormWizard
context

Formless Step in FormWizard

Sometimes you'd need to show a purely informational page as part of a FormWizard. As far as I could see, there are two solutions to the problem: 1. If the info is something like a summary, you have it available in the "success" page (the one
May 7, 2014 2 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost