I am trying to make 4 different textviews visible depending on the progress of my seekbar (one visible at a time). I set the textviews to invisible and the seekbar max to 100. It works fine for the …
Tag: android
How to resolve problem of inflateException when I include a layout?
I design a new form name (form_info.xml) to get some information from user then I tried to include the form to activity_main.xml but unfortunately app crashed and I got inflateExcdeption but I don’t know how to handle it. Also when I add my new form by means of setContentView (R.layout.form_info) I got same error. There is activity_main.xml: And below is
How can i delete firebase child node with the same name?Get the key to be delited from one node and delete those node with same key from the other
I want to delete all the child nodes form different nodes with the same names. I used the following code to get the keys of the child nodes to be deleted and pass it to the other node but it is deleting them from both nodes(completedSurveys and surveyList). Attached below is the firebase realtime database structure. Answer It could be
In my chat app i have this error java.lang.NullPointerException
I making chat app .. and I have this problem when i click in any user to start chat with him. but for first time when i get into chat and i send first message it has been sent “in my firebase i see it”…
How to get period when data is loaded to stop shimmer?
I am using Volley for requests and want to add shimmer while data is loading. I can perform it with Handler but I don’t know when data will come and can’t set exact time. Here is code in my Fragment. I want to set value false to variable isShimmer and it makes so fast so my shimmer is not running:
getFilesDir() vs getExternalFilesDir(), which one is more recommended?
As far as I’ve noticed, using getFilesDir() to store data (camera captures in my case) is somewhat temporary. I say somewhat because if I close and reopen the app, I’m able to access the directory and files list, but not the file itself. Is my logic wrong or is that by design? Out of the 2 methods, which is more
Updating Firebase Authentication password using user.reauthenticate
To update a user’s password in Firebase Authentication you must re-authenticate : https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseUser#reauthenticate(com.google.firebase.auth.AuthCredential) Yet this function does not seem to double check if the currentPassword is correct before actually re-authenticating. I believe this may be because Firebase does not require re-authentication until after a set period of time, and will bypass this if it is still within that timeframe. Here’s
how can i show a total score to the player screen not using a Toast
I made a higher lower game . if the player guess the number he get a specific number of points depending on how many tryes he had I wrote the code, i have the total but i dont know how to display it …
I am getting different startTimestamp and endtimestamp that i provided in networkstatsmanager.querydetailsforuid() method. How to solve it?
Getting different start time and end time that I am providing in NetworkStatsManager.queryDetailsForUid Here is my code snippet : I want to get application data usage in an interval of start time and end time I am calling method and passing start date and end date from calendar in milliseconds but after calling to the queryDetailsForUid() it showing some different
javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:
I’m getting the following error while trying to run on devices below android lollipop and it is working really well for version above lollipop. this is my method to register the user: My volley singleton looks like this: and my app config file looks like this: Can anyone help me solve this issue? Error: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: Answer