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

  • Home
  • SEARCH
  • 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 6337015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:10:14+00:00 2026-05-24T19:10:14+00:00

i have create some xml layout and i java files, some xml file have

  • 0

i have create some xml layout and i java files, some xml file have same id of the button and i create onClick event on this,
when i click this button it’s generate an error shown below

08-17 01:08:12.357: ERROR/AndroidRuntime(22434): java.lang.StackOverflowError
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at java.util.HashMap.containsKey(HashMap.java:313)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.provider.Settings$NameValueCache.getString(Settings.java:494)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.provider.Settings$System.getString(Settings.java:575)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.provider.Settings$System.getInt(Settings.java:624)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.media.AudioManager.querySoundEffectsEnabled(AudioManager.java:1089)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.media.AudioManager.playSoundEffect(AudioManager.java:1042)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.ViewRoot.playSoundEffect(ViewRoot.java:2478)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.playSoundEffect(View.java:8309)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2363)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(View.java:2364)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at com.widgets.CheckBoxClass.onClick(CheckBoxClass.java:44)
08-17 01:08:12.357: ERROR/AndroidRuntime(22434):     at android.view.View.performClick(V
  • 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-24T19:10:15+00:00Added an answer on May 24, 2026 at 7:10 pm

    i have got answer :

    i have used that code :

    public void onClick(View v) {
        if(v.getId() == R.id.xCBApple){      
                Toast.makeText(CheckBoxClass.this,"Apple is Chedked",Toast.LENGTH_SHORT);
        }
        if(jBackButton.performClick())
        {
                Intent intent = new Intent(CheckBoxClass.this,AndroidWidgetsActivity.class);
                startActivity(intent);
        }
    }
    

    but i have to use v.getId() == R.id.backButton instead of jBackButton.performClick() and error is gone but i dont understnd about performClick() , can any one know about it ?

    Thank
    Rahul

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

Sidebar

Related Questions

Do you have some predefined set of targets which all build.xml files you create
Is it possible to convert R.java into layout file xxx.xml.. In some project which
I have a flex app which allows user to create some content. this content
So I have Html like this http://trac.edgewall.org/wiki/RecentChanges (I want to create some Flash Track
I have some xml documents I need to run queries on. I've created some
I'm using Rational Application Developer to create some web services. The problem I have
I have a UpdatePanel with a PlaceHold contained in it. I create some controls
For strongly-typed & type-safe solution, I have to do the following step. Create some
I have to create a regular expression for some path conversion. Example for path
For some reason, my visual studio 2008 installation doesn't have the Create Test Project

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.