Click here to Skip to main content
14,456,879 members
   

Android

 
GeneralRe: Android development Pin
Richard MacCutchan28-Dec-18 22:40
communityengineerRichard MacCutchan28-Dec-18 22:40 
AnswerRe: Android development Pin
Mycroft Holmes29-Dec-18 12:34
MemberMycroft Holmes29-Dec-18 12:34 
AnswerRe: Android development Pin
David Crow2-Jan-19 7:16
MemberDavid Crow2-Jan-19 7:16 
AnswerMessage Closed Pin
3-Mar-19 21:46
MembereSparkInfo3-Mar-19 21:46 
AnswerMessage Closed Pin
19-Jul-19 1:53
MemberMyAppGurus19-Jul-19 1:53 
Questionprogress Bar for download manager in android Pin
Member 140819738-Dec-18 0:19
MemberMember 140819738-Dec-18 0:19 
SuggestionRe: progress Bar for download manager in android Pin
David Crow9-Dec-18 14:38
MemberDavid Crow9-Dec-18 14:38 
QuestionListview item to textview Pin
Member 140794445-Dec-18 21:46
MemberMember 140794445-Dec-18 21:46 
I am trying to move a checked listview item from one activity to a textview of another activity. But the problem is no matter which item I click, I am only getting textview value of first item(Position) in listview.

Listview code
b1.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              SparseBooleanArray checked =listView.getCheckedItemPositions();
              ArrayList<String> selectedItems = new ArrayList<String>();
              String str = null;
              for (int i = 0; i < checked.size(); i++) {
                  int position;
                  position = checked.keyAt(i);
                  if (checked.valueAt(i))
                      selectedItems.add(String.valueOf(arrayAdapter.getItem(position)));
                  str = listView.getItemAtPosition(i).toString();
                  str=str.replaceAll("[^\\d.]", "");
              }
              Intent i = new Intent(getApplicationContext(), Activation.class);
              i.putExtra("contact", str);
              startActivity(i);
              arrayAdapter.remove(str);
          }
      });


This is the code of how the listview item is accepted as textview

Intent i = getIntent();
                String product = i.getStringExtra("contact");
                text.setText(product);

AnswerRe: Listview item to textview Pin
Richard MacCutchan5-Dec-18 23:12
communityengineerRichard MacCutchan5-Dec-18 23:12 
GeneralRe: Listview item to textview Pin
Member 140794446-Dec-18 0:45
MemberMember 140794446-Dec-18 0:45 
GeneralRe: Listview item to textview Pin
Richard MacCutchan6-Dec-18 1:24
communityengineerRichard MacCutchan6-Dec-18 1:24 
QuestionRe: Listview item to textview Pin
David Crow6-Dec-18 5:52
MemberDavid Crow6-Dec-18 5:52 
QuestionPOSTING DATA FROM ANDROID TO PHP SERVER Pin
Member 1407048128-Nov-18 5:47
MemberMember 1407048128-Nov-18 5:47 
QuestionRe: POSTING DATA FROM ANDROID TO PHP SERVER Pin
David Crow29-Nov-18 18:46
MemberDavid Crow29-Nov-18 18:46 
AnswerRe: POSTING DATA FROM ANDROID TO PHP SERVER Pin
GiteHrudaya14-Dec-18 1:17
MemberGiteHrudaya14-Dec-18 1:17 
AnswerRe: POSTING DATA FROM ANDROID TO PHP SERVER Pin
GiteHrudaya27-Dec-18 23:31
MemberGiteHrudaya27-Dec-18 23:31 
QuestionDetect VPN From Android App Pin
Kevin Marois26-Nov-18 5:04
professionalKevin Marois26-Nov-18 5:04 
AnswerRe: Detect VPN From Android App Pin
Richard MacCutchan26-Nov-18 6:04
communityengineerRichard MacCutchan26-Nov-18 6:04 
GeneralRe: Detect VPN From Android App Pin
Kevin Marois26-Nov-18 6:25
professionalKevin Marois26-Nov-18 6:25 
GeneralRe: Detect VPN From Android App Pin
Richard MacCutchan26-Nov-18 7:53
communityengineerRichard MacCutchan26-Nov-18 7:53 
GeneralRe: Detect VPN From Android App Pin
Kevin Marois26-Nov-18 8:26
professionalKevin Marois26-Nov-18 8:26 
QuestionRe: Detect VPN From Android App Pin
David Crow26-Nov-18 8:50
MemberDavid Crow26-Nov-18 8:50 
AnswerRe: Detect VPN From Android App Pin
Kevin Marois26-Nov-18 10:12
professionalKevin Marois26-Nov-18 10:12 
QuestionRe: Detect VPN From Android App Pin
David Crow26-Nov-18 10:17
MemberDavid Crow26-Nov-18 10:17 
AnswerRe: Detect VPN From Android App Pin
Kevin Marois26-Nov-18 10:21
professionalKevin Marois26-Nov-18 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.