Is there a way to emulate led flashlight in android emulator? I've already tried to see what options are available when setting up the AVD but there was only an emulator for camera!
The emulator can't do that. You need a device. It's also good to develop on a device since the emulator can sometimes behave differently.
If you just want to test different states of the led, then you can create a small view and change the color of that. You need a device if you want to see the led actually working.
You need an actual device with flashlight to test your flashlight. There is no way to test flashlight in emulator until emulator provides you with led service like in 'geneymotion' you can use your laptops camera as your emulator's camera.
Related
Using "mediaprojection" I was able to capture the current screen from a background service.
The sdk api is 25, Android 7.1.2, and I checked it with an emulator running with BlueStacks without rooting and my mobile phone without rooting.
But when I test it with BlueStacks and another emulator, Nox, I get a black screen.
The same code and only in the Knox emulator without rooting the same code is black screened in the result.
Could the results be different depending on the emulator?
Do you have a "mediaprojection" application running in a background service to test this case?
I have the same problem before but I noticed that bluestacks doesn't allow the use of applications with mediaprojection you can't try in your own device if you want to test apps that can take screenshots or similar situations
I recently bought an android tv box (dongle) model mk808b plus which some of you might be familiar with. What I want to do is use it for development, I want to program on it using adb, Android Studio.
The problem I am facing and its not the first of its kind, I get this with all the media boxes that I tried, they dont work as adb devices at all, I dont get any device in my device manager when I connect them on the usb (not even an unknown one). I tried reflashing the android, I put cyanogen mod on it, but to no avail, it still happens. Another thing is, if I put my device in Recovery Mode it does detect an unknown device in my control panel, but never after I boot up my android os.
Now before you say I didnt enable Developer Options Usb Debugging or I didnt put my device as MTP device, I did. I checked these and the cables im using are fine.
I dont have any problem with my Nexus 5 or S5 for the matter, just when I try these android boxes that come up with these tv like custom roms.
If you guys have any idea, I'll be happy to read, I did not find anything related to this on the internet.
PS: Why not use my Nexus 5 or S5? because the app im developing is for these boxes, so testing some of the features such as hdmi connectivity etc etc is very useful to me.
Thank you,
Andi
Unfortunately I couldn't do anything, maybe it's because of the custom ROM on it, but I did find an alternative, I'm using adb on tcp ip, it seems to work after I rooted my device, still no usb adb interface.
I've got the LG P970 phone running on Gingerbread with a broken screen. By broken screen i mean that screen displays nothing - it's lighten up, all black with color lines but it's touch sensitive (i believe). I've got important data on it and I want to get it back. Unfortunately USB debugging mode is disabled on the phone so adb devices command on linux shows empty dialog.
So here comes my question: is there any possibility to remotely turn on usb debugging mode on android device?
This is how I solved this problem (on a Samsung Galaxy S4):
This assumes that the phone's screen does not display anything, but the touch input still works.
Figure out how to take a screenshot on your phone without using the UI. On the Galaxy S4, you can use hardware buttons to do this.
Unlock your phone's lock screen, and connect it to a computer.
Open the phone in a file manager.
Find the location where the phone stores screenshots.
Take a screenshot on the phone. Look at the updated screenshot.
By doing this, you can perform an action on Android, take a screenshot, and see what screen comes up. After doing this awhile, you should be able to find the USB Debugging menu.
Simple, use a new phone say an S4 to your cracked broken S4 and get to the video port (several youtube videos on this) hook the new screen to the old phone and now you have access to debug set usb or transfer all the files its just as simple as plugging in a working screen!
From latest SDK, multi-touch is supported via tethered phone. I'm wondering whether it is supported programmatically. In other words, can we test multi-touch triggered functionalities using automated test suites?
No it's not. but from sdk-r20 you can use multitouch in emulator with a real phone connected to computer. check this out.
I'm working on this same problem. First I'm tested to make sure all tethered signals are going through (I had to modify the SDkController app to even get the connection). Now I'm trying to figure out why, when I click the side of the screen or anywhere, it only shows up on the top right (while the debugger from the emulator is giving the correct thing). The error is explained here.
I did however figure out how to do it wirelessly and through the terminal. If that is what you're asking the procedure is pretty much the same. You need to root your device or do the adb port command (with USB connected) before un-connecting your device, and it'll work wirelessly.
I'm developing for Galaxy Note specifically. I want to test my app on a real device which I don't have. Is there some way I can fake a Galaxy Note on AVD?
I do know how to create an AVD with hardware matching Note. However, that won't suffice. I want the app to identify AVD as a real device. I have small hints in general direction:
1) Somehow install stock Note ROM on AVD.
2) Modify build.props and create my own ROM.
I also have a Galaxy S phone, if something can be done on that. Thanks.
You can do this only on real Device, because this information is wrote only on the firmware of device. You can try to debug on remote real devices. Search on http://innovator.samsungmobile.com/bbs/lab/view.do?platformId=1
or here http://www.perfectomobile.com/portal/cms/services/android