質問編集履歴
1
情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -58,4 +58,51 @@
|
|
58
58
|
}
|
59
59
|
```
|
60
60
|
と描かれているWEBを参考にして作りました。こちらではgetApplication()は定義されていないようです。
|
61
|
-
自分のコードでどのように定義すべきでしょうか?
|
61
|
+
自分のコードでどのように定義すべきでしょうか?
|
62
|
+
|
63
|
+
クラスの宣言部分には
|
64
|
+
```Java
|
65
|
+
public class ProfileActivity extends Activity {
|
66
|
+
|
67
|
+
|
68
|
+
private Bitmap bitmap;
|
69
|
+
private byte[] bytes;
|
70
|
+
private Uri bitmapUri;
|
71
|
+
private RequestBody icon_img;
|
72
|
+
private static final int REQUEST_CODE_CAMERA = 1;
|
73
|
+
private static final int REQUEST_CODE_GALLERY = 2;
|
74
|
+
private EditText mailEdit;
|
75
|
+
private EditText nicknametex;
|
76
|
+
private EditText usernametext;
|
77
|
+
private EditText introductiontext;
|
78
|
+
private Spinner areaSpinner;
|
79
|
+
private Spinner sexEdit;
|
80
|
+
private Spinner birthYear;
|
81
|
+
private Spinner birthMonth;
|
82
|
+
private Spinner birthDay;
|
83
|
+
private Button saveButton;
|
84
|
+
private ArrayAdapter parentSpinnerAdapter, childSpinnerAdapter;
|
85
|
+
private Spinner parentSpinner, childSpinner;
|
86
|
+
private ImageButton icon;
|
87
|
+
private RequestBody email;
|
88
|
+
private RequestBody sex;
|
89
|
+
private RequestBody birthday;
|
90
|
+
private RequestBody username;
|
91
|
+
private RequestBody area;
|
92
|
+
private RequestBody bio;
|
93
|
+
private UserInfoApi userInfoApi;
|
94
|
+
private TextView privacy_link, terms_link, forgotten_link, user_regist;
|
95
|
+
private static final int USER_REGIST = 1;
|
96
|
+
private com.google.firebase.analytics.FirebaseAnalytics FirebaseAnalytics;
|
97
|
+
/**
|
98
|
+
* ATTENTION: This was auto-generated to implement the App Indexing API.
|
99
|
+
* See https://g.co/AppIndexing/AndroidStudio for more information.
|
100
|
+
*/
|
101
|
+
private GoogleApiClient client;
|
102
|
+
private Button SaveButton;
|
103
|
+
private KeyValuePairAdapter sexEditAdapter;
|
104
|
+
private KeyValuePairAdapter areaSpinnerAdapter;
|
105
|
+
|
106
|
+
|
107
|
+
```
|
108
|
+
と書きました
|