Move from tablet to phone - android

I have developed my app for tablet. Now I need to convert it to run on phones. What changes to I need to make? Are there any particular steps I need to follow? I tried deploying the app as-is on the phone emulator, but stuff appeared to be cut off.

You've asked a general question, so the best I can do is give you a general answer. The steps and procedures outline here should be just what you're looking for. In a very general sense, you're simply going to want to have different layouts for different screens sizes. Android makes this very easy to do with their resource "buckets".

Related

How do I ensure that the layout on android studio matches the output on the emulator?

I don't know the answer to the question posted at https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=155879.
How do i sort it out please as I was kindly asked to refer this and other questions here?
For one, your emulator is using a Nexus 5 layout, and your preview is using a nexus 4. This is causing the difference
For two, please don't link to external sites with your question, but posting it directly on SO it ensures that others who come in the future will be able to see the question (what happens if the external site goes down, or changes it's link structure)
For three, please make your layout flexible to different screen sizes as you will not be able to control what devices your users will be running your app on. (unless you are only using this app in a controlled environment, and not releasing it to the public)

images in real android 4.0 device are not looking same as in emulator

i am developing an application for android 4.0. that app in emulator is looking in good size but when we check that application in real device, all images in apps are being very small in size. what should i do? please help me.
If I am following you correctly you are under the illusion that the emulator will mimic a device exactly? And that because your design looks good on the emulator it will translate exactly over to the device?
If that assumption is correct then you need to be aware that the emulator is never going to give you that kind of accuracy. From my own experience the emulator will help as a guide but it cannot and should not really be used as a like for like match against a set or specific device. This all comes down to the fact that different phone manufacturers use different chipsets and render their screens differently to each other. The best thing you can do is to effectively follow the guidelines here http://developer.android.com/guide/practices/screens_support.html to provide a layout that closely resembles what you want.

Android Phone & Tablet compatibility

Simple question,
I make an application for my phone (android froyo).
Is it will run on android froyo tablet ?
Or I must make some modification to make it work on tablet ?
Simple answer: It may run on the tablet - try.
Not so simple answer: It depends on whether you use some features of the phone and whether those features are available in your tablet. For example, if your tablet does not have GPS and you are developing location aware applications, that obviously is not going to work. Another thing to take care of would be the usability of the application. Your UI would most probably be designed with the phone's form factor in mind. That may not look exactly appealing on a large screen device like the tablet.
So long as you use the appropriate <supports-screen> tags in your Manifest.xml file, yes. However, I'd strongly suggest you go about making a tablet UI, because users don't like phone UIs stretched on a tablet screen. This document might help you with that.

App not fullscreen on tablet

Is there a way to make sure an application runs in a small screen on a tablet? I need to give a demo of my app with a beamer. I'm going to use my tablet with micro-hdmi... But the app is shown on fullscreen. And it's ugly. It is designed for smartphones only... Someone knows how to do this?
try to run in the app in Compatibility Mode
http://developer.android.com/guide/practices/screen-compat-mode.html
and try to fallow UI guideline to Supporting Multiple Screens to look it fine
http://developer.android.com/guide/practices/screens_support.html
Timon, I believe that, in general, there is no quick and easy way to do this, but it is possible. What you could do - and I am not sure if your demo warrants all this effort - is to root your tablet device and then finding and installing a custom ROM that allows a custom DPI value to be set on a per app basis.
Of course, the above assumes that this app is written by someone else and you do not have the source code. If, however, it is your own app, then I would follow Dheeresh Singh's recommendation.
Hope this helps. Good luck!

Best way to test Android layout before submitting to market

reading about all these different resolutions and hardwares for Android I am a little unsure if the layout I created for an Samsung Galaxy will actually work the same way on all (most) Android devices.
I did not use anything fancy or complicated. However I had to use fixed width in several places to align text and buttons nicely. ALso there is some text with linebreaks that could look differntly if on narrower screens
How can I be sure that my layout will work on other devices? Or is this actually a no issue? Testing in the debugger is sooooo slow, that I actually never got it to work properly.
Thanks very much!
You can set up multiple emulators with different screen sizes, that simulate the possible targets.
In the emulator Ctrl-F11/12 (thanks #ccheneson) allows you to change the orientation, so that you can test that as well.
The emulator may be slow, but to see how the layouts look like it should be fast enough - you may still test the logic on a real device.
Also emulator speed seems to be highly dependent on the screen size.

Categories

Resources