Revision 403bb53b src/com/rackspacecloud/android/CloudActivity.java
b/src/com/rackspacecloud/android/CloudActivity.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 |
/* |
35 | 36 |
* CloudActivity manages the display and hiding of |
... | ... | |
45 | 46 |
private ProgressDialog pDialog; |
46 | 47 |
|
47 | 48 |
@Override |
49 |
protected void onCreate(Bundle savedInstanceState){ |
|
50 |
super.onCreate(savedInstanceState); |
|
51 |
|
|
52 |
//So keyboard doesn't open till user clicks |
|
53 |
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); |
|
54 |
} |
|
55 |
|
|
56 |
@Override |
|
48 | 57 |
protected void onSaveInstanceState(Bundle outState) { |
49 | 58 |
super.onSaveInstanceState(outState); |
50 | 59 |
|
... | ... | |
95 | 104 |
viewIntent.putExtra("request", bundle.getCurlRequest()); |
96 | 105 |
startActivity(viewIntent); |
97 | 106 |
} |
107 |
|
|
108 |
protected void showToast(String message) { |
|
109 |
Context context = getApplicationContext(); |
|
110 |
int duration = Toast.LENGTH_SHORT; |
|
111 |
Toast toast = Toast.makeText(context, message, duration); |
|
112 |
toast.show(); |
|
113 |
} |
|
98 | 114 |
|
99 | 115 |
protected final CloudServersException parseCloudServersException(HttpResponse response) { |
100 | 116 |
CloudServersException cse = new CloudServersException(); |
Also available in: Unified diff