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
answer65
views -
1
votes0
answers607
viewsCopy and Paste function
I wanted to copy and paste a string into a Listview, the function I’m using is just copying follows the function: // Função Copiar private void copiarTarefa(Context context, String text) { if…
-
1
votes1
answer140
viewsProblem in editText inside a Listview
Hello, I created a list of questions within a Listview, I created all the questions by programming, I’m not doing any components in the.xml layout, I just have a frameLayout, but the moment I click…
-
1
votes1
answer608
viewsCapture selected Recyclerview item to another screen
I have my search screen. When typing, it brings the search result. The result is shown in a recyclerview. My Recyclerview was modeled with some textviews and an image. I wanted when touching the…
android android-fragment android-recyclerviewasked 5 years, 2 months ago Luciana Freire Efelipe Correia 27 -
1
votes1
answer31
viewsWhen overriding a method should I call the super implementation before or after my code?
Watching and researching some tutorials on the internet, I came across some code in JAVA on ANDROID, as below: @Override protected void onPause() { sensorManager.unregisterListener(this);…
-
1
votes1
answer78
viewsSelect items with Longclick, imagebutton
I have the items of a list, which when clicking on the imagebutton, a message is sent to the user. I would like to implement longclick so that I can select multiple and send messages to multiple…
-
1
votes1
answer587
viewsSend Image to Server
When I send a byte[] converted to String to the server on the server comes empty or breaks. I don’t understand why. Bitmap photo = (Bitmap)data.getExtras().get("data"); photo =…
-
1
votes2
answers4016
viewsCreating more than one Android Studio table (Sqlite)
I’m trying to develop a mobile app for a final job of my college, it’s pretty simple! The application has to save the information registered in the database. However I would have to create 4…
-
1
votes1
answer88
viewsClose Dialog opened inside the Recyclerview Adapter
I made a headline for my RecyclerView which, when clicked, opens a dialog. Some time later, started to give this error: Activity com.mypkg.myP has leaked window…
-
1
votes1
answer300
viewsAndroid - String and varchar comparison
I’m having trouble comparing strings. A retreat of a Edittext and the other of an SQL table. The app is a game like "Who wants to be a millionare?" When it comes to the if cycle of comparison…
-
1
votes1
answer27
viewsHow to change to property android:fontFamily="casual" in a textView dynamically?
I would like to know how to change the font to casual in my textView through java code. TextView text1 = findViewById(R.id.myTextView); I want to change the font from text1 to casual…
-
1
votes2
answers187
viewsAndroid - How to create a comparison so that items from LISTVIEW are displayed or not according to the date?
I’m creating an app that will show open pharmacies on a certain date: I created a listview with 10 lines (pharmacies)... And according to the day of the month certain units will be displayed... or…
-
1
votes2
answers633
viewsToast is not displayed
I’m having a problem Toast doesn’t show up when I make a request on for my web service, the whole method stays inside my thread, I did a test putting a message out of the thread then it shows up,…
-
1
votes0
answers26
viewsError when clicking the first button of a Dialog
Guys I’m trying to click to confirm my action on an instrumented test, but I’m having a problem that I haven’t found out yet anyone can help me? I’m trying the following: fun…
-
1
votes1
answer470
viewsHelp to resolve android studio error
I’m having trouble with an error in android studio. From what I understand, when I run the project, a "certain partition is resized" to a larger size or takes up a larger space. I tried to search…
-
1
votes2
answers69
viewsHow do you make it when the user touches the menu symbol and the message appears in Toast?
I have this method but it doesn’t work what I do? :( @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present.…
-
1
votes0
answers10
viewsNew XML file when change a AXML file xamarain for Android, Why?
I need change a AXML file in an old Xamarin.Android APP, I’m not an expert, I have just this one APP and I don’t change it in long time. When I changed the AXML file, Visual Sutdio created a new XML…
-
1
votes1
answer47
viewsAccess and list files on an FTP server
Hello, I would like to access and list folder/PDF’s files on an FTP server using an App, I use fragment and the version of Android and 4 until the current 9. What I researched so far I could not…
-
1
votes1
answer83
viewsListview Adapter problems with whitespace
I am creating a listview with adpater and I have a problem, I needed to add an image in the middle of the list to stay in the right corner, this image is only an arrow. how can I solve there it…
-
1
votes1
answer31
viewsDifference between Activitycontext and Applicationcontext
What’s the difference between ActivityContext and ApplicationContext? The following code, executed from a Fragment, log the message "are different": if…
-
1
votes2
answers57
viewsAs in a Lerner, assigned to more than one Spinner, know who called him?
I am using 4 spinners in a single Activity and need to receive information from each Spinner. The point is that to use Spinner the "onItemSelected" method is used, and you must assign the value of a…
-
1
votes0
answers47
viewsTransform recorded audio into a byte array
Hello! I’m developing an app and I want the following: After the user records the audio, he clicks on a button that displays the byte array of the same. In fact, I need to see this vector, to then…
-
1
votes0
answers41
viewsHow to open a video on youtube with React Native?
I am developing an android program in React on which, the user click a button a video in the youtube application will open, but I have no idea how to integrate other programs to my
-
1
votes0
answers126
viewsHow to make POST in android studio?
I’m trying to do a POST for my local API but I’m finding some problems and I’m not getting it right what I’m doing wrong. POST that works on Postman is with a body more or less like this: [ {…
-
1
votes2
answers758
viewsAsk the user if he really wants to quit
I have the following code: public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(); if (id == R.id.nav_camera) { // Handle the…
-
1
votes2
answers1070
viewsHow to fill Textview setText from an Arraylist?
I get a array with items of interest and I must set them on setText of a particular TextView. I want all the items in this array to appear on the screen, horizontally. In my layout xml, I only put 1…
-
1
votes2
answers109
viewsAdd rule so only admin can list all documents from a collection in the firestore
Hello, I’m studying how the firestore security rules work and I came across the following situation. I have a collection called: "restaurants" with three documents "uid1, uid2 and uid3". That’s…
-
1
votes2
answers146
views -
1
votes0
answers23
viewsError pressing button in app created from Android Studio
Guys, here’s what happens when I test this code on the emulator it works normally, but when I install the apk on some physical cell phone and press the button btn the application hangs and says it…
-
1
votes0
answers53
viewsANDROID EMULATOR NOT WORKING
I tried to open both the terminal and the platform itself , both show black screen…
-
1
votes0
answers78
viewsIs there any form of app review in flutter for android that is internal, like iOS?
From what I saw, on Flutter there is no kind of review within the app for Android. I looked in other places and saw that for native there is this possibility, to ask for a review and basically what…
-
1
votes1
answer69
viewsjava.lang.Classcastexception error when using getSerializable() in API 16
I have 2 emulators, Nexus 5 API 23 and Nexus One API 16. In Nexus 5 the program runs right, in Nexus One the program crasha and the error that gives is Caused by: java.lang.ClassCastException:…
-
1
votes0
answers235
viewsConvert to JSON class objects that recur reference
I am trying to convert to JSON two lists of dististe classes. public class CustomerItem implements Parcelable { //... private List<ProductItem> mProductList = new ArrayList<>(); ... }…
-
1
votes1
answer60
viewsRemove selected item bottombar (Lib Roughike)
I have an application that uses Navigationview and Bottombar, I’m having a hard time removing the bootombar item selection when selecting an item from navigationView, I’m using the Roughike Library…
-
1
votes1
answer315
viewsGoogle Maps does not load registered points (Java)
Good afternoon, everyone. I’m using Google Maps in my app and was working before but stopped working. The app breaks while the map is being loaded. I’ve researched enough on the internet and no…
android android-studio google-maps android-activity localizationasked 4 years, 2 months ago Laura Regina 304 -
1
votes1
answer95
viewsAlternative to obsolete methods onCreateDialog() and showDialog() from Activity?
I would like to know but the funny thing is that I ran here and it worked even saying that it is obsolete. What should I do? private Button botao; static final int DATE_DIALOG_ID = 0; @Override…
-
1
votes1
answer305
viewsElement fixed on top of the keyboard
I created a RelativeLayout property match_parent height so you can fill the entire screen. Inside it I insert a LinearLayout property alignParentBottom having value true to secure the element to the…
-
1
votes1
answer34
viewsHow do I for my application gets in the options to open a txt file
I would like to know how I do so that my application comes to is in the list which options to open text file, my application is small only to read and edit txt file for me to train programming, user…
-
1
votes0
answers88
viewsDifference in the number of event shoots between Android and iOS on Facebook SDK
I have Facebook SDK 7.0.0 installed in my application React Native 0.62.2 and although it is running equally, in Facebook manager Events, Android shots do not appear for certain standard events…
-
1
votes2
answers1060
viewsMap does not appear in application
I’m adding a feature in an app of mine that will show specific locations near the user. ( Follow the example that struck me ) Follow screen print on Activity: EDIT: E/Google Maps Android API(21658):…
-
1
votes1
answer386
viewsOpen screen inside mainactivity
I’m making a mechanical calculator, but I wanted to make several calculation options in the navigation drawer and when you click the specific calculator click on the screen (the intention is to make…
androidasked 7 years, 11 months ago Igor Oliveira 1,110 -
1
votes1
answer174
viewsDelete function of my table
I wonder why you’re giving this trouble. I created a function to delete the table from my database and instated the button to perform this function, but when I go to test it presents me an error.…
-
1
votes1
answer3175
viewsConfiguration Webview step by step
I am developing an HTML5 application for devices mobile. Initially I used tools like Adobe Phonegab Build and App Inventor. For future projects, I have to use Android Studio. The problem is that…
-
1
votes1
answer350
viewsAdd keyboard when using if in Textformfield in Flutter
I am with a plugin to select the country code and a TextFormField to enter the email/mobile. I have a variable to display or not this CountryCode. The problem is that when typing a number in the…
-
1
votes0
answers8
viewsWhere can I get a customer secret by registering an Oauth id on google Android console?
I’m developing an app in Xamarin and wanted to publish in the play store for internal testing, but it’s necessary to create an Oauth client and that’s where it all gets complicated. I managed to…
-
1
votes2
answers71
viewsAndroid Edittext type number make appear keyboard with numbers and comma
I am working with values in editText and I need the input to be only numbers and comma to floating point. I tried with inputType="numberDecimal" but when opening the keyboard only allows the point…
-
1
votes1
answer78
viewsHow do Ionic app running task in the background?
Hello, I am developing an Ionic application (Android and IOS) and this application needs to perform a task in the background every 1 minute even if the application has been closed or the mobile…
-
1
votes1
answer126
viewsRemove setError after field is completed
I put a setError , warning the user to fill in the form if they had not, however after it filled out was to disappear the error, but continues, I did using setErrorEnable(False) but it did not work.…
androidasked 7 years, 11 months ago Igor Oliveira 1,110 -
1
votes1
answer213
viewsSending parameters by android url
I have an android app running and need to send some parameters per URL quickly and easily to run. I use this code to perform this function, but it is already obsolete and sometimes it does not work…
-
1
votes1
answer281
viewsTell Likes Firebase Android
So I’m with a project here from an appblog, I need help now so I can count the likes. mDatabaseLike = FirebaseDatabase.getInstance().getReference().child("Likes"); } });…