Android :: Supporting Multiple Screens - Document Contradict Itself

Jun 11, 2010

In the Supporting Multiple Screens document in the Android Dev Guide, some example screen configurations are given. One of them states that the small-ldpi designation is given to QVGA (240x320) screens with a physical size of 2.6"-3.0". According to this DPI calculator, a 2.8" QVGA display equates to 143 dpi. However, further down the page the document explicitly states that all screens over 140 dpi are considered "medium" density.

So which is it, ldpi or mdpi? Is this a mistake? Does anyone know what the HTC Tattoo or similar device actually reports? I don't have access to any devices like this.

Also, with the recent publishing of this document, I'm glad to see we finally have an explicit statement of the exact DPI ranges of the three density categories. But why haven't we been given the same for the small, medium, and large screen size categories? I'd like to know the exact ranges for all these.

Android :: Supporting Multiple Screens - document contradict itself


Android :: Supporting Multiple Screens / Most Optical Way To Design Application?

Jun 9, 2010

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?

View 2 Replies View Related

Android :: Making Game's Logic Supporting Multiple Screens

Jul 25, 2010

I've read the article "Supporting Multiple Screen" on Android developers site. But that doesn't apply to game logic.Let me get straight to the point. My situation is as follows:

- I'm creating a game using LunarLander code as a base.

- In my game, there'll be an object flying up from the bottom of the screen. The object will fly in projectile motion.

- I set the starting velocity, gravity and angle so that the highest point(of projectile motion) is almost at the top of the screen.

- The screen tested is Motorola Milestone. (480x854 resolution) Meaning the object travels around 854 pixels vertically.

I'm thinking of adjusting starting velocity based on screensizes. But that sounds unreliable when we've so many devices/resolutions out there. How do you combat these kind of problem when making games?

View 3 Replies View Related

Android : Get Resolution - Programmatically Set Layout Folder / Supporting Multiple Screens

Aug 19, 2010

My application will have two layouts, one for large screens and one for normal. For testing I'm working with one phone (800x480 240dpi) and one tablet (1024x600 240dpi) but both are detected as large screen hdpi and long aspect ratio, so I'm not able to assign different layouts.

The only approach I think that can work is to create layout-large and layout-normal, get the resolution and programmatically set the layout folder. Is that possible?

View 6 Replies View Related

Android : Displayed Bottom Portion / Supporting Multiple Screens In Devices?

Sep 2, 2010

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 Related

Android : Nexus Devices Alignment Of Listviews Goes Wrong - Supporting Multiple Screens

Oct 18, 2010

I 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>

View 1 Replies View Related

Android :: Supporting Smaller Screen Sizes - Supports-screens

Oct 30, 2009

I have had several emails from people with HTC Tattoo devices who say they cannot find my app in the Market.

