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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:48:11+00:00 2026-06-08T10:48:11+00:00

I am trying to create an animation for a mobile phone app in android,

  • 0

I am trying to create an animation for a mobile phone app in android, and have created an image that is 320pix high. But when he appears at position 0,0 on my Galaxy S3, he’s a bit small…. (Portrait mode and landscape). I would prefer to not create large images for such a high resolution, so is there a way to set the screen resolution to something like 640×480 or maybe 1024×768? It seems to be at it’s highest possible resolution at the moment.

I am BRAND NEW to Java and android. (.Net background). I am using Canvas and SurfaceView. I’m hoping there is a SetResolution type method… Hope someone can assist.

  • 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-08T10:48:13+00:00Added an answer on June 8, 2026 at 10:48 am

    You cannot change the resolution of the screen easily (if that is what you are trying to do).

    So you either need to create a larger picture, or scale it to the required screen size.

    You should get familiar with all the density, resolution stuff on Android. I can highly recommend reading the Android Developer Documentation on Supporting Multiple Screen Sizes. It does contain a lot of useful information about that topic.

    It also helps you on how Android can resize images for you.

    In short some information on how to do it on your own:

    You can add a SurfaceHolder.Callback to the SurfaceHolder uses in your SurfaceView. This callback has a method, that is called, when the screen resolution changes. You can create a static class, to which you will pass the new size of the screen. This class can calculate the ratio of the screen, and you could assume that you are working always with a 800×480 screen (or whatever you like). You use a method like double MyCoord.x(int). You pass an x coordinate — within your assumed 800×480 screen — and the method returns the real coordinate on the screen, according to the size, you have passed to your static class, from the SurfaceHolder.Callback.

    That would be ONE possibility you have. To find more detailed explanations and more possibilities, you should read the Developer documentation, that has in my opinion, quite good examples on the most topics 🙂

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

Sidebar

Related Questions

I'm trying to create several buttons that have 4-5 frames of animation in them,
I am trying to create an animation drawable that will simply have two frames
I am trying to create an animation that is a view i have put
I am trying to create a moving ball animation in my app everything is
I trying to create an animation with JQuery that scrolls 1 word in a
im trying to create ball animation using gdi but i can't get it working.
I'm trying to create an animation that would look like 2 french doors (or
Hi all im trying to create a loading animation with html and JQuery that
I'm trying to create a looping animation that starts on onmousedown and stops on
I have about 100 elements in like and am trying to create an animation

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.