Java Code Examples for android.content.Intent.getDataString()

The following are Jave code examples for showing how to use getDataString() of the android.content.Intent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AliZhiBoHao   File: WebActivity.java   View Source Code Vote up 7 votes
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void onActivityResultAboveL(int requestCode, int resultCode, Intent intent) {
    if (requestCode != FILECHOOSER_RESULTCODE || mUploadCallbackAboveL == null)
        return;
    Uri[] results = null;
    if (resultCode == Activity.RESULT_OK) {
        if (intent != null) {
            String dataString = intent.getDataString();
            ClipData clipData = intent.getClipData();
            if (clipData != null) {
                results = new Uri[clipData.getItemCount()];
                for (int i = 0; i < clipData.getItemCount(); i++) {
                    ClipData.Item item = clipData.getItemAt(i);
                    results[i] = item.getUri();
                }
            }
            if (dataString != null)
                results = new Uri[]{Uri.parse(dataString)};
        }
    }
    mUploadCallbackAboveL.onReceiveValue(results);
    mUploadCallbackAboveL = null;
}
 
Example 2
Project: AgentWeb   File: FileUpLoadChooserImpl.java   View Source Code Vote up 7 votes
private Uri[] processData(Intent data) {

        Uri[] datas = null;
        if (data == null) {
            return datas;
        }
        String target = data.getDataString();
        if (!TextUtils.isEmpty(target)) {
            return datas = new Uri[]{Uri.parse(target)};
        }
        ClipData mClipData = data.getClipData();
        if (mClipData != null && mClipData.getItemCount() > 0) {
            datas = new Uri[mClipData.getItemCount()];
            for (int i = 0; i < mClipData.getItemCount(); i++) {

                ClipData.Item mItem = mClipData.getItemAt(i);
                datas[i] = mItem.getUri();

            }
        }
        return datas;


    }
 
Example 3
Project: Melophile   File: AuthActivity.java   View Source Code Vote up 6 votes
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if(requestCode==REQUEST_CODE){
        if(resultCode==RESULT_OK){
            findViewById(R.id.log_in)
                    .animate()
                    .scaleX(0)
                    .scaleY(0)
                    .setDuration(300)
                    .start();
            String string=data.getDataString();
            String code= Uri.parse(string).getQueryParameter("code");
            SoundCloudAuth.create(Config.CLIENT_ID,Config.CLIENT_SECRET_ID)
                    .addRedirectUri(Config.REDIRECT_URI)
                    .tokenWithAuthCode(code)
                    .subscribeOn(Schedulers.io())
                    .observeOn(AndroidSchedulers.mainThread())
                    .subscribe(this::saveToken);
        }
    }
}
 
Example 4
Project: chromium-for-android-56-debug-video   File: IntentHandler.java   View Source Code Vote up 6 votes
/**
 * Retrieve the URL from the Intent, which may be in multiple locations.
 * @param intent Intent to examine.
 * @return URL from the Intent, or null if a valid URL couldn't be found.
 */
public static String getUrlFromIntent(Intent intent) {
    if (intent == null) return null;

    String url = getUrlFromVoiceSearchResult(intent);
    if (url == null) url = ActivityDelegate.getInitialUrlForDocument(intent);
    if (url == null) url = getUrlForCustomTab(intent);
    if (url == null) url = intent.getDataString();
    if (url == null) return null;

    url = url.trim();
    if (isGoogleChromeScheme(url)) {
        url = getUrlFromGoogleChromeSchemeUrl(url);
    }
    return TextUtils.isEmpty(url) ? null : url;
}
 
