I'm reworking a project where I control LEDs on a miniature model, and display a presentation at the same time on an LCD Monitor above.
I previously had to work with a clunky touch screen laptop/tablet hybrid which was hooked up to an external monitor which showed a presentation slide while it lit up the LED.
I've now developed an android application for the Galaxy Tab 10.1 which controls LEDs on a miniature model via bluetooth, and is hooked up to the monitor via the Samsung HDMI adapter.
My question is, is there anyway to output two separate activities one for the tablet, one for the screen? The current setup just mirrors the screen, but when I open a slide it automatically displays the video in full resolution on the screen so it can be done, but I'm not sure if its an open API (Can't find one!).
Cheers!
Response from Samsung
Unfortunately Android itself does not support multiple displays, as
stated here:
https://groups.google.com/forum/#!topic/android-developers/Jxp_9ZtzL60
and Samsung also does not extend this functionality.
In that thread it does point out a useful Motorola API to control the HDMI output, shame I've got a load of Samsung tablets!
http://developer.motorola.com/docs/motorola-hdmi-status-api/
Related
I am working with Presentation Class to show different screen to the customers, but interact together.
But I have no idea how to test this out because my devices and emulators only show one screen.
Is there any way to accomplish this?
For hardware, you may be able to connect an external display. For example, many modern Samsung devices support USB-C to HDMI adapters.
For the emulator and hardware that does not support external displays, you can simulate an external display. In Developer Options, scroll down to "Simulate secondary displays", and from there choose a resolution for the secondary display. This will appear as a floating layer over the main device UI, and it will work with Presentation.
I'm writing a chat app in which I have two different layouts for normal and large devices, similar to the Telegram app. I have an MainActivity that on non-large devices has only a fragment containing the list of chats in it's layout.xml. On large devices the layout.xml also includes a fragment, where you can write in the chat.
My problem is, that on large devices (e.g. Nexus 9 Virtual Device) the app rotates fine when I rotate the device, the activities are reloaded etc. But on non-large devices the app won't rotate after it is started. I have tried this on Nexus 5X API22 and Nexus 5 API23 Virtual Devices and on a OnePlus X and a Samsung Galaxy S7 Edge, all with auto-rotate activated. There is nothing in the AndroidManifest or anywhere else in my code, that has any influence on configChanges. I let Android handle them and don't handle them myself.
I can get the app to rotate on non-large devices when I open the app, got to overview or start another app, rotate to landscape and then go back to my app through overview. After doing this, it reacts normally to rotation. This means I can then rotate it around and the layout/activity is reloaded accordingly by Android.
I couldn't find anything on this anywhere, neither on SO, nor through googling. Please help me, if you have any ideas, where this problem could stem from.
All over the net I am seeing people say that this is not possible yet if you look at Samsung's Galaxy Line and their Dual Shot feature it shows that the software is capable of opening both cameras and showing them at the same time.
I have tried writing an app that opens both cameras and ran it on a gs4 but I get an error when I try to open the second one. This must be possible if samsung can do it.
Seems like Android hasn't yet exposed a way to do this.
http://developer.android.com/reference/android/hardware/Camera.html#open(int)
Your application should only have one Camera object active at a time
for a particular hardware camera.
I want to run one app on two phones, and then display what these apps show onto the same tablet. Is this possible?
So for example show what phone #1 shows in the bottom left corner of the tablet screen and show what phone #2 shows in the bottom right corner.
All related answers are appreciated!
What you want to do is mirroring both phones screens, I know you can do it to your pc, not sure about tablets.
you can read more about this here
But from my experience, mirroring not working so good- in most of the solution you have to root the devices first, and it's probably be bit slow and not smooth.
I would recommend you just to put those 2 phones next to each other and make a video with the tablet.
I have this browser launching application which didn't have any problem till now: when it is being tested on Samsung Galaxy 10.1 (Model Number: GT-P7510) with Android 3.1 Honeycomb.
The issue is this: whenever I tap on a text box, the whole screen will flash across a black screen for a moment and revert back to normal. It starts flickering/blinking the black screen when I leave a focus on any text box as well.
Currently, I've no idea what is causing this issue as I've tested this application on several devices e.g. Samsung Galaxy S, Samsung Galaxy Tab 7-inch with previous version of OS from 2.1 to 2.3.
Anyone who has any clue as to what is going on whether be it a compatibility issue with the app or a change in function in honeycomb 3.1 or the device itself, please share your information and enlighten me on this matter please. Any kind of help is greatly appreciated!
Thanks
I'm sorry that this is not a solution, but I think I can shed some light on the problem.
We have recently been testing a functional jQuery Mobile HTML5 app wrapped with PhoneGap Android 2.x phones to the Galaxy tab 10.1. We have seen something very similar, with the exception that we have defined a splash screen for our app. What we see is that when an input field is given focus, the screen flashes up the splash screen momentarily. Very annoying! To verify if this is the same problem, define a splash screen for your PhoneGap app and see if the screen flahes your image instead of a black background. Knowing something about what's going on with PhoneGap and the Android WebView, this is my best estimation of what is happening: PhoneGap loads the main App activity with a black background and displays the splash screen (if defined) in that initial window. PhoneGap then starts the WebView and opens it on top of the main Window. When a field is selected, the Android invalidates the component wach time it updates it based on a focus event or keypress, or whatever, and Android redraws everything. So it redraws the main window behind the WebView and then redraws the WebView with the HTML page content on top of it. Since the device is not properly double-buffered, you see all of this redrawing in all its ugly glory right in front of your eyes.
We have seen serious glitches with Android web forms on some Android 2.x phones we have tested, and this looks like yet another glitch, but this time on the Galaxy Tab running Honeycomb (3.0).
We have attempted to use CSS -webkit-backface-visibility to resolve issues on some phones when experiencing flicker in the past - but this has caused serious rendering issues in HTML forms. Be warned! In theory this should be a viable fix to introduce some double-buffering into the mix, but in our experience it causes more problems than it solves.
I am not confident that this can be resolved, except by an Android software update from Google/Samsung.