回答編集履歴

1

2015/02/09 02:45

投稿

veeyepee
veeyepee

スコア197

test CHANGED
@@ -1,45 +1,19 @@
1
1
  ファイルを格納する↓
2
2
 
3
-
4
-
5
- ```lang-<ここに言語を入力>
6
-
7
3
  Intent i = new Intent(ScreenA.this, ScreenB.class);
8
-
9
4
  String keyID = null;
10
-
11
5
  i.putExtra("かぎ", str);
12
-
13
-
14
-
15
- ```
16
6
 
17
7
  値を取得する↓
18
8
 
19
-
20
-
21
- ```lang-<ここに言語を入力>
22
-
23
9
  String newString;
24
-
25
10
  if (savedInstanceState == null) {
26
-
27
- extras = getIntent().getExtras();
11
+ extras = getIntent().getExtras();
28
-
29
- if(extras == null) {
12
+ if(extras == null) {
30
-
31
- newString= null;
13
+ newString= null;
32
-
33
- } else {
14
+ } else {
34
-
35
- newString= extras.getString("かぎ");
15
+ newString= extras.getString("かぎ");
36
-
37
- }
38
-
39
- } else {
40
-
41
- newString= (String) savedInstanceState.getSerializable("かぎ");
42
-
43
16
  }
44
-
45
- ```
17
+ } else {
18
+ newString= (String) savedInstanceState.getSerializable("かぎ");
19
+ }