Example 5
Project: BackTube   File: PlayerActivity.java   View Source Code Vote up 6 votes
private void startService() {
    final Intent intent = super.getIntent();
    if (intent == null || intent.getBooleanExtra(Intent.EXTRA_INTENT, false)) {
        serviceAction(ServiceAction.SHOW);
        return;
    }
    String uri = intent.getDataString();
    if (uri != null && (uri.contains(LinkType.NORMAL) || uri.contains(LinkType.SHORT))) {
        startService(uri);
        return;
    }
    uri = intent.getStringExtra(Intent.EXTRA_TEXT);
    if (!TextUtils.isEmpty(uri)) {
        if (!uri.startsWith("http") && (uri.contains(LinkType.NORMAL) || uri.contains(LinkType.SHORT))) {
            uri = uri.substring(uri.indexOf("http"));
        }
        startService(uri);
        return;
    }
    super.finish();
}
 
Example 6
Project: stynico   File: x5_MainActivity.java   View Source Code Vote up 6 votes
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
   private void onActivityResultAboveL(int requestCode, int resultCode, Intent intent)
{
       if (requestCode != FILE_CHOOSER_RESULT_CODE || uploadMessageAboveL == null)
           return;
       Uri[] results = null;
       if (resultCode == Activity.RESULT_OK)
	{
           if (intent != null)
		{
               String dataString = intent.getDataString();
               ClipData clipData = intent.getClipData();
               if (clipData != null)
			{
                   results = new Uri[clipData.getItemCount()];
                   for (int i = 0; i < clipData.getItemCount(); i++)
				{
                       ClipData.Item item = clipData.getItemAt(i);
                       results[i] = item.getUri();
                   }
               }
               if (dataString != null)
                   results = new Uri[]{Uri.parse(dataString)};
           }
       }
       uploadMessageAboveL.onReceiveValue(results);
       uploadMessageAboveL = null;
   }
 
Example 7
Project: Accessibility   File: SmartInstaller.java   View Source Code Vote up 6 votes
public static void onReceive(Context context, Intent intent) {
    if (intent != null) {
        String intentAction = intent.getAction();
        final String sPackageName = intent.getDataString();
        if (TextUtils.isEmpty(sPackageName)) {
            return;
        }
        final String pkgName = sPackageName.substring(sPackageName.indexOf(':') + 1);
        if (TextUtils.isEmpty(pkgName)) {
            return;
        }
        if (Intent.ACTION_PACKAGE_ADDED.equals(intentAction) || Intent.ACTION_PACKAGE_REPLACED.equals(intentAction) || Intent.ACTION_PACKAGE_REMOVED.equals(intentAction)) {
            boolean contains = isContainsKey(pkgName);
            logPrint("onReceive  pkgName=" + pkgName + "  isContainsKey=" + contains);
            if (contains) {
                updateInstallState(pkgName, SmartInstallItem.installComplete);
            }
        }
    }
}
 
Example 8
Project: youkes_browser   File: BrowserActivity.java   View Source Code Vote up 6 votes
public void handleNewIntent(Intent intent) {

		String url = null;
		if (intent != null) {
			url = intent.getDataString();
		}
		int num = 0;

		int type=0;
		if (intent != null && intent.getExtras() != null) {
			num = intent.getExtras().getInt(getPackageName() + ".Origin");
			//type=intent.getExtras().getInt("type");
			//ToastUtil.showMessage("this type "+type);
		}
		if (num == 1) {
			LightningView lv=getCurrentWebView();
			lv.loadUrl(url);
		} else if (url != null) {
			if (url.startsWith(Constants.FILE)) {
				Utils.showToast(this, getResources().getString(R.string.message_blocked_local));
				url = null;
			}
			newTab(url, true);
			mIsNewIntent = true;
		}
	}
 
Example 9
Project: anitrend-app   File: SplashActivity.java   View Source Code Vote up 5 votes
@Override
protected void onPostCreate(@Nullable Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    Intent intent = getIntent();

    if(intent.getAction() != null && intent.getAction().equals(Intent.ACTION_VIEW)) {
        String data = intent.getDataString();
        switch (data) {
            case "anime":
                shortcut = R.id.nav_anime;
                break;
            case "manga":
                shortcut = R.id.nav_manga;
                break;
            case "trending":
                shortcut = R.id.nav_trending;
                break;
            case "reviews":
                shortcut = R.id.nav_reviews;
                break;
        }
    }
    if(status != 0)
        try {
            if(requesting)
                requesting = false;
            app_status.setText(getString(status));
        } catch(Exception e){
            e.printStackTrace();
        }
    intiApplication();
}
 
