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
answer1012
viewsPush notification no webview - Android / iOS
I have an app running a webview. It’s a web system and the webview with the app. In the system, it has certain actions that the system sends push notification to the user. I made the integration…
android webview push-notification android-webview firebase-cloud-messagingasked 6 years, 8 months ago Gabriel 355 -
1
votes1
answer1932
viewsEdittext customization on Android
I saw that there are several ways to customize a EditText, one of them is in background and the other is XML. What would be the best option? Does it have disadvantage in using background or gives in…
androidasked 6 years, 8 months ago Stênio Barroso de Moraes 312 -
1
votes1
answer74
viewsError when configuring test environment
When running a test, simple to check the settings, the following error appears: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebugAndroidTest'.…
-
1
votes1
answer247
viewsI add items to Arraylist but when I use it it is empty
I cannot add items to my Arraylist Main class, where the array is instantiated public class act_principal extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener{…
-
1
votes0
answers48
viewsConcatenate text into a Progressidialog
Situation I have a following ProgressDialog defined with STYLE_HORIZONTAL in which it is executed after obtaining the size of a download of a file. In this way, I define its size using…
-
1
votes1
answer393
viewsProblem generating build in Xamarin Android (No Resource found that Matches the Given name "at 'icon' with value '@mipmap/icon')
I am a designer trying to learn how to assemble screens for Android applications through Visual Studio, using Xamarin Android, so pretty beginner in technical terms related to the area... I started…
-
1
votes2
answers117
viewshttpget + URI + Httpclient libraries discontinued. How to update code?
I need to access the API Panoramio to fetch some images according to the sent coordinates. However I am having trouble receiving the JSON value. After several searches, all indicate code identical…
-
1
votes1
answer101
viewsShare android html file
I want to share a HTML in file form, and not just text. First I would need to generate a file to then send? Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("text/html");…
androidasked 6 years, 8 months ago Anderson Scherdovski 85 -
1
votes1
answer122
viewsComparison of JAVA dates
Good people I have a array of strings with dates, coming from a query with Firebase database. I want to organize it increasingly. Ex: 05/09/2016 - 06/09/2016 - 11/11/2016 Dates are entered in my…
-
1
votes1
answer81
viewsBrowser does not reload last page
My application is a simple web browser unique to my site, however I am facing a "problem" that is irritating. It is the following, I am using the application in good ai I leave in the background and…
-
1
votes1
answer73
viewsChronometer display value greater than 60 minutes in MM:SS format
Hello, there is the possibility of a Chronometer displaying more than 60 minutes without entering the hour format? My Chronometer receives data from a String to set the starting value. private long…
-
1
votes1
answer185
viewsInsert website data into sqlite
I have a webservice that returns to me the following data Codigodisciplina, Disciplina, Codigoturma. Starting from a principle that the teacher can have more than one discipline, for example,…
-
1
votes1
answer34
viewsIs there a setBackgroud on Appwigetprovider?
My question is whether the method exists setBackground in the class of AppWidgetProvider? If it is possible to use the method in the class have some path I can follow? I’m developing a native…
androidasked 6 years, 8 months ago João Vitor -
1
votes2
answers1238
viewsProblems with virtual keyboard typing Firemonkey Android
I have an application running on Android devices (5, 6 and 7) and presents a problem typing words - different from autocomplete - because it simply repeats letters randomly. This same problem…
-
1
votes0
answers30
viewsProof of publication of App
I need documents to prove that I posted an App to the Apple Store and Google Play, where I can collect it?
-
1
votes2
answers275
viewsReturn values using Dialog’s
I have the following method dialogConfirme in which it contains a custom dialog declared as public static to return a value of the type boolean. The issue of static is so I can call any class using…
-
1
votes1
answer63
viewsHow to return the focus on an Edittext after a notifyDataSetChanged() in recyclerview?
The problem is with notifyDataSetChanged() when I update recyclerview Edittext loses focus wanted it not to lose focus, already tried with requestfocos does not give.
-
1
votes0
answers69
viewsCardview And Horizontalscrollview
How to do for all cards are the same height as scroll horizontally? Fragment: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
1
votes0
answers35
viewsAppcompat on project does not work on Android API < 11
Situation I have in my project the lib Appcompact in format .jar, but I can’t instantiate anything from the library: In the properties of the project I have the Java Build Path, however even marked…
-
1
votes1
answer110
viewsSqlite check if data already exists
Hello I have an application where when logging in if you have internet connection it should bring the data from the web service and enter in the bank. So far so good, but my doubt is as follows:…
-
1
votes1
answer185
viewsCall Activity after thread is executed
I have an app that logs a teacher into a webservice and right after logging in it inserts the user into the android database. If the result is different from null, I want you to call the Activity…
-
1
votes0
answers612
views -
1
votes2
answers899
viewsPass data from one Activity to another without starting it?
I’m creating an App for Android, I need to pass String type data from the first Activity(when started), to a third Activity. But without starting it. In case I get the user ID on the first screen…
-
1
votes1
answer46
viewsProblem with logging in using sqlite
My method is not returning the professor logged in. public Professor autenticarUsuario(String usuario, String senha) { String SQL = "select * from PROFESSOR where USUARIO = ? and SENHA = ? ";…
-
1
votes1
answer918
viewsHow do I take the value of a checkbox selected on mainActivity3 and 4 and display this selected item in a textView in main Activity1?
I’m doing a college job where I have to develop an application for orders in a bar, already created 5 Activity where the first and a home screen and the other order screens with checkbox, How do I…
androidasked 6 years, 8 months ago Andrey Lara 11 -
1
votes1
answer68
viewsAndroid - What is the difference between Bitmap and Drawable?
I’m developing an app that makes a CRUD to fill out information on the screen. One of this information is photos. I would like to know better the difference between these two objects to find out…
-
1
votes1
answer60
viewsHow to treat json in java
I’m trying to treat the following json: [{"code":"ARS","codein":"BRL","name":"Peso Argentino…
-
1
votes1
answer120
viewsLinks within the application
I’m trying to get my app to make an emergency call and call a pre-defined emergency number, but when I open Activity she simply for already looked and redid the code 3 times, but the error persists,…
-
1
votes0
answers186
viewsHow to read large text files on Android?
I wanted to know some tip on how to read large files on Android, as example give the GTFS (Google Transit) files that most of the time is 80 MB I am placing this data on a server (Firebase) using…
-
1
votes2
answers2017
viewsText View Null: void android.widget.Textview.setText(java.lang.Charsequence)' on a null Object Reference
I’m taking a data from an API on a fragment to change the txt of Activity. But when I call the function that makes this change the setText gives NullPointerException. If I call the same function on…
-
1
votes3
answers506
viewsHow to get the object focused on Android
Hello to all I have the following Listener below which checks if an editText has been changed, the Listener will be identical to several editText so I would like to get the current editText through…
-
1
votes2
answers129
viewsSilent applications
Some applications or most of them have an "unassisted" or silent installation option, known as Silent install, which is to install an application without the user or support team needing to interact…
-
1
votes1
answer53
viewsError trying to fetch Sqlite ID via Spinner
Object Book public class Livros { private int id; private String nome; public Livros() {} public Livros (int id, String nome) { this.id = id; this.nome = nome; } public int getId () { return id; }…
-
1
votes2
answers343
viewsClick Checkbox component and enable Edittext
How to enable an edittext component in the same view by clicking on the "other" checkbox component? As in the image:…
-
1
votes1
answer115
viewsHow to Create a Browsing History For Android Browser? -Android Studio
Hello I’m creating a browser for Android with webview using Android Studio it already does research now I’m wanting to do a browsing history where are the sites that were entered, just like Google…
-
1
votes1
answer67
viewsCrashing when starts the 2nd Activity
The first screen is the login, normal log, communicates with the server and such, there goes to second, there is a fragment of google maps, when it goes to second crash the app, the error that…
-
1
votes1
answer58
viewsStatic objects in Activities with View Pagers
I have an Activity with a view pager, and this one controls three fragments, F1, F2, F3. The F1 fragment shows user-added items, the F2 fragment loads all items from an external server, showing them…
android android-fragment static android-context android-recyclerviewasked 8 years, 2 months ago Guilherme Ramos 343 -
1
votes1
answer70
viewsProblem with android UPDATE
I got a problem when it comes to giving update in a table on Android/SqLite: I tried both ways I found: String query = "UPDATE MY_TABLE SET VALUE1='VALUE1'... WHERE KEY_ID = KEY_ID" SQLiteDatabase…
-
1
votes1
answer546
viewsPush notifications on Android with PWA
I have a PWA(Progressive Web Application) that was created using Vuejs in conjunction with a web system. And for push notifications was used Firebase Cloud Messaging, but I have a problem when it…
-
1
votes2
answers532
viewsButton to display and/or hide keyboard
A EditText numeric will receive input by external keyboard, so display the default keyboard, should be optional. How do I make to: By clicking on EditText to position the cursor, the keyboard does…
-
1
votes1
answer790
viewsRun function with ENTER in Edittext
I need to execute a function with the keyboard "Enter" on EditText. Did not work: android:maxLines="1": he jumps fields android:imeOptions="actionNext": it runs with the "next" button of the virtual…
-
1
votes1
answer67
viewsActivity without Toolbar
I would like to take out the Toolbar that appears above 'Seraagora'. In the view edition it does not appear but when compiling back to life. How to get her out?…
androidasked 6 years, 7 months ago user101221 -
1
votes1
answer40
viewsHow to change Toolbar while clicking along a Listview
I’m a beginner in Android programming and would like to ask a question. I have a Listview that is connected to a Sqlite database. My question is: how could I make so that when the user took a long…
-
1
votes1
answer515
viewsApp expect Alertdialog response to password
The function below returns a password typed in AlertDialog and is in a class responsible for creating any dialog box in my app, but as a whole AlertDialog the app does not "wait" the return of the…
-
1
votes1
answer64
viewsOpen Inside of a listview
I have a list of customers. I would like when I click on a customer to open a new website. But I did something wrong. Follows the codes: list.setOnClickListener(new View.OnClickListener(){ @Override…
androidasked 8 years, 2 months ago Artur Mafezzoli Júnior 441 -
1
votes1
answer163
viewsForce Adaptive Icone to be square(Square)
The best icon format for my application is the rounded square, however in api 26 and 27 we know that android uses a preset adaptive icon (always in circular format) or transforms a non-adaptive icon…
-
1
votes0
answers31
viewsError in single Sqlite database query using Provider content
I am having a problem that when trying to make a query in the database of my application through Content Provider. When the attempt to query the database starts the application breaks.I did tests…
-
1
votes1
answer74
viewsProblems with Asynctask
I’m trying to file a request for JSON, along with Asynctask. With this, I called the JSON in the InBackground method, however, the code executes the Jsonarrayrequest onResponse method after the…
-
1
votes1
answer67
viewsWhat is the difference in terms of Uiviewcontroller and Sfsafariviewcontroller navigation?
I would like to know the advantages and disadvantages of webview controllers Sfsafariviewcontroller and Uiviewcontroller, for the issues below: - performance - compatibility - usability…
-
1
votes0
answers34
viewsHow to delete User using Parse (Error: insufficient auth to delete user )
Hi, I’m creating an app using Parse to save data in Heroku. I’m having a hard time deleting Users. I can delete objects from other collections with the command: objeto.deleteInBackground(new…