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 7711651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:25:46+00:00 2026-06-01T01:25:46+00:00

Lets say i had a a button that cycles through numbers how can i

  • 0

Lets say i had a a button that cycles through numbers how can i store the number but if the next array is displayed then delete the previous entry so on so on and so on. When i keep on pressing the button it diplays 1, 2 , 3 but i want it to show a single value.

Code example:

        final CharSequence[] items = {"1", "2", "3"};            
        if (value < items.length) {
           String s = (String)items[value];
           sqlName.setText(s);

            String sRow1 = sqlName.getText().toString();
            long lRow1 = Long.parseLong(sRow1);
            HotOrNot ex1 = new HotOrNot(this);
            ex1.open();
            ex1.deleteEntry(lRow1);
            ex1.close();
        }


            String name = sqlName.getText().toString();
            HotOrNot entry = new HotOrNot(SQLiteExample.this);
            entry.open();
            entry.createEntry(name);
            entry.close();

            }
  • 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-01T01:25:47+00:00Added an answer on June 1, 2026 at 1:25 am

    I don’t follow; can you restate the question? What I am gathering is that you wish to display “1”, then when the button is pressed, display “2” and so on.

    • Is your code displaying “1, 2, 3” or “1”, then “2”, then “3” now? If it is the former, there may be a problem with how you are displaying the numbers.
    • Also, if the HotOrNot class is relevant can you explain it’s function?
    • Is the concern with the display or editing the CharSequence in code?

    Further:

    sqlName.setText(s); 
    
    String sRow1 = sqlName.getText().toString();
    

    looks like it can be shortened to String sRow1 = s as you are getting the very string you just used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So lets say I had a string that was <html> <head><title>301 Moved Permanently</title><head> and
Let's say I had a program in C# that did something computationally expensive, like
Lets say that you have websites www.xyz.com and www.abc.com. Lets say that a user
Just to grok this: If I had a transient property, lets say averagePrice, and
Lets say you had a simple form to create a new article object in
For simplicity lets say I have two flex mxml pages. form.mxml button.mxml If the
Lets say you had some resource clean up like: This is C#. try{/*stuff*/} catch(Exception
So lets say I had this switch: switch(str){ case something: //a defined value //
First I thought that I had to convert JavaScript to PHP, but then I
I had a question about Java Servlets. lets say I am on a servlet

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.