Example 10
Project: Android-SmartWebView   File: MainActivity.java   View Source Code Vote up 5 votes
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
    super.onActivityResult(requestCode, resultCode, intent);
    if (Build.VERSION.SDK_INT >= 21) {
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
        getWindow().setStatusBarColor(getResources().getColor(R.color.colorPrimary));
        Uri[] results = null;
        if (resultCode == Activity.RESULT_OK) {
            if (requestCode == asw_file_req) {
                if (null == asw_file_path) {
                    return;
                }
                if (intent == null) {
                    if (asw_cam_message != null) {
                        results = new Uri[]{Uri.parse(asw_cam_message)};
                    }
                } else {
                    String dataString = intent.getDataString();
                    if (dataString != null) {
                        results = new Uri[]{ Uri.parse(dataString) };
                    }
                }
            }
        }
        asw_file_path.onReceiveValue(results);
        asw_file_path = null;
    } else {
        if (requestCode == asw_file_req) {
            if (null == asw_file_message) return;
            Uri result = intent == null || resultCode != RESULT_OK ? null : intent.getData();
            asw_file_message.onReceiveValue(result);
            asw_file_message = null;
        }
    }
}
 
Example 11
Project: financisto1-holo   File: PackageReplaceReceiver.java   View Source Code Vote up 5 votes
@Override
public void onReceive(Context context, Intent intent) {
	String action = intent.getAction();
       String dataString = intent.getDataString();
	if (PACKAGE_REPLACED.equals(action)) {
           Log.d("PackageReplaceReceiver", "Received " + dataString);
           if ("package:ru.orangesoftware.financisto".equals(dataString)) {
               Log.d("PackageReplaceReceiver", "Re-scheduling all transactions");
               requestScheduleAll(context);
               requestScheduleAutoBackup(context);
               requestScheduleAutoSync(context);                
           }
	}
}
 
Example 12
Project: SimpleRssReader   File: MainActivity.java   View Source Code Vote up 5 votes
@Override
protected void onNewIntent(final Intent intent) {
    super.onNewIntent(intent);

    setIntent(intent);

    final String feedUrl = intent.getDataString();

    if (!TextUtils.isEmpty(feedUrl)) {
        newFeedSubscriptionIntentReceived(feedUrl, false);
    }
}
 
Example 13
Project: Cable-Android   File: QuickResponseService.java   View Source Code Vote up 5 votes
@Override
protected void onHandleIntent(Intent intent, @Nullable MasterSecret masterSecret) {
  if (!TelephonyManager.ACTION_RESPOND_VIA_MESSAGE.equals(intent.getAction())) {
    Log.w(TAG, "Received unknown intent: " + intent.getAction());
    return;
  }

  if (masterSecret == null) {
    Log.w(TAG, "Got quick response request when locked...");
    Toast.makeText(this, R.string.QuickResponseService_quick_response_unavailable_when_Signal_is_locked, Toast.LENGTH_LONG).show();
    return;
  }

  try {
    Rfc5724Uri uri        = new Rfc5724Uri(intent.getDataString());
    String     content    = intent.getStringExtra(Intent.EXTRA_TEXT);
    String     numbers    = uri.getPath();
    if(numbers.contains("%")){
      numbers = URLDecoder.decode(numbers);
    }

    Recipients                      recipients     = RecipientFactory.getRecipientsFromString(this, numbers, false);
    Optional<RecipientsPreferences> preferences    = DatabaseFactory.getRecipientPreferenceDatabase(this).getRecipientsPreferences(recipients.getIds());
    int                             subscriptionId = preferences.isPresent() ? preferences.get().getDefaultSubscriptionId().or(-1) : -1;
    long                            expiresIn      = preferences.isPresent() ? preferences.get().getExpireMessages() * 1000 : 0;

    if (!TextUtils.isEmpty(content)) {
      if (recipients.isSingleRecipient()) {
        MessageSender.send(this, masterSecret, new OutgoingTextMessage(recipients, content, expiresIn, subscriptionId), -1, false, null);
      } else {
        MessageSender.send(this, masterSecret, new OutgoingMediaMessage(recipients, new SlideDeck(), content, System.currentTimeMillis(),
                                                                        subscriptionId, expiresIn, ThreadDatabase.DistributionTypes.DEFAULT), -1, false, null);
      }
    }
  } catch (URISyntaxException e) {
    Toast.makeText(this, R.string.QuickResponseService_problem_sending_message, Toast.LENGTH_LONG).show();
    Log.w(TAG, e);
  }
}
 
