Can I make mirroring application without rooting? - android

I want make mirroring android application.(Sender)
I wrote question about "mirroring" yesterday and..
I got "Presentation APIs" -API 17-.
(http://developer.android.com/reference/android/app/Presentation.html)
But, I still don`t know how can I access screen video stream.
Therefore, My question is this.
How can I make packet that phone`s screen stream?(both video & audio)
Is ADT provide APIs about mirroring?
Is it need root privileges?
I found mirroring APIs for only SAMSUNG Galaxy phones.
But I finding android common API.
Please help me..
Thank you.

The latest version of Chromecast App allows screen mirroring - at least for certain devices like Nexus 5, 7, 10 ... So I don't think it would make much sense for you to pursue that.

Related

access both front and back camera simultaneously on samsung galaxy devices

I know this question has been asked before but its been a long time. Asking this question again to gather any new hacks/thoughts/approaches.
I need to access both front and back camera simultaneously.
So far I have tried implementations using android camera API (Dual Camera- by Jens) and camera2 API. Both implementations work fine on devices having hardware support(Dual Image Signal Processors) for dual camera feature.I have tested and both implementations works fine on HTC one M8(Snapdragon 801) & Xiaomi Mi4(Snapdragon 801).
Both implementations fails on Samsung s6 even though it's hardware capable (Exynos 7420 has dual ISP). Also, the default camera app on S6 supports dual camera mode.
Any ideas/advice on this ?
Thanks in advance.
Update:18/11/2015 --> Tried using the Samsung Galaxy Camera SDK but still no luck.
I had to implement the exact same thing in a previous project. I know the struggle, and I know how much code you have to write to make this work. Especially with Google providing TWO camera apis (camera and camera2).
Even though I got it working on some devices (like HTC M8) which basically had two Image Signal Processor (necessary to access both cameras at the same time), I had trouble with the Samsung devices that had this feature implemented in their native camera application.
Then I turned around and found out that Samsung provides different special APIs for its "very special" OS. What that means, is that for every special feature that Samsung has (like the finger print sensor, the S-pen, and soooo on), they provide a API for the developers to work with.
I found the SCamera API on their site here . They also provide very good documentation and it is ok to implement.
The question you need to ask yourself: is it really worth it to integrate yet another camera API in your app to make this work on Samsung devices as well? Take in consideration that the proportion of Samsung devices is really high.
My advice? Try and implement it in a different project and see how that goes. If you get it to work in a decent amount of time and it's not very complicated, then integrate it in your main project.
I hope this helps you. Have a great day and good luck!

Screen Mirror with remote display app for samsung TV

I want to develop an app on android that uses screen mirroring with Samsung TV. I'm looking to use my android app screen as a remote(say a game controller) & TV screen to run the actual game. My initial approach was learning google cast but it needs a chromecast dongle which I don't want to use for this project. I want to use Samsung Smart TV's Screen Mirroring feature to do so. After some googling, I figured out that samsung uses Allshare Framework API for screen mirroring/cast but I'm not completely sure on this. I'm currently struggling to find a proper documentation for screen mirroring. If someone can point to the correct documentation link then that'd be awesome. Also, please correct me if I'm wrong with the assumption that this can be achieved using Allshare API only.
It seems Samsung have came out with this new SDK - Samsung Multiscreen SDK( or maybe I've found it now :)). This link should cover most of the questions I've asked above. Also, if you are Unity user, Samsung has their own version of Unity which comes intalled with Samsung Multiscreen Game SDK. But you need to send a partnership request to samsung in order to use this version of Unity. Apart from these two, you can also use Connect SDK which is independent of any technology, i.e. it covers almost every other technology used for Cast. For exmple, if you have a Samsung Smart TV at your home & a Roku connection. With Samsung SDK you can only discover Smart TV but not Roku stick. Whereas, with Connect SDK you can discover Samsung Tv as well as Roku & any other Cast device which is available in your network.

Only allow Android apps to be installed on certain devices

Basically, I want to make an Android app only isnstallable on certain devices. Let's say for example, my app should only be installed on the 2012 Nexus 7. Is there any way I can make it so that the app manifest only parses on the 2012 Nexus 7?
I don't know about specific devices but apps can be for a certain andriod OS. It can also be made for certain hardware specifications e.g. outwards facing camera.
You can do that in the Play Store when you publish your app. You're able to choose the supported devices, et cetera.
Read this answer on StackOverflow, which looks pretty much like the thing that you're looking for. Another link you could check out is this one.

Recording the Android screen

I want to write an game for Android. To present it very well, it has to have an YouTube movie in the Google Play Store.
How can I do this? Because ADB only produce a slideshow, because it's to slow. Is there an app for recording out there?
PS: I only have Tegra devices (Galaxy Nexus and Nexus 7), so http://pkg.to/com.ms.screencast doesn't work, yet.
The new Android 4.2 has a wireless display feature allowing the send the screen's content to TV screens etc. As you have Nexus devices I guess you'll get the update very soon. I do not know the technical details but I'm quite sure there will be possibilities to record the sent signal.
See this anouncement: http://www.android.com/whatsnew/
You may want to try using the emulator and record using a regular video recording program such as FRAPS. The performance of the x86 emulator has improved greatly and also supports GPU emulation.
Here is a page from the Android documentation outlining how to enable hardware acceleration for the emulator:
http://developer.android.com/tools/devices/emulator.html#acceleration
The downside to this approach is that multi-touch gestures aren't easy to do.

Android phones: how does the video out feature work?

I'm searching for android phones that can use video out to the tv for a research project. I'm considering the HTC Touch Pro.
Is there anything I have to do specifically to get the video out to work (for displaying my app on the tv)? or will the phone just display a running app on the tv without extra work?
Thanks, I hope the post made sense =)
HTC Touch Pro is not an android phone. As far as video out - Sprint upcoming EVO will have HDMI out connector.
It looks like it will just work without any extra programming efforts on my part. Found out through youtubing.

Categories

Resources