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
votes1
answer224
viewsWait Reply Alertdialog
I have an android app with a home screen, where there is a listview, and when I click on the listview she opens a alertdialog, that displayed the following message "Want to Start Maintenance ?", and…
-
0
votes0
answers37
viewsProgressidialog exiting (Ismiss) before executing the previous code
Boa Tarde Personal! I made a request screen, where basically there is a looping fed by a data vector of WS, where it goes including the "lines" in the linearlayout. During this process, I display a…
-
0
votes1
answer40
viewsError when routinely attaching to button
Good afternoon I’m trying to get a button to open a new app but when I run the app it won’t open. Knob <Button android:id="@+id/solare" android:layout_width="83dp" android:layout_height="83dp"…
-
0
votes1
answer51
viewsHow do I manipulate a date in an Edittext to add up to 1 day?
I receive in an Edittext a date and I need that when pressing the renewal button this date is increased 1 day. package br.edu.unp.bibliotecavirtual.view; import android.content.Intent; import…
-
0
votes0
answers151
viewsRecyclerview Line Limit
I got a problem, I got a RecyclerView, and you’re bringing the information perfectly. It is basic only lists below each other, only it is not bringing all the records, do the query by another…
-
0
votes2
answers1216
viewsHow to call Activity/Fragment when clicking the button? Android Studio
I’m starting a short time with programming, I’ve researched a lot but I need help in this doubt I will use a menu in my app called Boom Menu https://github.com/Nightonke/BoomMenu My question is,…
-
0
votes2
answers149
viewsHow to send an Arraylist<Object> to Webservice SOAP
Good Afternoon Assuming I have the following Java Order and Item classes: public class Pedido implements KvmSerializable, Serializable { private String numero; private ArrayList<Item> itens;…
-
0
votes2
answers160
viewsError rendering Sectionlist React Native
I am having the following error in React-Native when trying to mount the component being passed from one screen to another. Below is the code to better understand the procedure. Code that searches…
-
0
votes0
answers231
viewsSave an image of Imagemview to Postgres
Hello, I am making a screen where the user takes photo of the error and sends in our program. The routine loads the image of both the Camera and the Gallery and I put in Imageview, in this part…
-
0
votes1
answer51
viewsAndroid - Convert arrayList to String []
Good morning guys, I need to convert a ArrayList for a String[]. I could not make it work. Just returns me a giant string. Follow my code public List<Item> geral(){ buscaLatLong();…
-
0
votes1
answer30
viewsHow can I identify if 2 Hashmaps have Objects with Common Ids
Right now I’m playing a card game, in which each Player has an inventory of his Cards. I am now trying to create a Deck and my goal is to make the Cards that are already in the Deck not appear on…
-
0
votes1
answer250
viewsUse Retrofit to popular a Recyclerview
I need to bring up a list of cities in one RecyclerView of a WebService using the Retrofit. But my List this coming null. I have a Class cidades with the data I need to take from WebService, to…
android android-studio web-service android-recyclerview retrofitasked 5 years, 7 months ago Regina Moraes 43 -
0
votes0
answers47
viewsAlert in action of the button
I researched several days, nights.. Anyway, just basic examples: my problem is to add an alert to the user after the click of the button, "Do you want to Renew?" or "Do you want to Return? How? my…
-
0
votes1
answer52
viewsAutocompletetextview with suggestions, from a web service
I have a Autocompletetextview that from a php api returns suggestions to the user based on values contained in my database. php autocomplete.: include_once('../includes/config.php'); $connection =…
-
0
votes1
answer29
viewsHow to update / refresh the data using Android Volley with Mysql?
I’m new on the subject and new here, I’m displaying an excerpt of the code I’m using for testing. The data is normally displayed the first time I query through the application, but if I perform a…
-
0
votes1
answer48
viewsView error
I have this query system in the msql database on the site, but I want to bring to the Oura Activity the login values and password. I tried with putExtra, but she doesn’t recognize the strings…
-
0
votes1
answer63
viewsRecord data in different child classes Android Firebase
I’m trying to record some data in another child class in the firebase, but without success, follows code. However unsuccessfully, when I run the application first the client data is recorded, and…
-
0
votes0
answers24
viewsDoes Pdfview have reserved words?
I am using the Pdfview library to open a pdf of my xampp but it does not open anything, this is the code I am trying: Readpdfstream.java package com.app.read_basic_pdf; import android.os.AsyncTask;…
-
0
votes0
answers27
viewsListview of simple files does not run
I have an application that at a certain time the user will list the contents of the folder containing some pdf’s that will be opened from this listing, however I can’t list the contents of the…
-
0
votes0
answers38
viewsDoubt Volley on Android
Is it necessary to have a Listview to send data to the webservice with Volley on Android? Because I only created three Edittext to test. It’s returning "timeout error". I’ve checked the url, it’s…
-
0
votes1
answer129
viewsHow to add Child node in Child firebase android
I would like to know how I can add a new node inside my Child 88d4c350-d2db-4765-b7da-0652b1278bd7 that is inside Child ETE, without overwriting the two tests? public void salvar(){ try { if…
-
0
votes1
answer33
viewsMy app is picking up the same settings even after using Finish
I’m a beginner on android and I’m developing a chat app in which I connect two people based on their preferences. When one of the two people ends the conversation and decides to go back to the queue…
-
0
votes0
answers43
viewsVolley error PHP Android Studio, not recognizing the POST
I’m having problems with the connector or Android. I really don’t know. I already use Volley in other activities but had never given this problem. Can anyone help me in this? Returns who did not…
-
0
votes1
answer219
viewsOpen fragment by clicking on Cardview
My home screen has 3 cardviews: main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer57
viewsAdmobs/ Adview - Advertisement at the bottom
I added the ad as below. But this centered in the middle of the screen, I would like to add at the bottom. I already added android:layout_alignParentBottom="true" but nothing: <?xml version="1.0"…
-
0
votes1
answer286
viewsHow to Iterate on Datasnapshot correctly in Firebase?
I am 8 days trying to get from firebase the records I put there. However, I can never bring them properly. --- Android for Firebase private void initPreencheLista() { listCelula.clear(); novaRef =…
-
0
votes1
answer559
viewsChange background when clicking and then return the original color
I’m having a hard time at the moment when I select several Textview, I can change the color normally and return when the id is the same as the one selected. My problem is this: When I change the…
-
0
votes0
answers148
viewsProblem closing app on Android when many screens are open
Before starting the App I need to do some validations, so I created a Splash screen where they are made. So to prevent the user to return to the Splash screen when he presses the back of the device…
-
0
votes1
answer430
viewsHow to manipulate buttons at runtime on android
I’m creating an app for a restaurant, where I can already list orders and create the interface, example: coca-cola - 0 + I use a for to go through one List, which generates the list of products. MY…
-
0
votes1
answer30
viewsPass parameter in onItemClick
I’m having difficulty passing the parameter inside the repetition for in Android Studio. It lists the data coming from mysql, but I can’t pass the parameter to access the item. for (int i=0;…
java android android-studio android-activity android-adapterasked 5 years, 6 months ago Alexandre Gomes 45 -
0
votes1
answer553
viewsReading of Firebase data
Whoa, that’s all right? I’m doing a college project using the Firebase and the React Native. I developed a screen where I want to publish texts and show everyone who is using the application. I was…
-
0
votes0
answers91
viewsError calling android studio java method
I’m having the error of: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference when…
-
0
votes1
answer97
viewsQuery firebase field returning null
I am searching for the field (value) in the table (revenue) in the firebase database, but when performing the debug I get the following: V/InputMethodManager: Starting input:…
-
0
votes1
answer173
viewsAccentuation in Edittext
I have an API 28 application that consumes Webservice and sends data by GET using Json, and I need a field EditText which accepts Accents, but when it arrives in the database it only records up to…
-
0
votes1
answer49
viewsWhy do I get null on onPostExecute?
This code is only returning null the Return, how can I fix it? @SuppressWarnings("deprecation") public class MecanismoString extends AsyncTask <String, String, String> {…
-
0
votes2
answers136
viewsI can’t get information from my API via android app
I created a web API with the code: <?php header('Content-type: Application/JSON'); include("../Classes/conexao.php"); if($_SESSION['conectado'] == false){ echo json_encode("Sem resposta do…
-
0
votes1
answer260
viewsRecyclerview click item 1 open Activity 1, click item 2 open Activity 2
public class ListAdapter extends RecyclerView.Adapter<ListAdapter.MyViewHolder> implements View.OnClickListener { private List<Categoria> categoriaList; private Context Context; public…
-
0
votes1
answer80
viewsChange Mainactivity for another by clicking a Switch button and keeping the change
I need that when I click on a Switch Button, the Mainactivity.kt is replaced by another Activity called Activitydois.java and that the option is maintained. And only if the user clicks the Switch…
-
0
votes1
answer315
viewsHow to generate ANDROID app build on IONIC
I typed the command ionic cordova build android and the result was that at the prompt Installing "ionic-plugin-keyboard" for android Ionic-v1.cmd build Ionic-v1[3676]: c: Ws src…
-
0
votes1
answer82
viewsProblem in Firebase Notification. Does not display when going through notification
I’m having a problem with the notification. I tried both Notification and Notificationcompat simply does not display it. Receives the firebase response well, but when showing the notification does…
-
0
votes0
answers33
viewsHow to send an Android post to Asp.net Core?
I have an application in Asp.net Core that should receive a Post via android and I’m not getting. There is always an error on android that the page was not found. class of the object in the Asp that…
-
0
votes1
answer233
viewsConnection app with firebase
Good afternoon, I have the following error in my logcat, when trying to register an email and password in firebase Authentication, where it jumps to my "Else" of "Alert" and soon after the error in…
-
0
votes0
answers39
viewsSqlite Android 9
I’m having trouble working with my app on Android 9. On some devices that were Android 8 and have upgraded to Android 9 works, but on the devices that comes with a newer version of Android 9 factory…
-
0
votes1
answer142
viewsPass values from a Fragment to an Activity
I want to pass the value of an Edittext (which is in a Fragment) to an attribute of an Activity object, but I am not succeeding, Toast from Activity returns null. Follow the code of the Fragment:…
-
0
votes1
answer104
viewsWhy does the getter return null?
In my android studio project I have a class of getters and setters to help me, but for some reason on main Activity when I call the db.busca() (which is in the database operations class) which…
-
0
votes1
answer55
viewsI’m not getting to finish the Activitys
My problem is this... I have 3 Activitys: (Activitya), (Activityb) and (Activityc) From Activitya to Activityb I do the following: val intent = Intent(this, ActivityB::class.java)…
android android-studio android-activity kotlin android-intentasked 5 years, 4 months ago Carlos Henrique 9 -
0
votes1
answer737
views -
0
votes1
answer34
viewsError while getting Bytearray from.3gp file on Android/Java
I am trying to convert a file from audio.3gp for string Base64 and send to the server using Volley, but for all I know, I need to transform the audio.3gp in Bytearray and transform that array string…
-
0
votes1
answer89
viewsProblems with Linearlayout
I’m getting started in learning about android development.Taking a basic student course. When I got to class on Linearlayout’s things went sideways. The idea is to insert 1 Linearlayout(General)…
-
0
votes1
answer94
viewsStart with Splash Screen
I have a project and use the Navigation Drawer Activity, and there was the need to put a Splash screen at the beginning of the project, I tried to put and now is giving an error when opening the…
android android-studio android-layout android-activity android-fragmentasked 5 years, 4 months ago Ari Melo 131