It's a thread you've set to the background scheduling level with
Process.setThreadPriority().  AsyncTask may do this for you.
Do you have problems with the YouTube app?

On Thu, Oct 8, 2009 at 10:04 AM, dadical <[email protected]> wrote:

>
> So what exactly is the definition of a background thread vs. a
> foreground thread?
>
> I failed to mention that my video view is being invoked from an
> AsyncTask's onPostExecute method, which SHOULD afaik be running on the
> UI thread.    That being said, I'm assuming that the VideoView
> actually loads its media specified by the videoUri property on a
> separate thead, as it performs playback while it's loading. My initial
> guess was that something fairly dramatic changed in the VideoView's
> "required buffer" algorithm.  When I saw you mention the changes to
> the threading policies in Android it seemed like that might be a
> candidate as well.
>
>
>
> On Oct 8, 12:34 pm, Dianne Hackborn <[email protected]> wrote:
> > Not that I know of.  All of those threads should be in the foreground.
> >
> >
> >
> >
> >
> > On Thu, Oct 8, 2009 at 9:09 AM, dadical <[email protected]> wrote:
> >
> > > Dianne is there any chance that such threading changes would affect
> > > the playback of media in a VideoView?  I've noticed that since 1.6,
> > > when I'm on a low-bandwidth connection (e.g., EDGE) videos being
> > > loaded over HTTP start playing, but then pause until the file is
> > > pretty much completely downloaded, at which point playback continues.
> > > Code is pretty straightforward:
> >
> > >   mVideoView.setVideoURI(pResult);
> > >   final MediaController lMediaController = new MediaController
> > > (IntroVideoActivity.this);
> > >   mVideoView.setMediaController(lMediaController);
> > >   lMediaController.show(0);
> > >   mVideoView.setKeepScreenOn(true);
> > >   mVideoView.requestFocus();
> > >   mVideoView.start();
> >
> > > Dave
> >
> > > On Oct 7, 12:23 am, Dianne Hackborn <[email protected]> wrote:
> > > > On Tue, Oct 6, 2009 at 9:13 PM, Maps.Huge.Info (Maps API Guru) <
> >
> > > > [email protected]> wrote:
> > > > > The new market app shows the screen shots that can be uploaded, so
> > > > > it's a nice update. There seems to be a lot of small changes and
> (this
> > > > > could be my imagination) the phone seems to run faster an smoother.
> >
> > > > There was a bunch of work done on thread scheduling to ensure that
> all
> > > > background apps together couldn't use more than a small fraction (I
> > > believe
> > > > we ended up with 5%) of the time that the foreground threads want.
>  It
> > > makes
> > > > a big difference for example when background syncs are running.
> >
> > > > Glad it's noticeable. :)
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > [email protected]
> >
> > > > Note: please don't send private questions to me, as I don't have time
> to
> > > > provide private support, and so won't reply to such e-mails.  All
> such
> > > > questions should be posted on public forums, where I and others can
> see
> > > and
> > > > answer them.
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.- Hide quoted text -
> >
> > - Show quoted text -
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to