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
-
2
votes1
answer105
viewsBreak line when components inside Recyclerview occupy full screen width
Is it possible to make that when the width of the components of a list occupies the total width of the screen, the next component drops a line? I don’t want to use scroll if it’s not possible to do…
-
2
votes2
answers56
viewsData Binding Formatted Strings Losing Format
Apparently Data Binding for formatted strings does not work properly. For example: <string name="minhaString">Você tem um limite de <b>%s</b> reais.</string> If I use Binding…
-
2
votes1
answer40
viewsError searching blogger information via json
I’m trying to get information from the blogger via json and put to appear in a recyclerview. But I’m not getting it. I’m a beginner in programming, so I’m unharmed if you have to sign any key so you…
-
2
votes3
answers818
viewsHow can I set the address as the street and neighborhood corresponding to latitude and longitude?
I have that code: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == MAPA_REQUEST_BAIRRO){ if(resultCode == RESULT_OK){ try { Place place =…
-
2
votes2
answers103
viewsOpen an Activity with onMarkerClick
i want to open a new Activity when clicking on the Marketer, however I click and it is not opening, I did more or less like this: @Override public boolean onMarkerClick (final Marker marker){ if…
-
2
votes1
answer170
viewsHow to keep the screen turned on in later versions of the Kitkat API?
I’m making a APP that keeps the smartphone screen always on, even when the APP is minimized. I’m using a class with extends Service to do this, in onCreate I put the code that keeps the screen…
-
2
votes2
answers656
viewsList my app in the list of programs that can open a document
When we receive an email with an attached file and click on this file a list of programs that can open this file is shown. How do I make my app also appear in this list? I’m sorry, I’m new to the…
-
2
votes1
answer365
viewslistview with text image and subtitle
I’m building a sales app where a user will publish their product with: image, price, description and value. I can list the photo all right but I can’t put a title and the other descriptions Here’s…
java android listview android-fragment android-adapterasked 7 years, 10 months ago Felipe Moreira 25 -
2
votes1
answer46
viewsError clicking a button to access website
I tried to make the user click on a certain button, it was directed to a site, in this case google, but it did not work. The app starts normally, but when you click the app button, it stops: This…
-
2
votes1
answer716
viewsFirebase reference error
I am developing an application in Android Studio and using Firebase as a bank, but after finishing the structure of the project when I went to test it accuses a reference error of Android Strudio…
-
2
votes1
answer477
viewsRead another variable in Activity that is updated in Mainactivity
I have a function that runs every second. This function sends a request for information via socket to a device. This information is received on a AsyncTask that makes the calculations and updates…
-
2
votes1
answer361
viewsHow to display a parse string in a Textview?
I’m trying to add an image with a description on the server parse. I’ve already been able to add the image description by objectId, but the problem is that I don’t know how to display the text of…
-
2
votes2
answers90
viewsPublic with 2 variables does not return value
I have 3 publics that should return a calculation value for me to present on the Activity screen. The first, volume_agua_mehta(), returns normally, but the second, massa_brita_mehta(), and the…
-
2
votes1
answer82
viewsI can’t open the map in my position
After a lot of research, I still have difficulties with java, I’m new and I’m trying to learn. Please forgive me if I can’t ask a clear question, because I may not even know what I’m talking about,…
-
2
votes1
answer137
viewsButtons added underneath Reciclerview do not appear
I’m using a Linearlayout with a Reciclerview and 3 buttons underneath it. I’m doing this, but Reciclerview takes up the whole screen and the buttons don’t appear. <?xml version="1.0"…
-
2
votes2
answers2553
viewsError saving Sqlite Data (in such table)
Databasehelper class: public class DatabaseHelper extends SQLiteOpenHelper { private static final String BANCO_DADOS = "MakeRequestApp"; private static int VERSAO = 1; public DatabaseHelper(Context…
-
2
votes2
answers212
viewsWhen I delete the last Edittext character from the PARA app, what to do?
I type a number sequence normally and Talz, now if for example I type "1234" in any of the 3 Edittexts existing in my Activity... ... and delete until the last character, ie when I delete the last…
-
2
votes1
answer253
viewsHow to assign rounding on the button and random colors at the same time?
Hey, guys, I’m having a little doubt I already did a little snooping on the internet and I haven’t found it yet maybe it’s not possible, but come on.. For example I have a button on this button I…
androidasked 7 years, 9 months ago Steve Rogers 322 -
2
votes1
answer145
viewsHow do I display the Floatingactionbutton?
Could you help me? I’m trying to make the Floatingactionbutton appear on my screen but it doesn’t want to appear I don’t know what I do anymore...I’m a long time trying to solve this problem but I…
-
2
votes3
answers876
viewsHow to repeat a minute-to-minute notification
I’m creating a app simple that gets a notification every time I click a button on my layout, everything works perfectly. Now I want this notification to be repeated for example every minute until I…
-
2
votes1
answer276
viewsI can’t set a vector image as an app icon
As you can see I’ve correctly added a svg. so that it acts in a vector way: The problem happens when I try to put it as app icon: I go to Androidmanifest.xml and normally modify the line…
-
2
votes1
answer948
viewshave you declared this Activity in your Androidmanifest.xml?
Hello, I created a Data Input Activity and another one of "Result", when the button event is activated, to perform the calculations and open the Result Activity, the error appears that it was not…
-
2
votes2
answers611
viewsHow to delete a particular data from a listview?
The app has two Uttons that when clicked add an item to a listview (bow and sword), but I would like if the item of each button was already present in the listview, the same would be deleted.…
-
2
votes1
answer47
viewsFile Check on Web Server
Next, I have an Android app, this app wants to check the existence of an image on the web to be able to load by Picasso, if the image does not exist in a www.somemacoisa.com/img/imagem5.png I will…
-
2
votes2
answers1162
viewsHow to get back from a Fragment to an Activity?
I created an Activity of type Drawer Navigation and in the icons of this Activity has an action that takes me to a fragment. My problem is that I don’t know how to come back from a fragment to an…
-
2
votes3
answers2965
viewsHow to delete data from database in android studio?
I have an application where when the user logs in the first time, I save the Token and NIU, then the next time he accesses the application, he already enters directly into the Webview using that…
-
2
votes0
answers179
viewsString conversion error in Jsonarray - Volley Android method
My application receives a Jsonstring via web service from a C#API as listed below: [{ "LimiteCredito": 123.00, "PessoasFuncionarioId": 16, "Id": 12, "Nome": "Cliente PF A", "DataEdicao":…
-
2
votes2
answers457
viewsHow to create dynamically several times the same layout?
I created a layout called with a "+" button at the end so that I would like, when clicking the button, to be added a new Linearlayout below the current layout with the same content, allowing the…
-
2
votes1
answer206
viewsPick address when adding marker on map
I would like to know how to get the address when the client adds the marker to the map, and already save it to the firebase server. Thanks in advance :) @Override public void onMapReady(GoogleMap…
-
2
votes1
answer164
viewsNotification remains in status bar even after click
I have an application where I receive daily notifications, however by clicking on this notification, it still stays on my bar status. I’m using the class Notificationcompat for the creation of these…
-
2
votes1
answer163
viewsPing via android
Is there any way to show the average ping on android? I saw some tutorials but the most I could was the following: public void fExecutarPing(View view){ List<String> listaResponstaPing = new…
-
2
votes2
answers606
viewsHow to remove all files from a folder?
I am trying to remove all files from a folder using Cordova and Android, the problem is that every code I think, only shows how to remove FILES and not FILES FROM A FOLDER. The problem is I don’t…
-
2
votes0
answers763
viewsIframe opens in full screen in webview in Android Studio
Every time I put an iframe, instead of opening it inside the page, the iframe opens in full screen. It follows project codes Mainactivity.java package com.example.duff.webviewoficial; import…
-
2
votes1
answer65
viewsHow to send a json of an Activity to a Fragment?
I have an Activity that is added a data in Jsonobjetct. And as seen in the following code, I take it as a string, but, my doubt, as I by this Jsonobject in the fragment so that I can work with it,…
-
2
votes1
answer91
viewsWhen to use encryption when developing for mobile?
I am studying and assembling projects for mobile devices, and I always come across dozens of data transmissions, some important others not 1)I wonder if it is convenient to encrypt all the data…
-
2
votes1
answer99
viewsHyperlink that when clicked open a particular application and if it is not installed, open the link of the same in Google Play?
The application in the case is the Telegram and it works with a simple system of reference to users, channels, groups. I would like to click on hyperlink (clickable textView) which has the user link…
-
2
votes1
answer96
viewsHow to correctly position a piece of the View created in java?
After charging my View, if the user clicks the button then a menu appears in front as shown in the image: The top layer of this menu is a FrameLayout, I’d like to leave you with Gravity RIGHT and…
-
2
votes1
answer39
viewsAlternative view method. Menu*
I am beginner with Android programming and am following the book "Google Android" (2012), of Code House. I arrived at a part where you should create "menus" using the functions present in…
-
2
votes1
answer351
viewsList files from a specific folder
I have the following code: public static final String PATH ="/Conceitos"; public static List<String> loadFilesName() throws IOException{ List<String> strings = new ArrayList<>(0);…
-
2
votes2
answers202
viewsHow to work with the file:// and Angular protocol
I was wondering if it is possible to work with an Http:// request locally in my application and not on a local server, if possible how do I do this? (does not necessarily have to be with the file…
-
2
votes1
answer915
viewsAdd it up to a firebase Child?
Hello, Would like to get the value of a Child at firebase, add a number and update Child with the result of summing up. Code on the Oncreate() uDataBase =…
-
2
votes0
answers201
viewsChange application background in "recent apps"
How to change the application background when you click the square button (recent apps)? I have already researched and some have indicated using the onPause and onStart to change the background…
-
2
votes1
answer438
viewsConvert Activity to Fragments
Hello, I’m in need of a lot of help, I’m developing an application for my TCC, I’ve assembled most of the features and now that I’ve been messing with the visual part I’ve had problems, I mounted…
android android-studio android-fragment android-activityasked 7 years, 7 months ago Projeto Bentotec 63 -
2
votes1
answer87
viewsValues are being sent nulls
For some reason the arrays are being sent null in setListGrades, but inside the log shows the normal arrays. The API is being consumed correctly, so it is null when sending this method? @Override…
-
2
votes1
answer94
viewsHow to get the Listview reference of a Listfragment?
I’m with a ListFragment trying to access the ListView in which the Adapter inserted the objects, but the findViewById is returning null, anyone has any idea? The XML Fragment code: <?xml…
java android listview android-fragment android-adapterasked 7 years, 6 months ago Danilo Nadolny Vizentainer 23 -
2
votes1
answer64
viewsHow to call initLoader inside Onclicklistener
Hi, it is possible to call an initLoader inside an Onclicklistener? I need it to be started after the editText data entry, because the network request returns error 400, URL enters without the user…
-
2
votes1
answer92
viewsjava.lang.Nullpointerexception: return null button
Good Morning, How do I reference a button from another Activity? In main, I am using another layout to inflate my list, and the button event is obviously returning null because it is not finding the…
-
2
votes1
answer352
viewsAndroid Tablet Incompatible App (Playstore Info)
I recently developed an app that I published in google play store with all the necessary requirements, however when trying to download a tablet Asus Zenpad 3S 10 Z500M this is incompatible and does…
-
2
votes1
answer3740
viewsCamera permission on Android
I have the following permission to access the camera and store the Androidmanifest.xml file: <uses-permission android:name="android.permission.CAMERA"/> <uses-permission…
android android-camera android-manifest android-permissionasked 7 years, 6 months ago Raphael Prado de Oliveira 1,472 -
2
votes2
answers4903
viewsSetando mask android phone field
I’m trying to automatically set a mask to the field, I don’t know any other way to do it, I’m doing it like this: if(s.equals('(')){ edtCelular.setText(texto); }else{ texto = "(" +…
androidasked 7 years, 6 months ago Renan Rodrigues 3,709