I am developing a basic android app which must handle several different things typically adding data and deleting an entry, must make use of an array.
at the moment I have a class that deals with adding a product this makes use of 2 edit texts fields and 4 spinners, when the user clicks on add product it will get the 2 textfields and 4 selected items from the spinner and add these all too the array.
deleting an item which just display all products held the user will then select the item they wish to delete and click the delete button.
I need some help with creating an array, will it be best to have a different class that deals with the array i.e creating the array when the app is ran and has methods for adding and deleting product.
I just want to know how it would possible to set this array up an array will need to hold the following:
product name (edit tect field)
category (edit text field)
price (spinner)
day (spinner)
month (spinner)
year (spinner)