質問編集履歴

1

情報の追加

2016/09/01 13:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -119,3 +119,97 @@
119
119
  と描かれているWEBを参考にして作りました。こちらではgetApplication()は定義されていないようです。
120
120
 
121
121
  自分のコードでどのように定義すべきでしょうか?
122
+
123
+
124
+
125
+ クラスの宣言部分には
126
+
127
+ ```Java
128
+
129
+ public class ProfileActivity extends Activity {
130
+
131
+
132
+
133
+
134
+
135
+ private Bitmap bitmap;
136
+
137
+ private byte[] bytes;
138
+
139
+ private Uri bitmapUri;
140
+
141
+ private RequestBody icon_img;
142
+
143
+ private static final int REQUEST_CODE_CAMERA = 1;
144
+
145
+ private static final int REQUEST_CODE_GALLERY = 2;
146
+
147
+ private EditText mailEdit;
148
+
149
+ private EditText nicknametex;
150
+
151
+ private EditText usernametext;
152
+
153
+ private EditText introductiontext;
154
+
155
+ private Spinner areaSpinner;
156
+
157
+ private Spinner sexEdit;
158
+
159
+ private Spinner birthYear;
160
+
161
+ private Spinner birthMonth;
162
+
163
+ private Spinner birthDay;
164
+
165
+ private Button saveButton;
166
+
167
+ private ArrayAdapter parentSpinnerAdapter, childSpinnerAdapter;
168
+
169
+ private Spinner parentSpinner, childSpinner;
170
+
171
+ private ImageButton icon;
172
+
173
+ private RequestBody email;
174
+
175
+ private RequestBody sex;
176
+
177
+ private RequestBody birthday;
178
+
179
+ private RequestBody username;
180
+
181
+ private RequestBody area;
182
+
183
+ private RequestBody bio;
184
+
185
+ private UserInfoApi userInfoApi;
186
+
187
+ private TextView privacy_link, terms_link, forgotten_link, user_regist;
188
+
189
+ private static final int USER_REGIST = 1;
190
+
191
+ private com.google.firebase.analytics.FirebaseAnalytics FirebaseAnalytics;
192
+
193
+ /**
194
+
195
+ * ATTENTION: This was auto-generated to implement the App Indexing API.
196
+
197
+ * See https://g.co/AppIndexing/AndroidStudio for more information.
198
+
199
+ */
200
+
201
+ private GoogleApiClient client;
202
+
203
+ private Button SaveButton;
204
+
205
+ private KeyValuePairAdapter sexEditAdapter;
206
+
207
+ private KeyValuePairAdapter areaSpinnerAdapter;
208
+
209
+
210
+
211
+
212
+
213
+ ```
214
+
215
+ と書きました