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
answer157
viewsLaravel: "Could not open imput file: Artisan". What can it be?
I’m learning how to use Laravel and I was downloading Composer. I installed via program, everything ok, but when installing Laravel and testing php Artisan serves, it appears in the image. It seems…
-
1
votes0
answers451
viewsWebview on android shows HTML
I’m developing an android app, which I use a webservice to pick up news from a website and play pro app. These news comes in HTML and I take a webview and I set the HTML to it, and it works…
-
1
votes2
answers1767
viewsHow do I change the color of Alertdialog
I put it in my app where you can show the dialog to exit the application, but the dialog is black. I wanted it to be white. How do I change the theme of AlertDialog? @Override // SAIR DA APLICAÇÃO…
-
1
votes1
answer110
viewsExport Ionic Creator
I am developing, after a long time, with Ionic again. Well, when preparing the environment correctly and typing in the terminal ionic start myapp blank the code is generated and works correctly,…
-
1
votes2
answers169
viewsHow to change attributes of all project Textviews at runtime?
I am implementing a visual settings section of a project and one of the settings should allow the user to change the fontFamily of all texts, there is also the option to leave all texts uppercase or…
-
1
votes1
answer1381
viewsError: A problem occurred Configuring root project 'Meuprojeto'
I’m trying to use the Firebase of Android Studio but I made the settings as in Google site itself, and the message that appears to me is: Gradle 'MeuProjeto' project refresh failed Error:A problem…
-
1
votes0
answers96
viewsSound notification custom in mp3- How to do? Android Studio
I’ve been learning to program for a few weeks, and I’m desperate! I’m stuck in this problem: I put an option where the user can choose the Ringtone they want for messaging notifications, works…
-
1
votes0
answers54
viewsAndroid Firestore - Add collection
I’m new to Android, and I have a JSON file with address data from markets in my region and would like to import this data to firebase, more precisely to the Cloud Firestore. Does anyone know how to…
-
1
votes1
answer169
viewsjava.lang.Nullpointerexception: Attempt to invoke virtual method 'java.util.List .adapter.Conversasadapter.getConversas()' on a null Object Reference
I’m having this mistake opening ChatActivity.class. Does anyone have a solution to this error? Thanks in advance. Mistakes EDIT: --LINE WRONG LINE LINE 89->> Conversation Taught =…
-
1
votes1
answer195
viewsHow to read a Firestore document?
I need to know how to read a specific document I saved on Firestore, without having to copy "documentPath" manually from the Firestore Cloud Console! How does it automatically? Next, I put part of…
-
1
votes1
answer68
viewshow to access the webview inside the onBackPressed method on android
Hello, I’m trying to implement the back to the home of my applicator, my app is all built inside the webview, I need to call the javascript Function to return home, because when I click on the back…
-
1
votes1
answer174
viewsError in getWritableDatabase()?
I’m doing a job for college. My project until a few minutes ago was working normally, inserting User and Book, but out of nowhere it started to give error in getWritableDatabase() and I have no idea…
-
1
votes1
answer303
viewsRetrofit, Response body always null but on the server is status 200
I am implementing an Android application using Retrofit 2, the service is generic the server side is working. The problem is: Response.body() is always null, I can never catch json, even if I can…
-
1
votes2
answers369
viewsSave App Settings
There is something I can do to save my application settings without creating a database, so when the application is closed and then reopened it will continue with the settings that were previously…
-
1
votes1
answer394
viewsEvent onBackPressed
I have a project with Navigationdrawer, on the main page I have a menu, and on the other fragments I inflate, only when I press the back of the navigationbar 'back button of the mobile phone', it…
-
1
votes1
answer298
views"Unable to instantiate Activity" error while running Activity
My application has a home screen, where the user can select the registration screen. However, it is only me to put the gets that it stops working with this error below, does not show the…
-
1
votes1
answer61
viewsAdd Marker with click
How do I add a marker to the map with a click? public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; @Override protected void onCreate(Bundle…
-
1
votes1
answer206
viewsKnow the color of Button Android Studio (Java)
Good afternoon, I need to know how to read the color of the Button and store in a variable in java for Android platform but is showing errors, can help me ? Follow my code below: private EditText…
-
1
votes1
answer389
viewsHow to place a button with static position on the scrollview
Greetings dear Developers. I have an Empty Activity with the entire screen occupied by a scrollview containing only imageviews and I need it to have at the top of the screen a button with a fixed…
-
1
votes2
answers848
viewsWhat should be the communication between Model and View using MVC?
I’m trying to implement some small projects using the MVC standard: Within the project structure, I created the following packages: View : User Interaction Screens. Controller: I have a class with…
-
1
votes1
answer5521
viewsClick on listview item
I have the following code, which shows the items in a list, on the screen: Activity: public class InviteActivity extends ListActivity implements InviteView { @Override protected void onCreate(Bundle…
-
1
votes1
answer626
viewsHow to change the font and color of the navigation Drawer side menu
Hello, I have a project created as DrawerLayout and would like to customize by changing the type of font, size and color. but I can’t. Change part to red.…
-
1
votes2
answers43
viewsHow to check if there is an update in google play for my application
I have an app published on google play, where now I have the need to check if there is an update for it, in case there is I need to do a routine. Is there such a possibility?
-
1
votes1
answer1254
viewsChange Listview color when selecting
How can I change the color of a listview when selecting? below goes as is the stuck in my project: listDebitosPendentes.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override…
-
1
votes2
answers50
viewsRandom on button with isEmpty();
Hello, I’m new in programming to studying Java and now some Android. I’m trying to use the Random to send random messages if nothing is typed. So, my code is like this: public class MainActivity…
-
1
votes0
answers39
viewsInsert Summary into Word document using apache poi library
I am creating an android application of answer of forms, at the end of the questionnaire I am creating a file . docx using the apache poi library, the document is already written successfully,…
-
1
votes2
answers355
viewsValidate Edittext within Alertdialog
I have a AlertDialog and inside of it I have a EditText and need to validate and after validate run the method enviarEmail(), how do I do? Man AlertDialog : AlertDialog.Builder caixaDialog = new…
-
1
votes3
answers500
viewsAndroid - Remove White Space Between Recyclerview Items
I have a problem just like this here. I’m using the 'com.android.support:recyclerview-v7:28.0.0'. The XML is as follows, activity_main.xml, problem lies in the recyclerOverlay: <?xml…
-
1
votes2
answers144
viewsInner Join Sqlite with Cursor on Android
Good morning guys, could you ask me a question ? How should I make one Inner Join in the SQLite using the Cursor ? Below is my code, but I do not know how to fit it in the line. final SQLiteDatabase…
-
1
votes1
answer2400
viewsHow do I display the data in an Edittext of an Activity in another Activity?
package com.example.alinesilvagonzaga.teste; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.Editable; import…
-
1
votes2
answers85
viewsProgrammatically or in XML layout
I made a layout in XML, with time I began to realize that the layout programmatically has more facility to model the screen as the user interaction. Is it programmatically better than XML? And if it…
-
1
votes3
answers953
viewsCreate an Android App Bundle with Xamarin Forms
When I try to publish a Xamarin.Android app on the Android developer console I get the following warning message that won’t let me publish the app: In this case how could I create an optimized APK,…
-
1
votes1
answer42
viewsAndroid - Sharedpreferences - App Update [Doubt]
I have a software program in version 9.0.8 and in this version I added a Sharedpreference that stores a value corresponding to the current version of the app to perform some tasks. When I upgrade…
androidasked 5 years, 5 months ago Pedro Baraldini 59 -
1
votes0
answers47
viewsWhy should I use a Linearlayout within another Linearlayout?
I don’t understand this example: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" >…
-
1
votes1
answer157
viewsclose Activities in Dialog
The problem is a quiz app that’s ready, except for this problem. the app has activities A(start game), B(questions), C(result). on A has a start button game that by clicking, goes to B. By clicking…
-
1
votes1
answer54
viewsAsynktask does not run doInBackGround
I am developing an android app for the integrative college project in which I need to pass parameter 2 strings (user and password) to a PHP API that will return a User object or a Boolean false. I…
-
1
votes1
answer76
viewsWebview and CSS how to verify what is compatible?
I’m trying to make an application with Webview for android and iOS (different applications for each system), and would like to know how the Internet access window reads CSS and checks its…
-
1
votes1
answer48
viewsWays to remove with Sparsearray
While trying to remove items from my SparsArray found the method remove and another method that is the removeAt but what’s the difference?
-
1
votes1
answer92
viewsI played this style in drawable to have edge in my Edittext, it worked but I didn’t understand anything of it
I copied on the net this code to give an edge but do not understand why it has three items, someone help me? <?xml version="1.0" encoding="utf-8"?> <layer-list…
-
1
votes1
answer934
viewsShare PDF
I have an application that generates a pdf from an internal content. I need to share this pdf, and for that, I do it as follows: final String filePath = file.getAbsolutePath(); final Uri arquivo =…
androidasked 7 years, 12 months ago Thiago Luiz Domacoski 7,310 -
1
votes0
answers507
viewsAdmob does not work
I am beginner, created an Activity from android studio, so using the id test everything works normal. when I enter my admob id advertisements do not appear, I have already built the signed apk and…
-
1
votes1
answer138
viewsConditional return of Checkbox with problem
I’m making a mistake that ridiculously seems easy, but I can’t fix it. In my xml has a CheckBox returning false (disabled), in my java has a simple if(termosUso.isChecked()){}, in theory was so that…
-
1
votes3
answers1699
viewsError running the React application on android emulator
I can’t open an React Native project in the emulator, I’ve tried using Genymotion and Android Studio but always the same error occurs when I run: sudo react-native run-android 27 actionable tasks: 2…
-
1
votes1
answer528
viewsSelect and calculate columns - Sqlite
Hello... //selecionar valores da tabela: public Cursor IMC(){ Cursor cursor; String[] campos = {"SELECT (peso/(altura*altura)) FROM medidas WHERE codigo = (SELECT codigo FROM medidas ORDER BY codigo…
-
1
votes1
answer524
viewsDatepicker problem in Flutter
I have a problem when it comes time to set the state of DatePicker in Flutter. The same returns me the error: Another Exception was thrown: Failed assertion: Boolean Expression must not be null…
-
1
votes2
answers50
viewsLayout with listview questions
I’m facing a problem in layout, in this layout I have a Listview and after I have 3 more Buttons only when the list is too big it uses all screen size and I can’t see the Buttons, someone can help…
-
1
votes1
answer941
viewsAndroid - Imagebutton image is not displayed
I’m trying to put 3 Imagebutton on a Linearlayout. The background image I’m using are drawable images that I added by clicking on the following sequence in Android Studio (2.2.2): Right-click on the…
-
1
votes0
answers40
viewsHow do I create a library in Android Studio and publish it
I would like to know how to create a library in Android Studio and later publish it in a repository and add its dependencies in a project. Something like for example: implementation…
-
1
votes3
answers455
viewsShow or hide an image in Android Studio
I’m making an app that reads a value in case (on or off). Based on this value it returns an image. If the value was "lit", the application would show me an image of a lamp on, and if the value was…
-
1
votes2
answers10833
viewsCreate a button to exit the app
I created this code to close app for it instead of closing reboot. I have Mainactivity and the first one has a splash screen. What I have to change . public void existeapp (View View ){ existeapp();…