Related Question: Exception is NULL always I'm facing an unusual issue involving an IOException object that I haven't been able to resolve. The code in question is as follows: try { // This section may not be critical, but it could be related to the ...
We are facing a challenge in producing a unique string format: "/Date()/". It is important to note that backslashes do not function as escape characters in this case; rather, they represent the literal string. Our .NET team member suggested using syntax ...
Can someone please help me figure out how to connect my Android Studio project to a MongoDB database stored locally on my PC? I've been searching for solutions that don't involve using MLab, but I haven't had any luck. I've attempted f ...
Explaining this code is a bit challenging but it's designed to add items from a JSON array and display them on a ListView. The page refreshes using the onResume method that I have customized. public void onResume() { super.onResume(); if (a ...
I am currently utilizing the react-native-contacts library in my React Native application to save a contact. Prior to saving the contact, I request WRITE permission from Android. The process is successful; I open the contact form within my app and proce ...
I'm currently working on an Android app that has a backend hosted on a Heroku free server. The current response time for serving requests is 2 seconds. I'm curious to know how many users it can handle simultaneously. I've searched through various Quora qu ...
I'm currently working on an Android application that retrieves data from the internet, among other tasks. The project was initially started by someone else who is no longer part of the team. Now, I am tasked with converting it into a light client applicati ...
I am encountering an issue with loading the image while trying to convert a JSON into a JAVA Object from this specific link. Below is the code snippet I have been working on: // code snippet goes here Although everything seems to be functioning corre ...
Currently in the midst of developing an Android test app that requires JSON test data parsing. The structure of the JSON data is as follows: {"id":1,"name":"Test Test","questions":[{"id":1,"test":1,"text":"Can you answer this question?","answers":[{"id": ...
I have created an interface to fetch weather data from the OpenWeather API for the city of RZESZOW in the country POLAND. How can I pass query parameters for the user to input their desired city name and country in order to get the weather data? public in ...
I'm currently facing some confusion after asking a question regarding JSON decoding on the PHP side. My focus is on decoding a JSONObject posted from Android Volley using StringRequest. While I successfully created code for inserting data into MySql, I ove ...
Is there a way to generate a pojo class based on the responses from the same URL provided below? RESPONSE 1: { "info": { "price": 1, "map": { "1": 1, "2": 2, ...
I am currently using JSON in my application, but I encountered an error. Error: org.json.JSONException: Value {"date":"","shirota":"53.5254","dolgota":"49.1684","imei":"44fd02f38e4a5c0c"} of type org.json.JSONObject cannot be converted to JSONArray" This ...
Having previously developed simple apps using phonegap for android, I am now working on a project that requires status bar notifications from a background service per user. Utilizing the phonegap backgroundservice plugin, I have been successful in receivin ...
Need help removing double quotes from my JSON output. Here's the issue: [{"id":"1","nom":"Magasin Jardins 2","ville":"Paris","latlng":["36.85715,10.127245"]} I want to remove quotes from the latlng value to get this result: [36.85715,10.127245] He ...
I'm currently working on parsing and extracting data from JSON. However, I would like the respective color to be displayed instead of just the color name. For example: { "id": 1, "name": rose, "color ...
I have integrated the Yahoo Weather API and successfully retrieved data using the following link: Now, I am looking to implement this URL with Retrofit. Could you please guide me on how to dynamically change the city by passing a query? Thank you! ...
I am encountering an issue while attempting to parse a JSON-containing URL upon button click: button.setOnClickListener { doAsync{ val result = URL("http://date.jsontest.com/").readText() val parser ...
My issue is slightly different than what I expected when I previously asked: Parse JSON to configure android application. I am receiving a JSON object from the server, and when I view it in the browser's source code, this is how it appears: JOSON.co ...
I am trying to add two menu buttons in my header, but the Hamburger menu button is not aligning to the left as expected. Currently, it looks like this: https://i.stack.imgur.com/s5ptT.png Below is the code snippet I am using: <ion-header> <io ...
I have successfully implemented a web server in Node.js where a continuous script is running and the shadow will be updated based on user input. This link provides information on adding canonical headers. Should I include any additional headers if I am mi ...
I'm currently working on an Android/Java app where I need to make a REST API call using the Volley library. Here's the code I have so far: RequestQueue queue = Volley.newRequestQueue(this); String url ="https://covid19datasl.herokuapp.com/countrie ...
Through the use of TWA technology, we were able to create an Android app that can open a PWA page without displaying an Address bar. Unfortunately, this setup presented a challenge. The absence of the Address bar made it difficult to switch web Push Noti ...
Something seems off with my App as it won't start up on my AS Emulator. Everything was running smoothly yesterday, but today it's not working - possibly due to me moving the npm and npm-cache folders, although they are configured correctly with n ...
After creating a basic REST api with NODE and EXPRESS, I now have a web app in the browser and a native mobile application. My next step is to determine whether an incoming request is from the web browser or the native app. I was able to successfully iden ...
ERROR: The build process was unsuccessful due to an exception. What caused the issue: The task ':app:transformClassesAndResourcesWithProguardForDebug' execution failed. java.io.IOException: Unable to write [/home/user/Desktop/pratap/react-pr ...
https://i.stack.imgur.com/fcrou.pnghttps://i.stack.imgur.com/EwsMH.pngWe are currently in the process of automating a mobile app using Selenium, Appium, and Java. While testing the mobile app (Android), I encountered an issue where after selecting a date ...
When working on my server, I first serialize data using the following code: Gson gson = new Gson(); Map<String, List<?>> resultMap = BackendUpdateManager.getInstance() .getUpdates(timeHolder, shopIdInt, buyerIdInt); gson.toJson(resultMap); ...
Hello everyone, I've encountered an issue while trying to display a list of JSON data in a ListView. I have successfully fetched the data but am struggling to append it in the list. To display the data, I created a class that extends BaseAdapter. Howe ...
I'm working on a PHP script that receives data from an Android application. What security measures should I implement to ensure the safety of this script? Are functions like isset enough? <?php require ('config.php'); $connection=mysqli_connect($serve ...
I am facing an issue with my Spinners citySpinner, regionSpinner, and branchSpinner. I am able to populate the data in the spinners, but the problem arises when I select a region like UP from spinnerRegion. In this case, I only want to display cities relat ...
Using HtmlSpanner with CSS for TextView I recently discovered a library called HtmlSpanner that claims to assist in adding an HTML string with CSS to a TextView. However, I am struggling to locate any detailed documentation on how to achieve this, except ...
I am currently working on developing an HTML5 app for Android using JQuery 1.1.0 and Phonegap 1.9.0. The app includes a small animation of a battery being drawn on the canvas and updating dynamically. This animation functioned perfectly on Android 4.0.4. ...
Is there a way to disable the zoom feature on our website specifically for Android phones/devices without affecting iPhones? Perhaps targeting the Chrome browser on Android would be sufficient, but we should also verify the mobile screen size. ...
I'm struggling with separating some flat-lists into different components. How can I arrange the rendering of the flat-list like the sample form (Picture "Sample UI")? I've tried, but it's not working correctly as it renders flat list A first ...
Encountering an issue when attempting to launch my cordova project on both an android device and android emulators. Currently utilizing visual studio 2015 In dire need of assistance! Error can be viewed in the image below: ...
After attempting to extract values from a response by parsing it into separate strings, I encountered some difficulties. The response text looks like this: response = "Data1{ key1='4722**********6', key2='2107', key3=value{ ...
I'm a newcomer to JSON and I've encountered some challenges with parsing a JSON array named "genres". Currently, it is functioning as an object but the display is not ideal. My goal is to have the "genres" display as Drama, Musical instead of [" ...
I have tried multiple suggestions from similar questions but none of them have helped. How can I successfully execute this test? @Test fun isJsonCorrectPersonConvert() { val gson = GsonBuilder().create() val json = gson.toJson("[{"Id":2,"Text ...
I am facing a challenge with inserting multiple rows into a MySQL database from Android. Currently, I only know how to insert one row. Here is the PHP script snippet: $r=mysql_query($sql); if(!$r) echo "Error in query: ".mysql_error(); mysql_close(); ...
I am new to Java programming language, so please forgive any obvious or silly mistakes I may have made. I am working on an activity in which I retrieve a JSON encoded string from a PHP file and display it in a simple list view. However, I am encountering ...
I transformed a regular array of user-defined objects into a JSON Array. Now I'm wondering how to convert the JSONArray back to a normal array of the same type. In order to accomplish this, I am utilizing Json for shared preference in an Android applicatio ...
Is there a website that can provide me with a constant URL for my JSON code so that I can edit it and see the changes reflected live on the same link? Currently, when I try to edit JSON code on gist.github.com, the URL of the raw format changes. Any sugg ...
I attempted to access the forecast data but encountered issues, specifically a NullPointerException and sometimes crashes. This is because I am unable to retrieve the data from item -> forecast -> {data}. Within the Item class: condition = new ...
Is it possible to transfer data in JSON format from an Android client to a servlet? If yes, what are the benefits of using JSON for this purpose? ...
Can someone assist me with an issue I'm facing in my chat application? Whenever I try to display a friend's name on the chat, the app crashes. If I remove the part where the friend's name is displayed, the messages show up fine. However, as soon as I add t ...
Currently, I am facing challenges in sending an image to the server through retrofit. While the server can receive what I send, there seems to be an issue when I test it with Postman, as it displays something unexpected. Let me walk you through my data fir ...
Below is a JSON string that I am working with: [{"BranchID":1,"SecurityCode1":13,"SecurityCode2":14,"PrintHeight":10,"PrintWidth":10,"Active":true}] This is the code snippet I am using to parse the JSON data: Type t = new TypeToken<List<Setting&g ...
After creating a reliable alert service for my Ionic 4 project, I encountered an issue when building the release version of the app. Despite functioning perfectly in other environments like "ionic serve" and "ionic cordova emulate", the message part of the ...
Trying to set up Moodle's ionic mobile app on my local machine using Windows and following these steps: cd project-directory ionic platform add android Encountered an error in the command prompt: throw err; ^ Error: Cannot find module 'plist' Th ...
Is there a way to instruct GSON to create an empty array instead of setting it to null when a JSON with an array field has a NULL value? Are there any specific properties or flags that can be used for this purpose? ...
I am working on an Android application that captures images and also have Python code for extracting image features. I am looking to connect these two components so that the Python code can receive images from the Android application. I have heard about bu ...
After discovering the route between two latitude and longitude values on Google Maps using "Get Directions," everything appears accurately. However, when attempting to use the same directions in an Android mobile application, only the destination marker ...
Currently, I am utilizing the Google Books API to search for books. However, I am encountering an issue when trying to populate my ListView with the searched books as it is throwing an error specifically in the onPostExecute method, but I am unable to iden ...
I'm currently attempting to obtain the UUID of my devices so that I can send targeted notifications via Firebase. My front end and back end are connected, enabling the back end to send notifications to the front end using Firebase. However, all I am able t ...
I have a JSON string that looks like this: { "r": [ { "pic": "1.jpg", "name": "Name1" }, { "pic": "2.jpg", "name": "Name2" }, { "pic": "3.jpg", "name": "Name3" } ] } My goal is to convert it ...
Have you noticed the transparency effect in certain divs using the rgba CSS property? Strangely, Chrome on my ASUS tablet and Samsung S3 mini Galaxy smartphone does not seem to support this feature. Surprisingly, Internet Explorer does! Any insights on w ...
Can the app be minimized to the background using a button within the application? Some applications achieve this by minimizing when the exit option is pressed, rather than closing completely... I am looking to implement this feature in my Ionic app or th ...
Is there a way to create a visually appealing menu for changing the map type, similar to the one on Google Maps? This menu should appear when clicking the layers FAB. I'm unsure if it's a custom FAB menu or if it animates and opens a fragment. https://i.s ...
I'm having trouble establishing a connection between my Android app and WampServer on the local network. Fetching data from the server has been successful, but I face an issue when attempting to send data to the server. I've implemented a Service for com ...
I am facing an issue with my webview. In the webview, I have three input types: Number Text Password The problem is that when I switch from the number input field to the password input field, the numeric keyboard opens up instead of the qwerty keyboard. ...
I'm inquiring about assistance regarding what I believe is tied to caching during JSON object parsing. Currently, I am conducting benchmark tests on different deserializing libraries such as Gson, Kotlin-serialization, and Immutables. I have a json-format ...
Is there a way in React Native Stack Navigator to navigate back to previous pages from some screens and disable the ability to go back from others? I've tried using Back Handler, but it doesn't seem to be working. How can I achieve this functionality? ...
Despite searching for a solution with Retrofit2 and following an online tutorial, I am still facing the same issue. The code worked fine in the tutorial but when I tried it on my own endpoint, I encountered the exception: java.lang.IllegalStateException: E ...
I am having trouble sending data from an Android device to PHP. Despite my attempts, I am unable to identify the mistake I have made. How can I rectify this issue? Below is the snippet of the Android code that I have implemented: public class php_connect ...
I'm currently attempting to link my Android application to a PHP script hosted on a free server. However, when my app tries to access the page, I receive an HTML message stating that JavaScript is disabled and needs to be enabled in order to view the ...
I have a JSON parsing Class structured like this: public class JSONParser { static InputStream is = null; static JSONObject jObj = null; static String json = ""; public JSONParser() { } // method to fetch json from URL // using HTTP POST or GET method ...
As I work on creating a Class that will populate my layouts with data from a JSON Schema, I am encountering a challenge. The JSON includes definitions such as { type: "checkbox", label: "Label text", value: true, id: "liquids" }. While rendering the UI is ...
When it comes to mobile browsers, Audio elements require user action before play can start. The click event usually satisfies this requirement, but touchstart doesn't seem to be an acceptable initiating event in Chrome on Android or iOS. (Refer below ...
I am utilizing a JSON feed obtained from the following URL. This JSON feed contains 20 fields that I parse through to extract all the data. However, after displaying these 20 fields in a listview, I now need to retrieve more data from the JSON feed. To ac ...
Is there a faster and more efficient option than the code I'm currently using to extract the name of a country from the name of a city? I want to be able to convert a timezone like 'Europe/Istanbul' to ...
We have created a Hybrid App for Android devices and made it compatible with Windows by using Adobe PhoneGap Build to generate a .XAP package from the existing Source Code. We believe that this .XAP package can easily be deployed on a Windows Mobile devic ...
Currently, I am exploring a project that requires taking photos with a selfie stick. However, during my testing with the selfie stick, it only seems to trigger the volume up button. Now, I am looking for a way to detect the volume up button press or any ...
Currently, I am delving into the world of Retrofit as it appears to provide solutions to many of the challenges I face with JSON requests and their handling. It is clear that interfaces play a key role in defining the methods utilized, particularly when m ...
When developing my webpage, I made sure it was compatible with all major browsers and even optimized it for mobile browsers. However, I overlooked testing the page on Android browser (specifically Android 4.2) and encountered some issues. The viewport set ...