if(mobileCache1.IsEmpty) .....code that recreates cache from a mobile service else .....mobileCache1.Open();
I know my cache has data because if I comment out the 'IsEmpty' code and just call mobileCache1.Open() then the data is displayed on the map. However the IsEmpty property seems to always return true.
If you call mobilecache1.isEmpty() function after opening the mobilecache then it will return false. MobileCache.Open method works with empty data also. The code should be like this -
if (mobilecache1.IsValid) { mobilecache1.open();
if(mobilecache1.IsEmpty())
{ // code to synchronize (download) mobile cache data
If you call mobilecache1.isEmpty() function after opening the mobilecache then it will return false. MobileCache.Open method works with empty data also. The code should be like this -
if (mobilecache1.IsValid) { mobilecache1.open();
if(mobilecache1.IsEmpty())
{ // code to synchronize (download) mobile cache data