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

  • Home
  • SEARCH
  • 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 8435953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:03:49+00:00 2026-06-10T07:03:49+00:00

Friends I am using intent to navigate from one activity to another.How ever the

  • 0

Friends I am using intent to navigate from one activity to another.How ever the navigation process is taking about a minute.Please find logs

08-21 18:01:32.719: I/System.out(4636): Button has been clicked
08-21 18:02:32.999: I/System.out(4636): successfull navigation

Code:

public void onClick(View v) {
if(v==refreshButton)
{
    System.out.println("Button has been clicked");
    startActivity(new Intent(this,Refresh.class));
}

Please help me in the same. I have tried cleaning the project and restarted the smartphone also.

Refresh Class

public class RefreshSettings extends Activity implements android.view.View.OnClickListener
{

    Button refresh;
    EditText code;
    String pinCode;
    TelephonyManager telephonyManager;
     String imei;
    @Override
    protected void onSaveInstanceState(Bundle outState) {
        System.out.println("successfull navigation");
        super.onSaveInstanceState(outState);
        setContentView(R.layout.refresh_settings);


        telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
        imei=telephonyManager.getDeviceId();

        refresh=(Button)findViewById(R.id.button_Refresh_Settings);
        refresh.setOnClickListener(this);

        code=(EditText)findViewById(R.id.edittext_Refresh_Code);
    }
}
  • 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-10T07:03:51+00:00Added an answer on June 10, 2026 at 7:03 am

    Change onSaveInstanceState() to onCreate() .

    From the documentation I understand that onSaveInstanceState() should be called to store only temporary information,

    protected void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        System.out.println("successfull navigation");
        setContentView(R.layout.refresh_settings);
    
    
        telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
        imei=telephonyManager.getDeviceId();
    
        refresh=(Button)findViewById(R.id.button_Refresh_Settings);
        refresh.setOnClickListener(this);
    
        code=(EditText)findViewById(R.id.edittext_Refresh_Code);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi friends i'm getting json from server (using kohana framework 3.0) like this.... {
I made a simple program for my friends using some things from the os
I'm using an intent chooser to invite friends : Intent intent = new Intent(Intent.ACTION_SEND);
How does one retrieve a users friends using facebook connect so that a user
I'm trying to get all events from all of my friends on Facebook using
friends, i am using following global variables in my activity private String Session_ID; private
Hey i was using the list of friends which gets from the mysql db
I am using below code to get profile image of friends using Resfb. I
The following batch request for retrieve friends using the same app is not working:
I can send requests to friends using Multi Friend Request Selector inside my Page

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.