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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:13:29+00:00 2026-06-10T23:13:29+00:00

I am doing the android development with travis thenewboston on youtube. I’m getting an

  • 0

I am doing the android development with travis thenewboston on youtube. I’m getting an error in some lines with R. It was all working fine until i added my R.id.Exit and did a project clean then all went haywire. None of my xml files are throwing any warnings or errors. I have triple checked my spelling and i just think i need another set of eyes to help me out. Thank you in advance.

package com.apphouse.enterprises;

import android.R;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Menu extends ListActivity {

String classes[] = { "StartingPoint", "TextPlay", "Email", "Camera",
        "Data", "Example5", "Example6", "Example7" };

@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setListAdapter(new ArrayAdapter<String>(Menu.this,
            android.R.layout.simple_list_item_1, classes));
}

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
    // TODO Auto-generated method stub

    super.onListItemClick(l, v, position, id);
    String cheese = classes[position];
    try {
        Class ourClass = Class
                .forName("com.apphouse.enterprises." + cheese);
        Intent ourIntent = new Intent(Menu.this, ourClass);
        startActivity(ourIntent);
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
}

@Override
public boolean onCreateOptionsMenu(android.view.Menu menu) {
    // TODO Auto-generated method stub
    super.onCreateOptionsMenu(menu);
    MenuInflater blowUp = getMenuInflater();
    blowUp.inflate(R.menu.cool_menu, menu);
    return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    // TODO Auto-generated method stub
    switch (item.getItemId()) {
    case R.id.aboutUs:
        Intent i = new Intent("com.apphouse.enterprises.ABOUT");
        startActivity(i);
        break;
    case R.id.Preferences:
        Intent p = new Intent("com.apphouse.enterprises.PREFS");
        startActivivty(p);
        break;
    case R.id.Exit:
        finish();
        break;
    }
    return false;
}

private void startActivivty(Intent p) {
    // TODO Auto-generated method stub

}

}

I have tried a project clean and also tried deleting the import android.R; Not sure how that got there, but ya. Please any help would be awesome. My errors are being set on the ones with R.menu.cool_menu, and every R. below that.

This is xml, It is under my menu folder.

<item
    android:title="Preferences"
    android:id="@+id/Preferences"
    android:nuemericShortcut="1"
    android:alphabeticShortcut="a">

</item>
<item
    android:title="Exit"
    android:id="@+id/Exit">

</item>

  • 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-10T23:13:30+00:00Added an answer on June 10, 2026 at 11:13 pm

    In the menu item I see you have an unknown xml attribute

    android:nuemericShortcut="1"
    

    I’m not sure if this it the only problem but change it to

    android:numericShortcut="1"
    

    and try to clean the project again.

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

Sidebar

Related Questions

I am doing some development about google reader on android platform. Using google reader
I would like to start doing some Android development, and would like a cheap
I am a C# developer who is doing some Android development in Eclipse. One
I just started doing some Android app development, and I decided I'm going to
When doing Android Development where can I find a list all the valid XML
I'm doing some Android development, and I much prefer Visual Studio, but I'll have
Ive been doing some reading, and got a little confused. In Android development, is
I am doing Android Development using Eclipse. I have downloaded all the required software,
I'm trying to start doing Android development on OS X (trying is the key
I'm doing a 2D game on android, and everything works just fine. The problem

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.