I want to know is there any way to use the input of an external camera connected with android tablet using USB into my application that is running on that tablet.
I would suggest you to try this one
android-webcam
Also this will be helpful to you
developer.android.com/guide/topics/connectivity/usb/accessory.html
I've succeeded to get this project to work with my webcame connected to my Android tablet: https://github.com/saki4510t/UVCCamera.
However, the issue is that it relies on native libraries and comes with many samples undocumented. I am myself still looking for better ways.
Related
I want to develop an application which live-screencast from android tablet to smartboard or another android tablet.
Connection type between two devices should be wireless internet connection without using usb and bluetooth. I use android studio.
Is it possible to implement it? Could you suggest me some ways or libraries to do it?
I hope I make myself clear.
Any help is apreciated.
Thanks in advance.
EDIT
Our devices support v4.
In addition to the information above, I need an rdp library or api to do it.
Android v5.0 lollipop is the first to provide some API for this. See the following links:
Media projection API overview
The screen grabber function
I am creating an application that connects to the phone camera from native code.
This works great on my phone.
The problem is that when i try to do the same thing with android emulator, there is
no "/dev/video" to connect to (i know the camera is connected because i am able to open it
using the camera app).
Does anyone know if there is another way i can connect to the camera from native code?
/dev/video0 is, in terms of Android, an implementation detail, and not guaranteed to be present on any device or emulator.
Emulator support for camera is very limited, see for example Android webcam enable in emulator
There is no official native camera API on Android, so there's no guaranteed to work way of doing this.
For maximum compatibility, use the Java API and send the image data to native code for processing, if necessary.
I'm trying to make an app that takes a video capture of the screen by taking individual snapshots. I've been looking into taking the snapshot without root, and seems that most solutions use ddmlib and require the device to be constantly connected via USB.
The only solution that doesn't require root and a constant usb connection is the android screenshot library. However, from the forum comments as well as my experience with the demo app, this library doesn't work very reliably/consistently.
Is there any other solution?
Note: I've also looked at the Noroot Screenshotit app (https://play.google.com/store/apps/details?id=com.edwardkim.android.screenshotitfullnoroot&hl=en), and seem like they have a similar approach to the android screenshot library, but have no idea how they make it more reliable. If anyone has an idea, that would be helpful as well.
Thanks
Edit: We've already got the USB-connected implementation, but we want to be able to do it on the device alone, without needing any connection to another PC.
As of Android 5.0+, you can use the new functionality in the SDK called media projections to do screen capture without root privileges or a USB connection. There is sample code by Google available here.
I would like to connect telosb sensor with my tablet and read the data from sensor. I am using Lenovo tablet (Android 3.1) but I am not able to find the correct driver for this. I tried to run the FTDI beta driver, but still the tablet doesn't recognize the device. FTDI website says that default permissions of USB device has to be modified and we need root access for it. I couldn't also root the tablet yet.
Has anyone worked on similar stuff?
Thanks,
Ashish.
Have you tried using Arduino boards to interface real world with your Android device?
Have a look at this project. I think it can be related to what you want to do. This other link is more related to the TelosB device. Hope this can be useful to you.
Did you see this link, Google has their own libraries to communicate with external devices.
More or less as it says on the tin.
Before I even contemplate downloading the SDK, I was wondering if there was any way of testing Android apps that I'd write without an Android phone available to me? I'm unsure as to whether or not the tools that come with the SDK come with an emulator like VS does for Windows Mobile.
Sorry if this is a stupid question, but maybe I'm searching for the wrong thing.
Edit I don't suppose there's anything that'll let me write widgets on/for an emulated version of the interface HTC use on the Hero/G2 either is there? Not that it would matter that much.
There's an emulator available as part of the SDK.
http://developer.android.com/guide/developing/tools/emulator.html
I'd add that the emulator is really quite comprehensive. Things like camera previews don't actually display camera data, but they put block animations in their place. All in all it's one of the best mobile emulators I've seen to date. Probably better even than gasp the iPhone simulator.
As said above there's an emulator available,however with larger apps it gets fairly tedious to use the emulator.Its fine for learning the ins and outs but id suggest investing in an android phone once you've got a good grasp of the sdk,it really does make a difference!.