Find Jobs
Hire Freelancers

Android MVVM ViewModel update LiveData inside a timer Null first time bug (fix my code)

min £36 GBP / hour

Completed
Posted over 3 years ago

min £36 GBP / hour

This simple ViewModel code is working, but the first time the code read/write it returns a null and following read/write the data always one cycle behind. It looks like the it only completes the write once it switches from the timer back to the main activity. You can see the from the Log output the initial write/read is Null, this should be the first set of data. Ideally I want to update ViewModel variables from different activities and update the UI based on the observe. I thought updating the ViewModel variables from any source, would cause an update and could be read from any where. I understand .setValue and .postValue is Async but I have tried different time delay, writing and reading at different points and still the same problem. I thought the problem could be the ViewModel not initiated at the start, but tried to create it before use and still the same problem. May be I miss understood how ViewModel structure works, but I want to integrate this code into a larger BLE mobile app so I need the ability to store the data and update the UI when the BLE data changes. May be it would help if any one has experience in MVVM to support my understand how it should all work. Many thanks for your help and support
Project ID: 28864645

About the project

10 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
£0 GBP in 40 days
4.8 (77 reviews)
6.4
6.4
10 freelancers are bidding on average £36 GBP/hour for this job
User Avatar
Thanks for sharing your requirement here. I have sound knowledge about MVVM, databinding and Rx java. I will fix your issue. Your project is java based or kotlin based? I have sound knowledge about all latest concepts: • Able to collaborate, work with, and lead global teams. • Experience with popular architectures like MVVM and MVP. • Experience with popular libraries like RxJava, Retrofit, OkHttp, and Dagger2. • Experience debugging Java/Kotlin native applications. • Experience publishing app(s) in the Google Play Store. • Experience with Material Design and can provide meaningful contribution to the design process. • Experience with tools such as Gradle/Kotlin DSL’s for building Android applications/libraries. • Experience working in an Agile team environment and willingness to adapt. I am doing full time freelancing having 7+ years of experience in android application development. I can start your project Immediately. Thanks $hirenkapuria
£36 GBP in 40 days
5.0 (65 reviews)
5.6
5.6
User Avatar
HI, I have ready your whole description and also downloaded your code for debugging and fixing. I am a professional android developer with 7 years of experience. I have strong knowledge on Room database, Live data, MVVM structures, view model , etc. I have also a question related to your requirements. Please feel free to knock me to start discussion. Thanks
£36 GBP in 40 days
5.0 (46 reviews)
5.7
5.7
User Avatar
Hello good day. I am interested in your project "Android MVVM ViewModel update LiveData inside a timer Null first time bug (fix my code)". I can fix the bug inside your mvvm that returns null values. I have more than 3 years of experience in the development of mobile applications Android (Java-Kotlin) IOS (Swift-SwiftUI) I look forward to your prompt reply. Thank you
£36 GBP in 5 days
5.0 (39 reviews)
5.1
5.1
User Avatar
Hi thanks for posting good job I have rich experience of MVVM development. I'm full time developer so I can help you at any time. Lets share more details while chatting regards.
£36 GBP in 40 days
5.0 (28 reviews)
4.6
4.6
User Avatar
Hello Brendon S.,   We have 20 years of strong experience in Java, Mobile App Development, Android, C# Programming, as a result, we can successfully complete this project.   Please, review our profile here: https://www.freelancer.com/u/tangramua Here detailed information about our company, our portfolio, and the client's recent reviews.   Also, we wanted to personally discuss questions about your project, which helps us to give you the right estimation.   Best regards, Tangram Canada Inc.   P.S. As you see from details of your profile, you located in UK (Great Britain). Be informed that our technical offices located in Ukraine i.e. you will be able work with our developers almost in same time zone.
£40 GBP in 5 days
5.0 (2 reviews)
3.5
3.5

About the client

Flag of UNITED KINGDOM
Harwich, United Kingdom
5.0
12
Payment method verified
Member since Oct 4, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.