How to support dual screen on android with an interactive screen? - android

I am making a game running on an android phone with an interactive station, the station looks like an interactive screen, when the phone connected to the station ,the station would show the same desktop content as phone and can launch app and do anything as same as phone ,it can also launch different app on phone and station respectively. I wanna achieve that launch my app and can see a different view in phone screen and station screen, both phone screen, and station screen can receive user input event.
I have tried to use,
ExtCamera.SetTargetBuffers(Display.displays[1].colorBuffer, Display.displays[1].depthBuffer);
to output what ExtCamera view to the secondary screen.
I can see different camera view in the station screen and phone screen, but the station screen can not receive user input, I wonder it because this method is only to render a texture to screen so it can not receive user input ? or there is another way to achieve this goal? I knew that android native offer class presentation to support multi-display, but it seems a large workload between android and unity to interact.
Any help would be appreciated!

Related

How to make 360° video from Android device?

In iphone there is one app which gives access to both camera at same time. And iphone has launched hardware (lens) which easily install one both cameras at same time... When user click on record button... iPhone records 180+180 view from both the side and convert into 360° view. So is there any similar app for Android ??
It may make easy for people to shoot 360° view

Android how create second active screen and show in another display like TV, Monitor?

I want to display the app screen on another display( Not a screen mirror). Another display is connected to mobile through USB C3.1 - HDMI. (Like TV, Monitor ). 
While displaying one screen to TV,  Same time I want to use another screen of the app on my mobile. (The Same time 2 screens will be active 1 screen in mobile and another on TV)
Use case example: If I am playing a game, GamePlay view will display on the TV and Gameplay buttons will display on my mobile.
Example: https://www.samsung.com/us/explore/dex/
Please suggest a way to implement such a feature in my android app.

How to use the Android lock screen

I want to create an Android application that interacts with the user when the phone is locked
For example the Sony Xperia U (android 4.something) the default mp3 player displays in the lock screen, above the pattern, the name of the song and buttons play, pause, next. In Huawei P8 lite the player displays the aforementioned buttons + the background picture album in an separate screen when you press the power button, and when you slide, it shows the pattern.
I want to do something similar, to display messages from the application to the user, who can press buttons to interact with the application when the phone is locked.
Can this be done without creating new lock screen; (I'm afraid I will do something stupid and lock myself out)
If yes, what activities / permissions / libraries etc should be used;

Recognize active objects with a capacitive touch screen display

I'm trying to develop an app that can recognize an active object (for example: a memory) that touch the smartphone display. Before I start to develop I've to know if there's any objects that my touch screen display can recognize? Which device can be recognizable by a smartphone display? I'm interested to know that for iPhone or for Android phone.
I found this app and you can see that with a card I can interact with a mobile device, now I'm asking you if anyone know how to do this kind of app with an iPhone or with an Android phone.
Does anyone knows how to do that? There's a library (iOS or Android) to recognize object that I put over the display?
volumique is the company that develops the monopoly card technology that you are talking about. However I will suggest two things.
For Android devices you can use NFC. Its kind of what you are doing right now but you just need to bring your object closer to the screen, no need to actually touch it.
For iOS, there is no NFC or RFID technology available. However you can develop a hardware which has active capacitors arranged in a pattern over it so when you bring your device closer to the iOS screen, the touch controller should recognize the pattern of the capacitors and report this to the main controller which can do recognition of the object with the help of your code. basically capacitive touch screens used in iPhones are just an array of capacitors arranged in a grid pattern. So when you touch using your finger, you change the capacitance of one or two capacitors and then the controller finds out the location of the change. However if you change the capacitance of say 5 6 sensors at the same time, in a particular order like in a pentagon, then you can write software for your controller that if the location of the sensors whose capacitance has been changed by this external object form the shape of a pentagon, then show the viewer that it is a 5 $ card (just an example). This is one way I can think of doing this.
Thanks

Android: Recognising Gestures when screen is locked

I am currently in the process of creating an MP3 player. In particular, the main mode of user input is in the form of (touchscreen) gestural input. I would like to add the functionality allowing users to continue interacting with the MP3 player when the screen is locked. That is, how can I get the device (A Galaxy S3 in particular if it's worth mentioning) to recognise gestures in the lock screen and "parse" them to the MP3 player?
Note: by "locked" I mean when one can see the lock screen (i.e. not when the screen is turned off).
How would I go about doing this?
Thanks in advance.
The recommended way is to make Lock Screen Widgets. These are widgets that allow you to interact with apps in the lockscreen such as the Google Play Music app.
Check out the official tutorial here:
http://developer.android.com/guide/topics/appwidgets/index.html#lockscreen

Categories

Resources