ucsb-cs56-projects / cs56-android-smoke-signals

-
GNU General Public License v3.0
1 stars 7 forks source link

The app does not recognize phoneNumber from Whitelist #60

Closed BrianEKim closed 6 years ago

BrianEKim commented 6 years ago

I realized the message "//Ring" was working for the Stimulator; however, when we ran it on my phone it did not work. We matched it exactly like we did with the stimulator shown in the picture below but it did not work.

screen shot 2018-03-06 at 6 06 32 pm

First I added an Android Debug Database(very interesting), which allows me to see all my databases, directly edit the values, sort data, and look at the entity value themselves (basically see my room database on a browser online). This allowed me to first check if the data was on the Whitelist. I made a few fixes to the Whitelist to get all the values to show up, but it was not the actual problem.
Now I determined it was the validPhoneNumber method and used a Log.d(body, phoneNumber) to see what phoneNumber was being compared to the numbers in the database. I realized this was a formatting problem. We want the numbers in the database to be in form +1(rest of the digits). So I changed the WhiteList activity to show users how to input numbers.

seemantasaha commented 6 years ago

W18 OK for 50 points.

seemantasaha commented 6 years ago

Resolved.