Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Call Directory Extension: Read phone numbers to identify/block from external source

$
0
0

I'm creating a Call Directory Extension based on this example from Xamarin: Xamarin Example Code

When I follow the example exactly, it works well enough, but in the example all the phone numbers added to the Call Directory are hardcoded. That is not really a viable option, so I'm trying to figure out how I can get the phone numbers from an sqlite database.

My extension always crashes when I try to read the phone numbers, even when the database only contains a few phone numbers. I know the extension can access the database, I also use it for logging events, and the extension can write to the database without any issues.

Has anyone had any luck getting the phone numbers to identify/block from an external source, like a database or a file?

Maybe I need to read the database async or something similar, so the operation is not on the main thread?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>