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. Port 554 closed?

I have been trying to create a local RTSP server on my phone but I
haven't had any luck! I'm trying to connect from MediaPlayer to my
localhost server on port 8554 since port 554 doesn't work at all....

My server handles the replies to the mediaplayer but somehow the
player shuts down right away as if no messages were getting to it from
my server.  I hope you can understan what I'm trying to achieve here.
I'm not sure if there are some firewalls? I'm using a G1 phone to test
this.

Thanks!
Moto

Here is my code:
Thread 1:
//1. creating a server socket
providerSocket = new ServerSocket(8554, 10);
//2. Wait for connection
connection = providerSocket.accept();
providerSocket.close();
ClientIPAddr = connection.getInetAddress();
//3. Set input and output stream filters:
RTSPBufferedReader = new BufferedReader(new InputStreamReader
(connection.getInputStream()) );
RTSPBufferedWriter = new BufferedWriter(new OutputStreamWriter
(connection.getOutputStream()) );

//4. The two parts communicate via the input and output streams
System.out.println("C->S");
do{
        message = RTSPBufferedReader.readLine();
        System.out.println(message);
}while(message.length()!=0);

System.out.println("S->C");
send_RTSP_OPTIONS_response();

System.out.println("C->S");
do{
        message = RTSPBufferedReader.readLine();
        System.out.println(message);
}while(message.length()!=0);

System.out.println("S->C");
send_RTSP_DESCRIPTION_response();


Thread 2:

m = new MediaPlayer();
m.setDataSource("rtsp://localhost:8554/mobile/SR-P3Rockster.sdp");
m.prepare();
m.start();
--~--~---------~--~----~------------~-------~--~----~

2. Search Not Working

I am trying to implement the search functionality in my app,But I am not
able to get the page,Following is the code :


public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.web_view);

        onSearchRequested();
    }


public boolean onSearchRequested() {

EditText searchString = (EditText) findViewById(R.id.searchText);
webView = (WebView) findViewById(R.id.browser);

Bundle dataBundle = new Bundle();

dataBundle.putString("null", searchString );

 startSearch(queryPrefill, false, appDataBundle, false);
webView.requestFocus();

  return true;
}

I have even set the User permission in AndroiManifest.xml for INTERNET.

Thanks,
Anirudh

--~--~---------~--~----~------------~-------~--~----~

3. Have WebView default to horizontal orientation

4. App Developer Emails

5. Cupcakes Email and K9

6. HTTP Post with header

7. Original Android 9-Patch Files (.9.png in android.jar contain no patch marks?)