Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7716723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:42:16+00:00 2026-06-01T02:42:16+00:00

I am developing a basic android app which must handle several different things typically

  • 0

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)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:42:17+00:00Added an answer on June 1, 2026 at 2:42 am

    How about this for a quick outline…

    public class ProductActivity extends Activity {
    
    private ArrayList<Product> _products = new ArrayList<Product>();
    
    private EditText _nameEdtx;
    // and other widgets
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    
        // attach activity to layout and widgets in layout
    }
    
    // assuming your button has onClick="handleAddButtonClicked"
    public void handleAddButtonClicked( View vw ) {
        _products.add( new Product( _nameEdtx.getText().toString() ) );
    }
    
    class Product {
        String _productName;
        // ... and so on
        public Product( String productName ) {
            _productName = productName;
            // and so on, with other member variables
        }
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an android app which has Facebook integration in it. I have
I'm developing an Android app which needs to connect to a .NET SOAP web
Lately I have been thinking about developing some basic android app. Its only due
I have been developing a game basic card game for Android. At the moment
I'm developing a basic iOS app that doesn't use any fancy animations except for
This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit
I'm developing an Android app as a proof of concept for our company. If
I have been developing an Android app and testing with a 1.5 AVD and
I'm developing a UDP responder to handle basic SSDP commands. The purpose of this
I am developing an android application with one basic function, to allow the user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.