Completed

xamarin update label and progress bars been killed by change to a different activity (need a fix)

We have a very simple app which reads data over a Bluetooth connection and updates a text string on a page. All the updates work as normal via the timer, but when we switch to a different page in the app and return to the home page, the updates stop working. We can set a break point on the text string update and we can see the new value but it does not update.

Why when we change to a different page and returns does it's stops the updates? It's a simple label and it's been updated in the UI?

I would like to understand how to fix this problem

using System;

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

namespace Custom_TestAppHarness

{

[XamlCompilation([login to view URL])]

public partial class Homepage : ContentPage, INotifyPropertyChanged

{

public Homepage()

{

InitializeComponent();

// Start timer to update all the information on the home activity

if (App._timeerhasstarted == false)

{

App._timeerhasstarted = true;

[login to view URL]([login to view URL](5), () =>

{

[login to view URL](() =>

{

testcall();

});

return true; //use this to run continuously

});

}

}

void testcall()

{

[login to view URL](async () =>

{

[login to view URL] = [login to view URL]();

[login to view URL] = App._vehiclefuellevel;

[login to view URL] = App._vehiclebatterylevel;

});

}

protected override void OnAppearing()

{

[login to view URL]();

[login to view URL] = [login to view URL]();

}

}

}

XML code for the label

<Label

x:Name = "BTTextStatus"

Grid.Row="2"

Grid.Column="0"

Grid.ColumnSpan="6"

HorizontalOptions="CenterAndExpand"

VerticalOptions="CenterAndExpand"

TextColor="#cccccc"

FontSize="Medium"/>

Skills: Mobile App Development, C# Programming, Android, C++ Programming, Xamarin

See more: android alertdialog disappears on rotate, change layout on orientation change android, xamarin forms 4.5 release notes, android handle orientation change fragment, handle screen rotation without losing data - android, xamarin known issues, android prevent activity recreation on orientation change, android studio app resets on orientation change, free php progress bars creator, multiple file upload including progress bars, script upload progress bars megavideo, php progress bars, folder copying progress bars, ffmpeg php progress bars, aspnet creating image progress bars, progress bars aspnet, php multiple progress bars, flex progress bars, ajax upload image progress bars, service update wpf progress

About the Employer:
( 9 reviews ) Harwich, United Kingdom

Project ID: #26365193

Awarded to:

saurabhrathi31

Hi, I can solve your problem, it's kind of you update your label on main thread and when you navigate to another page the new page push into the stack and so it obviously not update the label. I have the solution. L More

£36 GBP / hour
(2 Reviews)
2.9

6 freelancers are bidding on average £36/hour for this job

winlancerinc

Hi i can fix the issue I'm full-stack xamarin mobile app developer and having extensive hands-on all patterns of Xamarin with front-end and back-end mobile app development. I've been developed Xamarin mobile apps in More

£36 GBP / hour
(29 Reviews)
6.5
aksharmandaliya

I have 7+ years of experience working with Xamarin platform and delevered around 20+ CrossPlatform Mobile apps so far. I can look into this issue and fix it. It looks like a Timer issue. I would say it is not a goo More

£36 GBP / hour
(9 Reviews)
5.8
aleksenkovolodya

Dear, Brendon S. As a Xamarin Expert, I am very interested in your project. I am very familiar with Xamarin.Form. I have mobile and backend skills with 6+ years. My main goal is client`s satisfaction and success. I wil More

£36 GBP / hour
(5 Reviews)
4.5
Wipitech

My name is Teoh, a senior web developer and I am here to build a perfect project together. Please have a look my project here. [login to view URL] https://thebeaverhead More

£36 GBP / hour
(2 Reviews)
4.5
belousovdaniil9

Hello! I read your job description very carefully and I will surely do the job according to your requirements. I will start to work immediately and deliver it as soon as possible. I look forward to hearing from you and More

£36 GBP / hour
(0 Reviews)
0.0