After reading this page (http://d.android.com/guide/practices/ screens_support.html) I believe I have to add the <supports-screens> tag to my manifest file. However, when I try to do this I am confronted with "Error no resource identifier found for attriute support-screens in package 'android'" messages. What does one have to do to update their manifest to tell the market an app supports all screen sizes?

Furthermore, if I need to change the android:minSdkVersion from "3" to something higher or add the android:targetSdkVersion tag, will this prevent people with older versions of Android from using my application?

View 4 Replies View Related

Android :: Supporting Multiple Screen Sizes Using Image Buttons

Apr 13, 2010

I've read the Android documentation:
http://developer.android.com/guide/practices/screens_support.html
but still have some questions. I'm trying to design a music application which basically has images of the instrument (ImageButton) that play a sound when clicked. However, I'm confused about how to have the ImageButtons scale to fit all the different screen sizes and how to position them.

Which layout is best used for needing to position ImageButtons in specific locations on the screen? (i.e. cymbals on a drum set) FrameLayout, RelativeLayout? If I only really care about medium and large screens, do I need to create different resources (images) for both as well as a different XML layout to position them? I'm trying to find the simplest way to do this without having to create a separate layout XML file for positioning/size and separate image resources for each screen.

View 1 Replies View Related

Samsung Vibrant :: Put Shortcut To Word Document That I Downloaded On Launcher Pro Home Screens?

Sep 9, 2010

How do I put a shortcut to a word document that I downloaded on my launcher pro home screens? I don't wanna keep going into the files app to find it.

View 3 Replies View Related

Android : Using Multiple Layouts For Different Screens

Dec 3, 2009

I am getting my feet wet developing software for the Android. My test app will have multiple screens (each having their own layout file). The main screen will direct the user to view the other screens based on user input. I kinda see this as layers of cake. Bottom layer being main; then you add and remove layers as the user makes UI inputs. The crazy trouble is how to view a second layer. I have created a second class which has its own onCreate method, which has its on setContentView(R.layout.secondlayer).

This class extends Activity much like my primary class does. I have a click event on a button within the main layout. This button will instantiate the new second layer class which I have done. And that is where my story endsI don't know what to do from this point. This is surely a newbie question If someone has an example that would be extremely helpful teach me to fish and I will be on my way.

View 6 Replies View Related

Android :: Multiple Screens In One Activity Like Home Screen?

Oct 9, 2009

I am working on an application where I wish to have multiple screens (each of full display size) attached to each other horizontally, and switch between them by using the finger (swipe right / swipe left). The home screen does exactly what I want, but its implementation seems to be more complex than I thought. What would be your preferred way to achieve this functionality? Is there any Layout or View that I could reuse? More generally, it should work with the 1.5 SDK, so the gesture interface is not available.

View 3 Replies View Related

Android : Independent Wallpapers On Multiple Screens While Scrolling?

Oct 29, 2010

Could it be possible to make each screen have a different wallpaper while scrolling? I mean, taking as an example a case with three screens, it will be necessary to set a x3 screen width wallpaper to fit 1/3 on each screen, or directly setting different images for each screen. so the scrolling make it visually a different wallpaper on each screen rather than sliding the wallpaper a 50% each side.

View 2 Replies View Related

Android : Group Of Views Controls On Multiple Screens

Aug 15, 2010

I am working on an Android project where a group of buttons needs to show on the bottom of every screen (activity) in the application. The group of buttons are basically a navigation bar. I want to know the best way to do this without creating new buttons for every activity. I have been around programming (C++/C#) for many years but am pretty new to Android and Java so if someone can point me in a general direction.

View 2 Replies View Related

Android :: Layout For Multiple Screens / Emulators With Same Resolution But Different Density

Nov 11, 2010

I am trying to develop an application for which I want multiple screen support. I have read the Android article on Best practices for Multiple Screen Support. As per the article we have to follow 3 important things

1. Mention support for different screen sizes(large, medium and small) and any density in AndroidManifest.xml.
2. Place images of 3 dpi's (120, 160, 240) in 3 folders res/ldpi, res/mdpi and res/hdpi.
3. In layout's the dimension should be mentioned in "dip" units. Then Android will take care of the scaling on its own.

I have implemented all these points in my project. The images are picked up correctly from the appropriate folders. But the arrangements of the controls in not same.
e.g. I ran the app on three emulators
1. Resolution 240*320 dpi 120.
2. Resolution 240*320 dpi 160.
3. Resolution 240*320 dpi 240.
(All the emulator have same resolution but different density.)

The problem is the position of the controls is not same on all the three emulator. As per my understanding if the android:layout_marginLeft and android:layout_marginTop are mentioned in "dip" then this problem should not occur. As the density of the emulator increases the controls get placed more towards the right. Is it absolutely necessary that I provide layouts for all combination's of screen dimension and density even if the layout is same for all the devices?

Images:
https://docs.google.com/leaf?id=0By3GYC3k5AMDNzUwNjkwMWEtOGQzZC00MjQ0LWE2OTgtYjFhYzZmM2ExOGVl&hl=en&authkey=CLOEsZsI

View 1 Replies View Related

HTC Incredible :: Moving Multiple Applications Between Screens?

May 11, 2010

Is there a way to move multiple apps between screens?

View 2 Replies View Related

General :: Galaxy S5 Running 4.2.2 - Multiple Lock Screens

Jun 12, 2014

I have the galaxy S5 running 4.2.2

I hate having the phone wake up in my pocket after unlocking with either fingerprint or pin.

The phone is set to lock after 5 minutes of inactivity - but if bumped in the pocket, the phone wakes up without the swipe lock screen.

Is it possible to use a combination of two lock screen types?

View 3 Replies View Related

Samsung Captivate :: Filling Up Your App Screens - Not Home Screens

Jul 27, 2010

I 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 Related

Android :: How To Get Packages / Which Not Supporting SDK?

Apr 24, 2009

I have see some apps in Android that use some packages:
import android.net.http.EventHandler; import android.net.http.Headers; import android.net.http.RequestQueue; So some packages do not support the current version of SDK. Where can I find it? Would u tell me about it?

View 2 Replies View Related

Android :: Supporting Right To Left Languages

Oct 27, 2010

How can I localize my application to support some Right to Left languages? How can I localize my application to support Hebrew? Arabic? and other languages?

View 1 Replies View Related

Android :: Supporting 1.5 Features From 2.1 And No Reflection?

Jul 30, 2010

I currently have an app on the market that supports Android 1.5 (SDK level 3) and up. It also takes advantage of several features that are only present in Android 2.0 (SDK level 5) and up. I do this using Reflection.

I read a post on the Android Developer Blog that talks about how to support these new features while using no Reflection, which would be amazing. http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="5" />

I have tested this out and while it works there is one huge downfall. Currently if I try to add a SDK level 5 class, but I don't know that it's a SDK level 5 class, there is no worries. Eclipse isnt going to find the class and I'm not going to be able to add it.

Using Google's recommended method does allow me to add the classes and gives me no notification that this code is targeted just to SDK level 5 users. This opens up too big of a possibility of adding in code that would break some users without knowing.

Does anyone know of any plugins, options, etc that would warn me at the places I have targeted SDK level 5 to keep this from happening?

View 1 Replies View Related

Android :: Portrait / Landscape Mode Supporting

Mar 31, 2009

When we try to implement orientation in AP layer, we can set "android:screenOrientation" parameter in AndroidManifest.xml file or call "setRequestOrientation()" method of Activity class. But if I want to porting android in new HW device, how can I do? Do I need to modify the graphic driver, or just add configuration in program. (Actually I do some experiments but my AP cannot rotate) Besides, can every experts tell me when I set the "android:screenOrientation" parameter, which process will read this configuration, pass to where and which process will do the rotation?

View 2 Replies View Related

Android :: Phones Supporting H.264 Video Streaming

Jan 15, 2010

I am new to Android. Can any one please tell me the phone models which support RTSP video(H.264) streaming?

View 1 Replies View Related

Android :: Donut WVGA Supporting Apps

Sep 15, 2009

Are there any apps in the DONUT sdk that has support for the WVGA (looking just not for resized or compatibility mode, but having the proper assets to support 240dpi WVGA) Just looking around, dialer look awkward, so does few others ..

View 5 Replies View Related

Android : Dolphin Browser Not Supporting Downloads

Dec 17, 2009

I was hesitatnt to download it, but I love tabbed browsing so i figured I'd give it a shot. Well i love the browser itself, but I tried downloading a ringtone from myxer.com and it says it cant finish downloading because i need to clear space on my phone. But i have space and i tried using the stock browser and it worked fine.

View 1 Replies View Related

I7500 :: Samsung No Longer Supporting Android On Galaxy

Nov 26, 2009

O2 forum has launched a Poll regarding the Galaxy i7500, pls cast your vote O2 Forum :: View topic - Samsung no longer supporting Android on Galaxy

View 3 Replies View Related

Android :: Any Reason For Not Supporting Capital Letters In Image File

Feb 17, 2009

We understand aapt has support only for small and numbers. Any reason for not supporting capital letters.. in future could we expect support for the same.

View 4 Replies View Related

Android :: Video Files Playback Over HTTP - Supporting Formats

Jul 9, 2010

I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video. If we use H.263(video) - AAC LC (Audio) audio-video codec used for our media files will we be able to play the video by passing the URL to MediaPlayer class?

I did a little experiment and passed URL of one of the video files(.mp4) to the MediaPlayer class and got the following error:
Command PLAYER_INIT completed with an
error or info
PVMFErrContentInvalidForProgressivePlayback

From the docs, I came to know that for progressive playback, the video's index (e.g moov atom) should be at the start of the file. Questions:
1. How do we make our videos Android-ready?
2. What are the different considerations that we need to make?

View 1 Replies View Related

Android :: How To Contribute To Project On Supporting - Rendering Non-English Language ?

Aug 15, 2010

I have just started with Android development and bought a handset(HTC Hero) for test and usage purposes. The sad part is that it doesn't display one of the scripts (Devanagari to be precise). Hence, I would like to contribute to the Android project to help render it. However, since I have just started I have no ideas of where to look for and begin with !

To be very precise, I would like to contribute for proper rendering of Nepali Language (Devanagari Script) for the Android OS. For ex. I would like to be able to see the following in an Android device rendered properly......................

View 2 Replies View Related

Android :: Listview Not Supporting If List Extends Screen Size

Oct 20, 2010

I created a list view in an activity and the list shows some fields.When we click a list item a custom dialog should pop up and the user can enter some new value to this field.The custom dialog contains one edit text and two buttons ok and cancel.It is working fine.But when my list is more that means if it exceeds screen size it is showing scroll.But when we select bottom items which we can select using scroll the dialog is appearing in normal fashion.But after entering new value if i am trying to save the application is getting crashed.

View 3 Replies View Related

Android : Open ID For Apps That Require Sign In / Supporting Framework?

Jul 25, 2010

I am a fresh developer on Googles Android Platform - my HTC Desire arrived last week. Now i need a way to sign in to my existing application (Java, currently running on jetty). The server Application is developed using spring security 3.0.2

In my case, i want to support the following: If a user has set up his Android phone with a googlemail/google-Account (and most users do) i want to use this account credentials to automagically log in to my server app.

Is there any Android framework supporting that use-case? Or are there any alternatives? I read: http code.google.com intl/de-DE/apis/accounts/docs/OpenID.html

How we do sign in with an app on google AppEnging is described here: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved