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
votes0
answers34
viewsHow to Catch Device Serial in PHONEGAP?
I need to get a phonegap. At the end of the URL I would like to add the device ID to see if it is already registered or not in the database. For sending I use the Ajax function of Jquery. Below…
-
0
votes2
answers45
viewsArraylist statico returns size 0 when I try to recover it in an Activity
I have This class: abstract public class ListaEstaticaDeErros { private static ArrayList<DescritorDeErro> listErros = new ArrayList<DescritorDeErro>(); private static boolean fimSinc =…
-
0
votes1
answer99
viewsSave data to more than one node in Firebase
Well I have the following code: private void abrirCadastroContato() { String emailContato; emailContato = "email"; int contador = 1; while (contador <=3) { if (contador == 1) { emailContato =…
-
0
votes2
answers397
viewsHow to enable PDF dowload on webView with Android Studio
//MainActivity package app.inova.appfatto; import android.support.v7.app.AppCompatActivity; import…
-
0
votes0
answers135
viewsDo a search Inside a custom Listview with firebase
Basically my project resembles a social network, using the firebase Restaltime database, but I came across a problem, I created a custom listview and my idea was... Since I had 2 children >Users…
android android-studio firebase listview firebase-databaseasked 6 years, 3 months ago Arthur Ramos 11 -
0
votes1
answer479
viewsHow to save file from one folder to another?
I have a listview which displays the files from an external folder (usb). I want to select one of these files and save in an internal folder (Basket). Here it is when I select an item of this mine…
-
0
votes1
answer51
viewsAlign kids layouts
I own an android project that is basically an app to download and watch videos online, I was using a custom code from a video controller to the player I picked up on the internet, however I decided…
-
0
votes1
answer25
viewsError while consuming API on Android
I’m trying to consume an API on Android, but I’m not getting it. Debugging looks like it cannot exit Asynctask and does not return the value to where it is calling the method. It can read the data…
-
0
votes1
answer51
viewsAdvanced Android Design Layout
I’m using the layout below to house a BottomNavigationView and call my Fragments, but wanted to put the LinearLayout where I call the Fragments in a ScrollView. The problem is there, when I do it in…
-
0
votes0
answers28
viewsHow to implement a Gameview code within a class?(in java code for android)
I am new in java and I am developing a project, I have the following code below: Paint.setColor(Color.rgb(250, 0, 255)); canvas.drawCircle(Xa, ya, 10, Paint); Which I use in the Gameview draw method…
-
0
votes1
answer1831
viewsAndroid Target and the Android SDK not found or installed... but it is all installed, how to solve?
I had to format my PC, Windows, and installed everything again: Java, Git, Python, Android Studio, Node, Ionic 3, Cordova, everything. And it was running before normal. Now I’m with this error, not…
-
0
votes0
answers21
viewsProblems with setuid
I am developing a program that changes my process uid to 0 allowing me to start other root programs. mysu.c #include <stdio.h> #include <unistd.h> int main(int argc, char **args) { int…
-
0
votes1
answer69
viewsRemove word accentuation in searchView
I’m trying to remove the accent from the researcher’s words, but my code isn’t working. I’d like you to look at an example word Você all variations ofVoce, Você, você, você, VOCE, VOCÊ. Thank you…
-
0
votes1
answer31
viewsError while displaying message
public void iniciar() { Thread thread = new Thread(new Runnable() { @Override public void run() { Socket socket = null; DataOutputStream dataOutputStream = null; DataInputStream dataInputStream =…
androidasked 6 years, 3 months ago Márcio1994 29 -
0
votes0
answers165
viewsAdd data to Firebase
I need help later because I’m having difficulty inserting new data in firebase. I am developing an application for my TCC where it is possible to register and as soon as I can log in have an option…
-
0
votes0
answers118
viewsPass parameters from one Adapter class to another Activity
I need the help of Voce, create a class called Itensadapter that creates a listview with the database data, until ai blz, now I need to capture this data in another Activity to enter the quantities…
java android android-studio android-activity android-adapterasked 6 years, 3 months ago Lioni Beats 1 -
0
votes0
answers69
viewsProblem Recovering Data from Firebase and Moving to Object
I’m trying to make an inventory app in order to study. Where items can be added, saved to firebase and then displayed in a Recyclerview Items are being saved normally in firebase: But in time to…
-
0
votes2
answers124
viewsValueeventlistener coming back null?
I’m messing with the API of a website and from there I get information from a certain item in a list of items that came from the API and saved in the Firebase database, now I’m wanting to take this…
-
0
votes0
answers39
viewsI cannot return data from the firebase user to display in edittext, how do I?
The Code I’m using is this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_cotacao); mTextView = (TextView)…
-
0
votes0
answers41
viewsPlugin.Geolocator.Abstractions.IGeolocator.Getpositionasync Indexoutofrangeexception
I’m using Xamarin.Forms and trying to get the position with the Plugin.Geolocator and Getpositionasync method falls into an exception of Indexoutofrangeexception var locator =…
-
0
votes1
answer803
viewsProblems with getDownloadUrl firebase
Hi, I’m having a hard time getDownloadUrl firebase. After the last firebase update my app stopped working. Is showing error in Uri downloadUrl = taskSnapshot.getDownloadUrl();…
-
0
votes1
answer2297
viewsDisplay the login user name by registered email and password in firebase in the app
Hi, I need your help, because I’ve looked at it in a lot of ways, and I can’t fix it. I am wanting to display the name of the user logged in to the application by Firebase. NO Edititext the return…
-
0
votes2
answers204
viewsMap navigation intent for all apps [mount route]
I’m looking for a way to give user option select which app mount your route (Waze, google maps, Uber...), but just does not work on google maps. When I choose it, it just shows the location on the…
-
0
votes2
answers345
viewsEdittext vehicle mask
I would like to know how to create a mask in an Edittext in ABC-1234 format. I’m trying something as an example below, but still unsuccessful. public abstract class PlacaVeiculoMask { public static…
-
0
votes0
answers44
viewsProblem with Data Reading in Firebase
Hello, I’m trying to read data in firebase and pass to an object, but when I used to use this object outside the onDataChange it showed the object data as null So I made the following Log’s to test:…
-
0
votes1
answer77
viewsHow to Hide My Recyclerview
I have an event at my Adapter that controls the click in the items of recyclerview. I would like to know which code I should add that when clicking on the item, the Recycler view be hidden @Override…
-
0
votes0
answers41
viewsError opening Android app project
When opening the Android app project of a friend of mine on my PC, I came across these errors. How do I fix it ? screen images : Grandle code ( app module ) : apply plugin: 'com.android.application'…
android android-studio android-layout android-activity android-fragmentasked 6 years, 3 months ago jhonatan santos 103 -
0
votes1
answer426
viewsChange the color of textview using switch
I’d like to know how to change the color of a texview using a switch. When selecting the Switch, the word on the side stands out with another color on Android Studio. XML code: <?xml…
androidasked 6 years, 2 months ago felipe edgar 1 -
0
votes0
answers36
viewsCode in android studio closes before finishing
The code in android studio closes before finishing. I’m a beginner, so I don’t know where the problem is, but the program must be to multiply one value entered by the percentage of another chosen.…
-
0
votes2
answers127
viewsAndroid - Edittext does not return typed value
I am trying to recover a value to generate a random password, however the field "size" is not returning what was typed. The error occurs in the following block: int tamanho =…
-
0
votes1
answer273
viewsHow to prioritize the device wifi connection even without internet?
I have an application (Android/iOS) that runs on a local wifi network (which has no internet). Because this wifi network does not have internet, the devices prioritize 3G/ 4G, and so my application…
-
0
votes1
answer41
viewsXamarin Cross-Platform and "Native" Codes
Good morning, I recently started a study on multiplatform development, and now I’m evaluating Xamarin (Visual Studio 2017), but I’m having difficulty with some questions. The main one is the…
-
0
votes1
answer116
viewsUpdate Facebook within Pageview with Tab
Galley, See if you can help me, I’ve had this problem for two days and I can’t fix it. My app got Pagaview, Tablayou, and 3 Fragment Ok? As picture below: In my third tab I have the following…
-
0
votes1
answer244
viewsError trying to find file in Android app with File Provider
Hello, I’m having a hard time with Fileprovider. The file comes to be created because I checked manually in the directories. I put some logs to see what happens but still can not understand why he…
-
0
votes0
answers229
viewsHow to move an Imageview in android studio
Hello, I’m trying to move an Imageview from the center of the screen to the top, and I’m not getting it. Desired effect: The logo starts in the center and goes to a position at the top of the screen…
androidasked 6 years, 2 months ago Lucas Lima 1 -
0
votes1
answer139
viewsUsing Firebase to store images and bring on Android screen
Good morning, I created a Recyclerview with Cardview to show some photos that are stored in Firebase, but when bringing the photos to the screen the same does not fit in cardView I left the image as…
-
0
votes1
answer51
viewsAsynctask in infinite loop when using Wallpapermananger
My app strangely runs around in an infinite loop uncontrollably. It’s a simple code to download an image and apply as wallpaper. But when removing this line of code, the loop goes away, that is to…
-
0
votes0
answers115
viewsSort data Firebase
I am trying to sort my search by date, however I have to look for a value and it is not allowed to use two orderByChild. I need to either find the name passed by the search variable name or sort by…
-
0
votes1
answer109
viewsError in Alertdialog
I’m having a problem presenting a alert dialog in my app, appears the following error: Unable to add window is not Valid is your Activity running? Can someone help me solve? Code: package…
androidasked 6 years, 2 months ago Tomás Dinis 13 -
0
votes3
answers70
viewsError Code: 401() when sending FCM notification using a server
I’m having trouble sending notification using Firebase Cloud Messaging on Android. I’m using the method below: public void enviaNotificacao(String mensagem, Pedido pedido, String token) { Sender…
-
0
votes1
answer298
viewsHow does it work to put dynamic content by making an Android app natively?
Guys, I’m seeing a little bit of mobile development (Android), and I saw that the design is done using XML, and from what I saw, it seems to have no loop tag, to repeat similar structures, and…
-
0
votes0
answers21
viewsI would like to display a div or entire site without the search bar within the app
I would like to display a div or entire site without the search bar within the app. I found no answer on any site. This code opens the site, but opens with bars with everything. My Code is like…
-
0
votes1
answer62
viewsWhen I click on Listview to open another Aciticity the app hangs and Fexa
I’m creating an App that looks for nearby wifi networks and then can connect to them, but locked at the beginning, because I can make it scan, but when I click on some network of the list, which…
android android-studio listview android-activity arraylistasked 6 years, 2 months ago Emanuel Boaventura Matos 9 -
0
votes0
answers78
viewsData via Query Webview String for Activity
I’m not big on android programming. What I do is based on something javascript I know, which is also not much. So I wanted your help. I have an app that runs webview on mainActivity. But I need to…
-
0
votes1
answer219
viewsAndroid IMEI: all android versions
The methods below are not effective to capture the IMEI of all Android versions. private String getIMEINumber() { String IMEINumber = ""; if (ActivityCompat.checkSelfPermission(this,…
-
0
votes1
answer93
viewsCounter (Transaction) in firebase fatal error
Guys I’m trying to make an accountant, in fact I’ve used this idea to tell in firebase, which is a correct and safe way to make a counter for firebase. MutableData mData; //Contador +1 ao Firebase…
-
0
votes1
answer80
viewsNormal and long click only work after a first click on Imageview
I am with a problem that when I click on the image, the first time nothing happens, only after the first click it works simple click function and long click. XML code: <ImageView…
-
0
votes1
answer133
viewsHelp with recovering Firebase nodes
I want to recover all users' followers in firebase. I have the following structure at Firebase: -seguidores -id amigo -id usuario For that structure I did the following to retrieve it: public void…
-
0
votes1
answer151
viewsListview with JSON + PHP
I want you to appear in one ListView all the information of a select I gave. I can do only with txt by displaying information: public void sendjsonrequest() { JsonObjectRequest jsonObjectRequest =…
-
0
votes1
answer49
viewsAbout Activities in Android/Java
Good night. My doubt is simple. My app has a system where I open 5 activities for registration (first Activity 1, then 2 and so on. imagine it is something like a windows installation where you have…