Example 14
Project: MakiLite   File: QuickInstagram.java   View Source Code Vote up 4 votes
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {


    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode == FILECHOOSER_RESULTCODE) {
            if (null == this.mUploadMessage) {
                return;
            }

            Uri result = null;

            try {
                if (resultCode != RESULT_OK) {
                    result = null;
                } else {
                    // retrieve from the private variable if the intent is null
                    result = data == null ? mCapturedImageURI : data.getData();
                }
            } catch (Exception e) {

            }

            mUploadMessage.onReceiveValue(result);
            mUploadMessage = null;
        }

    }


    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode != FILECHOOSER_RESULTCODE || mFilePathCallback == null) {
            super.onActivityResult(requestCode, resultCode, data);
            return;
        }

        Uri[] results = null;

        if (resultCode == Activity.RESULT_OK) {
            if (data == null) {

                if (mCameraPhotoPath != null) {
                    results = new Uri[]{Uri.parse(mCameraPhotoPath)};
                }
            } else {
                String dataString = data.getDataString();
                if (dataString != null) {
                    results = new Uri[]{Uri.parse(dataString)};
                }
            }
        }

        mFilePathCallback.onReceiveValue(results);
        mFilePathCallback = null;

    }
}
 
Example 15
Project: MakiLite   File: MessagesDesktopActivity.java   View Source Code Vote up 4 votes
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {


    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode == FILECHOOSER_RESULTCODE) {
            if (null == this.mUploadMessage) {
                return;
            }

            Uri result = null;

            try {
                if (resultCode != RESULT_OK) {
                    result = null;
                } else {
                    // retrieve from the private variable if the intent is null
                    result = data == null ? mCapturedImageURI : data.getData();
                }
            } catch (Exception e) {

            }

            mUploadMessage.onReceiveValue(result);
            mUploadMessage = null;
        }

    }


    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode != FILECHOOSER_RESULTCODE || mFilePathCallback == null) {
            super.onActivityResult(requestCode, resultCode, data);
            return;
        }

        Uri[] results = null;

        if (resultCode == Activity.RESULT_OK) {
            if (data == null) {

                if (mCameraPhotoPath != null) {
                    results = new Uri[]{Uri.parse(mCameraPhotoPath)};
                }
            } else {
                String dataString = data.getDataString();
                if (dataString != null) {
                    results = new Uri[]{Uri.parse(dataString)};
                }
            }
        }

        mFilePathCallback.onReceiveValue(results);
        mFilePathCallback = null;

    }
}
 
