root / src / com / rackspace / cloud / android / ErrorDetailsActivity.java @ db9092dd
History | View | Annotate | Download (710 Bytes)
1 |
package com.rackspace.cloud.android; |
---|---|
2 |
|
3 |
import android.app.Activity; |
4 |
import android.os.Bundle; |
5 |
import android.widget.TextView; |
6 |
|
7 |
import com.rackspace.cloud.android.R; |
8 |
|
9 |
public class ErrorDetailsActivity extends Activity { |
10 |
|
11 |
public void onCreate(Bundle savedInstanceState) { |
12 |
super.onCreate(savedInstanceState);
|
13 |
setContentView(R.layout.errordetails); |
14 |
setUpText(savedInstanceState); |
15 |
} |
16 |
|
17 |
private void setUpText(Bundle text) { |
18 |
String request = (String) this.getIntent().getExtras().get("request"); |
19 |
String response = (String) this.getIntent().getExtras().get("response"); |
20 |
((TextView) findViewById(R.id.request_text)).setText(request); |
21 |
((TextView) findViewById(R.id.response_text)).setText(response); |
22 |
} |
23 |
} |