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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:40:41+00:00 2026-05-22T15:40:41+00:00

Hi i have three column in database 1)topic 2)subtopic 3)imagename.first i am getting all

  • 0

Hi i have three column in database 1)topic 2)subtopic 3)imagename.first i am getting all topic from db in listview. in on clicklistitem am getting subtopic where topic equal which an item i selected if there is no subtopic am directly displaying image.if subtopic present am displaying all subtopic in listview then in onclick listitem am displaying image.now from image if i press backbutton it should list corresponding subtopic listview if it comes from subtopic listview else direct to main listview.how to do this?i couldnt display subtopic listview remaining working fine.

  • 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-05-22T15:40:42+00:00Added an answer on May 22, 2026 at 3:40 pm

    Hi bamini create a queue which will contain the view. means for the first time when application launches it will contain topic view only. when you go from topic to subtopic or image name insert those in queue.
    and on back key get the latest view set the view.

    I have tested it. It is working as per your expectation.

    Queue queue = new LinkedList();                        
    queue.add(topic);
    queue.add(subtopic);
    queue.add(imagename);
    
    setContentView ((View) queue.poll());
    
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            Object object = queue.poll();
            if (object != null) {
                setContentView((View) object);
            } else {
                finish();
            }
        }
    
        return false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a logging table which has three columns. One column is a unique
If all tables I want to delete from have the column gamer_id can i
I have two tables one has a three column composite key. The other needs
I have a table in SQL Server 2005 which has three columns: id (int),
I have project which contain 4 tables among these shedule table Session column i
My database designs have previously been rather linear, so I'm getting stumped on what
I have a question regarding updating a MySQL database. I have three tables: Match,
I have rows in an Oracle database table which should be unique for a
In the database there are column values which appear in multiple rows. The example
I am getting a set of data from the database where the query produces

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.