|
![](/images/resource/spacer.gif) |
|
Android Intent ค่าไปแล้วค่าเพี้ยนอ่ะครับ รับมาแค่สองค่า แต่พอไปแสดงโชว์กลับขึ้นมาห้าอ่ะครับ ต้องทำไง |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
Intent ไป
Code (Android-Java)
btn4.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Open Form 2
String SName = Name.getText().toString();
Intent newActivity = new Intent(NewUart.this,Select.class);
newActivity.putExtra("SName", SName);
newActivity.putStringArrayListExtra("strArr3",strArr3);
newActivity.putIntegerArrayListExtra("arr_value",arr_value);
newActivity.putIntegerArrayListExtra("arr_value1",arr_value1);
newActivity.putStringArrayListExtra("strArr2",strArr2);
newActivity.putStringArrayListExtra("strArr1",strArr1);
newActivity.putStringArrayListExtra("strArr",strArr);
newActivity.putIntegerArrayListExtra("arr_value2",arr_value2);
startActivity(newActivity);
รับ
Code (Android-Java)
Bundle bundle = getIntent().getExtras();
SName1 = bundle.getString("SName");
strArr1 = bundle.getStringArrayList("strArr");
strArr11 = bundle.getStringArrayList("strArr1");
strArr22 = bundle.getStringArrayList("strArr2");
strArr33 = bundle.getStringArrayList("strArr3");
arr_value1 = bundle.getIntegerArrayList("arr_value");
arr_value11 = bundle.getIntegerArrayList("arr_value1");
arr_value22 = bundle.getIntegerArrayList("arr_value2");
ขึ้นมาห้าตัวเฉยเลยครับ รับมาแค่สอง ใครรู้ช่วยบอกที
Tag : Mobile, Android
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2013-10-23 21:18:08 |
By :
GooDbyJudy |
View :
917 |
Reply :
1 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 02
|