title: how to set time limit for splash screen in windows phone app 8.1?
body: <p>Hi I am developing one windows phone app.In this app I want to set time limit for loading in my splash screen.what happend is I am getting data(city names) from one service and insert  data into local database(SQLite)table.but what happend is in my data 2000 cities are there.these all are inserted into sqlite table.here one problem occurred.what happend is splash screen will move to main screen(2 to 3 seconds time).but in that time all the cities are not inserted.just 700 to 800 cities are inserted in table.so I want to set certain time to splash screen.how to set time for  loading.please help me.</p>
  
  <pre><code>   public async void insertcities()
          {
              try
              {
  
                   await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () =&gt;
                  {
  
  
                      var busclient = new NewReloadApp.JsonWebClient();
  
                      var Busresp1 = await busclient.DoRequestAsync(Url.weburl + "getCities");
                      string Busresult1 = Busresp1.ReadToEnd();
                      JArray BusjsonArray = JArray.Parse(Busresult1);
  
                      for (int j = 0; j &lt; BusjsonArray.Count; j++)
                      {
                           await Task.Delay(TimeSpan.FromSeconds(0.001));
                          JObject jobj = (JObject)BusjsonArray[j];
  
                          string id = (string)jobj["cityid"];
                          string cityname = (string)jobj["cityname"];
  
  
  
  
                          Db_Helper.Insert(new Buscities(id, cityname));
  
                          //  citieslist.Add(cityname);
  
                      }
  
  
  
                  });
  
              }
  </code></pre>