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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:16:05+00:00 2026-06-15T18:16:05+00:00

I know in Java there are two kinds of integers. First is int which

  • 0

I know in Java there are two kinds of integers. First is “int” which is the primitive integer. The second is “Integer” which is a class with methods and stuff.

While programming for Android I saw another type: “integer” with all lowercase chars. It is declared in “android.R” namespace and there is only four static methods in it.

What is it? Why is it there? What is its relation with “int” and “Integer” (if any?)

  • 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-15T18:16:06+00:00Added an answer on June 15, 2026 at 6:16 pm

    R.integer is the integer resource file for integers defined in xml. Just like R.layout, R.style, R.id, R.string etc. Here an explanation what it is used for. Basically a <integer> </integer> resource element in a xml file in the res/values folder.

    Edit: oops you asked what the integer resource value in the android.R namespace was. In my explanation above, I explained how these are declared in your own application namecpace. The .integer resource values in the android.R namespace are the same, but are declared and used in the Android framework for animation durations.

    This SO question is about what the value of the constants in android.R.integer actually is. Somewhere in the android framework there is a res/values/<name>.xml which declares these Integer constants.

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

Sidebar

Related Questions

I Know there's a Vector class in java, but it seems to be just
I'd like to know if there is any class in Java able to check,
Java question: As far as I know, there are two ways to check inside
As we know , there are a lot of java decompiler tools which can
From my research I know there are two ways of using AspectJ. First is
I know that in java there's two method of packaging one application. One way
I am new to java, and came to know that there are two Right
is there any other way to know if the java String contains character-encoding in
I would like to know if there's a way in java to find out
I know that there are listeners in JavaFX, and i'm sure Java. But I'm

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.