how to make seperate UI in android mobile device and tablet - android

i always working in android mobile devices. i want to run my projects in android tablet devices.
so my questions are
do i have to face any compatible issue?
will same project run with different view in different target such as one for tablet one for mobile device?
in example can it set in android mainfest.xml so it can choose different view in different device
and please help about how to solve this, with some help link
thanks in advance.

Have you looked at the android developer site on this?
http://developer.android.com/guide/practices/screens_support.html
It covers the issue in detail.

Related

Android Layout resize and multiple emulations

I am going to create an app for devices with Android OS 2.1 and higher. As many developer I met layout problems and after reading about that in the official android documentation I decided to follow a way; I created 6 directory one for every screen density (ldpi,mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi). What I want to know is if I did it right, I know that layout could be not exact at 100% but could I'll meet serious problems doing that?What I should do?
The second problem is checking app in many devices in the same time, I use Android Studio and I am able to create devices and use emulators but there is a plugin or a website or something else I can use to test quickly the app in tens of Android devices without set all manually?
Thanks in advance!

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.

Starting out in Android tablet development

I recently bought a Motorola XOOM tablet to develop Android apps on. I'm running into major problems with finding resources to learn from. I know Java. The Android Dev Guide sample codes are almost all dependent on a keyboard or won't run on my XOOM. Are there any suggested places to start learning Android development, other than the Android Dev guide?
You will be creating a new avd config to specify the tablet screen size, memory constraints, SDcard size, etc. I believe that most of that can be achieved by just creating a new avd and changing the parameters in avd manager. Although You may also have to create a tablet skin to go with the AVd you created.
Please visit these links.... They breif you right from setting up the vitrual device configuration in eclipse to development of applications for tablets.
http://mobile.tutsplus.com/tutorials/android/android-sdk_tablet_virtual-device-configuration/
[2x Links deleted due to spam, 1x Link repeated]
I hope these links will help you in creating an android app for your beautifull tablet.
To start learning android,First preference goes to Android dev guide and you can also follow some tutorials ,blogs and e-books.But Dev guide provides the complete android stack.
Also check out MOTODEV. The resources are quite good especially with XOOM development.
Check out O'Reilly eBooks on eCarrel (eReader for developers app).
The app will run on your XOOM just great.
https://market.android.com/details?id=com.ambrosoft.searchlib
I also use the XOOM for development and I love it
Answers above are great, here is an addition:
http://p-xr.com

Understanding GUI in Android

I want to know that how to develop application that can run in all android devices .
I have tried to do it but I am facing problem for various devices i.e. i found different GUI in various devices ..
How can i do same GUI for all verion of android and for all screen resolution and density ???
Is there any help ??

Application for different versions and different resolution

I am in middle of learning application development.
I have created an application in 2.2 and tested that in my HTC Nexus One device.
I looks like fine. My client testing same application setup in his device (Droid2). I don't have that device to test.
He said there are some font sizes are vary and button alignments are missing. When I testing in my device everything looks fine.
So, I need to test my application in Simulator which resembles like Droid2 device. Can anyone tell me how to create emulator and setup like Droid2.
And also, is there any need to adjust my code or anything in manifest file.
Any help/suggestion will be much helpful for me to fix this problem.
Thanks in advance for your replies.
Go to this page http://developer.motorola.com/docstools/tools/ and download the emulator add-ons for any of the Motorola android family. Droid 2, Droid X, Cliq, Devour, all your favorites.
I cant comment on your code because I have not seen it.

Categories

Resources