Revision 403bb53b src/com/rackspacecloud/android/CloudListActivity.java
b/src/com/rackspacecloud/android/CloudListActivity.java | ||
---|---|---|
30 | 30 |
import android.view.WindowManager; |
31 | 31 |
import android.view.ViewGroup.LayoutParams; |
32 | 32 |
import android.widget.ProgressBar; |
33 |
import android.widget.Toast; |
|
33 | 34 |
|
34 | 35 |
public class CloudListActivity extends ListActivity{ |
35 | 36 |
|
... | ... | |
38 | 39 |
private ProgressDialog pDialog; |
39 | 40 |
|
40 | 41 |
@Override |
42 |
protected void onCreate(Bundle savedInstanceState){ |
|
43 |
super.onCreate(savedInstanceState); |
|
44 |
|
|
45 |
//So keyboard doesn't open till user clicks |
|
46 |
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); |
|
47 |
} |
|
48 |
|
|
49 |
@Override |
|
41 | 50 |
protected void onSaveInstanceState(Bundle outState) { |
42 | 51 |
super.onSaveInstanceState(outState); |
43 | 52 |
|
... | ... | |
88 | 97 |
viewIntent.putExtra("request", bundle.getCurlRequest()); |
89 | 98 |
startActivity(viewIntent); |
90 | 99 |
} |
100 |
|
|
101 |
protected void showToast(String message) { |
|
102 |
Context context = getApplicationContext(); |
|
103 |
int duration = Toast.LENGTH_SHORT; |
|
104 |
Toast toast = Toast.makeText(context, message, duration); |
|
105 |
toast.show(); |
|
106 |
} |
|
91 | 107 |
|
92 | 108 |
protected final CloudServersException parseCloudServersException(HttpResponse response) { |
93 | 109 |
CloudServersException cse = new CloudServersException(); |
Also available in: Unified diff