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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:13:45+00:00 2026-06-13T15:13:45+00:00

Question updated: the problem with return button solved mysteriously. now the it crashes when

  • 0

Question updated: the problem with return button solved mysteriously.
now the it crashes when starting new activity (full screen player)

I tested my app under four conditions:

1. press the button before the appearing WebView : it works fine

2. press the button while YouTube video is playing in WebView : it works fine

3. press the button after WebView finished playing : it works fine

4. press the button after the appearing of WebView but before the play button is clicked: it crashes

My code is as follows:

@Override
public void onCreate(Bundle savedInstanceState) {
    // Remove notification bar
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    this.getWindow().setFlags(
            WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
            WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

    super.onCreate(savedInstanceState); 
    webview = (WebView) findViewById(R.id.web_view_player_vertical);
    webview.clearCache(true);
    webview.clearHistory();
    webview.getSettings().setJavaScriptEnabled(true);
    webview.getSettings().setPluginState(PluginState.ON);
    webview.getSettings().setPluginsEnabled(true);
    webview.getSettings().setLoadWithOverviewMode(true);// completely zoomed out
    webview.getSettings().setUseWideViewPort(true);
    webview.getTouchables();
    webview.setBackgroundColor(Color.parseColor("#00000000"));
    webview.setWebChromeClient(new WebChromeClient());
    webview.setWebViewClient(new WebViewClient());
    webview.loadUrl(emdLink);
}

@Override
public void onPause() {
    super.onPause();
    try {
        Log.i("in onpause", "onpause try");
        Class.forName("android.webkit.WebView")
                .getMethod("onPause", (Class[]) null)
                .invoke(webview, (Object[]) null);
        Log.i("in onpause", "onpause tried");


    } catch (ClassNotFoundException cnfe) {
    } catch (NoSuchMethodException nsme) {
    } catch (InvocationTargetException ite) {
    } catch (IllegalAccessException iae) {
    } catch (Exception  all) {
        Log.i("Exception", "Exception : "+all );
    }

    webview.destroy();
}

public void FullScreenFunction(){
        Log.v("FullScreenFunction", "durationPass :: " + duration);
        Log.v("FullScreenFunction", SrcPath1);
        Bundle bundle = new Bundle();
        bundle.putString("duration", duration);
        bundle.putString("link", SrcPath1);
        bundle.putString("youtubeLink", youtubeLink);
        bundle.putString("thumbnailLink", thumbnailLink);
        bundle.putString("title", title);
        bundle.putString("id", VideoId);
        bundle.putString("view_count", viewCount);
        bundle.putString("uploaded_date", date);
        Log.v("FullScreenFunction", "start");

        Intent myIntent = new Intent(this, HdPlayerHorizontal.class);
        myIntent.putExtras(bundle);
        startActivity(myIntent);

}

@Override
protected void onDestroy() {
    // TODO Auto-generated method stub
    super.onDestroy();
    Toast.makeText(this, "onDestroy", Toast.LENGTH_LONG).show();
}

@Override
protected void onStop() {
    // TODO Auto-generated method stub
    super.onStop();
    Toast.makeText(this, "onStop", Toast.LENGTH_LONG).show();
}

@Override
public void onResume() {
    super.onResume();
    Log.v("onResume", "onResume");

}

Any kind of help would be appreciated. Thanks in advance!

Here are the messages from logcat:

I/ActivityManager(1872): START {HdPlayerHorizontal (has extras)} from pid 13552
I/onPuase(13552): onPuase
I/in onpause(13552): onpause try
I/in onpause(13552): onpause tried
D/webviewglue(13552): nativeDestroy view: 0xc7b8d0
A/libc(13552): Fatal signal 11 (SIGSEGV) at 0x00d84c18 (code=2)
  • 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-13T15:13:46+00:00Added an answer on June 13, 2026 at 3:13 pm

    Fatal signal 11 is because webview is still drawing after you destroyed it. Simply put the webView.destroy() in the onStop. I believe your app will work fine

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

Sidebar

Related Questions

Updated question, see below I'm starting a new project and I would like to
ORIGINAL (see UPDATED QUESTION below) I am designing a new laboratory database that tests
My question comes from a problem which I have right now. I have MainWindow,
Questions Updated instead of making a new question... I really want to provide a
UPDATE: Problem located in my related question - Nokogiri performance problem I am having
Question Updated for Bounty In Flash I need to load a dynamically generated XML
Edit (updated question) I have a simple C program: // it is not important
UPDATED QUESTION Since the ctor is not supported by .NETCF (public FileStream(IntPtr handle, FileAccess
Updated question given Andrew Hare's correct answer: Given the following C# classes: public class
UPDATED QUESTION: Ok, I am going to simplify my question since I don't really

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.