fragment stucks on serice calling

HalukmyHalukmy Haluk YILMAZTRMember ✭✭

async void proces ()
{
client = new JsonServiceClient ("http://212.175.132. 68/service/api") { UserName = "123", Password = "123" };

        users = client.Post (new GetRequestClients (){ erisim = "X",  sube = null, sicil = null }).GetClients.ToList ();

        listview = Activity.FindViewById<ListView> (Resource.Id.List123);

// var basliklar = users.Select (u => u.MesajBasligi);
//
//
//
// var adapter = new ArrayAdapter (Activity, Android.Resource.Layout.SimpleListItemChecked, basliklar.ToArray ());
if (true) {
users = client.Post (new GetRequestClients (){ erisim = "XP", sube = null, sicil = null }).GetClients.ToList ();
foreach (var yok in users) {
tableItems.Add (new RSERVICE_RQ () {
MesajBasligi = yok.MesajBasligi,
MesajIcerigi = yok.MesajIcerigi,
CagriAcan = yok.CagriAcan,
CagriAcanBolge = yok.CagriAcanBolge,
CagriAmiri = yok.CagriAmiri,
CagriDurumu = yok.CagriDurumu,
YapilanIs = yok.YapilanIs,
CagriErisimi = yok.CagriErisimi,
CagriIlgilenenBolge = yok.CagriIlgilenenBolge,
CagriNum = yok.CagriNum,
CagriOnaylayan = yok.CagriOnaylayan,
CagriOnceligi = yok.CagriOnceligi,
CagriTuru = yok.CagriTuru,
Sube = yok.Sube,
OlusturmaVakti = yok.OlusturmaVakti,
TamamlanmaVakti = yok.TamamlanmaVakti,
Durum = yok.Durum,
Gorulme = yok.Gorulme,
Id = yok.Id
});

            }

        } else
            users = client.Post (new GetRequestClients (){ erisim = null,  sube = null, sicil = null }).GetClients.ToList ();

        var adapt = new HomeScreenAdapter (this, tableItems);



        listView.Adapter = new FragScreenAdapter (this, tableItems);

Posts

  • CheesebaronCheesebaron Tomasz Cielecki DKInsider, University mod

    Please format your code and actually describe your problem. You title is not enough to allow anyone to help you.

Sign In or Register to comment.