I am trying to display the total expenses in a Text view but the application keeps giving me this error. The application uses Firebase and I had the getAmount() and setAmount() initiated as String since I only needed to display. It works as Strings but the amount doesn’t get added to himself it just goe…
Tag: android
Rendering same video to 2 Surfaces from a MediaCodec
MediaCodec has 2 ways of operating: you either pass a Surface for it to render to, or you read the output buffer and paint it to the screen yourself. In the first case, where I pass a surface: is it possible to paint the same MediaCodec decoded video to 2 surfaces? The decoding loop looks something like this:…
import android.support.v4.app.ActivityCompat;
This is the error i am seeing when i add “simple_permissions” package. How can i fix this? I recently upgraded flutter and it used to work very well before the upgrade. /root/flutter/.pub-cache/hosted/pub.dartlang.org/simple_permissions-0.1.9/android/src/main/java/com/ethras/simplepermissions/Simp…
How can I make the corners of my bottom sheet dialog rounded? [duplicate]
This question already has answers here: Round corner for BottomSheetDialogFragment (28 answers) Closed last year. I’m trying to make the top corners of my BottomSheetDialog rounded, but I haven’t had any luck with anything online. This is what I would like for it to look like: No matter what IR…
Firebase Datasnapshot returns null value
I want to retrieve this value from this node (“id”), and the value i get is null. I have googled so many solutions that this might have to do with asynchronous way or something, i guess? This is the database, and the highlighted node is the value i would like to get: This is my code: Most apprecia…
how can one display the sum of a group of numbers from firebase in a texview
Im working with android firebase and have managed to get the sum of a group of values from firebase and display it in logcat. Only i want to display this sum in a TextView, how would I do that? Here is my code Answer You’ll need to set the value to the text view in onDataChange, pretty much in the
String to JSONObject troubles
Is the first time I have to make this and I think I’m going to the wrong side. I trying to pass my String to a JSONObject but it’s nothing working. My code is this: The locationObj value after: (The code continue like a String and I don’t know why) The class I’m going to use to map lat…
How to make title background transparent on android app
There is an issue in the follow Android App where guidance is greatly appreciated. This application is to support a Renesas RX130 microcontroller and Texas Instrument CC2650 Bluetooth Low Energy hardware demonstration design. In the initial device scanning page the tile has a bright red background as shown be…
How to convert input type [closed]
I am making timer when user set time and when I want to set time in second “mm:ss”(minutes:seconds) formula my app stops becouse app doesn’t accept colon. So how to convert input type from “mm:ss” to “…
NullPointerException while selecting image from the storage for the Second time onwards, No NullPointerException while selecting First time
I have set up a button that is meant to check for READ_EXTERNAL_STORAGE permissions, and then open the users phone storage display images. I’ve done this successfully via the following code: All of this works perfectly on the first try. The user sees the permission dialog box, presses agree and the imag…