Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to edit previous listView instead of add a new one?  RSS feed

 
John Joe
Ranch Hand
Posts: 340
2
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one icon button and one listView in Activity A.

Icon button-----> intent to B, return value to A, add to new list

ListView click--> intent to B, return changed value back to listView

I use mClickedPosition=-1; to verify whether icon is clicked or listView,but it still add to new list even the listView is clicked.

Activity A





MyCustomBaseAdapter

 
Hot dog! An advertiser loves us THIS much:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!