Android :: How Can Resize Application For Different Screens On Different Devices
Dec 23, 2009How can we resize our application for different screens on different Android devices?

How can we resize our application for different screens on different Android devices?
I am very new to android,i developed an sample web application and hosted it apk build file in different android version and on different sized devices,here i am getting problem in my design of layout such as listview not being displayed properly bottom portion is not displayed well and the align is not so good.
View 3 Replies View RelatedI have developed an application which en-composes list views and posted that .apk file in my htc device, the design and alignment everything works fine,but the problem When i am testing in various devices such as Morotolo Droid,Nexus Devices the alignment of Listviews goes wrong, so i planned to use the Layout folder as layout-hdpi,layout-ldpi, and layout-mdpi, for that i changed my manifest file as
<supports-screens android:largeScreens="true"
android:normalScreens="true" android:smallScreens="true"
android:anyDensity="true" />
Is it right putting android:anyDensity="true",also i used dp instead of dip. I went through this url, but still am not able to get a clear idea in this
http://developer.android.com/guide/practices/screens_support.html. so friends pls tell me(help me) to get clear idea in this and tell what mistakes i have doing. This is my main page xml code frnds.
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background_retinav2">
<LinearLayout android:layout_gravity="center" android:foregroundGravity="bottom" android:background="@color/white" android:id="@+id/rl_1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal">
<ImageView android:paddingTop="3dp" android:id="@+id/starthideimage" android:layout_width="30dp" android:layout_height="35dp" android:src="@drawable/newback" />
<HorizontalScrollView android:paddingTop="8dp" android:id="@+id/gv"
android:layout_width="wrap_content" android:layout_marginTop="0dp"
android:layout_height="wrap_content" android:background="#ffffff"
android:scrollbars="none" android:layout_weight="1" android:foregroundGravity="bottom">
<LinearLayout android:id="@+id/san_tag" android:layout_width="wrap_content" android:layout_height="wrap_content">
</LinearLayout>
</HorizontalScrollView>
<ImageView android:paddingTop="3dp" android:id="@+id/Endhideimage" android:layout_width="30dp" android:layout_height="35dp" android:src="@drawable/newforward" />
</LinearLayout>
android:id="@android:id/tabs"
android:gravity="bottom"
android:layout_gravity="bottom"
android:listSelector="@color/gray"
android:layout_width="fill_parent"
android:layout_height="wrap_content" /> </TabHost>
Is there any way for me to resize an app to make it smaller and placing it top left? I understand that there is a theme -> Dialog its possible to make the window size smaller but is it possible for me to dictate the x, y, dx, and dy where the dialog has to be placed?
View 2 Replies View RelatedI want to develop application that should support all version (latest and old) and it should adjust screen resolution (large,medium). I read document. There I found legacy application if I develop application in 1.6 there I am giving:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
Is it good way to develop application and is it support 1.5 and 1.5+. Users able to find my application there market.
I have read the topic about supporting multiple screen size as well as different DPI. I am wondering which of the following way is better in supporting multiple screens:
1. Have different layout for different screen size (stretch the images)
2. Have different set of graphics for different screen (use the same layout)
3. Have different set of graphics and different set of layout for each of the screen
Which way is the easiest? And which way is the most optical way to design? Or is there another better way?
I'm nearly ready to publish my OpenGL game. I've been browsing this newsgroup and I've seen quite a few posts regarding crashes, blank screens, etc when running an OpenGL application on the Droid. I have three questions:
1) What are some common pitfalls that occur when trying to support the Droid/Nexus One? So far, I've tested my game on the Android 2.0 emulator (both WVGA & FWVGA) and everything works fine but I'm still paranoid.
2) I've placed my textures (png) in the assets folder. Will these images be pre-scaled automatically? I've read about specifying density independent images for resources but do the same rules apply for images stored in the assets folder? I'm afraid that pre-scaling will cause my textures to become non-power of 2.
3) What additional strategies have developers been taking to ensure their application works on the newer devices when they only have access to G1/G2 hardware?
Today, I placed our new app onto the market store. It can be found by most mobile phones - unfortunately, it cannot be detected by one specific model which is used by one of our customers. It is the Vodafone 845, with a small screen (240x320p) and low density (120 dpi). It's running with Android 2.1, updated version (i.e. SDK 7), and has all the necessary hardware (GPS, cam, and internet access), but, however, doesn't detect the app in the market. I have already tried anyDensity="true". The app is free, not copy protected, and open to all countries. I have the following settings in the manifest:
xmlns:android="xxx"
package="xxx"
android:versionCode="10"
android:versionName="1">
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true".............
i have written an application that needs to process outgoing calls. Everything works fine, the application has already a few hundred downloads, but now i get feedback from people who would like to download it, yet cannot find it. I have done some tests and have found that the permission "PROCESS_OUTGOING_CALLS" seems to be responsible for this. If i include it in an app, people with branded phones (at least in Germany) cannot find it, as soon as i remove this permission, everything is fine (when i re-insert it again, the app vanishes again)
The weird thing is, that those users can see other apps which use this permission in the market. I have compared my manifest file to outputs from other manifest files and cannot understand why it doesn't work. Here is the manifest file for a test application i wrote to test the problem:......................
I added the application into Android market, but some phones(i think with android lower than Froyo(2.2)) does not find it!
my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
package="com.skkap.utimetable"
android:versionCode="2"...................
i have received complaints from a number of customers that one of my paid apps is missing from the market and they can't download it after updating their phones to 2.2. I have no idea what the cause is and unfortunately i also don't have access to a device with 2.2. Maybe someone here can tell me what i'm doing wrong?...................
View 3 Replies View RelatedFor my first application, the only testing I've really done to this point is on my Droid X. I want to think through the various hardware differences and come up with a testing plan that is representative of the Android landscape. My initial thought is to create a list of emulators that have unique qualities such as screen size and SDK levels. I've noticed very quickly how the UI of my application will need some adjustment when viewed on devices that don't carry a 4.3" screen. How have you approached this hurdle in your own development? Chris Stewart cstewart...@gmail.com http://www.androidsdkforum.com *Want to advertise your Android application for free? Email me for details!*
View 9 Replies View RelatedI have an application published in the Android Market. Its target is 1.6 and its minSdkVersion is 1.5. The only persmission it uses is INTERNET. My Manifest file looks like this: I recently got an email from a user saying the application doesn't show up in the Market on an HTC Wildfire. I looked it up and the Wildfire is a QVGA (LDPI, 240x320) device running Android 2.1. The app does appear for MDPI and HDPI devices. Also, I can start up a QVGA 2.1 emulator and install the application without any problems.
View 3 Replies View RelatedCan we run our android application in all iphone devices?
View 5 Replies View RelatedMy android app is not in the app store yet. Is it possible to send my app to someone, and they install it on their device. Something like iphone AdHoc?
View 3 Replies View RelatedHow can I make it so that my application is seen on the Android Market only by devices with mdpi and hdpi densities. There is the <supports-screens> tag and there is the anyDensity parameter but I don't see how I can say what I want. If I set anyDensity to false, what does that mean? Where do I specify which densities I do support?
View 2 Replies View RelatedI am implementing the client side of some java application for Android devices which requires a lot of user interaction, image loadings and JSON object parsing. I'm trying to decide whether to implement it with html5, flash or Android native code.
View 1 Replies View RelatedI installed the application tripping II. I think its called and I applied it and it has made my phone only have 3 home screens and I thought deleting the app would sort it but it hasn't
what could I do to make my phone go back to how it should be?
I am just wondering if there is like a app where the widgets just move rather than both the widgets and background move when you are swiping from screen to screen
View 1 Replies View RelatedHow do you move an icon in application menu from one screen to another? I know I can rearrange icons by clicking menu button then edit, but I can't move an icon from one screen to another. The same goes in application menu and in home menu.
View 7 Replies View RelatedI know how to remove widgets... you long press on them to move them/delete them. My problem is this: I don't know how to remove regular icons on the Hero. On the Moment, everything was simply long press to remove. On this, long pressing the application icons on my home screen(s) just opens the associated programs. I kind of wanted to move them around, I don't wanna have to delete a scene everytime I want to move one icon around.
In short: How do you move/delete application icons from the home screens? (long pressing doesn't work for me)
How To Transfer TEXT MESSAGES from WP8.1 devices to Android Devices ??And also the contacts!!
View 2 Replies View RelatedI had a little time with the captivate today and noticed it has 4(i think) horizontal scrolling screens for apps. What happens when you fill those? Does it automatically add another one or what?
View 2 Replies View RelatedCan I have two separate google play accounts for two different devices & keep one gmail account for both devices?
View 6 Replies View Relatedmy app works fine on samsung galaxy and nexus one. It is giving problem on htc incredible. How should I test my application for various phones?
View 4 Replies View RelatedI am developing my am on mac (10.5.8), on eclipse and SDK 1.6 and a Vodafone HTC Magic Everything was working ok up to a few days ago. I can not see my device on adb devices. I also got a Sony Xperia and I can not see it on the list either. I upgraded the phone software (the HTC) to 1.6 a few days ago. Maybe that is what caused the change, but I could not be sure.
View 2 Replies View RelatedI would like to create a dialog-style form which would fill the bigger screen area (left, right, top, bottom padding 10px).
View 2 Replies View RelatedI want to resize a bitmap and write to a file. what's the best way to do that?
View 2 Replies View RelatedI'm retrieving image from URI and displaying in Imageview.I need to re-size image from URI to fit size of the Imageview.Please help me how I can do this.
View 1 Replies View RelatedI need to have my view resize itself based on the orientation. After extensive googling (maybe i was using the wrong terms) I could find nothing telling me how to detect when the orientation was changed. Here is my layout file: how do I have it automatically resize itself? I want each item (the EditText and the WebView) to fill half the screen (not counting the title/notification bars). I set the height to absolute and not wrap_content because wrap_content defaults to 1 line for EditText and nothing for WebView. and fill_parent has the EditText on top of the WebView.
View 9 Replies View Related