質問編集履歴

4

書式の改善

2017/01/30 14:49

投稿

sios
sios

スコア7

test CHANGED
File without changes
test CHANGED
@@ -236,13 +236,15 @@
236
236
 
237
237
  NdefMessage msg = (NdefMessage) rawMsgs[0];
238
238
 
239
+ NdefRecord[] records = msg.getRecords();
240
+
239
- String nfcid = new String(msg.getRecords()[0].getPayload());
241
+ String nfcid = new String(records[0].getPayload());
240
-
242
+
241
- String nfclat = new String(msg.getRecords()[1].getPayload());
243
+ String nfclat = new String(records[1].getPayload());
242
-
244
+
243
- String nfclng = new String(msg.getRecords()[2].getPayload());
245
+ String nfclng = new String(records[2].getPayload());
244
-
246
+
245
- String nfccoment = new String(msg.getRecords()[3].getPayload());
247
+ String nfccoment = new String(records[3].getPayload());
246
248
 
247
249
 
248
250
 

3

書式の改善

2017/01/30 14:48

投稿

sios
sios

スコア7

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ###実現したいこと、問題
2
2
 
3
- AndroidBeamでid,name,lat,lngの四つの値を渡したいのですが、AndroidBeamをしたときにprocessIntentというメソッドを呼ぶようにしているつもりが呼ばれません。
3
+ NFCをつかい、id,name,lat,lngの四つの値を渡したいのですが、NFCでの通信をしたときにprocessIntentというメソッドを呼ぶようにしているつもりが呼ばれません。
4
4
 
5
5
  processIntentで4つの値をうけとってintentするものを書いています。
6
6
 

2

タイトルの変更

2017/01/29 07:51

投稿

sios
sios

スコア7

test CHANGED
@@ -1 +1 @@
1
- AndroidBeamで複数の値を渡し、画面遷移したい
1
+ NFCをつかって複数の値を渡し、画面遷移したい
test CHANGED
File without changes

1

誤字

2017/01/29 04:54

投稿

sios
sios

スコア7

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,8 @@
12
12
 
13
13
  調べてみたのですがなぜprocessIntentが呼ばれないのかがわかりません・・・
14
14
 
15
+ エラーはでていません。
16
+
15
17
 
16
18
 
17
19
  ###該当のソースコード