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
answers61
viewsBackfit URL Encounter
How do I get my url that contains a "+" to be sent by retrofit with "Encode" but currently the result url is: http://api.xxxx.com.br/aluno?campo=220+2d+ And hence my backend entede this + as a…
-
0
votes1
answer133
viewsEdittext Multiline with lines separated by dashes
All right? I’d like you to help me with something: I would like to have an Edittext with Multilines divided into lines. What I mean is this: When we create a multiline Edittext (let’s put as an…
-
0
votes2
answers102
viewsAdapter modified in real time
I have a Activity calling for ListaBasica and a Adapter by the name of adapterBasico. The Adapter contains a list of newsletters. A Activity contain information taken from Adapter as the sum of the…
-
0
votes1
answer49
viewsGif as the background of an Activity
I’m new to Android programming, and would like to add a GIF like background of a Activity. Do I have to do this through Java or with you through XML? I’m not getting through set a Gif.…
androidasked 6 years, 8 months ago Julio Vilela 1 -
0
votes1
answer525
viewsI cannot recover a list of Firebase objects
I have a doubt that I did not find anywhere, I tested part and it worked with doubts and the other did not give. I will explain, if someone can help. The problem is this, if I have two classes…
-
0
votes1
answer233
viewsCannot resolve method 'getSupportFragmentManager()'
In my Mainactivity.java where I am trying to put tabs, I am having the error Cannot resolve method 'getSupportFragmentManager()' and in my other tab Activity that I created when selecting "Tabbed…
-
0
votes1
answer127
viewsHow to fix a Bug with loading a Fragment within another Fragment?
I have a Mainactivity with Navigation Drawer, and all the items in this browser opens in Fragments. When starting the application I load the home page as follows:…
-
0
votes1
answer702
viewsAdd icon to Android Studio mode
I’ve been doing research on the internet about the implementation of icons for android apps by android studio, however, I confess that I was somewhat confused. I made my icon using Adobe Illustrator…
-
0
votes1
answer443
viewsConsume Webservice C# on android
I have a Web Service created in C# where I access a certain method to authenticate a teacher, if the user and password data passed through parameters exiting in the database the web service returns…
-
0
votes0
answers38
viewsBack button and android keyboard
I’m actually in two trouble: The Backpressed it removes the keyboard and Buga a command line, I don’t know why. He pretty much ignores the adappLista.notifyDataSetChanged() and does not modify my…
androidasked 6 years, 8 months ago Stênio Barroso de Moraes 312 -
0
votes1
answer307
viewsAndroid - Logcat without working/blank
My logcat’s not working. When I start the emulator and click on the Logcat tab, no information appears only blank, as if it is not connected to any device. The screen looks like this:…
-
0
votes0
answers41
viewsLoad Fragments on part of the screen?
I wonder if it is possible to type a tablayout system only in part of the screen. ex: Where green, blue and orange are the buttons of the Tabs, and the red part would be the loaded Fragment, so by…
-
0
votes1
answer42
viewsConnection problem with Database
I made a program to try to connect to a hosted database. However an error is occurring : 08-30 10:42:13.088 1710-1710/genus.qrcodefinal E/log_tag: Error in http Connection…
-
0
votes1
answer30
viewsDoubt with Intents
I use Intentservice to get the data from my Bank on the Internet. and I am passing the data of the intentservice class to Activity with use of Intent. My doubt is how much data I can pass via…
androidasked 6 years, 8 months ago Stênio Barroso de Moraes 312 -
0
votes2
answers88
viewsRun Service with a Broadcastreceiver
I need to run a Service through a BroadcastReceiver, but error occurs: android.os.NetworkOnMainThreadException. To "deviate" from the error, I’m using the code below, but I want to do it the right…
-
0
votes0
answers37
viewshow to consult Distance Matrix with geocoder together?
I am developing an application that uses the google API to display the registered places on the map along with the distance of each location as follows. mMap.addMaker(new…
-
0
votes3
answers414
viewsCustom dialog
Good morning, I made a custom dialog using a Fragment to customize it, but I need to make it have rounded corners. <RelativeLayout android:layout_width="match_parent"…
-
0
votes0
answers49
viewsDynamic android recyrcleview
I need to do a recyrcleview one inside another vertically more like this as already besieged elsewhere will not work. And the Expandable list view in my case does not meet my need because it will…
androidasked 6 years, 8 months ago user70879 -
0
votes1
answer283
viewsHow to share/pass data between activities other than Intent?
I have an Android Studio application where, when clicking a button, a number is generated in Activity A and stored in another button in Activity B, which is overwritten whenever I enter a new number…
-
0
votes1
answer106
viewsStore data on the device
I am developing an APP with React-Native and has a problem that I am looking to solve, I make a communication with an API and it returns me a token for consumption of services when authenticating…
-
0
votes0
answers30
viewsApp when closed and reopened , open in I last state
I’m making an application that has several interactions with google maps , one of them is generate route from one address to the other using the Polyline , if the application is closed and reopened…
-
0
votes0
answers42
viewsError adding Pageviewadapter to Google Maps Android API
It has three (3) buttons and a (1) tab with two (2) buttons on the map, like this that I add the code to create the Pageadapters I get error and I don’t know how to solve. ERROR: 03-15 03:50:23.990…
-
0
votes2
answers2211
viewsHow to change the title of an Activity?
I have an Activity and I need to change its title programmatically, I found a way but it doesn’t work for me, check it out: protected void onCreate(Bundle savedInstanceState) {…
-
0
votes2
answers1479
viewsHow to delete a specific Child in Firebase?
I want to delete only 1st Child (L7jrj6dtqwrmzsc4zvt) from Firebase through an option in an Android app. I searched several places and could not find. I only found the option to delete the whole…
-
0
votes1
answer295
viewsError generating signed APK
So, I’m developing an app where I want to use Google Maps, but when I try to generate the signed APK I get 2 (two) errors: Error:The number of method References in a . Dex file cannot exceed 64K.…
-
0
votes1
answer195
viewsInformation balloon in Edittext - Android
On websites there are several informative fields that when clicking or putting a wrong information half a balloon arises giving a proper information, I wonder if it is possible to do this in java…
androidasked 6 years, 8 months ago Nikola Tesla 35 -
0
votes0
answers42
viewsHow do I check if the user has already accepted the facebook login terms?
After the first login, I log out, and try to log in again, however from the hash key error, but if I delete the application from my facebook account and log in again the right way. how do I fix…
-
0
votes0
answers30
viewsCheck qts times a particular order has been made
Guys, I’m trying to develop an app for a snack bar where my billing will be 10% of what they sell in the month using my app. Until then beauty, the problem is, how do I make this check of how many…
-
0
votes1
answer58
viewsDagger Nullpointerexception 3rd class which depends on 2nd class
In a project that has the Activity, Presenter and a Model, the Activity has the Presenter and the Presenter has a Model. When I do @Inject in the Presenter to instantiate the Model it is never…
-
0
votes1
answer155
viewsfindViewById(2131230729) what are these numbers?
I’m analyzing a class from an Android app project, I’m new and didn’t understand these numbers within the findViewById(2131230729), within the parentheses was to have R.id."layout" as I do through…
-
0
votes0
answers528
viewsFailed to connect to server - Unable to resolve host "play.googleapis.com": No address Associated with hostname
I’m creating an app in Android Studio that will send information to a web service that will insert the data in the database. However when I press to enter the data, the program returns this error:…
-
0
votes0
answers152
viewsApk read external script and runs it
In C# it is possible to compile at runtime external code written in C# and run it inside the application, without having to use some Script language. But I’ve never used anything like this with…
-
0
votes1
answer70
viewsLosing Edittext Focus by double clicking recyclerview
I am with a recyclerview with two Edittext everything works very well, the problem is when I double click off Edittext it loses focus and appears the alphanumeric keyboard being that Edittext is…
androidasked 6 years, 8 months ago Stênio Barroso de Moraes 312 -
0
votes1
answer102
viewsHow to hide all buttons with foreach?
Follows code: FindViewById<Button>(Resource.Id.Button_1).Visibility = ViewStates.Gone; The code above is to hide a "button 1" and I have more than 50 buttons. I do not want to copy this whole…
-
0
votes1
answer436
viewsI cannot remove READ_PHONE_STATE
This permission is not in my Androidmanifest even so when I upload to the play store appears this image message, and my app does not use this type of data, pfv help me!…
androidasked 6 years, 8 months ago Paulo Henrique Galdino 9 -
0
votes0
answers61
viewsCopy apk located at /data/app/ programmatically
Hello, i would like to copy an apk located in the folder /data/app/.. But apk is not being copied, only the folder is created, follows the code: InputStream input; String apkPath =…
-
0
votes0
answers34
viewsAndrodi Studio setDownloadListener does not work on Android 6.0
Even before version 6.0 the following method below works perfectly by downloading any document requested in Webview.. However now with android 6.0 in attempt to any download inside the webview the…
-
0
votes1
answer651
viewsView a Youtube video via videoView via Xamarin
I need to show a video for a URL, such as a youtube link, using the tool Videoview, or similar. I did some research on this, and I got this code, but it didn’t work, I always get the message that I…
-
0
votes0
answers41
viewsDate return on Datepicker in another format
I’m new in android development, and tried to work with the datepicker for a job, but when I see the date returned is returned so: Sun Mar 01 00:00:00 GMT 2020 I would like to stay 01/03/2020 to…
-
0
votes2
answers219
viewsIs it possible to call a method within another instance?
I have a Activity which shows a AlertDialog customized, as the class of Activity I put the call of this Alert in another class in a static method. When clicking a certain Alert button (or when…
-
0
votes2
answers190
viewsVertical Barcode Reader Activation - Zxing
I developed an android application where activates the barcode reader to read barcode products. What I’m finding strange is that when activating the scanner it changes its position to horizontal,…
androidasked 6 years, 8 months ago Josemar Sabino 77 -
0
votes1
answer67
viewsUpdate Listview item after Callback
In my application, I use the SDK of Parse.com. The SDK provides a method for loading API objects assíncrona and in another thread called fetchInBackground(). Within the getView() of my adapter…
-
0
votes0
answers37
viewsAndroid app integrated with html site with database
I need help on a matter. My TCC consists of a didactic application, which receives all its content (Text and images) through an HTML site. Is it possible for all this to work through the FIREBASE…
-
0
votes3
answers3185
viewsHow to connect my android application to an external database
I have a site with some tables in the mysql database. The site is already connected in the database. I have an application in Android Studio and would like to connect the application with the…
-
0
votes1
answer51
viewsPrint negative line DPP-450 Datecs Escpos
I’m starting a project on this printer (DPP-450), and I came across a problem that I’m unable to solve: I need to print a negative line, black background and blank writing. In the manual this "GS B"…
-
0
votes0
answers116
viewsError Null Object
I’m developing an app delivery (with client version and Adm) in which the administrator version changes the status of orders through a spinner, after which the client app receives a status update.…
-
0
votes1
answer72
viewsVery large array - Android
Which ones problems I could face in the manipulation of arrays many a great? When I say arrays I mean at least 25, each containing +of 1000 index. Performance: Would my application’s performance be…
-
0
votes1
answer1268
viewsNumeric keyboard input type="Text", Ionic Cordova
I have in my app a field for Cpf, I need to make sure that when the user fills Cpf, the device shows only the numeric keyboard. But if I change the <input type="text"> for <input…
-
0
votes0
answers82
viewsProblem with Return returning null to another class
I have a class responsible for downloading a list of students in a web service through a method where I pass as parameter a string with the teacher’s code and it returns me an array of students. The…
-
0
votes1
answer267
viewsHow to take position of the item from an Autocompletetextview (Android)
I need to take the position of the item of an autoCompleteTextView and pass the data to other fields. So far my code is like this: spinner_produtos.setOnItemClickListener(new…