Code example for View

Methods: getContext

0
 
        useSpans(); 
    } 
 
    private void showDialog() { 
        AlertDialog.Builder builder = new AlertDialog.Builder(currentView.getContext());
        builder.setSingleChoiceItems(items, 0, null);
        builder.show();
    } 
 
    private void useSpans() { 
        EditText urlEdit = (EditText) currentView.findViewById(R.id.edittext_url);
        Editable url = urlEdit.getText();
        if (url.length() < 1) {
          return; 
        } 
 
        String urlString = url.toString();
        int urlLength = urlString.length();
        String domainAndRegistry = "amazon.co.uk";
Stop searching for code, let great code find you!  Add Codota to your java IDE