android ( resize screen) - android

I want to ask my application only for 4.0" and 4.3" screens mobile.
When I install it to 3.0" or 3.4" mobile my full screen does not appear.
Some buttons and labels went down and not seen.
And finally I want to learn how I do this application for all mobile?
Can I do this in code ? or in manifest file?

I want to ask my application only for 4.0" and 4.3" screens mobile.
Using http://developer.android.com/guide/practices/screens-distribution.html, you can limit your app to devices with specific screen sizes.
When I install it to 3.0" or 3.4" mobile my full screen does not appear. Some buttons and labels went down and not seen.
Strange! Are you using absolute pixel values in your layouts? If you are not, the layouts will scale on any phone. Only it will not look very good.

If you want to run application for 4.0 and 4.3. you need to install 4.3. then you can run 4.0 also. if you install 3.0 or 3.4 it will run 3.4 and below the version only. it won't work for hiegher versions otherthan 3.4.

Related

Can we based on Android Studio Emulators for different display screens create the App

Can we based on Android Studio Emulators for different display screens create the App? Can we trust Android Studio Emulators ?
I mean for example whatever that's displayed on the Nexus 7 Emulator, would be exactly the same as it is really displayed on the real Tablet itself.
Yes, we can.
I've compared lots of emulators vs real devices - they are almost identical
Android Emulators give you a basic idea of different layout. Padding and pixel adjustment may be different in real device due to difference between system screen resolution and real device screen resolution.
The Android Emulator is built hand-in-hand with the Android platform for the Android SDK. Moreover, the latest Android Emulator system images (API 24+) 100% pass the Android Compatibility Definition, so that you can have even more assurance that app behavior will be exactly the same between the Android Emulator and a physical Android device.

Proper way to test Android apps

Is there a utility / service / way to properly test Android apps since there are currently 18 active screen resolutions and 9 OS versions.
So far I can test on 1 device with 480x800 resolution and OS version 4.4.x
As a second device I want to get 1080x1920 resolution and OS version 4.2.x
Without having a proper device can I check compatibility with OS version 5.x.x and of course all other display resolutions?
With the Genymotion Emulator you can test your apps with a huge amount of versions and screen resolutions, phones, tablets...
I think if there existed such a thing for native android apps we all knew about it.
There exists such a thing, but not for native apps, it is for Xamarin developers(C#). More info here
All you can do(Android Studio) is that:
1.Choose one layout
2.Go to Design page of it
3.In the Left corner you have a button like this:
4.You can choose to:
-Preview All Screens Sizes
-Preview Android Versions
-others...
This is a static testing method but is better than nothing. Hope it helps!

Changing Android Emulator Size to fit on my Screen

this may be a stupid question, but I've been doing Android Development for quite some time but just installed the new version of the SDK and ADT Eclipse plugin.
I've noticed that when I create a new AVD I can choose a specific device, I.e. Nexus 7 or Nexus Phone. I've selected the Galaxy Nexus but the emulator doesn't fit on the screen so I can't see the bottom of the device. At the moment I'm working on my Desktop which has a 21 inch monitor (1600 x 900) not the most highest spec in the world but I want to be able to fit the device on the screen. I also have a secondary screen which I usually keep the emulator on so I can see the code and the emulator, handy for debugging purposes, but this screen is much smaller and only has a resolution of 1280 x 800. At the moment, it would be impossible to press on the back and home buttons, and if I do development on my laptop, which is obviously a much smaller screen, probably wouldn't be able to see most of the device, as the AVD doesn't seem to scale to fit the screen.
Is there a way that this can be done. Below is a screen shot of how the device looks on my screen.
Right click your project -> Run Configuration -> select target -> in additional emulator command line option text box, type '-scale 0.75' and run your app
For those using Ionic CLI or other solutions, the following worked for me:
ionic run android -scale=0.75
In Android Studio, the option is set in the AVD Manager, under "Startup size and orientation".

How to test android application for different screen sized?

I have finished my application, but I have only 1 real device, and I need to test my application for different screen sizes. So, please, tell me, which emulator configurations should I use for diffrent screen sizes in order to I will be sure that my application will work on each configuration? Thank you.
there are more than 20 target devices are available in android developer website.
you can download few of them and load those devices in your emulator...
there is option in eclipse to select your target device before running your application...
Even by using the ADT plugin, in the layout editor, we can select the desired type of the phone, resolution, orientation and can check immediately with different types of resolutions..

Screen display problem in Gingerbread

I have upgraded my Motorola Atrix to Gingerbread (2.3.4), so far with no issues. When I go for my old apps and games which I developed previously, those are not displayed fully in the screen, it is only giving a 320x480-pixel display. Do I need to change my code or my phone settings?
Given that you currently use android:minSdkVersion="1", try setting minSdkVersion="4" or setting anyDensity to true.
Both should have the same effect of allowing your app to scale beyond Android 1.0 screen sizes of 240x320; before SDK 4 (Android 1.6 ) the default was not to scale as there was only a single resolution.

Categories

Resources