android-screen Questions
7
Solved
My app allows the user to take a screenshot which it then sends to the server.
On a real device, the screenshots are saved at /storage/emulated/0/Pictures/Screenshots/ so that is fine.
But on th...
Ohara asked 12/6, 2017 at 9:6
13
Solved
Android defines screen sizes as Normal Large XLarge etc.
It automatically picks between static resources in appropriate folders. I need this data about the current device in my java code. The Dis...
Bateau asked 28/6, 2012 at 20:6
2
Solved
I have a BroadcastReceiver that starts an Activity. If the Activity is started while the screen is on, it displays and everything is fine. However, on ICS and JB devices (I haven't tested GB or HC ...
Appliance asked 19/10, 2012 at 17:49
2
Solved
Currently I'm using paintObject.measureText(textCopy.substring(0,i)) while iterating through a copy of the TextView's text. For example, measureText("abc".substring(0,1)) will give me the relative ...
Brine asked 15/8, 2013 at 16:36
6
Solved
I have two android device with same resolution
Device1 -> resolution 480x800 diagonal screen size -> 4.7 inches
Device2 -> resolution 480x800 diagonal screen size -> 4.0 inches
How to find devic...
Dynast asked 3/10, 2013 at 9:28
7
Solved
In my app there is a long loading process, and if the devices puts on the screen lock, my process stops for some reason.
How can i prevent the device from automatic screen lock?
Continuous asked 5/7, 2012 at 12:27
4
Solved
Can someone tell me how to lock my application to a portrait mode? Is it a simple configuration in the manifest file?
Krieg asked 18/2, 2011 at 17:31
2
I am using KEYCODE_POWER to turn on and turn off my rooted phone. The bellow command is used in both case turn on and turn off the screen.
adb shell input keyevent KEYCODE_POWER
However, ...
Throughcomposed asked 26/12, 2016 at 6:48
1
Android Screen Recorder is a great tool for capturing the Android Screen but is there a way to highlight the clicks and Taps as well while we navigate the App on the Android Phone/Emulator screen?
...
Fredette asked 12/1, 2017 at 9:39
1
I want mobiles screen to blink or wake once for some milliseconds. I read few questions over stackoverflow. Most of the solutions are provided to support activity. Because it needs window object wh...
Roswell asked 18/9, 2017 at 13:24
1
I was successful to lock/unlock my screen using DevicePolicyManager and KeyguardManager in Android L. It worked well when I lock/unlock screen using swipe mode (no security). However, I cannot lock...
Rocco asked 25/9, 2016 at 10:5
7
Following folder structure is working fine for the mentioned devices and resolutions:
drawable-hdpi -- for 480x800
drawable-ldpi -- empty
drawable-mdpi -- for 320x480 and 240x320 (mdpi device)
dr...
Amniocentesis asked 4/2, 2015 at 8:44
2
Solved
I have following class in android, where I am defining some functions to calculate motion of Bubbles on the screen.
public class floatBubble {
private Bitmap img; // the image of the ball
privat...
Befriend asked 15/1, 2012 at 13:40
5
Solved
I am going to develop new application in Android. This application should only work in portrait (even for tablet). Also the UI and layout design should be similar on phones and tablet. We can't cha...
Rosenkranz asked 21/11, 2013 at 14:49
6
Solved
I've tried this....
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
int fullscreenheight = metrics.heightPixels;
int fullscreenwidth = me...
Henbit asked 12/6, 2012 at 5:54
1
Solved
How can I get the size of the screen in pixels with navigation bar and status bar being included?
I have already tried getting the size using DisplayMetrics but the size doesn't include the softwa...
Ronnyronsard asked 31/10, 2014 at 12:8
4
Solved
Can we have a different xml for landscape and different xml for portrait orientation?
I am working on a simple app, have few buttons and textviews, the xml looks good in portrait, But with same xm...
Abacus asked 8/10, 2012 at 12:8
4
Solved
I developed an application, Now i want to restrict the application for tablet.
Means the application should not run on any tablets. For that I specify the support-screens in Androidmenifest.XML fi...
Petersen asked 14/8, 2013 at 10:42
2
Solved
I have created different dimens.xml files and placed them in appropriate values folder.
I have the following "value" folders defined
values,
values-large,
values-normal,
values-small,
values-sw3...
Sepoy asked 4/4, 2014 at 9:46
6
Solved
I was trying to get the screen resolution of android phones,using this code
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
str_ScreenSize = dm....
Mirellamirelle asked 22/2, 2011 at 13:34
4
Solved
I have created an android application which works properly for nexus 7.
Inside resources folder, I have created two folders, layout, layout-land for Nexus 7" tab. Everything was working fine till d...
Cristionna asked 10/10, 2012 at 9:30
3
Solved
Currently I have the following resource folders:
1. layout-sw600dp
2. layout-sw600dp-notlong
The idea is that we have 3 types of devices and the devices should use the resources from the correct...
Rosannrosanna asked 1/8, 2012 at 4:0
2
Solved
I have a tablet app with an about fragment which displays my company's datas. I would like to change my layout dynamically with screen orientation while im on the page but i didn't found how yet.
...
Vito asked 24/7, 2013 at 8:45
2
Solved
I find that the unit of the coordinate system of Canvas is different from that of screen.
For example in my case as below:
For one particular point, its on-screen coordinate obtained from ImageVi...
Pebble asked 12/7, 2013 at 6:51
3
Solved
I have recently published android app (sdk version 4.2) in playstore. My requirement is that - this app should be visible in playstore on both - large screen devices (including Samsung Galaxy Tab 2...
Arielariela asked 18/5, 2013 at 7:3
1 Next >
© 2022 - 2024 — McMap. All rights reserved.