Quantcast

WebService and DataSets

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

WebService and DataSets

milop
Hello. The app is freezing when the call to GetSystemDateTime is made.

I enabled INTERNET access, do I don't understand what the problem is.

Any ideas?

Thanks in advance,

Mike

using System;

using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using System.Text;

namespace HelloMonodroid
{
    [Activity(Label = "HelloMonodroid", MainLauncher = true, Icon = "@drawable/icon")]
    public class Activity1 : Activity
    {

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var tv = new TextView(this);
            tv.Text = "Hello, World Again";
            using (deviceWS.DeviceSettingsWS ws = new deviceWS.DeviceSettingsWS())
            {
                using (System.Data.DataSet ds = ws.GetSystemDateTime(System.Environment.MachineName, "TOKEN"))
                {
                    if (ds != null)
                    {
                        StringBuilder s = new StringBuilder();
                        for (int i = 0; i < ds.Tables.Count; i++)
                        {
                            s.Append(ds.Tables[i].TableName + ',');
                        }
                        tv.Text = s.ToString();
                    }
                }
            }

            SetContentView(tv);

        }
    }
}

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WebService and DataSets

Enrique
Hi Mike, i used WebServices and DataSets with out problems, check the video of this link:

http://www.enriqueaguilarvargas.com/2011/03/monodroid-y-monotouch-la-unificacion.html

I hope that help you.

Greetings from México

@enriqueaguilar

"unáMONOs".



-----
Sent from mBox Mail
Hotmail for iPhone and iPod Touch
http://www.fluentfactory.com/mboxmail

________________________

On 2011-04-22 05:43:58 p.m. +0000 milop <[hidden email]> wrote:

>
> Hello. The app is freezing when the call to GetSystemDateTime is made.
>
> I enabled INTERNET access, do I don't understand what the problem is.
>
> Any ideas?
>
> Thanks in advance,
>
> Mike
>
> using System;
>
> using Android.App;
> using Android.Content;
> using Android.Runtime;
> using Android.Views;
> using Android.Widget;
> using Android.OS;
> using System.Text;
>
> namespace HelloMonodroid
> {
>     [Activity(Label = "HelloMonodroid", MainLauncher = true, Icon =
> "@drawable/icon")]
>     public class Activity1 : Activity
>     {
>
>         protected override void OnCreate(Bundle bundle)
>         {
>             base.OnCreate(bundle);
>             var tv = new TextView(this);
>             tv.Text = "Hello, World Again";
>             using (deviceWS.DeviceSettingsWS ws = new
> deviceWS.DeviceSettingsWS())
>             {
>                 using (System.Data.DataSet ds =
> ws.GetSystemDateTime(System.Environment.MachineName, "TOKEN"))
>                 {
>                     if (ds != null)
>                     {
>                         StringBuilder s = new StringBuilder();
>                         for (int i = 0; i < ds.Tables.Count; i++)
>                         {
>                             s.Append(ds.Tables[i].TableName + ',');
>                         }
>                         tv.Text = s.ToString();
>                     }
>                 }
>             }
>
>             SetContentView(tv);
>
>         }
>     }
> }
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/WebService-and-DataSets-tp4333443p4333443.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [hidden email]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WebService and DataSets

milop
Hi, Enrique. Thanks for the response.

Unfortunately I'm running on different platforms and I don't understand Spanish.

I'm using MonoDroid with Visual Studio 2010. My web service is located on an IIS server on our network.

I am able to get past the point of instantiating the service but I cannot call any methods. The Android app just closes after a minute or two.

Any other ideas?

Thanks again,

Mike
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WebService and DataSets

milop
In reply to this post by Enrique
Oops, I got it to work. For some reason the QA server was inaccessible. When I pointed it to a prodution server it worked.

So somehow the emulator (?) can't see my internal machines?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WebService and DataSets

Anthonymwheeler
Stop!!!! I no longer wish to receive your email from this domain period!

Sent from my iPhone

On Apr 22, 2011, at 2:59 PM, milop <[hidden email]> wrote:

> Oops, I got it to work. For some reason the QA server was inaccessible. When
> I pointed it to a prodution server it worked.
>
> So somehow the emulator (?) can't see my internal machines?
>
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/WebService-and-DataSets-tp4333443p4333586.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [hidden email]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WebService and DataSets

