No Texting While Driving: Runtime Error: text is null

174 views
Skip to first unread message

Erica English

unread,
Sep 14, 2015, 11:59:13 AM9/14/15
to MIT App Inventor Forum
I just went through the No Texting While Driving tutorial to teach my coding students this week. I feel like I have following the tutorial to the letter and every time I send a text to my phone when I am running this app I receive Runtime Error: Text is Null. I have attached my blocks as well as my designer view.  Please assist. 


Screen Shot 2015-09-14 at 8.54.16 AM.png
Screen Shot 2015-09-14 at 8.54.25 AM.png
Screen Shot 2015-09-14 at 8.58.40 AM.png

Peter Mathijssen

unread,
Sep 14, 2015, 12:38:16 PM9/14/15
to MIT App Inventor Forum
You have your blocks in the wrong order in your message recieved part. You are sending the message before the text and number is set. Take a good look at the tutorial http://www.appinventor.org/content/ai2apps/simpleApps/noTexting 
Look at part 4 around 25 seconds.
Reply all
Reply to author
Forward
0 new messages