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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:35:04+00:00 2026-05-18T11:35:04+00:00

In my project I have three tabs. I want to know, each time that

  • 0

In my project I have three tabs. I want to know, each time that I click a tab onCreate function runs or it runs just one time when it creates.

Actually, in one tab I want to show a picture. for the first time, default picture is shown. However, if user creates his picture (in other tabs), when he clicks this tab the new picture should be shown.

My problem is, only default picture is shown and it doesn’t show new picture. I think onCreate method don’t run each time that I click the tab. Am I right?

  • 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-18T11:35:05+00:00Added an answer on May 18, 2026 at 11:35 am

    hi friend it depends up on whether the activity is still active or not, if the activity is in paused mode then only the onResume() method will be called, if the activity is destroyed then the onCreate() method will be called,

    my suggestions is that if u want to write any code u can use onResume()

    or else

    u can explicitly kill previous activities using finish method of activity. to make sure that every time onCreate() method is invoked..

    u can call this finish() in the tab class u have written for tabs before switching to other tabs

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

Sidebar

Related Questions

In a solution I have three projects,you can see on picture.Want to access project-1
I have an Android project that branched into three different applications, app-1 , app-2
I have a very simple Setup project that copies three dlls into the GAC.
I have a school project to program multilayer perceptron that classify data into three
i have a project with 3 tabs, first tab have tableview with navigation, i
In my framework project I have a class that represents tabs in a content
I'm playing with a GWT/GAE project which will have three different pages, although it
I have three different configurations on my project, all three do not require all
I have three projects 1)unmanaged c++ containing full business logic 2)C++/CLI ( Project name
In my project I have the following three interfaces, which are implemented by classes

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.