separate UI window of the Background Thread

by Asif k » Mon, 04 May 2009 15:44:40 GMT

Sponsored Links
 Hi all,

   During the processing of the background thread, I want to create
another GUI window (of b/g thread) which will overlap the main UI
thread and show b/g processing and this window will be killed when b/g
thread will be over.

   Can anyone suggest how to accomplish this task?? Thanks in advance.

Other Threads

1. Activity and Views relelation ship


I have a question concerning views, Activities and how they are

I have a TabActivity. Within this activity (in the onCreate method) I
create a TabHost and a TabSpec and do a
tabSpectSearch.setContent(intenSearch); The Indent is created using
intentSearch = new Intent().setClass(this, MyActivity.class);
Now the MyActivity contains a Button on which I add a onClickListener.
This has the method public void onClick(View view).

My question is: from this passed view, is there a way, to get the main
activity containing the tabs? Or how do I get this object?

Thanks in advance


2. Change the playback rate of a track in real time

Hello everybody,

I would like to know if somebody knows a library to changing the playback
rate of a track in real time. My idea is to load a track and change its
playback rate to half or double. Firstly, I tried with MusicPlayer but is
was not possible at all and then I tried with SoundPool. The problem is that
with SoundPool I cant change the rate once the track is loaded. Here is the
code I am using (proof of concept):

    float j = 1;

    public void onCreate(Bundle savedInstanceState) {

        Button b = (Button)findViewById(;
        b.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                j = (float) (j +.5);


        AssetFileDescriptor afd;
        try {

            SoundPool sp = new SoundPool(1, AudioManager.STREAM_MUSIC, 0);

            afd = getAssets().openFd("wav/sample.wav");
            int id = sp.load(afd, 1);
  , 1, 1, 1, 0, j);

        } catch (IOException e) {
            // TODO Auto-generated catch block

When I press the button, the playback rate should increase but it does not
happen. Any idea of how change the rate in real time?

Thanks in advance.


3. Not calling OnStop when an incoming call is received

4. Android by Selular

5. Getting a Dev phone.

6. Numpang nampang Tom

7. Wiki for snippets?