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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:53:28+00:00 2026-05-22T18:53:28+00:00

basically, what am doing is that am running a flash file (playing music) in

  • 0

basically, what am doing is that am running a flash file (playing music) in the background of the app using webview, and when I want to stop the music , I just load “about:blank”

I want to keep the flash file running (music) when my app gets paused (which works fine so far) the problem is when the app resumes, pressing on pause button launches a new webview instead of changing the link in the previous one and the sound doesn’t stop

the only solution I found was to kill the process and restart the app, but that’s not practical, any idea of how to still be able to use the same webview when resuming the app ?

Update: guess I wasn’t clear enough, I have a webview widget stated as “gone” , I only need the audio form the flash file I’m running in the webview so the “play” button loads a URL that contains the flash file (so the user only hears music, and doesn’t notice that I’m using a webview), when I press the back/home button the music doesn’t stop (I like it that way) but when I go back and press on play again it loads another url in a new page, you get double music

  • 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-22T18:53:29+00:00Added an answer on May 22, 2026 at 6:53 pm

    There are a few possible causes for this. One is simply that multiple instances of your activity are being created. Assuming you don’t want this, add android:launchMode="singleTask" or android:launchMode="singleInstance" to your main <activity> in AndroidManifest.xml. More info here:
    http://developer.android.com/guide/topics/manifest/activity-element.html#lmode

    If that doesn’t help, another possibility is that your application is creating a new instance of the WebView — either because the relevant code is in the wrong place (e.g. onStart()), or because the app has actually been destroyed and re-created by Android rather than paused and resumed — and the old WebView thread is still hanging around for some reason. More information (such as code samples) would be helpful in identifying the problem, if that’s the case.

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

Sidebar

Related Questions

Basically what I want to do it this: a pdb file contains a location
I have this web app that is running ASP .NET MVC 1.0 with LINQ
I have an MVC web app running in azure that serves up large files
Basically you have two ways for doing this: for (int x = 0; x
Basically, something better than this: <input type=file name=myfile size=50> First of all, the browse
Basically I’ve heard that certain conditions will cause .NET to blow past the finally
Basically I'm trying to accomplish the same thing that mailto:bgates@microsoft.com does in Internet Explorer
I'm trying to store a complex object here and am doing that by serialising
I'm using a framework called Processing which is basically a Java applet. It has
I want to improve the performance of my application, and found that it spends

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.