Donald Hwong

unread,
Apr 19, 2019, 11:37:18 AM4/19/19
to MIT App Inventor Forum

I bought a Xiomi Mi8 with dual frequency GPS.  It suppose to be accurate within 30cm.  But my MIT APP does not indicate so. The accuracy output is still at 4 meters.

Does anyone know whether current Android version and MIT APP supports dual frequency?  A release schedule?

Donald 

SteveJG

unread,
Apr 19, 2019, 11:51:23 AM4/19/19
to MIT App Inventor Forum
The LocationSensor tool on App Inventor 2 does NOT support dual frequency GPS.   The best precision you can expect is about two meters resolution providing the Accuracy is relatively low.   Read about what is possible with AI2 here   Using the Location Sensor  and how a basic GPS receiver works.

MIT has no intention to upgrade capabilities in this compiler to provide dual frequency support.  AI is intended for educational and experimentation purposes as far as I know.   There are no extensions that will do what you hope for either.  When using the LocationSensor, if you do not specifically limit the Provider to  gps , the sensor will make use of WIFI and cell phone tower to 'improve' accuracy provided your Android device Settings allow it.

I suggest you might achieve this precision  using the professional Android Studio compiler.  There might be a library available for using dual frequency GPS.  An Advanced Location Sensor extension does exist, however it does not do what you want to do Donald.

I seriously doubt you will be able to obtain an accuracy within 30 cm, even doing that using an ordinary cell phone or Tablet; but you might.

Regards,
Steve

Chris Ward

unread,
Apr 19, 2019, 11:56:40 AM4/19/19
to MIT App Inventor Forum
Hi Donald

The Xiomi Mi8 is fitted with Broadcom's BCM47755 chip, so your phone has the capability to deliver more accuracy (30cm). However, they are tied to a specific group of Satellites which your service provider must use. The problem there is that most phones are still fitted with the less accurate Qualcomm chips.

Snipe

unread,
Apr 19, 2019, 1:19:26 PM4/19/19
to MIT App Inventor Forum
Hello, I need help, I am making the xox app on MIT app inventor but i can't find the notifier buttons.

TimAI2

unread,
Apr 19, 2019, 1:23:09 PM4/19/19
to MIT App Inventor Forum
@ Snipe, please start a new thread!

Donald Hwong

unread,
Apr 19, 2019, 2:23:57 PM4/19/19
to MIT App Inventor Forum
Thank you Steve and Chris for your fast response.  A few questions:
  1. Is there a way that I can import MIT APP into Android Studio?  
  2. I used the BTClient1 sample code to begin this project and renamed the project to another name, "XXX".  Yet the build apk still end up the "BTClienta" name and icon.
  3. How Can I change that?
Thanks.

SteveJG

unread,
Apr 19, 2019, 2:33:22 PM4/19/19
to mitappinv...@googlegroups.com
#1  No, that is not possible.  Rebuild your app using Android Studio.

#2  You changed the Project name.  What you want to do is change the app name.   You do that using the Designer Screen Property .AppName  .   Just type what you want to call it in the TextBox

#3  see #2  and to change the app's 'icon'   add a 96 x 96 pixel png or jpg and set it on the Designer Screen Property   Icon ... where it indicates  none, select the 96x96 image stored on Media (you have to place it in Media).

These e resources  might help you learn to use the AI2 tools  A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  

How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .


Good luck with your Project Donald.   Somewhere on the Android Studio site is a tutorial showing how to use AS.


Regards,
Steve

Donald Hwong

unread,
Apr 19, 2019, 3:02:21 PM4/19/19
to MIT App Inventor Forum
Thank you SteveJG.

I appreciate your detailed and patient support. This forum is one of the most warm and cozy forum that I have been to.

Have a nice day.  Android Studio here I come.

Donald
Reply all
Reply to author
Forward
0 new messages