I am using Processing to program an app for Android. While trying to run an example on the emulator started through the AVD manager, Processing window hangs at “Trying to connect to device…” and finally gives up.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The solution is to follow the suggestion at:
http://forum.processing.org/one/topic/processing-cant-get-connected-to-phone-emulator-need-help.html
To paraphrase:
Open “preferences.txt” and change the port number in
android.emulator.port=xxxx
to the one shown at the head of the emulator window.
If this line is not there in preferences.txt, just add it. For me preferences.txt was located at ~/.processing/preferences.txt. You can locate yours by clicking File->Preferences. It is mentioned at the bottom of the window.