locked
Connect to local Mesh on mobile device RRS feed

  • Question

  • Hello,
     
    I'm wondering if it's possible to programmatically connect to the Live Mesh (locally or the Cloud) from the mobile device.

    What I've noticed is that it's NOT possible and here's what I found out:
    - either CF 2.0, 3.0 or 3.5 doesn't work
    - connecting to the Cloud isn't possible as it requires the 'NetworkCredential' method from System.Net which is not a CF assembly
    - connecting to the local mesh is also not possible as it requires the System 2.0.0.0 assembly, also not the CF one

    Here's the code I'm using or would like to use to establish the connections:

    public void ConnectToLocalMesh()
    {
        LiveOperatingEnvironment env = new LiveOperatingEnvironment();
        LiveItemAccessOptions options = new LiveItemAccessOptions(true);
        env.ConnectLocal(options);
    }

    public void ConnectToCloud()
    {
        string url = "https://user-ctp.windows.net";
        LiveOperatingEnvironment env = new LiveOperatingEnvironment();
        LiveItemAccessOptions options = new LiveItemAccessOptions(true);
        string token = new NetworkCredential(liveID, livePwd, url).GetWindowsLiveAuthenticationToken();
        Uri uri = new Uri(url);
        env.Connect(token, AuthenticationTokenType.UserToken, uri, options);
    }



    Can anybody give me some advice, am I overlooking something or using it the wrong way?

    Thanks for help!
    robert.oh.
    Tuesday, January 13, 2009 10:14 AM

Answers

  • Hi Robert,

    At the moment, Mobile LOE does not expose an SDK, and there are no hooks to programmatically control it.

    It's one of the popular requests we're getting, and we'll keep you posted on any developments on the SDK front through these forums and the Live Mesh blog.

    Thanks,
    Archis
    A Jedi in the making!
    • Marked as answer by robert.oh. _ Tuesday, January 13, 2009 1:31 PM
    Tuesday, January 13, 2009 12:17 PM

All replies

  • Hi Robert,

    At the moment, Mobile LOE does not expose an SDK, and there are no hooks to programmatically control it.

    It's one of the popular requests we're getting, and we'll keep you posted on any developments on the SDK front through these forums and the Live Mesh blog.

    Thanks,
    Archis
    A Jedi in the making!
    • Marked as answer by robert.oh. _ Tuesday, January 13, 2009 1:31 PM
    Tuesday, January 13, 2009 12:17 PM
  • Hello Archis,

    Thanks for the answer. Hope you can post these news soon ;-)
    robert.oh.
    Tuesday, January 13, 2009 1:31 PM