Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Can't toast on a thread that has not called Looper.prepare()

NeidennXNeidennX Member ✭✭✭
edited August 2019 in Xamarin.Android

Ok so i have this app that is running a code to insert some data in a SQL Table with the API, but with that same click i need to actually insert into two tables at the same time, so i created a thread for the insert on the second table, the thing is that, when the app compiles is throwing two errors

1: Can't toast on a thread that has not called Looper.prepare()
2: Expectation failed

both of them on the same IF

so if someone can help me would be great

The errors are on the highlighted area

Best Answer

Answers

  • NeidennXNeidennX Member ✭✭✭

    Thank you for that, it solved the Looper() issue, but it's still throwing the > Expectation Failed error and i have no clue on how to solve it

Sign In or Register to comment.