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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:45:45+00:00 2026-06-07T14:45:45+00:00

All right, so I’m making a game for Android. For the menu screen, I

  • 0

All right, so I’m making a game for Android.
For the menu screen, I want to have the logo floating in the background, from right to left and vice versa. That doesn’t seem too much of an issue, but I want it to be at random heights, and not out of the screen, so I’ll need the resolution. I found the following script in the answers to this question:

Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
int scrHeight = size.y;

Unfortunately, I get an error in line 3:

Multiple markers at this line
- Syntax error on token "size", VariableDeclaratorId expected after this token
- Syntax error on token(s), misplaced construct(s)

I don’t know what’s wrong (I basically ctrl+c,ctrl+v’d it), and I feel kind of reluctant to use getHeight() since it’s deprecated…

And then one tiny extra question: getSize was implemented in SDK 13, right? Does that mean it doesn’t work on phones released before SDK 13, or is that something I can ignore?

Thanks already!

  • 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-07T14:45:47+00:00Added an answer on June 7, 2026 at 2:45 pm

    Yes you’re right, this method won’t work on pre AP13. You have to use display.getWidth(); and display.getHeight(); before API13.

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

Sidebar

Related Questions

All right so I tried using the button set. So fair, I have been
I want add my custom sidebar next right column all page. Please check this
All right. The problem here is pretty abstract. Bear with me. I have a
All right real quick question guys. I know that C# Forms have the OnPaint()
Possible Duplicate: What Advantages of Extension Methods have you found? All right, first of
All right, so here's a challenge for all you SQL pros: I have a
All right, let's say I have the following plot. df = data.frame(date=c(rep(2008:2013, by=1)), value=c(303,407,538,696,881,1094))
All right, so I'm programming in R and I want to make a C++
I have created a HTML page for Blackberry. I have done all right but
All right all, So I've got a UITableView that is inited in applicationDidFinishLaunching like

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.