Example 16
Project: MakiLite   File: StandartMessages.java   View Source Code Vote up 4 votes
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {


	if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {

		if (requestCode == FILECHOOSER_RESULTCODE) {
			if (null == this.mUploadMessage) {
				return;
			}

			Uri result = null;

			try {
				if (resultCode != RESULT_OK) {
					result = null;
				} else {
					// retrieve from the private variable if the intent is null
					result = data == null ? mCapturedImageURI : data.getData();
				}
			} catch (Exception e) {

			}

			mUploadMessage.onReceiveValue(result);
			mUploadMessage = null;
		}

	}


	if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

		if (requestCode != FILECHOOSER_RESULTCODE || mFilePathCallback == null) {
			super.onActivityResult(requestCode, resultCode, data);
			return;
		}

		Uri[] results = null;

		if (resultCode == Activity.RESULT_OK) {
			if (data == null) {

				if (mCameraPhotoPath != null) {
					results = new Uri[]{Uri.parse(mCameraPhotoPath)};
				}
			} else {
				String dataString = data.getDataString();
				if (dataString != null) {
					results = new Uri[]{Uri.parse(dataString)};
				}
			}
		}

		mFilePathCallback.onReceiveValue(results);
		mFilePathCallback = null;

	}
}
 
Example 17
Project: MakiLite   File: Messenger.java   View Source Code Vote up 4 votes
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {


    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode == FILECHOOSER_RESULTCODE) {
            if (null == this.mUploadMessage) {
                return;
            }

            Uri result = null;

            try {
                if (resultCode != RESULT_OK) {
                    result = null;
                } else {
                    // retrieve from the private variable if the intent is null
                    result = data == null ? mCapturedImageURI : data.getData();
                }
            } catch (Exception e) {

            }

            mUploadMessage.onReceiveValue(result);
            mUploadMessage = null;
        }

    }


    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode != FILECHOOSER_RESULTCODE || mFilePathCallback == null) {
            super.onActivityResult(requestCode, resultCode, data);
            return;
        }

        Uri[] results = null;

        if (resultCode == Activity.RESULT_OK) {
            if (data == null) {

                if (mCameraPhotoPath != null) {
                    results = new Uri[]{Uri.parse(mCameraPhotoPath)};
                }
            } else {
                String dataString = data.getDataString();
                if (dataString != null) {
                    results = new Uri[]{Uri.parse(dataString)};
                }
            }
        }

        mFilePathCallback.onReceiveValue(results);
        mFilePathCallback = null;

    }
}
 
Example 18
Project: MakiLite   File: QuickVK.java   View Source Code Vote up 4 votes
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {


    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode == FILECHOOSER_RESULTCODE) {
            if (null == this.mUploadMessage) {
                return;
            }

            Uri result = null;

            try {
                if (resultCode != RESULT_OK) {
                    result = null;
                } else {
                    // retrieve from the private variable if the intent is null
                    result = data == null ? mCapturedImageURI : data.getData();
                }
            } catch (Exception e) {

            }

            mUploadMessage.onReceiveValue(result);
            mUploadMessage = null;
        }

    }


    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

        if (requestCode != FILECHOOSER_RESULTCODE || mFilePathCallback == null) {
            super.onActivityResult(requestCode, resultCode, data);
            return;
        }

        Uri[] results = null;

        if (resultCode == Activity.RESULT_OK) {
            if (data == null) {

                if (mCameraPhotoPath != null) {
                    results = new Uri[]{Uri.parse(mCameraPhotoPath)};
                }
            } else {
                String dataString = data.getDataString();
                if (dataString != null) {
                    results = new Uri[]{Uri.parse(dataString)};
                }
            }
        }

        mFilePathCallback.onReceiveValue(results);
        mFilePathCallback = null;

    }
}
 
