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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:05:24+00:00 2026-05-25T03:05:24+00:00

Aim :- to set background image in my application that fills the device both

  • 0

Aim :- to set background image in my application that fills the device both in portrait and landscape mode

Tool used: Phonehgap with eclipse

Problems encountering:-

  • 1)my image is fitting according to device width in portrait mode but
    case is not same in case of height it fills only 50% of the device
  • 2)on switching to landscape mode in android emulator the image
    flashes and disappear in 2 secs

Codes added by me after googling:-

1) in main.xml

  <WebView android:id="@+id/appView"
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
      />

2)in activity.java

import android.util.Log;
import android.view.Display;
import android.webkit.WebSettings.RenderPriority;
import android.view.WindowManager;
import android.content.Context;

3) in index page

  <meta name="viewport" content="target-densitydpi=device-dpi"  />
or 
<meta name="viewport" content="user-scalable=no, width=device-width" />
<link rel="stylesheet" href="homepage.css" type="text/css" media="only screen and (max-width: 480px)"/>

Note:- rest of the code is simple html and css and all that phone gap modification we have to do

Favour i want:- while telling code please tell also where to include that also, as i am new to eclipse and phonegap

thanx in advance

  • 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-05-25T03:05:25+00:00Added an answer on May 25, 2026 at 3:05 am

    use jquery mobile and do no make any changes in tool using as platform (say eclipse for android)
    and filling image to size of device is simple css

    {
     background-image:url('Images/indeximage.jpg');
     background-size: 100% 100%;
     background-repeat:no-repeat;
     background-position:100% 100%;
     top: 0px;
     left: 0px;
    
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get an AIM Bot set up in C# and I
I aim to filter my Google results right at terminal such that I get
Should we aim for DRY, in the sense that changes to the functionality affect
The gist of the question is: Do you know any projects that aim to
I am set to create a file explorer using Java. The aim is to
I am using PHP to iterate over the following result set, the aim is
I have a set of Meeting rooms and meetings in that having start date
First Some Background I'm planning out the architecture for a new PHP web application
Background: I will be working on tools that will be dependent on a rapidly
The aim I would like to set such size for the DataGrid (standard, from

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.