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
answer314
viewsHTTP connection to server does not return JSON data
Hello, I am trying to get the data of a query via HTTP, but it is returning me this error: org.json.JSONException: End of input at character 0 of The Code I have is this: private class AsyncFetch…
-
1
votes0
answers36
viewsApplication does not install in release mode when sent to server
I have an instance on Amazon EC2 that using PHP upload of an APK. I created a MIME-TYPE mapping the .apk with application/vnd.android.package-archive, and also editing the .htaccess inserting a type…
-
1
votes1
answer406
viewsjava.lang.Indexoutofboundsexception: Invalid index 4, size is 4
I’m not sure what’s going on, when I long click on a list item, it sometimes works normally (open a screen where it shows the user the registered information, allowing them to change it), sometimes…
-
1
votes0
answers1326
viewsHow popular Listview pictures with Ascync android firemonkey?
With popular the Listview with the function below, but popular images cause small crashes, I searched a little and found suggestions of using Threads with Async, but I couldn’t apply to my project.…
-
1
votes0
answers182
viewsSettings Firestore - Firebase
Referent to configuration Firestore on existing projects. [ANDROID] I tried to include and configure according to the supporting material and not the right one. Error when adding dependencies in…
-
1
votes2
answers471
viewsTake programmatically generated Edittext values
I have an APP, which preencho a quantidade de jogadores that will have the championship and I click on a botão to create the championship. This button plays for a activity that takes the amount that…
-
1
votes1
answer830
viewsProblems to list firebase data on android
Good morning ! I’m having trouble listing data from a certain node in my application... when I list it as the codes below I get the following return from Exception:…
-
1
votes2
answers72
viewsWhen I put b on Pattern.Compiler it returns find as false
When I put b in pattern.compiler he returns the matcher.find as false, because he can’t even find a pattern precisely because of the b. Following the code I use: final Pattern py =…
-
1
votes1
answer68
viewsDisplay load icon whenever you click a link
I’m new in Android development and am working on an app that loads a web page through a WebView. However, whenever I open a link inside this app, there is a certain delay [the time of the other page…
-
1
votes0
answers344
viewsMathematical operation in Recyclerview
I want to know how to add up certain values of a Recyclerview.. in case it will be the model.getQntd(), I need to add all your respective results. UPDATING I managed to count the problem now is that…
-
1
votes0
answers290
viewsSend and Receive Arduino data for Android via Internet
I am working on a project that I have communicate an Arduino with Android via Internet(Network), I have seen some tutorials on the subject but I could not finish yet, I would like to help to…
-
1
votes1
answer66
viewsWhen you click, I want to define the phrase through the indexes
As you can see in the code, when I click I’m randomly defining the phrase, but when I click, I want the phrase that I myself define through the indexes, how do I do this? Public class MainActivity…
-
1
votes0
answers18
viewsDisplay array during debug with android NDK
On android, when debugging my program I can see the vector and content of it: I have to pass this vector from android (java) to C++ and I’m using NDK. public native void testeVetor(double[]…
-
1
votes1
answer285
viewsnotifyDataSetChanged() does not work
I am in a chat app and would like to use the notifyDataSetChanged to scroll to the end of the page automatically without the user having to read all the messages. however when I try to use…
-
1
votes1
answer1354
viewsHow to change the color of the Statusbar
I am trying to change the colors of my Statusbar, but when trying to change the colorPrimaryDark (first bar, where it is battery, time, etc...) the color is not changed. I created an xml with the…
-
1
votes1
answer29
viewsOpen a website through a button in the app
I’m making an application similar to a schedule and need to put a button to open a registered site, I’ve done with a long click on the table and it worked however, on a button I can not use the same…
-
1
votes1
answer105
viewsHow to show a message after a send action?
I’m trying to make the Android app show an "email sent successfully" message after an email, which is linked to the action of the send button, be sent correctly. I tried to show a Toast, but it…
-
1
votes1
answer89
viewsPizza chart is not being "sliced" using Sfchart
I made this Chart using Syncfusion Chart, private async void CriaChart() { SfChart chart = new SfChart(); DataService dataService = new DataService(); try { PieSeries pieSeries = new PieSeries() {…
-
1
votes0
answers145
viewserror share png image (taken from firebase) and put in an image view
happens the following. I have a share button, when I try to share an image from inside my drawable, beauty it goes, now when I try to share the image that came from firebase, there will "it closes…
-
1
votes1
answer227
viewsHow to add Firebase data to a Recycleview and show on Android screen with Kotlin?
How to bring this fire list to the cel screen? val store = Shop("Fique Linda", "Temos o melhor!", R.drawable.storefiquelinda) val dataBase = FirebaseDatabase.getInstance() val myRef =…
-
1
votes1
answer956
viewsDelete firebase record
Hello, I read the firebase records and insert an array of objects. The Json class has only business fields and does not have the key field. To delete a record I evaluate that the Best approach would…
-
1
votes0
answers560
viewsSend camera photo to Firebase Storage
I need to make mine App open the camera, take a photo and when returning to the Fragment previous and click on the "Upload" button, send this photo to the Firebase Storage. I managed to do with…
-
1
votes1
answer54
viewsHow to prevent a Checkbox from receiving click events?
I want to create a list where each item has a purely informative checkbox, so that when the user accesses this item, the checkbox will be marked. But after a test implementation, I noticed that when…
-
1
votes1
answer71
viewsHow do I validate if a phrase containing accented words was displayed on the screen?
I am using Calabash-Android to perform automated tests and I want to know how I can validate if a phrase containing accented words was displayed on the screen. file.Feature # language: pt #…
-
1
votes1
answer904
viewsEnable button event by entering an Edit
I created a "register" screen where the user informs the name/nickname and where there is a Continue button that goes to another screen. I would like this new screen to open when the user presses…
-
1
votes0
answers44
viewsSize of android font influencing in app navbar
I’m developing a hybrid app with Cordova using Angularjs with Materialize. It has a navbar with the button to open the side menu and the title of the page. Everything is working normal, but I use on…
-
1
votes0
answers19
viewsProblem with Android Programming. FOR
I can’t generate the amount of EditTexts based on the parameter of for? Where is the error? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
1
votes0
answers19
viewsStatusbar - Change color with scrolling on a Collapsingtoolbar
Currently I have an image on a profile screen and Statusbar is "transparent". Running straight!! Problem: The problem is the scrolling of the screen, because in this case I’ve managed to make the…
-
1
votes1
answer1765
viewsSave android image
I know there’s probably an answer here on the site to my question, but when I researched I saw several ways and got a little lost. I wanted to create a hidden folder and have some ImageButton or…
-
1
votes1
answer164
viewsTake data from 2 Ragments by clicking an Action Button (Toolbar)
Come on! I was looking on the internet about how I could get the values of Edittext of 2 Fragments by clicking on a Action Button of Toolbar, but I didn’t find anything related. What I found, was…
-
1
votes0
answers31
viewsWhenever I turn the debug mode, it gives me An hundled Exception error occurred
That is the code public override void OnCreate() { try { base.OnCreate(); //If debug you should reset the token each time. #if DEBUG FirebasePushNotificationManager.Initialize(this, true); #else…
-
1
votes1
answer830
viewsElevation Button is not showing Shadow
Hello, I’m trying to use Elevation on the buttons of the following screen: But it’s not working, Elevation’s not casting a shadow. Follows the XML: <?xml version="1.0" encoding="utf-8"?>…
-
1
votes0
answers18
viewsI can’t receive messages for my App in release mode
In debug, I took the token and added it in my Nder and sent PN. I deleted it, recompiled it in release mode and now I can’t send PN(Push Notification). See the code of my Sender: public partial…
-
1
votes1
answer990
viewsHow to center the string of the bar action title and how to change its size?
JAVA package togglebutton.cursoandroid.com.togglebutton; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override…
-
1
votes1
answer80
viewsHttpurlconnection returning empty
Message Attempt to invoke virtual method 'int java.lang.String.length()' on a null Object Reference Calling for JSONArray data = new JSONArray(getHttpGet(url)); Code: public static String…
-
1
votes1
answer34
viewsAndroid: Error using Retrofit with XML converter
I’m making a simple example of Retrofit on Android with an XML converter, but every time I run I get the following exception: java.lang.RuntimeException:…
-
1
votes0
answers12
viewsAndroid project does not delete record in Sqlite database
My application makes insertions and reading the existing records in the Sqlite database, but when I will run a delete I have the following log message: W/Fileutils: Failed to…
-
1
votes0
answers79
viewsI get messages in the background but don’t show the badge with the message counter
In my App I can receive messages in Background. In foreground I can see the badge and qde of incoming messages. I just can’t in the background. I use the plugin Xamarin.Firebasepushnotification of…
-
1
votes0
answers48
viewsPopup does not appear in my App
Use Rg.Popup.Plugins for popup creation. Well, when I put in project it doesn’t run, the screen darkens, but I click on it and nothing happens. I put a button with a red background and it still…
-
1
votes0
answers34
viewsGCM Network Manager does not perform tasks
Hello! Gentlemen I have two tasks and I notice that the same ones are not being executed, I called them in the main activity in onCreate() however if I go to another activity the tasks are not…
-
1
votes1
answer126
viewsNullpointerexception when running Listview.setAdapter (Android)
i am implementing an application where I need to display a list of Dogs (already registered in BD) and allow clicking on an item in the list to display a new activy to edit the data. The problem is…
-
1
votes0
answers28
viewsI can’t resize Popup in my App
I downloaded a project and I have a popup working. I went to do the same thing in my project and nothing. There is no error, only the popup does not go up as it should, it occupies the entire area…
-
1
votes1
answer136
viewsOptimize Java code
Good, I am creating an alarm on android e I wanted to know if inves to have to make a switch for each editText se Avia way to check all on a single switch, I tried with a for and was incremented,…
-
1
votes0
answers53
viewsWhen sending Java object from an android app to the database one of the attributes goes as null
Produto produto = new Produto(); produto.setNome(edtNome.getText().toString()); produto.setPreco(Double.parseDouble(edtPreco.getText().toString().replace(",", ".")));…
-
1
votes0
answers58
viewsSqlite does not save data to table - table users have in column named email
can anyone help me with the following question?? I’m creating a simple APP on android and using Sqlite, but when running the APP and entering the data in the user registration area, appears the…
-
1
votes1
answer1155
viewsMake the text appear when clicking the button and the image specifies it?
I want to do a project where clicking the button will appear a text and when the text appears I want an image to appear together. ex: random text chosen "the dog is silly" appears the photo of the…
-
1
votes0
answers90
viewsAndroid: Error in getcontext() when using Sharedpreferences
I’m using SharedPreferences with Retrofit2 and notificações. Each time the Notification is executed I get the exception "'java.lang.String android.content.Context.getPackageName()' on a null object…
-
1
votes1
answer95
viewsproblems with Float Action Buttom (speedDial) - Android
Hello! I found a lib of a float action with speed dial and I’m trying to implement it in my Android project, but I’m not able to interact with the Float Button... follows the code of the fragment…
java android android-fragment android-recyclerview floatingactionbuttonasked 7 years ago Mikhael Araujo 333 -
1
votes1
answer161
viewsSpinner Android Retrofit
Good morning I’m creating an app, and I need it to have a spinner, which pull all the data from a database column. But it turns out that when I pull it brings the dice, but only that it makes the…
-
1
votes1
answer87
viewsProblems when creating application to consume postal services
I am developing an application that aims to consult prices and deadlines of orders consuming the Post Office service. However I am having difficulties to implement the service in the application.…