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
votes0
answers21
viewsReceive data in edittext from bluetooth reader and save automatically
Hello, I have the following problem, I have a mobile application where I was reading the barcodes by zxing library, but now I bought a data reader via bluetooth, the problem is that I need to…
-
0
votes2
answers96
viewsChange language in the app and stay changed
I have an app and I would like the user himself to change if you want Following this link even worked, but if I clear the cache of the mobile phone (I think that’s it) or clean all open screens and…
-
0
votes1
answer35
viewsRadius problem on Android
I left the format rounded, but when I click the button it returns to the default format: after the click the button becomes square again:…
-
0
votes0
answers46
viewsregex for password
I would like to know how to make a regex that contains at least 8 digits being mandatory 1 digit with @!# 1 digit in capital letters and a digit with numerals from 0 to 9 tried something with the…
-
0
votes1
answer59
viewsUpdate Sqlite with Edittext Android
Good morning gentlemen, I’m trying to update my Sqlite database through my Edittext but it shows error, someone could tell me what I’m missing ? public void insererazaosocial (SQLiteDatabase db){…
-
0
votes0
answers26
viewsClick on the Recycleview Item
I have a project and use the Navigation Drawer As layout, and inflate all fragmentos, well there was the need to have RecycleView, in it I get the result done by a select, only I also need it to be…
android android-studio android-layout android-fragment android-adapterasked 5 years, 6 months ago Ari Melo 131 -
0
votes1
answer30
viewsDifficulty hitting the buttons in the layout
I can’t get the Buttons on the layout like I want. I wanted to leave one button at the center and the others at the bottom (bottom) below what is at the center. Only they don’t get right and I can’t…
-
0
votes1
answer665
viewsError grabbing the selected item in a Spinner and showing in a Toast
I’m new on android and would like to know where is the error here. I’m trying to display list data with a Spinner component. So is the Activity: package sucesso.com.br.testecomponentes; import…
-
0
votes2
answers73
viewsLine limit in Recycleview
I have a RecycleView which returns many lines, configure the layout_height for a specific size, more than one cell phone to another the amount of line increases or decreases, I would like to adjust…
android android-studio android-layout android-activity android-adapterasked 5 years, 6 months ago Ari Melo 131 -
0
votes1
answer316
viewsProblem running APK Android 9
generated an application with React-Turn on that is working login function on all android versions from 4.1 to 8.1, but in version 9 it is not calling the network at the time it is requested. I’m…
-
0
votes1
answer246
viewsChange the color of the Recycleview line
have a RecycleView and would like to change the color of the line when selected, click the selection I have already implemented and working.
-
0
votes0
answers42
viewsI’m developing a quiz and I can’t change my screen. What’s wrong with my code?
public void botaoClick(View view) { Button botaoResposta = (Button) view; if (botaoResposta.equals(respostaCorreta)) { acertos = acertos + 1; pontos = pontos + 10; Intent intent = new…
-
0
votes1
answer830
viewsSend Edittext data to a Listview in another Activity
I would like to know a way to send a data typed by the user in an edittext and send to another Activity and update a listview with data already entered. I have a class called Edit Board and another…
androidasked 7 years, 12 months ago Everton Alves 51 -
0
votes1
answer532
viewsHow do I save latitude and longitude in Firebase?
They told me you have to save how double, but I don’t know how to do it, If anyone can help me I appreciate :) public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {…
-
0
votes0
answers238
viewsCalling a method in another Android class
Good morning gentlemen, I’m with a doubt, I’m trying to call a method that is in another class but is not working, this same method already works if using another layout, just wanted to implement it…
-
0
votes1
answer51
viewsApp update not requested by play store
Good afternoon, everyone! After the release of my app in the play store, I published some updates, however, the "Update" button is not available on my device, only "Installed". The app version of my…
-
0
votes1
answer6065
viewsHow to emulate iOS? To test apps
Hello I need to develop an app that runs on android and iOS. I’m thinking of using React Native. I was told about Flutter but I’m afraid that I have little time. So I thought.... how will I test the…
-
0
votes0
answers90
viewsProblem to connect to external database
When trying to open the connection an error message appears: W/System.err: java.sql.SQLException: opening db: 'C:\sqlite\AgendaOnline': open failed: EROFS (Read-only file system) W/System.err: at…
-
0
votes2
answers65
viewsSwap one text for another using a string in the Menu
I’m having a problem and I’m not finding a solution, I have a string in a class java, that string is: R.string.text I will make a menu and put in the app preferences, to select only 1 option, and…
-
0
votes1
answer965
viewsThe $(Targetframeworkversion) is Less than the minimum required for Xamarin.Forms (8.1)
The following error is occurring when compiling an app: The $(TargetFrameworkVersion) for Representantes.Android (v8.0) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms…
-
0
votes2
answers93
viewsProblem with Asynctask
Good morning, I’m having some problems implementing a small app to get the weather coming from the answers of Openweathermap, however I’m having trouble implementing. Main Activity: public class…
androidasked 7 years, 12 months ago Nuno Santos 81 -
0
votes1
answer173
viewsHow to close app when clicking a Dialog in Mainactivity?
My app has several activitys. Some of them have a Dialog that when clicking on it, the application goes back to Mainactivity. I want when you click yes in the Mainactivity Dialog, the application is…
-
0
votes2
answers792
viewsCheck if Registration Exists in BD Sqlite and if there is no Return Message
Good night, I’m trying to make a little app that consists of searching a Sqlite database. For the research I will use two forms, ie through the UN Number and through the Name. However I am facing a…
-
0
votes1
answer137
viewsHow to bring an application forward(from the background to foreground)?
I’m finishing an app where the person runs it but usually it is minimized, running in the background. The person executes it, but a lot of the time the person can be playing with other things on the…
-
0
votes1
answer57
viewsEdittext does not accept Keylistener
Eae guys, I’m trying to define a Reader for an Edittext but it’s giving error. Error: setKeyListener (android.text.method.Keylistener) in Textview cannot be Applied to…
-
0
votes1
answer76
viewsProblem with vector position
I have an application in which I made an image arrylist, which in this image list has its position, in the method onBindViewHolder @Override public void onBindViewHolder(MyAdapter.ViewHolder holder,…
-
0
votes1
answer56
viewsUpdate in a table row
I’m starting to use the Sqlite on a project and would like a help on how to do the update in a specific line, in this case, only one "ID" will be updated at a time. Follows the codes: View and where…
-
0
votes0
answers82
viewsShow image after closing the application and open novament
I have this code, and with it I can take a photo and display the photo instead of the camera image right after closing the camera. But how to make last picture taken on camera appear when opening…
-
0
votes2
answers146
viewsHow to show all markers?
I am developing an Ionic app where I need to show several points on the Google Maps map, I add all points as markers on the map and place the camera position to the center of the points. pontos =…
-
0
votes0
answers1049
viewsCalculate distance traveled on android
I developed an application that one of the features it has is to calculate the distance traveled by the user, for this I use a Service and the API LocationListener to request user location updates.…
-
0
votes1
answer86
viewsError generating build in android release mode on IONIC -V1
When I turn the remote ionic cordova build android --release he returns me this error: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your…
-
0
votes1
answer59
viewsDelete all Data by sending a new Android App Update
I made some changes in my app, and I need to erase all the old data. What happens is, when updating, the old data is still stored. The only solution I could find, which worked, was to change the…
-
0
votes1
answer50
viewsHelp with data field search - android
Good afternoon I have a table in the database with a date field, I need to add the values of the difference field between a specific date, for example: the last 10 minutes, the last 60 minutes, the…
androidasked 7 years, 12 months ago Ronaldo Santos 99 -
0
votes1
answer89
viewsSave Radiobuttom after selection
Hello, someone could help me in this matter, I have a list with questions in them there are 3 Radiosbuttom for responses, what I want is when the user click the save button, he lists the selected…
java android sqlite android-recyclerview radiobuttonasked 5 years, 4 months ago Renderson Cerqueira 1 -
0
votes0
answers80
viewsHow to set a timeout for a JSON request?
I am developing an application in JAVA, Android Studio, and I need to make some JSON requests. So I created an Asynctask class and do so in theInBackground: @Override protected String…
-
0
votes0
answers78
viewsProblem Getting Data from Openweathermap Android Service
Good morning, I have not yet been able to get this little app up and running, and now there is no value in temperature, humidity or wind. I think the problem is in my implementation of the object…
androidasked 7 years, 11 months ago Nuno Santos 81 -
0
votes2
answers920
viewsHow to allow only numbers in an Edit?
I have the following code in my role IntegerKeyDown that is in formpai If not (CharInSet(KeyChar,['0'..'9']))then begin Key:=0; KeyChar:= 0; end; I call him in some Edits of the Sons. Works…
-
0
votes1
answer295
viewsWebview with video
Opa galera good afternoon, I’m lately dealing with webviews, I was looking on the net for a way to run videos of the site type urls, which has a post and this post has a video, I did a search and…
-
0
votes2
answers402
viewsRecyclerview Images with Problem loading images==null
Hello, everybody. I’m making a Recyclerview with a Textview and an Imageview that is loaded from the bank. The problem is when this image is null. Recycler View goes well into a certain part and…
-
0
votes1
answer24
viewsListfragment Android
Today using a Fragment to solve a problem, I saw that there is a class called ListFragment but what does it do? What’s the difference with a Fragment? When should I use the ListFragment when should…
-
0
votes0
answers419
viewsAndroid: Error recording video using camera2
Hello! I am using Android for a short time for my thesis and need to use an app to record video with audio for a certain period of time. The code I use is based on this example from Google. To give…
-
0
votes0
answers40
viewsListview does not present first item on android
Hi, how are you? i have a problem using android listview, I realize that it shows only from the second item, and in case of only one item in the list it shows nothing. I’ll show you my codes…
-
0
votes1
answer41
viewsData loss while spinning screen
I’m developing an Android APP, in it you type some values in Edittext. But when you turn the phone to change the orientation the Edittext data is lost. How do I resolve?
-
0
votes1
answer268
viewsTake data from one Plain text and put it into another in another Activity?
i have a catalog app that the customer required to be implemented a quantity choice function on each item. For example: I have the product A (in Activitya), the customer wants 25 units. in product B…
-
0
votes1
answer47
viewsCreate alternate layout
I have a project and I need to adjust to the various types of screens, I have tried with the ConstraintLayout more to what I want doesn’t work, I researched and found something about Alternative…
-
0
votes1
answer220
viewsSpinner with a call icon
Hello, I’m trying to make a spinner with the options: "Open Today" and "It doesn’t matter". In my layout, I do not want anything written and a clock icon to appear, when clicked, load the spinner…
-
0
votes1
answer59
viewsError: Firebase API initialization Failure
I’m making the following mistake: Firebase API initialization Failure. From this form, every time I send a notification through Firebase, the "crash app". Bundle dependencies { compile…
-
0
votes1
answer37
viewsWith Constraintlayout no more match_parent?
With the Constraintlayout feature, match_parent is no longer used?
-
0
votes1
answer778
viewshow to create an React Native app in windows and test on Iphone
Guys, I’m programming an RN app in windows and I don’t have Macbook but I have an iphone and I would like to test the app on the device, how could I proceed? I saw some comments of having access to…
-
0
votes1
answer39
viewsError when customizing Infowindowadapter on Google Map?
I have this XML file: ?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"…