[android-developers] Android tinyalsa: cannot open device '/dev/snd/pcmC1D0c': Permission denied

2016-11-05 Thread Mar Anderson
I'm afraid I'm quite lost because I've built an Android app that uses tinyalsa through jni, but when I call pcm_open, I get: cannot open device '/dev/snd/pcmC1D0c': Permission denied I do see the file in question if I su -c 'ls /dev/snd' on adb shell. In fact, if I statthis file and the

[android-developers] Spinner control displays unwanted keyboard

2016-11-05 Thread Keith Sheppard
I have an activity in which there are several buttons and a spinner containing a list of preset values. Unfortunately, if the user accidentally or mistakenly taps the spinner, the soft keyboard appears. Why? There is nowhere on the screen that expects typed input from the user. More to the

[android-developers] Who to correctly copy allocations in renderscript?

2016-11-05 Thread 'Vardan Petrosyan' via Android Developers
I am trying to copy from one allocation into another one: public void test(Allocation inputAllocation, Shape shape) { inputAllocation.syncAll(Allocation.USAGE_SCRIPT); mRS.finish(); Allocation inputInitialAllocation = Allocation.createTyped(mRS, inputAllocation.getType(),