Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

DeviceProductInfo class holds the information about the display devices connected to the Android system. Where is the constructor call to DeviceProductInfo done on an Android device?
Justin's user avatar
  • 1
0 votes
1 answer
192 views

I'm using relative layout for building the views/grid dynamically... ex: if there is 1 user then, [grid with users 1]1 if there is 2 user then , [grid with users 2]2 if there is 3 user then, [grid ...
IRON MAN's user avatar
  • 211
0 votes
0 answers
178 views

I am developing an application to control the secondary display using the buttons in my application. My app will run on the primary screen and I want to send the navigation and selection key events to ...
suspended_null's user avatar
6 votes
1 answer
4k views

For enhanced security of My Android App, I need to detect the screen mirrioring. I have implemented this below source code: var display : DisplayManager = getSystemService(DISPLAY_SERVICE) as ...
Pravs2311's user avatar
0 votes
0 answers
109 views

My app has two button, first button will show a new Activity on second screen, and second button will update that Activity with some data. But once the second Activity started, I cannot startActivity ...
CL So's user avatar
  • 3,769
2 votes
3 answers
987 views

I would like to read current screen orientation on Android using Jetpack Compose. I already tried following in a @Composable: val o = LocalActivity.current.requestedOrientation val o = LocalContext....
Ralf Wickum's user avatar
  • 3,178
0 votes
0 answers
249 views

I want to add blue light filter in my app but i dont know how can i implement that i am new in android develpment. i want to change the colour of screen using seekbar. i already tried to find a good ...
Nishit Panchal's user avatar
1 vote
0 answers
963 views

I configured a secondary display for my android device. By default, the secondary display will mirror the content of the main diaplsy. Then I use DisplayManager.getDisplays(DisplayManager....
陈朝勇's user avatar
0 votes
0 answers
632 views

I develop an application that presents content to an external display using Presentation. Now I want to mirror that to the phone screen or let say Twilio. One solution is to capture views from within ...
Qamar's user avatar
  • 5,197
1 vote
0 answers
1k views

Since AndroidTV scales down the UI for UHD/4K resolution TV devices, DisplayMetrics always return 1920x1080 for these higher resolution devices. One workaround is DisplayCompat: On many Android TV ...
Murat's user avatar
  • 11
1 vote
1 answer
2k views

I am trying to read the real physical display resolution on my Android TV device. I have two testing TVs: FullHD with 1920 x 1080 resolution UHD with 3840 x 2160 resolution and 1 Android TV HDMI ...
Edna Krabappel's user avatar
0 votes
2 answers
620 views

I'm trying to display the screen width and height to logcat. I have seen this stack overflow post: Getting screen width on API Level 30 (Android 11): getDefaultDisplay() and getMetrics() are now ...
CodingChap's user avatar
  • 1,118
1 vote
0 answers
44 views

I'm trying to make a blinker for my calculator app. I have created the blinker using a view that fades in and out. I can position the blinker where it needs to be in some device densities but not in ...
i_o's user avatar
  • 799
0 votes
0 answers
278 views

I am making an app for a dual display device for 1:1, face to face consulting. Basically, the secondary screen is not clickable. So, what I need to do is implementing a presentation. But some ...
c-an's user avatar
  • 4,220
1 vote
0 answers
142 views

I am working on android automotive, I need to divide activity view into two parts like half view in primary display and another half view in RSE(Rear-Seat) display. May i know how to do? which ...
ask's user avatar
  • 69
6 votes
0 answers
1k views

I'm trying to change the display resolution of my primary display on Android 8.1. I get an event from the kernel (based on EDID) that tells me I need to change mode. I then basically do: sp<...
anr78's user avatar
  • 1,328
1 vote
0 answers
606 views

According to android's official document: virtual displays Virtual displays may share the same set of layers as the main display (the layer stack) or have their own set. It is known that ...
progquester's user avatar
  • 1,916
14 votes
0 answers
900 views

In this sample project, my MainActivity has code to launch a separate activity on an external display, using setLaunchDisplayId() on ActivityOptions: class MainActivity : AppCompatActivity() { ...
CommonsWare's user avatar
3 votes
0 answers
393 views

I would like to mirror e.g. Waze in my app SurfaceView: Intent intent = getPackageManager().getLaunchIntentForPackage("com.waze"); //"com.waze" Bundle opts = ActivityOptions ....
Marcelo Idemax's user avatar