how to support an apk for both mobile and tablet - android

i am developed one apk for mobile(4 inch)..
same apk i can put tablet means total gui changed ..
i want my apk can put any mobile or any tablet . the gui cannot changed ..
please how to achieve this problem..please suggest me
what ever the screen resolution my application ui can change the according the resolution

See
http://developer.android.com/guide/practices/screens_support.html
There are all infos you need to know to make sure your app look great on all devices. It's barely not that easy as you think.

Related

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!

Move from tablet to phone

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".

Android phone and Tablet problem

I know this is not a technical related question.But i do not have any idea.I am going to develop a project which should be supported in both phone and tablet.Is it possible having one project working for both tablet and phone ?
Yes. The only thing you need to keep in mind where you keep your graphics. Because it will cause different problems if you do not treat and handle them depending on the screen size. Only thing matters is the android version. If you deploy your app in any phone or a tablet where the version is newer or equal to the target version it works. But of course you cant take a call or some other mobile functionality from a tablet if its not supporting that features.
You can use drawable-hdpi,drawable-mdpi and drawable-ldpi for the graphics(images which use in project) and also use layout with multiple screen by custom layout like layout-480x320 , layout-600x1024 etc. in layout you can custom screen xml file.

Categories

Resources