I want dataSnapshot to check if “month” exists in its parent’s “summary”. But dataSnapshot is returning that it does not have “month” in “summary” My Firebase Database: I want to check the value (blue line) from its parent(red line) My Firebase Database An…
Tag: android
Activity or Fragment for a SearchView?
I´m doing my final degree project and I have chose to develop and Android app using Firebase Firestore, the idea it´s cool because I´m learning how to program on Android, but on Java. So, I have develop the SplashScreen, Login form, SignIn form and able to connect succesfully with Firebase but right now I´m h…
Attempt to invoke virtual method on Playerview.setplayer on a null object reference
I am getting a null pointer exception where there shouldnt be one. Here is the error readout Here is the activity source code (Its from a google codelab on the exoplayer) and has been modified a little. The layout file is just a Playerview element with its ID as video_view Any help is appreciated. This is the…
How to make PlayerView full screen in landscape mode when used in MotionLayout
I want to make it possible to make the PlayerView in landscape mode full screen but I can’t make it work. So far, I have tried to set the playerView layout params programmatically when configuration changes to landscape mode, but it still isn’t working. Layout that I have created And programatical…
Android Studio class file for com.google.common.util.concurrent.ListenableFuture not found
I cannot build my project due to it failing because it cannot find a class. Is there something wrong with my sdk or dependancies? I have tried invalidating cache and restarting. I am using api 29. The following is where the error shows up Here is the error printout and my dependancies any help is appreciated …
How to make Custom button work in custom alert Dialog Box using android
I am unable to make the custom button work , my requirement is simple when my custom dialog box is opened i have to dismiss it by simply clicking on button i dont want to use in-built alert dialog box buttons.Please help me thankyou in advance. Answer Declare your button xml on the dialog then setOnclickListe…
Animation doesn’t end – Android
In my app, I have a button to show a drop-down menu, inside of that menu we have some options, one of this is “flip A coin”, the purpose of this option is to flip a coin easy animation, that animation appears inside a textView, and show a head-side or a tail-side of a coin instead of the text in
Is there a way to define a min and max value for a EditText. EG 20 – 200 (not starting at 1)
I keep seeing this example everywhere I look to find a way to define the min and max of a EditText. I kind of understand what it does but I found that it breaks if the min is bigger then 10. Is there any way this code could be changed so that the min can be any number? And is
Is there a Java 8 implementation of a random generator supporting NIST standards?
I am trying to securely generate random numbers. It must support NIST standards, that is NIST SP 800-90A, SP 800-90B, SP 800-90C. I’ve read that Java 9 has an implementation of SecureRandom supporting such standards. My question is: is there an implementation supporting these standards in Java 8 (I am u…
how to stop the web view and display a reload message if the page does not load for 30 seconds?
I have a web view and i have this code (P.S i am a beginer in programming) I already have webview client and webchrome client, you can see and download my code files here (cloud.mail.ru/public/2hHz/25DMkxh3U) At the top you can see my code in Main activity. Answer You can check how to find if the webview load…