Anthonymwheeler
In reply to this post by milop
Stop!!!! I no longer wish to receive your email from this domain period!

Sent from my iPhone

On Apr 22, 2011, at 2:29 PM, milop <[hidden email]> wrote:

> Hi, Enrique. Thanks for the response.
>
> Unfortunately I'm running on different platforms and I don't understand
> Spanish.
>
> I'm using MonoDroid with Visual Studio 2010. My web service is located on an
> IIS server on our network.
>
> I am able to get past the point of instantiating the service but I cannot
> call any methods. The Android app just closes after a minute or two.
>
> Any other ideas?
>
> Thanks again,
>
> Mike
>
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/WebService-and-DataSets-tp4333443p4333538.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [hidden email]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WebService and DataSets

Anthonymwheeler
In reply to this post by milop
Stop!!!! I no longer wish to receive your email from this domain period!

Sent from my iPhone

On Apr 22, 2011, at 1:22 PM, milop <[hidden email]> wrote:

> Hello. The app is freezing when the call to GetSystemDateTime is made.
>
> I enabled INTERNET access, do I don't understand what the problem is.
>
> Any ideas?
>
> Thanks in advance,
>
> Mike
>
> using System;
>
> using Android.App;
> using Android.Content;
> using Android.Runtime;
> using Android.Views;
> using Android.Widget;
> using Android.OS;
> using System.Text;
>
> namespace HelloMonodroid
> {
>    [Activity(Label = "HelloMonodroid", MainLauncher = true, Icon =
> "@drawable/icon")]
>    public class Activity1 : Activity
>    {
>
>        protected override void OnCreate(Bundle bundle)
>        {
>            base.OnCreate(bundle);
>            var tv = new TextView(this);
>            tv.Text = "Hello, World Again";
>            using (deviceWS.DeviceSettingsWS ws = new
> deviceWS.DeviceSettingsWS())
>            {
>                using (System.Data.DataSet ds =
> ws.GetSystemDateTime(System.Environment.MachineName, "TOKEN"))
>                {
>                    if (ds != null)
>                    {
>                        StringBuilder s = new StringBuilder();
>                        for (int i = 0; i < ds.Tables.Count; i++)
>                        {
>                            s.Append(ds.Tables[i].TableName + ',');
>                        }
>                        tv.Text = s.ToString();
>                    }
>                }
>            }
>
>            SetContentView(tv);
>
>        }
>    }
> }
>
>
>
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/WebService-and-DataSets-tp4333443p4333443.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [hidden email]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WebService and DataSets

Anthonymwheeler
In reply to this post by milop
Stop!!!! I no longer wish to receive your email from this domain period!

Sent from my iPhone

On Apr 22, 2011, at 1:22 PM, milop <[hidden email]> wrote:

> Hello. The app is freezing when the call to GetSystemDateTime is made.
>
> I enabled INTERNET access, do I don't understand what the problem is.
>
> Any ideas?
>
> Thanks in advance,
>
> Mike
>
> using System;
>
> using Android.App;
> using Android.Content;
> using Android.Runtime;
> using Android.Views;
> using Android.Widget;
> using Android.OS;
> using System.Text;
>
> namespace HelloMonodroid
> {
>    [Activity(Label = "HelloMonodroid", MainLauncher = true, Icon =
> "@drawable/icon")]
>    public class Activity1 : Activity
>    {
>
>        protected override void OnCreate(Bundle bundle)
>        {
>            base.OnCreate(bundle);
>            var tv = new TextView(this);
>            tv.Text = "Hello, World Again";
>            using (deviceWS.DeviceSettingsWS ws = new
> deviceWS.DeviceSettingsWS())
>            {
>                using (System.Data.DataSet ds =
> ws.GetSystemDateTime(System.Environment.MachineName, "TOKEN"))
>                {
>                    if (ds != null)
>                    {
>                        StringBuilder s = new StringBuilder();
>                        for (int i = 0; i < ds.Tables.Count; i++)
>                        {
>                            s.Append(ds.Tables[i].TableName + ',');
>                        }
>                        tv.Text = s.ToString();
>                    }
>                }
>            }
>
>            SetContentView(tv);
>
>        }
>    }
> }
>
>
>
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/WebService-and-DataSets-tp4333443p4333443.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [hidden email]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Loading...