I have made a form in that I have a textView field called"CategoryID",now when the user click on it it will go to a categoryListActivity,In that activity a List with categories are them ,In that List some of categories having subcategories and some not,So from that i want its name and Id ,But my problem is how to send name and id if category may having subcategory?
my basic logic(what i need is):
categoryID(TextView) ->onClick - >goto "CategoryActivity" --> if "category" having subcategory it will go to next activity "subcategory" otherwise it will redirect to the form with "category name" and "ID" if not it will goto "SubCategoryActivity" and from there a list will there the item which i will click will send to form field "categoryName(TextView)".Please help me to solve this.