PROBLEM: App Inventor 2 doesn't work w/ QR code in course

For Formula AllCode users to discuss projects, programs, and any other issues related to the Formula AllCode robotics platform.

Moderators: Benj, Mods

Post Reply
mmb
Posts: 1
Joined: Mon Oct 22, 2018 4:40 am
Contact:

PROBLEM: App Inventor 2 doesn't work w/ QR code in course

Post by mmb »

I don't seem to find this topic in the forum; apologies if I missed it somehow.

I'm trying to follow the instructions in https://www.matrixtsl.com/resources/fil ... Course.pdf

on page 19.

Steps to reproduce:

1) In App Inventor 2, I scan the relevant QR code (the one on the right); it gets read and displayed as http://qrs.ly/7h5n6aY .
NOTE: That screen of App Inventor 2 mentions the option of entering a *6*-character code; obviously the last part of that URL is *7* characters.

2) When I touch the "connect with code" button, I get prompted by Android: "Open with Package installer [just once / always]".

3) I select "just once". I get a dismissable dialog box that says "There was a problem parsing the package. [OK]" I dismiss that by pressing [OK].

4) I also try entering only the "7h5n6ay", and touching "connect with code" --> the screen flickers for a moment but that's all.

If anyone could help with this, it'd be greatly appreciated.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PROBLEM: App Inventor 2 doesn't work w/ QR code in course

Post by medelec35 »

Hi mmb,
Welcome to the forums.
The code on the left of the datasheet is the app that's installed on your phone,
The code on the right is for your PC.
Steps 1 & 2 on page 19 are taken on your PC, not mobile.
You load the Template (link on the right which is aia file that has to be extracted first) within ai2 on your PC by selecting Projects, Import project (.aia) from my computer:
ai2.png
(77.93 KiB) Downloaded 2372 times
Once the project is loaded on your PC, Follow the instruction regarding dragging switches etc.
once the switches are dragged and macros are added that's when you use the app on the phone to Scan QR code.
The QR code to scan is generated via the ai2 loaded on the PC.
To generate QR code select within your browser Connect, AI companion
You can then use your phone or tablet to control the robot.

After developing on ai2, if you are still having trouble getting Allcode robot to work,
then post aia file in this topic.
To do that within the browser that's got your project, selectProjects, Export selected project (.aia) to my computer,
You will need to zip the .aia file then upload the zip file.
If you are still stuck, I will walk you through it step by step.
Martin

Post Reply