You are trying to set integer value to Text view. You cannot do this
lblAvgDisp.setText(Average);
Do this
lblAvgDisp.setText(String.valueOf(Average));
More Related Contents:
- I’m creating an android app which saves user’s file like pdf, music, word files, pics, videos, etc
- android studio : findViewById return NULL Pointer [duplicate]
- Android – Get real path of a .txt file selected from the file explorer
- Failed to resolve com.google.android.gms play-services-auth:11.4.0
- Detecting a long press in Android
- How to set selected item of Spinner by value, not by position?
- Error:(23, 17) Failed to resolve: junit:junit:4.12
- Android How to draw a smooth line following your finger
- The following classes could not be instantiated: – android.support.v7.widget.Toolbar
- Permission to write to the SD card
- What is sharedUserId in Android, and how is it used?
- Pausing/stopping and starting/resuming Java TimerTask continuously?
- How to include JAR dependency into an AAR library
- NetworkSecurityConfig: No Network Security Config specified, using platform default Error response code: 400
- Email from internal storage
- Test if file exists
- On zoom event for google maps on android
- Set Alpha/Opacity of Layout
- Is it possible to use VectorDrawable in Buttons and TextViews using android:DrawableRight?
- resuming an activity from a notification
- How to save a cookie in an Android webview forever?
- GCM canonical id
- How to make my application system
- How to query a web service via POST request in Android?
- Problems with Firestore connections executing threads
- how do I get file size of temp file in android?
- Recycler view – resizing item view while scrolling (for carousel like effect)
- how to programatically theme an activity to be like a dialog?
- If-else working, switch not [duplicate]
- myLocationOverlay change the marker