public static JSONObject getScreenNameAndTitle(View view) {
        if (view == null) {
            return null;
        }
        JSONObject object = null;
        Activity activity = SAViewUtils.getActivityOfView(view.getContext(), view);
        if (activity == null) {
            activity = AppStateTools.getInstance().getForegroundActivity();
        }
        if (activity != null && activity.getWindow() != null && activity.getWindow().isActive()) {
            Object fragment = SAFragmentUtils.getFragmentFromView(view, activity);
            if (fragment != null) {
                object = SAPageInfoUtils.getFragmentPageInfo(activity, fragment);
            } else {
                object = SAPageInfoUtils.getActivityPageInfo(activity);
                JSONObject rnJson = SAPageInfoUtils.getRNPageInfo();
                JSONUtils.mergeDuplicateProperty(rnJson, object);
            }
        }
        return object;
    }
@Test
    public void getScreenNameAndTitle() {
        TextView textView1 = new TextView(mApplication);
        textView1.setText("child1");
        Assert.assertNull(SAViewUtils.getScreenNameAndTitle(textView1));
    }