Most voted "android" questions
Android is an operating system for mobile devices developed by Google and the Open Handset Alliance. Use this tag to reference questions related to programming for Android and be relevant only to this operating system. Use the [android-subject] tag instead of [subject] alone.
Learn more…8,935 questions
Sort by count of
-
1
votes1
answer61
viewsTextview does not centralize on android 4.1.1
I got a problem with mine layout, in API 16 ( 4.1.1 ) TextView is not centered. I am using ConstraintLayout. The properties in XML are like this: <TextView android:id="@+id/txv_textomeio"…
androidasked 7 years, 3 months ago Igor Oliveira 1,110 -
1
votes1
answer415
viewsOnitemclicklistener to open an Activity
I have the following problem, I am using a list view and a search view, and when I click on an item, I would like to open an Activity and show a Toast. So far so good, when I search and click on…
-
1
votes1
answer31
viewsHow you notify in the Jsoup function
I have to notify an action that occurs within the site , I have the following code that. It appears in a texview and wanted to notify enves of sending the name to textview. Textview txv; @Override…
-
1
votes1
answer59
viewsSearching parameter by editText
I’m having trouble fetching some data from a specific parameter, in my android app, in the webservice I already search and using GET with the data I want it brings me the data, but I need that when…
-
1
votes0
answers25
viewsA web element is clicked but no action is performed (Android)
sorry for the language, but so I’ll be more direct I’m having a problem, I find the (mobile) element in a real device, point to it and click, but always returns the error message…
-
1
votes1
answer61
viewsRefresh Listview Android with SQL Server
I’m making an application where I have two activities: One that will show users who have been registered in a ListView, and another that will make it possible to execute the CRUD. I have a problem…
-
1
votes1
answer79
viewsSpace between Imagebutton Android
I wanted to leave a space between the Imagebutton, and a space between the Imagebutton and the Laterias, but I’m not getting it. I would like the application to be more or less like this: But she’s…
-
1
votes1
answer246
viewsDisable checkbox in Recyclerview
Each item of a RecyclerView contains a Checkbox, and when selecting a checkbox would like to disable all other checkboxes. I created a setOnCheckedChangeListener within the onBindViewHolder and I…
-
1
votes2
answers369
viewsPassing parameter to another Activity with sharedPreference
I have a code where I will access a webservice that will be changing the ip weekly, I created a sharedpreference for the user to save the new ip and when saving my Activity would pull this IP saved…
android web-service checkbox edittext sharedpreferencesasked 7 years, 2 months ago Renato Crispim 45 -
1
votes1
answer219
viewsInsertion of float value into a Jsonobject
I have the following situation, I have an object called Item, with a value variable in it. At the time I enter the value in the json object it changes from 1 or 2 boxes after the comma to 15 boxes…
-
1
votes0
answers110
viewsEnvironment Preparation Android Cordova
Following the tutorial in this video https://www.youtube.com/watch?v=4sYLBVGwxrw Posted by Marcelo Costa, I performed all installations as recommended. I’m using Windows 10. I installed Android…
-
1
votes1
answer53
viewsError setItemOnClickListener after click
I am having a problem in the application where after I click some row of mine ListView, the application simply crashes (unable to see the error in Debugger). The idea is after clicking on ListView…
-
1
votes1
answer202
viewsChange FAB color via code ( programmatically )
I’m developing a Activity customized, where the colors of the screen elements will vary according to their properties. Example: If the property guy of the object Message exhibited is "Azul", then…
-
1
votes0
answers76
viewsLoad only div from a specific site
Hello I am trying to take all the information from a page to a webview via jsoup but the letters are all deformed when I load and it doesn’t look like this on the site , there is some way to load…
-
1
votes2
answers920
viewsHow to know which Fragment is being displayed
My app has an Activity that controls the inclusion of Fragments. Follows: public static void adicionarFragment(Activity activity, Fragment fragment){ FragmentManager fragMgr =…
-
1
votes0
answers60
viewsCordova-plugin-network-information problem with Inic v3
I’m beginner in Ionic and I’m facing a problem, the application I’m developing uses the inappbrowser plugin to display a responsive site so far ok. I need that now when user disconnects from the…
-
1
votes2
answers1379
viewsobject problem on top of each other in Android Studio
I’m learning to create android apps, but face appears an error when I test the app on mobile, and text is on top of each other, or any object I add. in Android studio is like this: xml: <?xml…
-
1
votes1
answer419
viewsHaversine formula for SQL SERVER
Guys, I have an Android app that uses Google Maps API. On the map, I get data from an SQL Server database. I need to create a KM radius where I only upload the database data that’s inside this…
java android sql-server web-service google-mapsasked 7 years, 2 months ago Gabriel Moreira Carvalho da Lu 13 -
1
votes2
answers100
viewsMy App does not load list of items
I have a App Xamarin.Formsthat consumes two services rest. The first service, consumes normally. However, the second, that I need to pass a parameter, this is not being consumed. I’ve tried several…
-
1
votes0
answers34
viewsonSaveInstanceState Not recording data
I have two activities that I will call activityA and acitivityB. In my activityA I have the following method. @Override protected void onSaveInstanceState(Bundle bundle) {…
-
1
votes1
answer27
viewsHow I customize these Edittext that will be generated (backcground, Textcolor, fontsize, etc.)
Does anyone know how I customize these edittext that will be generated (backcground, Textcolor, fontsize, etc.) public class Main2Activity extends AppCompatActivity { private LinearLayout layout;…
-
1
votes1
answer67
viewsRun gif during webview load
Good evening, I’m willing to put a gif that will appear until the page on webview be fully loaded... gif already have, put a Compile and took the code from github, my problem is that I am not able…
-
1
votes1
answer430
viewsHow do I place Edittext in the middle of the screen?
I used Gravity.CENTER, what centered the text in Edittext and not Edittext in Activity. package com.example.wbsoftware.testetcc; import android.content.Intent; import android.graphics.Color; import…
-
1
votes2
answers471
viewsOpen BLOB in php
I have a field of type BLOB to save images in my mysql, the image comes from an android APP via POST, the way the string BLOB arrives I saved in the bank. When I try to show the contents of this…
-
1
votes0
answers178
viewsListview android
How can I separate the returned fields from one Sqlite database in a listview? I’m using: SimpleCursorAdapter adaptador = new SimpleCursorAdapter(this, R.layout.row_item, registros, from, to, 0); It…
-
1
votes0
answers39
viewsError emulating app by Android
I’m making a Splashscreen from this tutorial. After "finishing" what the tutorial says and while trying to emulate the App, one ERROR appears to me and frustrates me. Being him: 09/13 01:19:32:…
-
1
votes1
answer472
viewsCreate new Ode in Firebase
I’m developing an Android chat room app using Firebase. The current structure is as follows (being Assedio, Beauty etc rooms): To date, user data is being stored with the Firebase standard,…
-
1
votes1
answer46
viewsListview with config.properties
I am with a following doubt, I am using a listview with about 300 characters of a game, when clicking on a character he inserts some dice that is written in the config.properties, all characters…
-
1
votes0
answers72
viewsRefresh Controll stops working if listview exits the screen
I’m trying to get a list of Firebase items, including images, that will be rendered in a Listview. But the problem is that when Listview gets bigger than the screen, then Refreshcontrol no longer…
-
1
votes2
answers1120
viewsHow to read Json with Android
I wonder how I read json in two different ways. 1 - I have a Json {"nome": "JOA", "cpf": 7.4417, "idade": "15"},{"nome": "PAT", "cpf": 8.5528, "idade": "20"}"}; This one I can read and play in…
-
1
votes0
answers58
viewsI can’t log in with google in my Release app
in this part of else and does not continue logging in, I already got sha1 from Key store path by prompt as the code -list -v -keystore "Local da chave" -alias nomealias -storepass senha -keypass…
-
1
votes1
answer75
viewsGridview - Items repeating randomly
I’m having a problem in grid view. This grid contains n products that are displayed on the screen, thus the grid of some users have scroll. When there is no scroll the products are normally…
-
1
votes1
answer184
viewsSearch in listview does not show the corresponding item
In listview when searching for an item it shows the right matching name, but when I click to play it plays another item instead of the searched item. Mainactivity public class MainActivity extends…
-
1
votes1
answer52
viewsWhen the keyboard is hidden the space is not rendered
I have a problem in one of the Activitys, in this Activity I have a lot of content, so I’m using a Scrollview. The problem is that once I finish typing in Edittext and the keyboard is hidden the…
-
1
votes1
answer174
viewsCall PUT method from an Xamarin.Forms App
I need to do an update of mine App. I’m having some doubts to pass the proper parameters to the URL of the service and perform the PUT. The service is working, testing by Postman, I can perform the…
-
1
votes1
answer1543
viewsDouble Click Android
I’m developing an app that has a list in a RecyclerView and the idea is that the person chooses one or more products from that list and changes color to show that it is selected, but in case the…
-
1
votes1
answer65
viewsHow to define a data structure in Json, with the name of the object at the top of the structure?
I am working on json and I really need to get this structure: { "Identidade": [ { "numero": 1704, "numeroFinal": 1804, "id": 28 }, { "numero": 1806, "numeroFinal": 1905, "id": 28 }, { "numero":…
-
1
votes0
answers89
viewsError creating sqlite database from installed apk
I used a populated . sqlite database in a project. I imported the bd into the Assets folder and implemented the code for creating and accessing the database. I ran the project and everything worked…
-
1
votes1
answer235
viewsError while trying to run android emulator without android studio
I installed android studio and studied how to use Avd without the need of android studio, I learned how to make the machines via command line and it worked perfectly, but when I went on another…
-
1
votes2
answers1278
viewsPass product list to another Activity
Hello, I am learning and I wanted the suggestion of you, in a simple way at first, how to make this passage of products to another Activity. The application I’m developing it loads a list of…
-
1
votes1
answer47
viewsHow to get value returned from Get using Volley on android
In case I want to know how to get only the GET value of the link ".../posses_cadastro" to enter If or Else. public class LoginRequest extends StringRequest { private static final String…
-
1
votes1
answer118
viewsCalling non-static function inside a Handler
I’m developing a code in android studio in which I receive data through a buetooth transmission. The data goes to a function called Handler, which is Static. public static Handler handler = new…
-
1
votes1
answer66
viewsData is not entered in sqlite
Guys I’m starting now on Android, I went to do a test of entering data in the database but the data are not entered, I may be mistaken at some point, follows below the code: protected void…
-
1
votes1
answer984
viewsReturn list from a child in firebase
Good morning ! Guys, I have a situation in which I want to return in a list all the data whose one of the children are equal to id, in the image below I have the nodes structures of my database in…
-
1
votes1
answer39
viewsRedirect via HTML5 Offline Online events
How to identify if HTML5 app identifies and redirects if offline or online? Ex: When opening the app if you are without internet loads a warning html and online redirects to a website. I found this…
-
1
votes1
answer63
viewsReturning different messages according to the results of a function
I have the following doubt: I have a function that can give me four different values. I would like to create a message (string) for each function value, so that the message is released with its…
-
1
votes1
answer595
viewsMy notifications are not coming and I think my code may be correct
I made several attempts to send Push Notification and none of them I was able to view in my App. I always thought until now, that I was wrong. But I followed two steps and saw that with the guys it…
-
1
votes1
answer79
viewsPopulando Spinner
I have the following doubt I have to use some Arrays List in my project they are... List Restaurant Dishes Restaurant 1 Dishes Restaurant 2 Price Restaurant 1 Price Restaurant 2 Within my Activity I…
-
1
votes1
answer91
viewsHow to rescue versionCode and versionName from an APK?
In a given case, a certain company does not want its application to be posted on Google Play. However the idea would be to create a version control within the company’s own system to make the upload…
-
1
votes0
answers95
viewsInserting Script in Android Code for Searchview Search
I’m developing an Android app that works with the Google Maps API, and in it I have a searchView that needs to search the typed location and display on the map. But I do not know how to insert a…