Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
And I want to use a new thread in main when this thread complete its downloading then a Handler message to main thread

C#
public class Connection {

    private InputStream in;

        public InputStream conn(String Link) throws IOException
        {

            URL url=new URL(Link);

            URLConnection c=url.openConnection();

            in = c.getInputStream();

            return in;
        }

    }
Posted
Updated 14-May-14 21:13pm
v2
Comments
Herman<T>.Instance 15-May-14 3:13am    
what have you tried?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900