niteshmourya / app-inventor-for-android

Automatically exported from code.google.com/p/app-inventor-for-android
Apache License 2.0
1 stars 0 forks source link

Location sensor: cannot accept the argument *nothing* bug #1880

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
note: *nothing* is in this case different from NULL!

if wifi and gps is off and you do test for available providers not equal to 
empty text you get the following error: 

The operation is text empty? cannot accept the argument: *nothing*" End 
application

see attached example, GPS and wifi need to be off while testing.

workaround: 
on Screen.Init set LocationSensor.ProviderName to passive
later there will be no error because LocationSensor.AvailableProviders is not 
*nothing* but passive...

Taifun
www.puravidaapps.com
https://market.android.com/developer?pub=Pura+Vida+Apps

Original issue reported on code.google.com by taifunb...@gmail.com on 29 Sep 2011 at 12:51

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, 

Please try again on MIT App Inventor. Let us know if the same issue continues.

Regards, 

Wei
wli17@mit.edu

Original comment by weihuali...@gmail.com on 17 Mar 2012 at 2:08

GoogleCodeExporter commented 9 years ago
I just tested again using the provided zip file, same issue
Taifun

Original comment by taifunb...@gmail.com on 17 Mar 2012 at 5:34