Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
peter_strange
Posts: 19,607
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to display images on the main screen UI from a background thread

I'm not sure where we are now or if you are expecting anything further from me.  But from what I have seen, you can take it from here.  Good luck.

Please use plain text.
New Developer
roses_r
Posts: 86
Registered: ‎01-20-2012
My Device: Bold Touch

Re: How to display images on the main screen UI from a background thread

Hi have a look at this snippet for me please. this is where i start the thread and in this method i pass the reference to my camView screen.

 

What i noticed was the reference "this" i pass is not being the active screen. and im calling this from the camView screen

 

private void LaunchStreamingThread()
    {
        try
        {
          
            streamingThread = new StreamingThread(this, clientSocket, dataOutputStream, dataInputStream, thereIsIntrusion);
            //streamingThread.run();
            new Thread(streamingThread).start();
        }
        catch (Exception e) {
            // TODO: handle exception
            System.out.println("New Streaming Thread Exception: "+ e.getMessage());
        }
    }

Please use plain text.
Developer
peter_strange
Posts: 19,607
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to display images on the main screen UI from a background thread

[ Edited ]
Please use plain text.