Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7618587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:26:30+00:00 2026-05-31T03:26:30+00:00

A user may enter an alarm event to happen at a certain time. I

  • 0

A user may enter an alarm event to happen at a certain time. I have a button that calls all events and displays the time the event will happen. Every time i press on the button even when i set an event before hand, the app force closes. The Logcat points out 3 lines and i have no idea why.

Here is the logcat:

03-11 16:23:15.101: E/AndroidRuntime(13960): java.lang.NullPointerException
03-11 16:23:15.101: E/AndroidRuntime(13960):    at izzy.n.main1.getLastThreeEvents(main1.java:218)
03-11 16:23:15.101: E/AndroidRuntime(13960):    at izzy.n.main1.access$4(main1.java:192)
03-11 16:23:15.101: E/AndroidRuntime(13960):    at izzy.n.main1$4.onClick(main1.java:101)
03-11 16:23:15.101: E/AndroidRuntime(13960):    at android.os.Handler.dispatchMessage(Handler.java:92)
03-11 16:23:15.101: E/AndroidRuntime(13960):    at android.os.Looper.loop(Looper.java:130)

Here is main1.java I put a link so you can see where each line of code is. http://codepad.org/7z3Vxq72

And here is main1.xml:

  <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <Spinner android:id="@+id/spinner_calendar"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        />
    <Button android:id="@+id/button_add"
        android:layout_height="wrap_content"
        android:layout_width="150px"
        android:text="Add Event"
        android:layout_gravity="center"
        android:gravity="center"
    />
    <Button android:id="@+id/button_add2"
        android:layout_height="wrap_content"
        android:layout_width="150px"
        android:text="Add Event 2"
        android:layout_gravity="center"
        android:gravity="center"
    />
    <Button android:id="@+id/button_get_events"
        android:layout_height="wrap_content"
        android:layout_width="150px"
        android:text="Get Events"
        android:layout_gravity="center"
        android:gravity="center"
    />
    <TextView  
        android:id="@+id/text_event"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:text="@string/hello"
        />
</LinearLayout>


    </LinearLayout>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:26:32+00:00Added an answer on May 31, 2026 at 3:26 am

    You don’t initialize m_text_event anywhere. Normally you would do it in onCreate, but I don’t see a TextView in your layout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given models User and Comments being populated such that a user may have many
So I have a form that accepts some input from a user that may
I have a description textarea inside a form where user may enter a description
I have a question simple like that: Let user enter some words from keyboard,one
There is a possibility that a user of my app may enter tens/hundreds/thousands of
On my app a user may or may not have a profile. An example
I have a situation where in a web application a user may need a
I'm using NSDocumentDirectory to save an image each time user may save different different
I have a table with user items. Each user may have several types of
I have two tables: Users and Profiles. A user may have a profile and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.