I am creating a video calling app and have the following code which is called when the application receives a push notification – it unlocks the screen and presents an ‘incoming call’ user interface: This works fine when a call is incoming – the user can interact with the app using the UI presented. However, the problem is is that
Tag: android
Retrieve location from Firebase and put marker on google map
I created the database in Firebase and tried to show the marker in the map. Still not working. what should I do. The app runs but when map activity is opened the app closes. I creates the database manually. I referred this link :- Retrieve location from Firebase and put marker on google map api for android. This is the
Kivy on Android, JVM exception occurred: Attempt to invoke virtual method … on a null object reference
We’re trying to access the Android camera in the Kivy app we’re building. We first opted to use plyer but we were getting a ClipData.Item.getUri() error. We ended up trying to follow the details described here: https://github.com/kivy/plyer/issues/500#issuecomment-565532048 Now there seems to be a problem in getting the URI for a file. We have added this in AndroidManifest.tmpl.xml: and this in
Get a random line from a text file in assets folder
I am currently trying to re-create a project from Python into Android Application. But I am currently stuck with something I don’t literally know. My Project is called “Passworder” (for generating German Passwords). And to make the password to generate NOT random letters, I want to generate words from “WordList.txt” from assets folder. The Problem is, that I don’t even
Hide PlaneRenderer when taking photos in Sceneform
I added a feature based on the Codelabs tutorial from Google (https://codelabs.developers.google.com/codelabs/sceneform-intro/index.html?index=..%2F..index#15) which allows users to take photos of AR objects that were added into the scene. The code works fine, however, I wish to hide the PlaneRenderer (the white dots that appear when ARCore detects a surface) in the photo taken by users. In the onClickListener for the “Capture
Error in displaying data with TextView.setText: Resources$NotFoundException: String resource ID #0x0
I am getting this exception: The exception stack trace points to this line in the adapter class: This is my adapter class: This is my POJO class: Answer You’re accidentally calling the version of TextView.setText that takes an int resource ID. You should explicitly convert it to a String:
Sum column SQLite Android and display on TextView
I have an SQLite DB in my Android Project. I have a RecyclerView for “Cart” Activity, where I display some items from this DB. Every item has its own “quantity” and “price”. What I want to do, is to create a method to display a total sum of elements (Total price = Elem1(quantity * price) + Elem2(quantity * price)+…) in
How to fix Scrolling issue of horizontal ViewPager2 and RecyclerView that are inside a vertical RecyclerView?
I have a RecyclerView (say, rootRecyclerView) that can have different kinds of rows depending on some API response. I implemented one of them is a horizontal ViewPager2 and another one is implemented with horizontal RecyclerView (say, childRecyclerView). The rootRecyclerView swipes vertically whereas the viewPager2 and childRecyclerView swipes horizontally. The Problem: When I swipe on the screen, if the swipe is
NPE hard to spot from the logcat it seems to be the Arraylist but each item should be set
GitHub Repo app building for learning purposes I’ve become stuck in this world of NullPointerException. So it says on line 119 the ArrayList is null it’s a simple Callback via Retrofit where I try to get the data and then set they data further on. I’m unsure of where exactly in the process it fails as it just points to
IllegalArgumentException When trying to use @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox
I am trying to stylize the TextInputLayout with an outline. But when I try to use @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox in style attribute my app crashes with this exception: Here is the TextInputLayout theme I want to use OutlinedBox It was working fine but suddenly this error appeared during development Global App Theme Answer As reported in the error: Caused by: java.lang.IllegalArgumentException: The