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.
Related
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.
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!
I have wrote an application using android 2.2 in eclipse.
My app is working fine on the samsung galaxy mini android 2.2. However, it is not working on samsung galaxy s3 android 4.1.
My app is only taking up half of the screen on the samsung galaxy s3.
Why is my app not working on higher resolution devices?
How can i make the app compatible with other devices running
different versions of android?
Sounds like it's most likely you just have a LinearLayout at the top of your layout XML and it just takes up less space on the S3.
I would advise taking a look at the two links below; if you want a specific starting point, you could adjust your layout to match_parent and use the l/m/h/xhdpi folders to place different size graphics in. Also worth checking whether you are using dp or dip (density independent pixels)
http://developer.android.com/training/multiscreen/index.html
http://android-developers.blogspot.co.uk/2012/11/designing-for-tablets-were-here-to-help.html
The best way to ensure that your app will work on other devices is to get access to other devices and test your application on those devices before you release.
Another way is to make sure that you are targeting the correct SDK you need to target and use the AndroidSupportLibrary when needing to have backwards compatibility.
For us to help with your specific problem we would need more details as to what exactly is going on, but make sure the packages and libraries you are using are compatible with the android versions you are trying to target.
And make good use of the AndroidSupportLibrary.
Did you check the resolution compatibility? This seems more like an Android Manifest issue then an Android version issue.
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.
How can I build a standard ADV to test my Hello World app. I've just built my Hello World app on Android - using eclipse, and am having real problems getting the AVD to work properly. My setup Android 3.1 level 12, and I set the skin to 800 x 600 as the default WXGA, seem to make a massive screen. When it loads, I get just the Android screen but no side keyboard.
In addition, why do I get completely different looking skins when I play around with the skin size. Sometimes, I get a nice sea scape sometimes, but its portrait not landscape - how do I turn it? One time I get a lock?
Any help would be really appreciated. (I using Java 1.6 64 bit).
Thank you very much.
Ed Ryan
My setup Android 3.1 level 12, and I set the skin to 800 x 600 as the default WXGA, seem to make a massive screen.
Use the scale option when launching the emulator to resize it to something manageable. There are no 800x600 Honeycomb devices, so you are far better served using WXGA.
When it loads, I get just the Android screen but no side keyboard.
Correct. You won't get the side keyboard for WXGA, either. You do not need it, as everything on that side keyboard is available to you from your own physical keyboard on your development machine.
The skins are only available for the out-of-the-box skins or the ones you create manually (see here). However, you can access all of the keys using other keyboard shortcuts, which I personally found way more convenient. Plus, you save space.