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
-
0
votes2
answers51
viewspassing parameters between activitys
could help me with this android studio code ...I do not cosnigo recover the string to run if: public void Green(View view) { String cor3 = "verde"; Bundle parametros = new Bundle();…
-
0
votes2
answers83
viewsListview surpassing Toolbar
Does anyone know why mine listview is overtaking the toolbar? I already put the attribute app:layout_behavior="@string/appbar_scrolling_view_behavior" and yet it won’t. Code: <?xml version="1.0"…
androidasked 7 years, 1 month ago Artur Mafezzoli Júnior 441 -
0
votes0
answers102
viewsAlarm manager, main screen
I made an app that generates an alarm at 19 hours, is picking up perfectly, the problem is when I pull this alarm from the Main Activity in Manifest, when I do this, the app no longer generates the…
-
0
votes2
answers195
viewsHow to list the latest message from all conversations
I’m creating a chat in android studio, so I need to list the last message between the chat user and his contacts, regardless of whether he sent or received the last message. I have selected below on…
-
0
votes1
answer66
viewsHTML Entities in PHP and Java
I’m using htmlentities() in PHP to store data in the database, overwriting c, ã, and other characters by HTML entities: <?PHP htmlentities ("Ampliação"); //Resulta na string…
-
0
votes1
answer210
viewsUse Searchview to search for a populated model class with firebase
Good night ! I am stuck in a problem, in this I have a list of items I receive from firebase, in this list I have visibly 3 attributes of the model class (idAtivity, title and time), thus, I would…
-
0
votes0
answers293
viewsError compiling Xamarin.Forms project
I’m making that mistake: The "Xamlctask" task was not instantiated "C: Labs FCM-Xamarin-Forms-master FCM Packages Xamarin.Forms. 2.2.0.45 build…
-
0
votes0
answers60
viewsError of: Unauthorized Error
I downloaded a project to test sending push notification. I am trying in various ways and without success. This project is from a guy named Habibali. When I spin it gives the error of Unauthorized…
-
0
votes1
answer40
viewsInsert Sqlite into Intentservice background task
I have a problem with Intentservice, I have an Activity with three spinner they receive the State, City and Neighborhood of a Webservice where the Intentservice performs this task and within…
-
0
votes1
answer79
viewsError sending byte array with Retrofit2
I have the following problem, implemented a solution for sending images with Retrofit2, and my web service is on a server with SSL. The certificate was recently implemented, so it was already…
-
0
votes0
answers64
viewsAndroid notification buttons do not appear on mobile device
I always interacted with my Android application by emulator, but recently I started to test everything I did with my phone. I created some notifications with buttons, and in the emulator they appear…
-
0
votes1
answer668
viewsAn imageview receive image according to the selected option
I wish you could enlighten me on a situation. I want to change the image of an Imageview. I can even do it through the: final ImageView imageView = (ImageView) findViewById(R.id.imageChm);…
-
0
votes1
answer488
viewsProblem with accented JSON text - Android + Retrofit
I am consuming data from a webservice that returns a list with JSON objects, this way: [{"idPDV":3062,"nomeFantasia":"SEBASTIÃO JOSÉ DOS SANTOS","endereco":"RUA MANCHE CATAN DAVID,…
-
0
votes2
answers627
viewsButton in Fragment android
I own a Fragment and this fragment, has a Floatingactionbutton. I invoke the method onClickListener: FloatingActionButton floatingActionButton = (FloatingActionButton)…
-
0
votes1
answer68
viewsHow to clean Asynctasks from memory after run?
I am developing a commercial APP, in this need to load all customers of the establishment, so I make a request requesting each client, because I need to send the Id of this in the URL of the…
-
0
votes2
answers2660
viewsHow to take value from a Radiobuton within a Radiogroup to save in the bank
wanted to know how I took the value of a Radiobutton to save it in the sqlite bank. In the example below the instructor does as follows: public class FormularioHelper { private Aluno aluno; public…
-
0
votes1
answer27
viewsSummarizing the result of several logical tests in a single result
Good afternoon, I have some strings that come from tests. Example: String teste2 = (nB < 0.0 && m1 <= j ? "OK" : "Não passa!"); String teste3 = (nB < 0.0 && m2 <= j ?…
-
0
votes2
answers456
viewsHow to set a background color and borders for my button beyond the states pressed and not pressed on the button with?
I would like besides my button to have a lower edge more than had the button states pressed, not pressed would be another color... I am trying to do all this in my drawable xml to set a background…
-
0
votes0
answers721
viewsHow do I get my App to receive even closed or blocked notification
If I lock my Cell screen and leave the App open, I get Notifications, but if I close the App I can’t receive any more. The problem that when it started working, was getting in all situations and…
-
0
votes1
answer422
viewsChanging position of a Marker
I have a Mapsactivity class, where it starts at a fixed point set on the map. I’m calling a Thread, where the Map is only fully loaded, when the return is true. (I will do a search in a comic book…
-
0
votes0
answers150
viewsFirebase authentication check problem (Number phone)
Hello! I am trying to build a firebase record with phone number. I did the procedures I found in:…
-
0
votes1
answer582
viewsAndroid Development Recovering Firebase Data
Hello guys I come again for answers, I have a bank in firebase that has some movies and series and even tv shows, wanted to separate in genres these attributes, Example: whatever serial gets fixed…
-
0
votes1
answer762
viewsUpdate Textview Android Using Handler
I started Programming now on Android, and I need to update a Textview after receiving a string from a Socket connection. I get the string correctly but the apk closes giving an exception: 10-01…
-
0
votes1
answer55
viewsAlertdialog with Fragmentmanager
public void mapaDialog(View view){ AlertDialog.Builder mBuilder = new AlertDialog.Builder(CadastroAbrigo.this); View mView = getLayoutInflater().inflate(R.layout.mapa_flutuante, null);…
-
0
votes2
answers514
viewsQuery result null Firebase
Hello folks I’m having a problem to perform query in firebase database. This is the bank: I’m trying to carry out a search of all the restaurants that have the name Iguatemi, until then according to…
-
0
votes3
answers662
viewsUse the Textwatcher to handle the Edittext field on android but it shows $ 12,50 as it would be without the "R$"?
public class MoneyTextWatcher implements TextWatcher { private final WeakReference<EditText> editTextWeakReference; private final Locale locale; public…
androidasked 7 years, 1 month ago fabricio b. 245 -
0
votes1
answer26
viewsProblem opening Navigationdrawer
I implemented a NavigationDrawer, but I’m not able to open it.There’s that button on the side of the Activity name. I don’t know if I created it wrong. Code of Navigationdrawer in my Mainactivity…
androidasked 7 years, 1 month ago Léo Santos 114 -
0
votes1
answer132
viewsHow to make a deserialize in a Json with C-Sharp
I have the following code private void WbRanking_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e) { RunOnUiThread(() => { string json = Encoding.UTF8.GetString(e.Result);…
-
0
votes0
answers120
viewsHttpurlconnection with Mysql and Webservice
I am trying to create a connection class to feed information into a Mysql database as follows: import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import…
-
0
votes0
answers167
viewsRead Entire with Bufferedreader on Android
In an Android application, I have a java socket client that sends integers (using writeInt) to a socket server on Android that I’m trying to read these integers. I receive correct strings but I…
-
0
votes1
answer528
viewsHow to click items from a list in Android Studio?
For now my code is like this ? how do I implement the click of the list items the click would open a new screen ListView lista_teste = (ListView)findViewById(R.id.lista_teste); String[] dados = new…
-
0
votes0
answers44
viewsI need two date, the onDateSet method executes and places the selected date in the two Textview
@Override public void onDateSet(DatePicker datePicker, int year, int month , int dayOfMonth) { //função execultada apos a escolha da data dataSelecionada =…
-
0
votes1
answer333
viewsPopular a spinner with data stored in a node in Firebase for Android
I’m performing a service for a client where I need to popular a Spinner with data stored in a node in Firebase. I’ve tried several tutorials, but no result. I created two entities in my project, an…
-
0
votes1
answer80
viewsDialog cannot be Applied
I’m trying to use a dialog but the following message appears Follows my code package com.example.gustavo.vigilantescomunitarios; import android.app.Dialog; import android.os.Bundle; import…
androidasked 7 years, 1 month ago GustavoSevero 2,567 -
0
votes2
answers490
viewsPrevent button to be clicked twice on android
I have a delivery app, where when clicking the button a request is triggered, it turns out that there is a bug that even with a preventive code to enter, sometimes it happens that in thousandths of…
androidasked 7 years, 1 month ago Mateus Carvalho 1,494 -
0
votes1
answer477
viewsBack function to go back on an Android device from Perfecto Lab
Good afternoon Commonwealth, I am using Cucumber in Eclipse to elaborate automated tests on an application installed on an Android that is on a VM, namely hosted on the site Perfecto Lab. Perfecto…
-
0
votes1
answer37
viewsAndroid: Use component id as key in Array
I have an Android app that has 7 imageButtons, need to store the captured images in a List Bitmap, I am trying to define the indices of the array list as the id of the imageButtons, however the…
-
0
votes2
answers387
viewsHow to calculate two sums with only one button?
I wonder how I can calculate with only one button two different sums, as I did the example in the image. I have the code this way, but only with 2 numbers. How do I make another calculation…
-
0
votes1
answer21
viewsI cannot implement a Sfdatagrid
Trying to follow a tutorial here to create a Sfdatagrid, but it’s not working. I’m very doubtful about how to implement it. My Model Class namespace Autorizador.Model { public class LiberacaoGrid {…
-
0
votes1
answer292
viewsApp appears message "app stopped" on another device
I’m developing an app using API 14 and use my own phone (MOTO G5 plus running Android 7.0) and works great, but when using another phone (GALAXY S5 running Android 5.0) it does not open and appears…
androidasked 7 years, 1 month ago Arthur Santos 33 -
0
votes2
answers66
viewsHow to create message sending method in Tabs?
I’m creating an app, in android, that has tabs. Each tab is a chat room. I took an example of a video about how to create app with Tabs, where the author, in addition to creating the app using a…
androidasked 7 years, 1 month ago GustavoSevero 2,567 -
0
votes0
answers55
viewsWhat is the correct/user friendly way to perform this operation?
Usually in desktop/web applications, we have a field código where is inserted the code of something and next another field that shows the description of this "something" after the search in the…
-
0
votes0
answers434
viewsFailed to allocate a 1850507580 byte allocation with 1048480 free bytes and 382MB until OOM
I’m putting a 728k image in an Imageview and when I run the app in android studio gives this stick in the application: java.lang.Outofmemoryerror: Failed to allocate a 1850507580 byte allocation…
-
0
votes0
answers45
viewsHow to update simply to the main screen on another screen?
I have a main Activity(MenuBalcao.class), and there is a listviewer that lists order items. There is another Activity(Selecao_Sabores_Produto_Balcao)where I search the order items. However, when I…
-
0
votes2
answers131
viewsAssign values to a Alertdialog views
I created a custom layout for my Alertdialog with a Textview in it, and an image, but I can’t put values in it. Does anyone know how to solve? Follows the code: private void carregaAlert(){ View v =…
-
0
votes0
answers285
viewsList data in an Activity
This is my first forum post, I hope I’m not inflicting any rules -. I’m starting in programming Android, so I’m trying to develop a CRUD. So far I made the registration and listing, but the latter…
-
0
votes0
answers148
viewsWebview, Download Image Download
I have a simple code from Webview and would like to click on the images of the site, download them by asking or downloading directly and sending a message like "saved image" Note 1: I used a tumblr…
-
0
votes1
answer141
viewsNull appears instead of the recovered name
When seeing the application, I see that in the variable nomedoHumano appears null, and the user’s name should appear. Just below the method Onclick, recover the name typed. I’ve thought about…
-
0
votes1
answer863
viewsHow to enable Firebase persistence offline
I’m having trouble enabling firebase’s offline data persistence in my app. The problem is this, I have an auxiliary class called Configurationfirebase which starts the required firebase objects, to…
-
0
votes1
answer2851
viewsSave in the image gallery taken by the camera and get way of that image. - Android
I have an android app that uses the camera to take pictures and show on a ImageView, Only the photo is not saved in the gallery. I would like to know how to save the image in the gallery and take…