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 8130623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:47:06+00:00 2026-06-06T08:47:06+00:00

I have a checkbox in the Android layout file. When the checkbox is clicked

  • 0

I have a checkbox in the Android layout file. When the checkbox is clicked i call an empty function in the activity class. This causes the app to stop working. Why is this?

  • 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-06-06T08:47:08+00:00Added an answer on June 6, 2026 at 8:47 am

    I am assuming that you are using the “onclick” attribute in your XML.

    If you are receiving a MethodNotFound exception, it could be one of two things:

    You have a typo in either your Activity’s method name or your XML’s method name, or…

    The visibility of your method in your Activity is not public.

    When specifying onclick values in XML, the method should look like this in your activity:

    public void myOnClickMethod(View v) { ... }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this layout: <LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginBottom=10dp android:gravity=center_vertical android:layout_marginLeft=10dp> <CheckBox android:id=@+id/screen_login_checkbox android:button=@drawable/login_screen_checkbox_image_selector android:layout_width=wrap_content
I have a checkbox in my vm file like this : <input name=ISPOperatorList[0].ISPOperatorAccessStatus id=OPERATORAccessDeny0
I have an Android app with a ListView. I've created my own item layout
I have a checkbox that when it is clicked it submits the form to
I have added checkbox in display table using decorator class as shown in below
In my xml i have an edittext element like this <EditText android:id=@+id/hrvalue android:layout_width=wrap_content android:layout_height=wrap_content
I have a custom ListView in which each row.xml looks like this: <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
I have list view with custom row layout (list_row.xml) that contains CheckBox element: <TableLayout
I have popup in my android app. In popup I have button for closing
As a new android programmer I have my obligatory todo app running. It is

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.