Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Showing initial page depending on file content.

$
0
0

Hi,

I would like to show different page depending on the content of file.
I'm using PCL Storage. I tried with one solution, but it only causes me problems.

Basically I was trying to read from file inside OnStart method of App, by making this method to be async; "async protected override void OnStart()"
All this in order to be able to await for file read.

But this resulted in non deterministic behavior of my app, sometimes the content of page is shown, sometimes not.

How can I do this in the right way?
So, I would like to be able to read from file during application startup and than show different main page, depending on the file content.

I would be very thankful, if somebody can give me advice.

Cheers!


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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