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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:27:12+00:00 2026-05-31T23:27:12+00:00

I updated Android SDK Tools to revision 17 and after I opened Eclipse I

  • 0

I updated Android SDK Tools to revision 17 and after I opened Eclipse I found a list of new errors in the ‘Problems’ view which weren’t there before the update. These errors were in XML Layout files where I had defined the onClick attribute for buttons. On mouse-over the error message example:

“Corresponding method handler ‘public void @string/timespanDefinition_btnSave_Click(android.view.View)’ not found”

returned. I have already defined the corresponding method handler and the string representation for this event name. What is the cause and solution of this problem?

Some code:

XML Layout

<ToggleButton
        android:id="@+id/timespanDefinition_tglVibration"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:checked="true"
        android:onClick="@string/timespanDefinition_tglVibration_Click"
        android:saveEnabled="true" />

Activity which inflates XML Layout

public class TimespanDefinitionActivity extends Activity

{

// -- Attributes -- //

private long mRowId = -1;
private StringBuilder mBitWeekDays;
private String mTitle;

private EditText txtTitle;
private TabHost tabHost;
private TimePicker tmepkrStart;
private TimePicker tmepkrEnd;
private CheckBox[] weekDays;
private SeekBar skbrVolume;
private ToggleButton tglVibration;

// -- Class Events -- //

@Override
protected void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);

    setContentView(R.layout.timespan_definition);

    initializeResources();

    Bundle extras = getIntent().getExtras();

    // Get the time-span Row ID
    mRowId = (extras != null) ? extras.getLong(RVSUtilities.getDefaultPackage() + TimespanScheduleTable.KEY_ROWID)
            : -1;

    populateResources();
}

// -- User Events -- //

public void tglVibration_Click(View v)
{
    if (((ToggleButton) v).isChecked())
    {
        Vibrator vibrate = (Vibrator) getSystemService(VIBRATOR_SERVICE);
        vibrate.vibrate(1000);
    }
}

strings.xml:

<string name="timespanDefinition_tglVibration_Click">tglVibration_Click</string>

Note: The app is targeting Android 2.3.3 specifically Google API version 10

Thank you.

  • 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-31T23:27:13+00:00Added an answer on May 31, 2026 at 11:27 pm

    What is the cause and solution of this problem?

    The cause is your use of a string resource for the method name.

    The solution is to get rid of the string resource and to put the method name in the android:onClick attribute directly.

    UPDATE: If the markers do not go away, right-click over the project, and choose Android Tools > Clear Lint Markers.

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

Sidebar

Related Questions

In eclipse i updated installed packages for Android SDK Tools from revision 2 to
I just used Android SDK Manager to update Android SDK Tools to revision 17,
I have updated my android-sdk-package from r16 to r17. I have updated the Eclipse
I have observed problems with more recent versions of the SDK(-tools) where an android
I'm having problems finding the 2.3.4 sdk in the Android SDK Manager download list.
Which android sdk should be downloaded with eclipse galileo 3.5 version. and what ADT
I have two problems with android SDK.The first is that after installing sdk manager
I have downloaded the Android SDK manager and after selecting the Updates, tools, platform
Just updated SDK and SDK tools in Eclipse, tried to run my application on
I'm trying to upgrade the Android SDK tools from revision 15 to revision 16.

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.