I have updated a Mapbox library to the last version. Now I can’t find a LatLng class. With this package (com.mapbox.mapboxsdk.geometry.LatLng) LatLng class isn’t available at all. In the official documentation I cant find this class. Perhaps they replaced this class by another one. Answer Following this migrate-to-v10 documentation you should use Point: In v10, all the LatLng related methods
Tag: android
I am getting error in firebase database function get()
I am facing a problem for 2-3 days I am trying to fix it but I can’t fix it. I am continuously getting errors on a Firebase Realtime Database function get() on a code that I have copied from Firebase Realtime Database documentation. Here is my code: Build.gradle: I am getting error on compiling code that is: The method get()
How to use getIntExtra value as an array index in next activity
So I have a listview that shows 5 chapters of the book of James from the Bible. As the user chooses the chapter he wants to read, the verses from the chapter will show. What I’m trying to do is to get position value from JamesChapter.java to be passed to the next activity Bible.java and use that value as an
Fragment Size overlaps TabLayout
I found some similar problems but none of them solved my problem. But basically it’s exactly the same as on the other threads, that my viewPager fragment overlaps the tabLayout: Here is my source code: GroupBookFragment fragment_groupBook.xml fragment_groupBook_krippe fragment_groupBook_krippe.xml adapter_groupBook The weird thing is, whenever I delete RelativeLayout from the child fragments and used the ConstraintLayout only, the content gets
Getting geographical location of captured image – Android java
I’m new to android developement and I’m supposed to use Java as the programming language. I have an app where I’m supposed to be able to capture images and the geographical location of the captured images and display these details. I am displaying the image in an imageView. I have a text file where I’m storing image links as well
How to Call function in custom view in android studio activity
MainActivity.java CustomView.java activity_main.xml when I going to run that code in my device it keep closing. Log cat shows error like this. I use physical device to implement this code. I’m beginner android developer also. I follow different kind of tutorials but I could not be able to solve it.I want to use this custom component same as normal widgets
This is my first Android program using Java, I am trying to use a alert dialog, but the app keeps on closing
So belove is my code, in the design i have one textview with the ID t. I am using android 5.0 to build and i have the required SDK(android 5 and 5.1). Sorry if my question looks silly 🙂 Thank you Answer call TextView t1=findViewById(R.id.t); after setContentView(R.layout.activity_main);
Android Room Relationship duplicating information
Having the weirdest issue here, all is working fine, except that my 1-to-M query is duplicating the data. Customer table Invoice table CustomerInvoice relation DAO If I debug my application, set a breakpoint to test the Room stuff, then use the ‘Evaluate’ feature in Android Studio, I do the following If I then retrieve the information using getAllCustInvoices() The list
Osmbonuspack : marker’s onDoubleTap function not working when adding the markers in RadiusMarkerClusterer
I created a custom marker where I overrode onDoubleTap Method, which worked as I expected, but when I added my custom Marker to RadiusMarkerClusterer, my onDoubleTap function didn’t work as I wanted and it didn’t be called when I double-tapped on the marker in the Map View Answer This issue is now solved on the master branch.
Bluetooth LE – How to set custom scan delay?
I am making an app to scan all tags using Bluetooth LE. I have to implement a interval feature where an user can enter seconds for scan delay, but i have not found any method to do so. I tried implementing TimerTask but it still scans more than one device in a second Is there any way to implement a