I have written a javafx/java program to run on my Raspberry Pi 3B+ with 7" official touchscreen. I managed to get the software to run on my PCs, installed the javafx extension for my jdk on the pi and now I'd be ready to run it. Unfortunately when I do I get the following error in the console:
Udev: Failed to write to /sys/class/input/input3/uevent
Check that you have permission to access input devices
Cannot open display
I have no idea how to fix that. I tried sudo adduser man input, which added man to the group input, but I still get the same error.
Do you know what I need to do to acces the Touchscreen?
Related
I just installed Android Studio and I've been trying to figure out for the past 3 hours why it is that when I try to run my newly created project on a emulated phone it doesn't work. It's not even that the program doesn't work, it's that it freezes the moment I open it. I've tried uninstalling/reinstalling HAXM, SDK's for the phone, and recreating the phone / wiping the data on the phone and retrying, and nothing's worked so far. I'm wondering if anyone else has experienced this problem or knows what causes it? Please see picture to see what the problem is. P.S I'm using Android Studio on Windows. My system is beefy and should be able to run the emulator fine. I have Virtualization Enabled too.
This help me in getting it to work: switch off HyperV on Windows:
open Powershell as Administrator and run:
bcdedit /set hypervisorlaunchtype off
Reboot afterwards. Alternatively, run 'optionalfeatures' and select the HyperVisor platform to remove. To test if it really worked, run:
emulator.exe -verbose -avd <YOUR AVD NAME>
You can list the AVDs with 'emulator.exe -list-avds'.
Not my credits, but those of 'viet-quocnguyen'. See https://github.com/microsoft/WSL/issues/6471#issuecomment-770417782
I'm trying to capture sound from microphone via Java Sound API.
I'm using sample code from github and it works perfect on Windows system, but when it runs on MacOS - audio-line buffer returns zero-bytes.
Also if I compile project to jar and run it via administrator permission - appears a message to give access to microphone and after I grant it - all works.
So the question is how to make permission request from code and run app without sudo?
Thanks!
BTW, you have to use the default terminal that comes with mac to execute jar file. That will worked.
The third party terminal, such as iTerm, it's not ok.
Today when I was doing my project using android studio, a blue screen suddenly appears and system get restarted automatically. And now when I tried to run my app using emulator, the AVD is not running and I get an error as below. Anyone faced this before ? How do I fix this?
ProcessNotCreatedException: Unexpected error while launching AVD:
Cannot run program
"C:\Users\tongws\AppData\Local\Android\sdk\tools\emulator.exe":
CreateProcess error=216, This version of %1 is not compatible with the
version of Windows you're running. Check your computer's system
information to see whether you need a x86 (32-bit) or x64 (64-bit)
version of the program, and then contact the software publisher
Wnen I click the Android Device Monitor, nothing happen also...
Found the following solution.
Go to the following directory in your computer:
C:\Users.android\avd
Inside this directory you will find all files and directories with the definition and content of your avd machines-
Now do the basic troubleshooting steps:
-check if the avd directory exists and if it contains a file with the name "sdcard.img".
-if the file exists, try to rename it (to check if its locked) and then go to eclipse and ask to create a new sd card.
-if it fails, try to create manualy a file with that name to check premissions.
good luck
You have a computer problem not related to AVD
ProcessNotCreatedException :Exception thrown when attempting to retrieve the result of a task that aborted by throwing an exception.
Because of their usefulness and ubiquity, EXE files are commonly used
as a method of delivery for virus / malware infection. Often, viruses
will be disguised as a benign EXE file (such as emulator.exe) and
distributed through SPAM email or malicious websites, which can then
infect your computer when executed (eg. when you double-click the EXE
file). In addition, viruses can infect, replace, or corrupt existing
EXE files, which can then lead to error messages when
related programs are executed. Thus, any executable files that you
download to your PC should be scanned for viruses before opening -
even if you think it is from a reputable source.
Read SO Answer .
What should you do
FORMAT Your System
Install Android Studio (Set Latest Version With Proper JDK Path)Note that you need to have JDK 6 or higher installed.
You can use Intel x86 Emulator Accelerator (HAXM installer) or Genymotion .
IF YOU HAVE MULTIPLE DRIVES, THE DRIVE WHERE THE OS IS INSTALLED IS
NEEDED TO BE FORMATTED, SO YOU SHALL LOSS ALL DATA OF THAT DRIVE. I
SUGGEST YOU TO TAKE A BACK UP OF ALL YOUR IMPORTANT DATA STORED IN
THAT DRIVE, INTO OTHER DRIVES WHICH WOULD REMAIN UNCHANGED. ON THE
OTHER HAND, IF YOU HAVE ONLY ONE DRIVE, THEN ALL YOUR DATA WILL GET
ERASED WHILE FORMATTING .
Good afternoon,
I've been trying for some time now to get the Android source to build. I have followed the instructions here:
http://source.android.com/source/building.html
The configuration step I have chosen is: "full-eng". The machine is Ubuntu 11.10, 32-bit, AMD x6 1090T processor, 4 GB of RAM running inside VirtualBox on a Windows 7 64-bit host.
I am able to get through the build process (or so it seems), with the last status lines reading:
...
target Dex: android.core.tests.libcore.package.com.no-core-tests-res
target Dex: android.core.tests.libcore.package.dalvik.no-core-tests-res
target Dex: android.core.tests.libcore.package.libcore.no-core-tests-res
target Dex: android.core.tests.libcore.package.org.no-core-tests-res
make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.com.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] Killed
make: *** Waiting for unfinished jobs....
sean#sean-VirtualBox:~/src/android$
When I try to run the emulator (per the seemingly oversimplified instructions from the page above), I get this:
sean#sean-VirtualBox:~/src/android$ emulator
emulator: ERROR: No initial system image for this configuration!
I've had pretty good luck using the emulator from my local Windows environment, but I'd like to get the Android source built so I can start learning more about it. In absence of a clear answer, I would take any alternative instructions for getting the source to build and run on the emulator.
I also have a G2x, G2 and G1 at my disposal if I got real desperate and needed to use a physical device, but I'd really like to get the emulator to work first. I also imagine that I'll need to know where the output image files went if I were to flash a device. (Googles instructions dubiously omitted elaboration on where the output went and what files are used when flashing or running the emulator)
Thanks!
-Sean
The basic steps are:
$ cd <path/to/android/source>
$ . build/envsetup.sh
$ lunch full-eng
$ make # should finish without errors
$ ./out/host/linux-x86/bin/emulator
and your emulator should start. Notice that running the emulator inside a VM would be really slow.
When i create one apk from one machine and try to install into a device .it successfully get installed .But when i try to connect the same device to another machine and try to deploy same application from different machine.It doesnt allow me .I need to uninstall the application and then it works correctly .What is the issue for that .What i need to do to resolve this issue.
Thanks in advance.
Could you provide us with the output from console or the terminal prompt. There is usually an error, telling that the Application is already install, and you have to use the -r re-install option, OR that the apk has been signed with a diffrent certificate/key.
If its none of the above, please provide whatever error/output you get... If there is no more info on the output, please start the Dalvik monitor (ddms) and see what happens via the log...