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
answer67
viewsConstraint Bugado Layout
I made an app on Android Studio using Constraintlayout. After finishing I tested in two different devices, a Vibe K6 and a Moto G 1st Generation, and in both everything was perfect. But when I…
-
0
votes1
answer28
viewsAndroid Studio app stopped picking up Json online from nothing
I am developing an APP, where it needs to get data online via Json from an API, without making any changes it stopped working while it was working normally, I have tested on the server that this…
-
0
votes1
answer39
viewscropIntent does not work on Motorola - editing not compatible with image type
In the onCreate mBotFoto.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); try { mFileTemp = new…
androidasked 6 years, 5 months ago Rodrigo Costa 1 -
0
votes1
answer490
viewsTostring problem in Android Studio
I have String type variables and Int type variables. When I do getText.ToString() in a variable of type int Android Studio shows error due to variable type not being a String. Would anyone know…
-
0
votes0
answers128
viewsAdvertisement Admob appears only once
Hello, can someone help me with this problem? When I run my app on the emulator, the ad appears normally at all times, but when I run it on my mobile the ad appeared only once and did not appear…
-
0
votes1
answer37
viewsOnline image in Adapter
I have an Adapter in my App, and I would like to take pictures of my server to put in it instead of a photo saved at the root, I’ve tried several ways, I’ve tried even using the Picasso API but the…
-
0
votes1
answer41
viewsGoogle Play Billing Library
In the library Google Play Billing, could anyone inform me what the part is for handlePurchase(purchase)? What exactly does she do? @Override void onPurchasesUpdated(@BillingResponse int…
-
0
votes2
answers117
viewsEdittext.gettext on a null Object Reference
I am trying to add records in the Firebase Realtime Database, through a Alertdialog, but the Edittext components do not let me abstract the component information. Below is the section of java..…
-
0
votes0
answers255
viewsMy Google Maps API Credential Has Stopped Working
I have an Android application and is no longer loading the bookmarks on the map, application that is active in Google Play Store, no update was made on apk, no key was changed in Google Cloud…
-
0
votes1
answer47
viewsHow do not have a miss click on the next screen?
I’m having a little problem with a quiz application. when the user clicks on the button the next question comes. put a delay of 1 sec. However, if the user clicks 2x on the button within this delay…
-
0
votes1
answer171
viewsError uploading with Idhttp android firemonkey
I’m using this code to make the testing upload files to my server. filing cabinet html where I select the file. <html> <body> <form method="post" action="upload.php"…
-
0
votes0
answers37
viewsChange text from Textview
I have a Textview to which I use a String as the text, I wanted to know if it is possible through a click to change this String(text) to a new text that is typed. public class Texto extends Activity…
-
0
votes1
answer298
viewsclose alertdialog open with inflate
I have a project with an open dialog box with an inflate giving the user the option to type a text to change the value of a String. I’m having trouble closing this box and going back to the previous…
-
0
votes1
answer1812
viewsError running Android app - React Native
I created my Android app using React-Native. I can use connecting the phone on the PC or using an emulator. However, when I send the signed version of the application and install it on my phone it…
-
0
votes1
answer202
viewsHow to insert onCreateOptionsMenu into a Java class?
How to insert the onCreateOptionsMenu and the onOptionsItemSelected within a Java class not to be repeating in all Activity calling it ? I have to pass only the ids and classes I call when clicking…
-
0
votes0
answers132
viewsI’m Creating a Navigation Drawer in android studio and can’t set the clicks on the items
A main Activity: package com.example.italo.nvigationdrawer; import android.support.annotation.NonNull; import android.support.design.widget.NavigationView; import…
-
0
votes1
answer623
viewsDelete recyclerView item from Adapter
I’m trying to apply a feature by clicking on an icon inside a Recyclerview list. By clicking on the icon, I record the acceptance of the condition, if not accepted, the "whole item" should be…
-
0
votes0
answers1953
viewsHow to store image in Sqlite?
I have an app with product registration that has 3 Edittext and 2 imageView. I am trying to save these values in Sqlite but there is something wrong because there is no error but also not saved,…
-
0
votes1
answer51
viewsProblems with Thread (Koltin)
I am in a situation where I am building an APP for android to be consulting the Bitcoin price variations on the website Mercado Bitcoin. The APP is already working, the last thing I want to…
-
0
votes1
answer84
viewsInsert a counter into Listview
I am using a Cursoradapter to fill my listview, within each item of my listview there are two buttons, one to add and one to decrease the value, and a textView to display this value, I wanted to…
-
0
votes0
answers19
viewsError while trying to generate signed apk from my application
Hello, I am trying to generate a signed apk of my application and is showing the following error; error: this class should provide a default constructor (a public constructor with no…
androidasked 6 years, 4 months ago Thed Santana 53 -
0
votes0
answers19
viewsProblems adding Parseuser to an Arrayadapter
I’m beginner in java programming, I’m trying to catch a ParseUser specify and send to the TimeLineFragment but it’s always null, I’ve done several tests but it’s always null public class…
-
0
votes0
answers21
viewsSelect android error
I can’t return the value inside my Arry always returns 0 Class Read public class Read { public ArrayList<RespostasAguaCasa> getLista() { SQLiteDatabase db =…
-
0
votes0
answers21
viewsAndroid - Overlapping element
Good afternoon, you guys! I’m creating an app that contains an Activity with a chat. However, after I send some messages, the text field is overlaid by the messages. What can I do? <LinearLayout…
androidasked 6 years, 4 months ago Thales Augusto 46 -
0
votes1
answer94
viewsPreferences created in Android Studio with connection to Firebase is not persisting
We have just started to develop an application. We have opted to connect to the Firebase database using email user and password. Logging in and creating new users is working normally, however, my…
-
0
votes1
answer90
viewsNotifications repeating every day
I’m trying to make an app that arrives notifications at user-determined times every day, but I was only able to make them arrive once. That’s the code I’ve got so far: private void salvar() {…
android android-studio android-notification notifyingasked 6 years, 4 months ago aleander rayson 23 -
0
votes2
answers91
viewsHow to display Marker on the map according to the selected button?
I’ve researched and tried some alternatives, but I haven’t been successful so far. *I would like to display the "markers" according to the button pressed on the main screen. For example: A) button 1…
-
0
votes1
answer99
viewsCounter zeroing for no reason
I have a method in which every time it is triggered, in addition to performing other operations, a certain counter cont should be incremented and then call another method where it will check that…
-
0
votes1
answer53
viewsCreate Android Studio Unique Field
I’m a beginner in android development and I’m trying to create a table in sqlite where the value of email will be unique. Only the app is allowing you to register equal emails. @Override public void…
-
0
votes0
answers374
viewsGet color name from HEX value
I’m trying to make an Android app that can capture the colors but I just figured out how I can get the HEX value but I really need the color name! Please I need an alternative that shows the name of…
-
0
votes1
answer83
viewsmkdir on android does not work
I’m trying to create a folder on Android to save the photos of the vouchers, but I’m not succeeding. I’ve given permission in Manifest <manifest…
androidasked 6 years, 4 months ago Reginaldo Rigo 3,638 -
0
votes1
answer262
viewsRequest error with complex object
I’m trying to file a requisition for a webservice. Note that by Soapui it works normally But by android passing exactly the same data The following error occurs: SoapFault - faultcode: 'soap:Client'…
-
0
votes1
answer67
viewsStorage firebase in android studio
I’m starting programming for android and I have a project in android studio that creates registration with photo, I added firebase and not how to create the code to send this data with photo,…
-
0
votes1
answer69
viewsPass data from a spinner to mysql
Hello, so my doubt is small and simple (but I can not solve kkk) just want to know how to pass the value that was selected in Spinner to the database by clicking a button, here my script…
-
0
votes1
answer99
viewsCan I call a class that only does a controller’s record?
I have a class of an android application that does only user registration and I called it Usuariocontroller. According to my controller, it communicates between view and model, but since the class…
-
0
votes1
answer26
viewsIs it possible to use a specific Strings.xml for the Android version?
I applied a different color to certain words within some Textviews with the TAG <font color='#2086F3'></font>. I was able to get this result after an Internet search. The problem is that…
-
0
votes0
answers63
viewsError in Android Nullpointerexception application
I’m trying to create an android application that generates buttons dynamically on the screen, but I’m getting an error NullPointerException and I don’t know how to treat him. Someone who has the…
-
0
votes0
answers65
viewsInstantiating a Webview
I have a simple application that with a given link returns an html page. I’m doing this with a Webview, it’s working normally, but I don’t want the user to see the Webview on the mobile screen.…
-
0
votes1
answer35
viewsBack button deletes Fragment in main Activity
Hello, all right? I’m making a server-going Fragment as a sort of menu cards on the initial interface. I made it every time the app opens It creates this interface inside a Constrainslayout, but…
-
0
votes1
answer547
viewsError when building the app (Cordova build android), after adding and configuring the "Cordova-plugin-firebase"
I created an App using Cordova, then followed the instructions to prepare the App to integrate with the Firebase plugin: I created the Keystore (needed to integrate with Firebase). Then I created…
android apache-cordova cordova-plugin firebase-cloud-messagingasked 6 years, 4 months ago Cleberson Falk 328 -
0
votes1
answer191
viewsToolbar is not displayed in the editor
Whatever project I design: The Toolbar is displayed in the emulator but does not appear in the editor. These errors also appear: It follows the codes: Styles: <resources> <!-- Base…
-
0
votes1
answer39
viewsHow to use different fonts in the same Text field
I ask for help, I am trying to build a simple program that contains a text field (Edittext) and two buttons. The idea is to write some text in my text field and then if I click the first button I…
-
0
votes0
answers302
viewsHow to fix Activitynotfoundexception error?
I have two activities put in extremely different packages as shown in the codes below: Mainactivity package com.main.package; import ...; public class MainActivity extends Activity { @Override…
-
0
votes1
answer136
viewsInfinite loop while recovering and recording data in Firebase
I’m a beginner on Android and had a problem recovering data from Firebase and record again, I know the reason for the infinite loop but I don’t know how to fix. public static void setVoto (String…
-
0
votes1
answer621
viewsHow to Load an Activity using Progressbar
Progressibar Code in XML <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent"…
-
0
votes1
answer67
viewsHow to stop a for via external loop interference?
I have a for running and clicking on the button I want this for stop. for (int i = 0; i < codigo.size(); i++) { if (codigo.get(i).contains("Para") || Stop == true){ sendCommand("parou"); break; }…
-
0
votes1
answer161
viewsSet the width of a Textview by the maximum number of characters
I’m creating a layout_item for my Listview, but I want all elements to be aligned, but some Textview can have size variation (they take the value of a numeral that can vary from 0 to 1000) so I’m…
-
0
votes1
answer126
viewsShuffle List
I would like to shuffle an Arraylist, and I’m trying to do this with Collections.Sort(), but I don’t think it’s happening The code I’m using is this: Thread t = new Thread(new Runnable() { @Override…
-
0
votes0
answers59
viewsAndroidstudio problem does not work on AVD
Good evening I have a problem, I have no idea how much help I may need from you! I am developing an Android application in Android studio in the code is all correct compiles legal has no syntax…
-
0
votes1
answer77
viewsopen a new Activity by clicking an item in the listview
I created a listview but I’m not sure which command should I make for my items to open a new activity for each one. Below follows my code until the moment: public class pg_apoio extends…