Can't open a sample project in android emulator

asked 2014-05-15 08:28:12 -0700

riko642 gravatar image

updated 2014-05-15 09:48:30 -0700

both basicServer and basicClient apps work on my phone, however I can't open them in the android emulator. It opens only a black screen. I'm using the following avd settings: API 16, ARM CPU, 1024 RAM. Any idea what could be wrong?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-16 11:31:46 -0700

bspencer gravatar image


When you run the Android Simple Service (using the Java Language binding) application it is just a black display for the screen. When you run the Android Simple Client (using the Java Language binding) application it will show a spinner of trying to find a Simple Service then when connected disappear and shows a text box.

The Android emulator will not be able to communicate with the mobile device. You can only interact with other android applications loaded into the emulator itself. There is a limitation on the Android emulator around not having a bridged network connection, so it cannot send UDP packets out to the rest of the network or receive them.

edit flag offensive delete publish link more


I'm not sure what you mean by "Android Simple Service", but when I run a client sample app, there is no spinner at all, just a black screen

riko642 ( 2014-05-16 15:32:50 -0700 )edit

is there any tutorial explaining how to test ajjjoyn using emulator with multiple applications loaded into it?

riko642 ( 2014-05-16 15:34:29 -0700 )edit

Can you point me to the exact project you opened up in eclipse to load onto the emulator? The Android applications are called Simple Server and Simple Client for the application names. If these are not the ones you are using please let me know as I am confused which app you are running. There is no tutorial the recommended way is to use handsets since this is a distributed system it is best to see the interactions on the devices themselves so you can see both sides instead of having to switch between the applications. The same steps you test on a device you would use on the emulator, except you can not have multiple emulators talk to each other. So you will need to have the apps running and then switch between them.

bspencer ( 2014-05-19 09:37:19 -0700 )edit

I opened Simple Server and Simple Client projects, included in AllJoyn unity sample folder, I'm using unity to run them

riko642 ( 2014-05-21 02:29:08 -0700 )edit

This information would have been useful in the original posting :) Can you please post the android logs and update the original question with this information?

bspencer ( 2014-05-21 11:40:47 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-05-15 08:28:12 -0700

Seen: 195 times

Last updated: May 16 '14