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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:36:38+00:00 2026-06-16T00:36:38+00:00

I have to set a new sprite on background sprite. Background sprite has dimensions

  • 0

I have to set a new sprite on background sprite. Background sprite has dimensions set according to dimension of device get through pixel format ..

I am using andengine and ratio Resolution as well but ..

Problem is little bit complex.. I tried to use pixel let say

Glaxy S3 ha *dimensions 720*1280 And required sprite location is (584,608)

so i set in manner ( CAMERA_WIDTH/1.233f,CAMERA_HEIGHT/2.112f)

BUT HTC experia has dimensions 320*480 So the required positions according to

( CAMERA_WIDTH/1.233f,CAMERA_HEIGHT/2.112f) is (2599.5,227.27)

but this wrong according to display… when i set it on (244,172) for experia its working perfect…. please help.

  • 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-16T00:36:38+00:00Added an answer on June 16, 2026 at 12:36 am

    in the method :

    public Engine onCreateEngine() {
    this.camara = new Camera(0, 0, camara_width, camera_height);
    return new EngineOptions(true, ScreenOrientation.LANDSCAPE,
    new FillResolutionPolicy(), this.camara).setNeedsSound(true).setNeedsMusic(true);
    }
    

    the parameter “new FillResolutionPolicy()” auto resize the width and height you only need make for a one resolution and the app run in any smartphone

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

Sidebar

Related Questions

I'm using the the new UIAppearance API and have successfully set the tint color
So i have just set new Error Handlers in httpd.conf for custom error pages:
I'm new to c++ but have set my mind on a specific task that
I'm fairly new to WebService developement and have just set up my own webservice
I have a set of integers: public ObservableCollection<int> Scores = new ObservableCollection<int> { 10,
I'm pretty new to Entity Frameworks. I have a set of Static Data which
I have a gridivew with auto-generated fields, whenever there is a new set of
I have a piece of code like this: HashSet<Object> Set = new HashSet<Object>(); //add
I basically have a server set up and I'm accepting new clients(UNIX) and i'm
I have a TreeGrid with selection appearence set to checkbox. TreeGrid resultGrid = new

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.