Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do you see the line that says <code>Caused by: java.lang.NullPointerException</code> in your log? Right below that is the line <code>at weather.right.nowActivity.onCreate(nowActivity.java:37)</code></p> <p>This means there is a <code>NullPointerException</code> being thrown at line <code>37</code> of your <code>nowActivity</code>. If you double click on that line, it will open the <code>Activity</code> and take you directly to where the error is being thrown. So, keep all that in mind.</p> <p>One thing I notice is that you're using <code>setContentView</code> twice in your <code>onCreate</code> method. It looks like you'll want to use your <code>about.xml</code> in your <code>About.class</code>. Also, if you think the <code>Exception</code> that's being thrown is caused by your <code>Menu</code>, then you should post that code, as it's relevant to your OP.</p> <p>It looks like line <code>37</code> has to do with starting your <code>About.class</code>. Make sure you have it tagged in your <code>Manifest</code> and that your <code>Button</code> is a part of the <code>Layout</code> you're using for your <code>nowActivity</code>. </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="weather.right.now" android:versionCode="1" android:versionName="1.1" &gt; &lt;uses-sdk android:minSdkVersion="7" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;application android:icon="@drawable/sun_icon" android:label="@string/app_name" &gt; &lt;activity android:name="weather.right.nowActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="weather.right.About" android:label="@string/app_name" /&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>Whichever <code>Activity</code> you want to start first, or the one that will appear inside your app drawer, should include the <code>Intent-Filter</code> tags I posted, but other <code>Activities</code> don't need to include those specific tags, some may need an <code>Intent-Filter</code> though. Also, everything in your <code>AndroidManifest</code> should go inside <strong>ONE</strong> <code>&lt;manifest&gt;&lt;/manifest&gt;</code> tag and <strong>ONE</strong> <code>&lt;application&gt;&lt;/application&gt;</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload