Skip to first unread message

DenPit5

unread,
Aug 16, 2018, 10:26:14 AM8/16/18
to mitappinv...@googlegroups.com
In the library '  Using the Genymotion emulator with App Inventor  at  Step 3 it suggests running the test :-    http://appinventor.mit.edu/test/ .  which  tests if    1) is ai2starter running &   2) is phone connected to USB.   1) replies with OK   but 2)  replies :-  Phone not connected to USB.    I therefore do not get any connection between Ap inventeor and  Genymotion virtual device..  Anyone know why I do not get any connection via clicking 'USB' instead of Emulater.  ??

TimAI2

unread,
Aug 16, 2018, 11:46:50 AM8/16/18
to MIT App Inventor Forum
So you managed to get Genymotion running ?


Use genymotion with the companion app - "over wifi" (yes, it is on your PC, but genymotion virtual device needs to connect to and be on the same network as your PC, and is then treated as a wifi device by the companion app)

So not USB and not Emulator, but wifi

That said you may need to edit some settings for genymotion through the virtualbox interface, I have it attached to a Bridged network adapter on order to get it onto the same network. You can easily check your genymotion IP address when you start the companion app, then you will know if you are connected to the correct network.

genynetwork.png


Abraham Getzler

unread,
Aug 16, 2018, 12:18:07 PM8/16/18
to MIT App Inventor Forum

DenPit5

unread,
Aug 17, 2018, 7:09:31 AM8/17/18
to MIT App Inventor Forum
Many thanks Tim for your very informative reply to my query.     I have checked the network address when I have connected the Companion to Genymotion and I find that the address is not the same as my computer network address.    Could you tell where I should set the address in Genymotion to the same as the computer network address.

TimAI2

unread,
Aug 17, 2018, 10:50:52 AM8/17/18
to MIT App Inventor Forum
  1. Make sure Genymotion is not running / open
  2. Start Oracle Virtualbox main program (yes, it should be in your Programs somewhere, genymotion needs it to run)
  3. Select your Genymotion device virtual machine
  4. Select Settings from the top menu
  5. Select Network
  6. See my image posted further up
(I am on Linux so Virtualbox may look a bit different...if you are not!)

DenPit5

unread,
Aug 18, 2018, 10:21:33 AM8/18/18
to MIT App Inventor Forum
Hi Tim   Once again many thanks for your detailed reply.     I have followed those instructionsI but it did not do the trick.   I know that I have to enter my computer IP address somewhere but your intstructions do no show where.??

TimAI2

unread,
Aug 19, 2018, 7:37:50 AM8/19/18
to MIT App Inventor Forum
Using/Adding a bridging adapter should be all that you need to do, as this will put the genymotion virtual machine (guest) on the same network as your PC (host). Once they are both on the same network then the companion app (in the genymotion virtual machine (guest), should display an IP address that is on the same network as your PC (host) 


Example (numbers may be different on your network)
If your main PC IP is: 192.168.0.20

Your genymotion/companion app would be: 192.168.0.21

DenPit5

unread,
Aug 21, 2018, 5:41:35 AM8/21/18
to MIT App Inventor Forum
hi Tim
Once again many thanks for your reply. I know what you say about the Ip address in Companion being the same as the computer IP address,I amjust unable to get this set.     You mention about a bridging adapter   - Harware or software.  Where would I get one set up.???

regards Dennis
Reply all
Reply to author
Forward
0 new messages