Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question I’ve tried everything, please help. Answer Assuming you want something like sliding imag…
Tag: android
Disable text wrapping in Android
I’m working on a project in Android where I have a TextView (an EditText to be exact) and a setting to enable or disable text wrapping for that view. I have searched the internet (a lot) but still haven’t found any satisfying solution. Currently I’m using a NestedScrollView for the vertical …
How to build an Android App with Media Playback from Spotify in 2021, without app remote?
I made a music player (Blade-Player) for Android, that can play music from local library, Spotify, and Deezer ; in 2018. I used the old Android Playback SDK from Spotify to achieve media playback. As the code grew old, and Android/Spotify/… evolved, i could not maintain it the way i wanted, and it is no…
How can I solve this new Firebase Auth error?
As normal I was working on my actual project and I wanted to add something new to an old activity. When I opened the .java file a new error has shown with a reason that I can not think about. It says that the FirebaseAuth symbol cannot be resolved. I checked my Gradle ( which is updated to the latest
How to get a child value if another child value matches in Firebase?
My Database Structure is: In this structure, I need to get “ID” (which is autogenerated) as “ovxZPZeyy2VlZUP1K0vv9VtiThu1” if the “UserName” matches to “GokulNew1”. And I need to store the ID in String ID. And My Code is, Answer To get the key of the node (ovxZP…
Android Firestore subcollections into RecyclerView
I am currently working on a Rental Car app in Java Android Studio. For the project database, I am using Cloud Firestore. My database is structured like so: Subcollection: The first image is represented by the collection of Cars with multiple documents with random ID (each represents a car). Every car has a un…
Fragment display different content
Can I make a Fragment to display different content depending on what was selected in the previous screen. For example: I create Fragment with ImageView and TextView. In MainActivity I click Button1 and the Fragment opens and shows some content, and if I click Button2 the same Fragment opens but different cont…
Why do we have to call getCurrentUser() several times Firebase?
I am creating a Journal app. I am currently working on the functionality for if the user is already logged in—bypass the “get started/log in activities” In the video I am watching to create a journal app, the instructor calls mUser = firebaseAuth.getCurrentUser(); several times. He calls it in onS…
How to get odd or even lines from a two-dimensional array?
How to get odd or even lines from a two-dimensional array? And write them into 1 or 2 new arrays. Need to get: myData Array size unknown, maybe <5 , <6 Answer You can use math. You know that there will be half even and half odd. You can use that and a loop to copy the values from the
How to replace AsynTask with RxJava in this case
I have a class that goes to decrease the image but I’m currently on AsyncTask, now I want to replace it because AsyncTask is now deprecated.So can someone help me out with a workaround Here is my code: Answer You could change your decreaseImageSize to accept a callback as a parameter. In this case, the …