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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:29:29+00:00 2026-06-11T10:29:29+00:00

My Activity is getting close on rotation. Don’t know why? Also i checked this

  • 0

My Activity is getting close on rotation.
Don’t know why?

Also i checked this question:
Activity restart on rotation Android
But can’t able to find solution.

This is my oncreate function:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.manage);


    //Defining and Getting Saved Preferences
    data=getSharedPreferences("cybapps", 0);
    dataeditor=data.edit();

    //To Delete all Preferences
    dataeditor.clear();
    dataeditor.commit();

   //Declaration 

    btn_delete=(Button)findViewById(R.id.btn_delete);
    btn_schedule=(Button)findViewById(R.id.btn_schedule);
    btn_deschedule=(Button)findViewById(R.id.btn_deschedule);
    profilelist=(ListView)findViewById(R.id.profilelist);
    am=(AudioManager)getSystemService(Context.AUDIO_SERVICE);
    status=(TextView)findViewById(R.id.status);
    random=new Random(); 

   btn_delete.setOnClickListener(this);
    btn_schedule.setOnClickListener(this);
    btn_deschedule.setOnClickListener(this);

  //Listout all profiles
    listout();
}
  • 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-11T10:29:30+00:00Added an answer on June 11, 2026 at 10:29 am

    This may help you

     if your android:targetSdkVersion="12" or less
    android:configChanges="orientation|keyboardHidden">
    
    if your  android:targetSdkVersion="13" or more
    android:configChanges="orientation|keyboardHidden|screenSize">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting an Unable to destroy activity xxx: android.database.sqlite.SQLiteException: unable to close due to
I'm getting a force close on this activity due to a java.lang.nullpointerexception. It most
Okay, i am new for android developping, or any developping and getting this error.
I can't figure out why I'm getting this error in logcat: 02-14 15:44:42.470: E/ActivityThread(32164):
I'm having some trouble getting this to work, and I'm pretty close to concluding
I keep getting an error with this source code. Does anyone know what im
I'm getting a force close message here in my code. Can somebody please explain
Trying to develop hello world, but getting force close error on emulator. thanks in
I'm working on this stopwatch application, and i keep getting this weird force close
I am having trouble getting my activity to generate a MotionEvent.ACTION_UP. Probably a beginner's

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.