This is the sample code from Here API. But the problem I have is that the initial location where the map is loaded is wrong. What I need is for the map to be displayed where you are. What is the method that modifies the position of the map? Answer This is the piece of code that hard codes the
Tag: android
How can we keep the edit box by default empty, which displays the result of the spinner?
How can we keep the edit box by default empty, which displays the result of the spinner, when we click on any item of spinner then only it must show the result in the edit box else it must remain empty Answer One of the solution in your case can be as follows:
Android Mediacodec decodes h264 video stream single frames with large green padding
I want to decode single frame of a H.264 video stream which is sent by server but when I do, the result picture has large padding. Code & Result: Code: now the result has large adding like this: What am I doing wrong? Rescaling the YUV image did not help and causes the picture to have 0 dimensions. (I put
Receive message with a custom object on Android SignalR client, data isn’t deserializing
I’m using SignalR on ASP.NET Core 5 web server for Android device management. I can send messages from device (D2C), and receive messages with String parameters (C2D). But I can’t receive messages with custom object parameters, the handler receives all object members as null. I develop an WPF clie…
added library to my custom library could not be found
I built an android library and added a library to it for a custom rating bar. used it in my library and everything was ok until i added my library to an empty app for test. then I get this error while trying to build the app. … Execution failed for task ‘:app:checkDebugAarMetadata’. Could no…
Android Studio – How do I make my RecyclerView contain more items after a button press?
I’ve created a RecyclerView with editTexts which size is defined by an integer in the adapters constructor, however now I want to implement a Button that increases that integer by one and that way adds another editText to my recyclerView. The problem is that I don’t know how to update the size of …
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException after updating to Android Studio 4.2
Google just release Android Studio 4.2 stable. I updated my AS from 4.1 to 4.2. Now I am getting this error. It’s showing error in data binding. Answer Android Studio 4.2.0 and more now comes with Java 11.0.8 shipped and will use it by default which cases this error in deprecated libraries. The solution…
Finishing an Activity with transition shows the previous Activity from the activity stack first and then transitions to the new Activity
I have 2 Activities in my Android application – Activity A and Activity B. When the user presses a button on Activity A, he is navigated to Activity B. I want Activity A to close after going to the next activity and is completely removed from the activity stack. I tried adding intent.setFlags(Intent.FLA…
How to increase the size of QR code image – print that is compatible with ESC/POS commands
I have successfully print the QR and Text – Print out image given below Issue – How to Increase the size of QR code image First QR is my Output!! Need to increase like in the Second QR My code: Please let me know how to increase the size of QR. Answer Not able to increase the size more than
How I can build a .jar file first and then my andoid app?
In my project: https://github.com/pc-magas/sercommH300sVoipCredentialsRecovery source is seperated into 2 parts: The core library where no android dependencies are placed. The android app iself. Core Logic is in app/src/main/java/pc_magas/vodafone_fu_h300s/logic/ and the tests for the core logic is in: app/sr…