Testing smartphone application on tablet - android

I have created a map application for android smart phones and I want it to test on real device.I want to test it on galaxy tab as I don't have android phone to test but when I am running it its UI get destorted. Can anyone suggest how to run it on tablet.

Without knowing how it's distorted it's tough to say, but you probably need something like:
<supports-screens android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
/>
in your AndroidManifest.xml inside the manifest element.

Hope you have read the Android documentation about how to handle different screen sizes. If not please read it. Because that is the best way to avoid bugs related to UI.
You said that you have upload an image, but I can't see it. If that don't work please give us more information. Sometimes app crashes if you are trying to change the orientation in real devices. Hope you have tackle that problem too.

Related

Are the Android manifest device-filtering options broken or am I missing something?

I was trying to prevent users from downloading my app on devices that are clearly incapable of running it (it's a Unity3D game), and figured I'd use android:glEsVersion and screen size as a filter to get rid of the worst of them.
With the following two lines in my manifest, Google Play filters my list of compatible devices down to (a surprisingly low) 905 valid devices:
<supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true" />
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
(Without them, I get 4489 valid devices)
One of the devices that gets removed is my own Nexus 5, but it has OpenGLES 3.0 support and a resolution way above the definition for "largeScreen", so it makes no sense to me at all.
Does anyone have any idea what's going on? GooglePlay does not say why a given device is excluded, so it's kind of hard to backtrace.
I don't think that will work, but did you try to add
android:anyDensity="true"
But in https://developer.android.com/guide/topics/graphics/opengl.html#manifest we can see :
If your application uses OpenGL features that are not available on all devices

Restrict app to be installed on android tablets and kindle devices only

Until now I was restricting my app to only run on tablets by having something like this in the manifest file:
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:requiresSmallestWidthDp="600"
android:smallScreens="false"
android:xlargeScreens="true" />
I am preparing to launch on Amazon Fire for the first time and because of the following restriction: "requiresSmallestWidthDp="600", many users will be affected as the app cannot be installed on this device. I am getting the following error message: "android:requiresSmallestWidthDp = '600'; device requires '527'".
As the Fire 2015 is the most popular tablet, I would really like to allow the app to be installed on it, but at the same time I don't want my app to be installed on phones. Any suggestion on how to achieving this?
There is no clear technical distinction between a tablet and a phone, so if you really need to filter out non-tablets, you need to resort to other filters. If it's about your app's UI, the support-screens and compatible-screens are your best bets. Just remember that some phones have a higher screen resolution than some tablets.

How to adjust the app for different screen size?

I created android app its working find and view of that app is perfect with my emulator,but when I install it in different devices layout or view is not showing properly,can any one give good suggestion for that,so that app can work same in all devices..
#Johnsan don't worry have not you ever set any property before?..here you can set either true or false...supports-screens android:resizeable="true" for more check this answer
Optimizing Android manifest file for largest number of supported devices

Android buttons turn black when pressed (if supports-screens in in the AndroidManifest.xml)

I've built a test app to demonstrate the problem.
I have an Android app which has a couple of buttons with semi-transparent gradient background.
The problem is - when the button is pressed, the space under the button turns black (screenshot provided).
After a long time of searching for the cause i've found, that the problem is caused by this entry in the AndroidManifest.xml:
<supports-screens
android:anyDensity="false"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true" />
If i delete it, everything is ok. Anyone have any thoughts on this one?
P.S
I should mention, that this may be device specific, since i have a Samsung Galaxy S phone (i9000) but with android 4.3 flashed to it (don't judge me on that :D)
It is probably to do with the line
android:anyDensity="false"
According to the official documentation on supports-screens found at Supports Screens Element,
"you should not set it "false" unless you're absolutely certain that it's necessary for your application to work."
It then references the documentation on Supporting multiple screens which says that if it is false, the drawing operations can have unexpected behaviour. See Supporting Multiple Screens, point 2 on Auto-scaling of pixel dimensions and coordinates.
Hopefully this provides an explanation.

Android Edit text and Button widget appears blurry in tablet

HI stackoverflow friends,
On recent days I am facing an issue in android layout. I have a made an app that needs to run on android phones and tablet. So I made independent layouts for phone and tablet as descrided in android developer document. But my edittext and button appears a blurry in tablet but it works perfectly in phones up to 2.3 .My design is same in both.During design time ,graphical layout show the correct as I need. On running on emulator and on actual device it appears as below. But It perfectly ok in phones(2.3).
Tablet layout.
Phone layout as I need
I have noticed that when my layout screen becomes large it becomes blurry feel.
I couldn't figure out what mistake happened to me.
UPDATED
In my Manifest.xml I have added
<uses-sdk android:minSdkVersion="4"
android:targetSdkVersion="13" />
<supports-screens
android:smallScreens="false"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens= "true"
android:anyDensity="true" />
But no effect.
Any help would be appreciable.
It might be in compatibility mode. From the documentation,
"...if your application does not successfully follow the guide to
Supporting Multiple Screens, then it might encounter some rendering
issues on larger screens."
The manifest needs to be adjusted to disable compatibility mode.
http://developer.android.com/guide/practices/screen-compat-mode.html
I figure out my issue. By setting theme in application element
android:theme="#android:style/Theme" in manifest.xml file.
<application
android:label="#string/app_name"
android:icon="#drawable/logo"
android:vmSafeMode="false"
android:theme="#android:style/Theme">
Thanks to all for supporting me.

Categories

Resources