 <pre><code>Caused by: java.lang.NullPointerException at android.content.ContextWrapper.getResources(ContextWrapper.java:81) </code></pre> <p>This suggests you're trying to access your resources too early, for example when initializing your member variables. Only call <code>getResources()</code> in <code>onCreate()</code> or later in activity lifecycle.</p> <p>After fixing that you'll find that <code>mWebView</code> is <code>null</code> as suggested by others. You'll need to <code>setContentView()</code> first before calling <code>findViewById()</code> to find components in your content view hierarchy.</p>