I have an application that works fine in almost devices but the only device that fail is samsung gt s5303, I want to add a different value folder just for that device and add to it my dim file , I have tried to add values-sw320dp , but I found that it make other devices read from the same values folder
so how can I solve this problem please
This is the full specs. of the device
http://www.gsmarena.com/samsung_galaxy_y_plus_s5303-5357.php
Related
I have an application for tablet and mobile, and to recognize if it's tablet or mobile I set a boolean value in a specific value file (similar to this example: Determine if the device is a smartphone or tablet?). for some reason, the pixel 7 pro (with android 13) is not getting this value correctly and recognizes it as a tablet. It's important to note that the activities' layout files are taken correctly.
Does somebody know why this could be happening?
I am using DeviceProperties.isTablet(applicationContext) from com.google.android.gms.common.util.DeviceProperties and my Pixel 6 Pro is recognized as phone.
It should also work for Pixel 7 Pro.
I want to add in my manifest android:largeheap="true" based on some devices. Mostly devices running probably os 5.1 and below.Because alot of my clients are using samsung s3 , chinese , indian , pakistani phones.And I am getting lots of crashes in my firebase console. However this issue is not faced on top notch devices like google pixel samsung s8 etc.
How can I detect which devices i run largeheap, and how i run it on those devices only? I do not want to run it on devices i dont need to.
Well, you can't set this flag depending on the device. That's the true. But you can set it depending on OS version, screen size and etc. Check this answer to see how it can be done.
I want to design an android layout for nexus 5 mobile and need to give a fixed width/height. After searching with many websites I have used the layout folder named as "layout-normal-xxhdi". It works perfectly for nexus 5 but unfortunately it will affect other mobiles. Ex) I tried with moto e it also takes the layout file from "res/layout-normal-xxhdpi.xml" folder. Please someone give the exact layout folder name for nexus5.
My layout folders,
res/layout.xml
res/layout-normal-xxhdpi.xml
Note:
For other mobiles it will need to take the layout file from "res/layout.xml"
You cannot do this with folder name. But you could try to recognize the device model (here Nexus 5) in your Java code and use the appropriate layout. To do that, you could use Build.MODEL.
Testing in AS v1.5 using the default Nexus 5 emulator (selected replicate device during creation), you can almost specifically target Nexus 5's specs using the "sw384dp-xxhdpi" folder name.
In my PC, I can create any medium density emulator(e.g. 1280x768) and run it properly. But when I am trying to run any emulator of high density or extra high density emulator, it is showing black screen only, it is not loading anything and I cannot run any app there, if I try to run any app, it is giving "Error type 2". What is problem? Is it any hardware limitation?
I too face this type of problem earlier. But I have rectified this by using VirtualBox.
Install virtual box
check this for how to use virtual box as android emulator
I installed different add-on like Samsung Galaxy, Motorola Xoom, Xoom2, Xoom2Me etc and create AVD using them, it solved my problem.
I'm driving to make a virtual machine for 7 inch tables but whatever I make tends to be a big screen that displays the layout like a phone. When I use the GUI designer with the 7 inch tablet option it lays out right and even displays good on a real 7 inch tablet, but on the emulator it shows up like a phone and does not layout correctly.
I see several questions on this but none have gotten rid of the phone layout issue.
How would I get this to work?
To get the official Samsung Galaxy Tab emulator do the following:
1) Open the Android SDK and AVD Manager
2) Click on Available packages
3) Expand the Third party Add-ons. There you will see Samsung Electronics add-ons.
4) Once the add-on is installed create a new emulator. Under Target you will see the new Samsung Tab settings, select that.
That's it!
That method did not work for me.
I looked up documentation on googles site to determine screensizes and that is what I used to create a tablet.