Code example for ArrayAdapter

Methods: setDropDownViewResource

0
            Log.v("setter", this.externalIP);
        } else { 
            sendHandlerMessage(handler, EXTIP_NOTRESOLVED);
        } 
 
        ArrayAdapter adapter1 = new ArrayAdapter(this, android.R.layout.simple_spinner_item, arraySpinner);
        adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        this.mAllowip.setAdapter(adapter1);
        this.mAllowip.invalidate();
    } 
    private ProgressDialog progDialog;
 
//    Async task just in case things take a long time 
    private class IPResolver extends AsyncTask<Void, Void, Void> {
 
        @Override 
        protected Void doInBackground(Void... arg0) {
            getClientIPs(); 
            return null; 
        }