How to provide user name and password when connecting to a network share

I liked Mark Brackett‘s answer so much that I did my own quick implementation. Here it is if anyone else needs it in a hurry: public class NetworkConnection : IDisposable { string _networkName; public NetworkConnection(string networkName, NetworkCredential credentials) { _networkName = networkName; var netResource = new NetResource() { Scope = ResourceScope.GlobalNetwork, ResourceType = ResourceType.Disk, DisplayType … Read more

NetworkOnMainThreadException [duplicate]

With honeycomb you can not perform a networking operation on its main thread as documentation says. For this reason you must use handler or asynctask. There is no another way to do it. here you can find 2 examples written in turkish about networking operation. maybe they help. 3. party kütüphane kullanmadan (ksoap2), (it includes … Read more