Skip to content

Content Tagged "context"

Page 1 of 1

Content Tagged "context"

NullPointerException - getInstrumentation().getContext()

March 11, 2015Category: Software
Here's a beginner mistake... The following code: Throws an exception: Attempt to invoke virtual method 'android.content.Context android.app.Instrumentation.getContext()' on a null object reference It took me some time to find out why: getInstrumentation() returns null in the constructor :) The…

Formless Step in FormWizard

May 7, 2014Category: Software
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: If the info is something like a summary, you have it available in the "success" page (the one after the wizard is finished) Alternatively, you can make it…

All tags