I’m creating a tabbed activity. As long as the first tab is selected, the soft keyboard should be visible. I achieved that by adding this line to my manifest file in the activity tag: As the keyboard opens, the space for the layout shrinks. The most space is occupated by an ImageView. I want it to shrin…
Tag: android
Why am I getting an error when trying to save a list in Room database with the help of a type converter?
I want to store a list of Integer type in a Room database. For this I wrote a converter that looks like: Here is a part of the model class: And also a database class: And when I’m getting the list, I get an error: So the list is null. What am I doing wrong? Thanks for any help. EDIT:
DialogFlow with Android
I’m making an app with Android Studio (Java) and Dialogflow V2. I want to speak with the app and the message I said goes to Dialogflow and it answers me. The thing is that all I can find is that the user types the message and it is sent to Dialogflow. Does someone know how to do it? How to
View binding with include layout not working
I want to use view binding to bind the view in include layout. I had given the included layout with an id ‘topBar’ but still failed to access the views inside of it. And I try to use Android studio auto-fix to create a local variable to see its type. It shows type “android.widget . a” …
How can I create a notification channel for Android API level < 26 (before Android Oreo)? [closed]
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 2 years ago. Improve this question I am currently working with an Android service: https://developer.android.com/guide/componen…
android.os.BadParcelableException: ClassNotFoundException when unmarshalling
We are facing getting a BadParceableException and we have no idea why. Above is the stacktrace: We saw some similars errors here in stackoverflow, but no one actually worked for us. The exception is saying that the error happens at “super(in)”, in this class: private static class SavedState extend…
Data Retrieval from Firestore is erratic
I’m working on an Android app that does the following: Upon app start-up, it checks if a user is logged in, using AuthStateListener. If there is a user logged in, it retrieves data from Firestore. The user data is stored in a document that I named with the following nomenclature: “User ” + u…
How to remember Value in andorid studio?
I have created a login page which users can just enter their username (No passowrd or auth needed) and it will be displayed on the next activity. But every time you open the app you have to enter your …
SharedPreferences vs SQLite Database vs Room Database, which should I use for my project and why? Pros and Cons [closed]
I have a custom ListView of Semesters, a Semester is an object, in the MainActivity of an app I’m developing to learn more about Android developing and databases. That ListView is created by the user …
Function “onButtonClicked” is never use
I have created a function called “onButtonClicked” and I want the button (bt301_tw) to send me to the activity (MainActivity_04_ReadioGroup). The problem is when I create the function …