Get text as String from EditView.
<b>Note:</b> returns "" for null EditText, not a NullPointerException

@param view EditView to get text from.
@return the text.
421964
public static String getText(TextView view) {
        String text = "";
        if (view != null) {
            text = view.getText().toString();
        } else {
            Log.e("Caffeine", "Null view given to getText().  \"\" will be returned.");
        }
        return text;
    }
11421
@Override
    public String getMessage(String code, Object[] args, String defaultMessage, Locale locale) {
        return activity.getActivityContext().getMessageSource().getMessage(code, args, defaultMessage, locale);
    }
1282713
public String getString(String id)
	{
		Context targetContext = instrumentation.getTargetContext(); 
		String packageName = targetContext.getPackageName(); 
		int viewId = targetContext.getResources().getIdentifier(id, "string", packageName);
		if(viewId == 0){
			viewId = targetContext.getResources().getIdentifier(id, "string", "android");
		}
		return getString(viewId);		
	}
1115283
@SuppressWarnings("unchecked")
    public static <T extends View> T get(View view, int id) {
        SparseArray<View> viewHolder = (SparseArray<View>) view.getTag();
        if (viewHolder == null) {
            viewHolder = new SparseArray<View>();
            view.setTag(viewHolder);
        }
        View childView = viewHolder.get(id);
        if (childView == null) {
            childView = view.findViewById(id);
            viewHolder.put(id, childView);
        }
        return (T) childView;
    }
1265703
@Override
	public String getString(final int columnIndex) throws SQLException {
		String columnLabel = getWrapped().getMetaData().getColumnLabel(columnIndex);

		return getString(columnLabel);
	}
1301980
public static int[] getLocationOnScreen(String view) throws Exception {
        int[] location = new int[2];
        
        JSONArray results = Client.getInstance().map(Constants.ROBOTIUM_SOLO, "getLocationOnScreen", view);
        location[0] = results.getInt(0);
        location[1] = results.getInt(1);

        return location;
    }
698186
public String get(JcString string) {
		Object val = this.getFor(string);
		if (val != null)
			return (String)val;
		return null;
	}
1143258
private @Nullable
	View resolveViewName(String viewName, Locale locale) throws Exception {
		for (ViewResolver r : resolvers) {
			View view = r.resolveViewName(viewName, locale);
			if (view != null) {
				return view;
			}
		}
		return null;
	}
1290398
protected static int[] getStyleForTextView(TextView view) {
        final int[] styleIds = new int[]{-1, -1};
        // Try to find the specific actionbar styles
        if (isActionBarTitle(view)) {
            styleIds[0] = android.R.attr.actionBarStyle;
            styleIds[1] = android.R.attr.titleTextStyle;
        } else if (isActionBarSubTitle(view)) {
            styleIds[0] = android.R.attr.actionBarStyle;
            styleIds[1] = android.R.attr.subtitleTextStyle;
        }
        if (styleIds[0] == -1) {
            // Use TextAppearance as default style
            styleIds[0] = CalligraphyConfig.get().getClassStyles().containsKey(view.getClass())
                    ? CalligraphyConfig.get().getClassStyles().get(view.getClass())
                    : android.R.attr.textAppearance;
        }
        return styleIds;
    }
271027
String toText() {
    Map<String, Object> vars = toVars();
    return parsedTemplate().evaluate(vars);
  }
1098155
protected View getView(String viewName) {
        for (View view: solo.getCurrentViews()) {
            if (view.toString().contains(viewName)) {
                return view;
            }
        }

        return null;
    }
928111
public static void tryAccessibilityAnnounce(View view, CharSequence text) {
        if (view != null && text != null) {
            view.announceForAccessibility(text);
        }
    }
740753
public T imeAction(int lable, final View associateView) {
        if (view instanceof EditText) {
            ((EditText)view).setImeActionLabel(context.getString(lable),view.getId());
            ((EditText)view).setOnEditorActionListener(new TextView.OnEditorActionListener() {
                @Override
                public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) {
                    if (id == view.getId() || id == EditorInfo.IME_NULL) {
                        associateView.performClick();
                        return true;
                    }
                    return false;
                }
            });
        }
        return self();
    }
1259767
public Map<String, Job> getJobs(String view) throws IOException {
        return getJobs(null, view);
    }
1343939
public com.google.appengine.v1.VersionView getView() {
    com.google.appengine.v1.VersionView result = com.google.appengine.v1.VersionView.valueOf(view_);
    return result == null ? com.google.appengine.v1.VersionView.UNRECOGNIZED : result;
  }
99546
public TextView getText(int index) {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getText("+index+")");
		}
		
		return getter.getView(TextView.class, index);
	}
402207
public final void setEditText(@NonNull final EditText editText) {
        Condition.INSTANCE.ensureNotNull(editText, "The edit text widget may not be null");
        this.editText = editText;
    }