Example 19
Project: mobile-store   File: DownloaderService.java   View Source Code Vote up 4 votes
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
    Utils.debugLog(TAG, "Received Intent for downloading: " + intent + " (with a startId of " + startId + ")");

    if (intent == null) {
        return START_NOT_STICKY;
    }

    String uriString = intent.getDataString();
    if (uriString == null) {
        Utils.debugLog(TAG, "Received Intent with no URI: " + intent);
        return START_NOT_STICKY;
    }

    if (ACTION_CANCEL.equals(intent.getAction())) {
        Utils.debugLog(TAG, "Cancelling download of " + uriString);
        Integer whatToRemove = uriString.hashCode();
        if (serviceHandler.hasMessages(whatToRemove)) {
            Utils.debugLog(TAG, "Removing download with ID of " + whatToRemove
                    + " from service handler, then sending interrupted event.");
            serviceHandler.removeMessages(whatToRemove);
            sendBroadcast(intent.getData(), Downloader.ACTION_INTERRUPTED);
        } else if (isActive(uriString)) {
            downloader.cancelDownload();
        } else {
            Utils.debugLog(TAG, "ACTION_CANCEL called on something not queued or running"
                    + " (expected to find message with ID of " + whatToRemove + " in queue).");
        }
    } else if (ACTION_QUEUE.equals(intent.getAction())) {
        Message msg = serviceHandler.obtainMessage();
        msg.arg1 = startId;
        msg.obj = intent;
        msg.what = uriString.hashCode();
        serviceHandler.sendMessage(msg);
        Utils.debugLog(TAG, "Queued download of " + uriString);
    } else {
        Utils.debugLog(TAG, "Received Intent with unknown action: " + intent);
    }

    return START_REDELIVER_INTENT; // if killed before completion, retry Intent
}
 
Example 20
Project: Open-Quran-Radio   File: MainActivityFragment.java   View Source Code Vote up 4 votes
@Override
public void onResume() {
    LogHelper.i("MainActivityFragment", "onResume");
    super.onResume();
    Log.v(LOG_TAG + "debugCollectionView", "start onResume");

    // refresh app state
    loadAppState(mActivity);

    // update collection adapter
    mCollectionAdapter.setTwoPane(mTwoPane);
    mCollectionAdapter.refresh();
    if (mCollectionAdapter.getItemCount() > 0) {
        mCollectionAdapter.setStationIDSelected(mStationIDSelected, mPlayback, false);
    }


    // handles the activity's intent
    Intent intent = mActivity.getIntent();
    if (Intent.ACTION_VIEW.equals(intent.getAction())) {
        handleStreamingLink(intent);
    } else if (TransistorKeys.ACTION_SHOW_PLAYER.equals(intent.getAction())) {
        handleShowPlayer(intent);
    }
    if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
        // Handle the normal search query case
        String query = intent.getStringExtra(SearchManager.QUERY);
    } else if (searchSuggestIntentAction.equals(intent.getAction())) {
        // Handle a suggestions click (because the suggestions all use ACTION_VIEW)
        String data = intent.getDataString();
        if (data != null && !data.isEmpty()) {
            int pos = mCollectionAdapter.getItemPosition(Long.parseLong(data));
            //simulate click item
            mCollectionAdapter.handleSingleClick(pos, null);
            //make the item selected
            SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(mActivity);
            if (settings.getInt(TransistorKeys.PREF_LAYOUT_VIEW_MANAGER, RECYCLER_VIEW_LIST) == RECYCLER_VIEW_LIST) {
                mLayoutManager.scrollToPosition(pos);
            } else {
                mStaggeredGridLayoutManagerManager.scrollToPosition(pos);
            }
        }
        if(mActivity instanceof MainActivity){
            ((MainActivity)mActivity).ClearSearch();
        }
    }

    // check if folder content has been changed
    //get rows count from DB
    StationsDbHelper mDbHelper = new StationsDbHelper(mActivity);
    int folderSize = mDbHelper.GetStationsCount();//mFolder.listFiles().length;
    if (mFolderSize != folderSize) {
        mFolderSize = folderSize;
        mCollectionAdapter = new CollectionAdapter(mActivity, mFolder);
        mRecyclerView.setAdapter(mCollectionAdapter);
    }

    // show call to action, if necessary
    toggleActionCall();

    // show notification bar if timer is running
    if (mSleepTimerRunning) {
        showSleepTimerNotification(-1);
    }

    //check if initial xml data loaded
    runInitialDataRefreshIfFirstTime();
}