質問編集履歴

4

コードの追加

2016/11/03 11:20

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -370,6 +370,10 @@
370
370
 
371
371
  AndroidMoniterには、こんなエラーが出ていました。
372
372
 
373
+
374
+
375
+ このコードでできました。
376
+
373
377
  ```java
374
378
 
375
379
  11-02 19:12:01.879 20145-20145/ncmbdataquick.mbaas.com.nifty.datastorequickstart E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
@@ -381,3 +385,41 @@
381
385
  ```
382
386
 
383
387
  どうぞよろしくお願いします。
388
+
389
+
390
+
391
+ ```java
392
+
393
+ @Override
394
+
395
+ public void done(List<NCMBObject> results, NCMBException e) {
396
+
397
+ if (e!= null||results.size()>=1) {
398
+
399
+ //e!=nullかつresult.sizeが1件
400
+
401
+ new AlertDialog.Builder(ActivityThird.this)
402
+
403
+ .setTitle("Notification from Nifty")
404
+
405
+ .setMessage("Get successfull!" + results)
406
+
407
+ .setPositiveButton("ログイン完了です", null)
408
+
409
+ .show();
410
+
411
+ //検索成功時の処理
412
+
413
+ //ここでログインする引数のからのメソッドを呼び出し、
414
+
415
+ //Activityforseに移行させたい。
416
+
417
+ //intentとか使う
418
+
419
+
420
+
421
+ //elseをけした。
422
+
423
+ }
424
+
425
+ ```

3

ミスの変更

2016/11/03 11:20

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -210,6 +210,8 @@
210
210
 
211
211
 
212
212
 
213
+ ```
214
+
213
215
 
214
216
 
215
217
  content_activity_third.xmlです。
@@ -364,18 +366,18 @@
364
366
 
365
367
 
366
368
 
369
+
370
+
371
+ AndroidMoniterには、こんなエラーが出ていました。
372
+
373
+ ```java
374
+
375
+ 11-02 19:12:01.879 20145-20145/ncmbdataquick.mbaas.com.nifty.datastorequickstart E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
376
+
377
+ 11-02 19:12:01.879 20145-20145/ncmbdataquick.mbaas.com.nifty.datastorequickstart E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
378
+
379
+ 1
380
+
367
381
  ```
368
382
 
369
- AndroidMoniterには、こんなエラーが出ていました。
370
-
371
- ```java
372
-
373
- 11-02 19:12:01.879 20145-20145/ncmbdataquick.mbaas.com.nifty.datastorequickstart E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
374
-
375
- 11-02 19:12:01.879 20145-20145/ncmbdataquick.mbaas.com.nifty.datastorequickstart E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
376
-
377
- 1
378
-
379
- ```
380
-
381
383
  どうぞよろしくお願いします。

2

xmlコードの追加

2016/11/02 10:53

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -212,18 +212,160 @@
212
212
 
213
213
 
214
214
 
215
-
215
+ content_activity_third.xmlです。
216
+
216
-
217
+ ```java
218
+
217
-
219
+ <?xml version="1.0" encoding="utf-8"?>
220
+
218
-
221
+ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
222
+
219
-
223
+ xmlns:tools="http://schemas.android.com/tools"
224
+
220
-
225
+ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
226
+
221
-
227
+ android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
228
+
229
+ android:paddingRight="@dimen/activity_horizontal_margin"
230
+
231
+ android:paddingTop="@dimen/activity_vertical_margin"
232
+
233
+ android:paddingBottom="@dimen/activity_vertical_margin"
234
+
235
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
236
+
237
+ tools:showIn="@layout/activity_activity_third"
238
+
239
+ tools:context="ncmbdataquick.mbaas.com.nifty.datastorequickstart.ActivityThird">
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+ <EditText
250
+
251
+ android:layout_width="wrap_content"
252
+
253
+ android:layout_height="wrap_content"
254
+
255
+ android:inputType="textPassword"
256
+
257
+ android:ems="10"
258
+
259
+ android:id="@+id/CheckPassword"
260
+
261
+ android:layout_centerVertical="true"
262
+
263
+ android:layout_centerHorizontal="true" />
264
+
265
+
266
+
267
+ <EditText
268
+
269
+ android:layout_width="wrap_content"
270
+
271
+ android:layout_height="wrap_content"
272
+
273
+ android:id="@+id/CheckUserName"
274
+
275
+ android:layout_marginTop="52dp"
276
+
277
+ android:layout_below="@+id/textView3"
278
+
279
+ android:layout_alignLeft="@+id/textView3"
280
+
281
+ android:layout_alignStart="@+id/textView3"
282
+
283
+ android:layout_alignRight="@+id/CheckPassword"
284
+
285
+ android:layout_alignEnd="@+id/CheckPassword" />
286
+
287
+
288
+
289
+ <TextView
290
+
291
+ android:layout_width="wrap_content"
292
+
293
+ android:layout_height="wrap_content"
294
+
295
+ android:textAppearance="?android:attr/textAppearanceSmall"
296
+
297
+ android:text="UserName"
298
+
299
+ android:id="@+id/textView3"
300
+
301
+ android:layout_alignParentTop="true"
302
+
303
+ android:layout_toLeftOf="@+id/LoginCheckAnswer"
304
+
305
+ android:layout_toStartOf="@+id/LoginCheckAnswer" />
306
+
307
+
308
+
309
+ <TextView
310
+
311
+ android:layout_width="wrap_content"
312
+
313
+ android:layout_height="wrap_content"
314
+
315
+ android:textAppearance="?android:attr/textAppearanceSmall"
316
+
317
+ android:text="Password"
318
+
319
+ android:id="@+id/textView4"
320
+
321
+ android:layout_below="@+id/CheckUserName"
322
+
323
+ android:layout_alignLeft="@+id/CheckPassword"
324
+
325
+ android:layout_alignStart="@+id/CheckPassword"
326
+
327
+ android:layout_marginTop="84dp" />
328
+
329
+
330
+
331
+ <Button
332
+
333
+ android:layout_width="wrap_content"
334
+
335
+ android:layout_height="wrap_content"
336
+
337
+ android:text="ログインする"
338
+
339
+ android:id="@+id/LoginCheckAnswer"
340
+
341
+ android:layout_alignParentBottom="true"
342
+
343
+ android:layout_toRightOf="@+id/textView4"
344
+
345
+ android:layout_toEndOf="@+id/textView4"
346
+
347
+ android:layout_marginBottom="82dp" />
348
+
349
+
350
+
351
+ </RelativeLayout>
222
352
 
223
353
 
224
354
 
225
355
  ```
226
356
 
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+ ```
368
+
227
369
  AndroidMoniterには、こんなエラーが出ていました。
228
370
 
229
371
  ```java

1

詳細の追加

2016/11/02 10:52

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -223,3 +223,17 @@
223
223
 
224
224
 
225
225
  ```
226
+
227
+ AndroidMoniterには、こんなエラーが出ていました。
228
+
229
+ ```java
230
+
231
+ 11-02 19:12:01.879 20145-20145/ncmbdataquick.mbaas.com.nifty.datastorequickstart E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
232
+
233
+ 11-02 19:12:01.879 20145-20145/ncmbdataquick.mbaas.com.nifty.datastorequickstart E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
234
+
235
+ 1
236
+
237
+ ```
238
+
239
+ どうぞよろしくお願いします。