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
answers133
viewsTwo different types of registration with firebase
Hey, guys, I’m having a hard time putting together a registration system with two different users, I’d like to be registering an Adm user and a common user, however I am displaying the data in a…
-
0
votes0
answers24
viewsLines intercalating the colors android studio
I need to merge the colors of the lines in my Android Studio app. I have a part in my app that brings the product features. You can create a table type by interspersing the colors of the lines ? Ex:…
androidasked 7 years, 5 months ago Artur Mafezzoli Júnior 441 -
0
votes1
answer53
viewsproblem to reset Countdowntimer
I’m putting together a project to learn and I can’t find a solution for a timer, let’s say that time has already been selected 10 minutes and the user wants to change to 5 minutes when clicking 5…
-
0
votes1
answer255
viewsAfter changing Navigation Drawer icon it no longer opens
I customize that icon from the side menu and put an icon of mine. Follow the image: Problem: When I click on the Icon, it no longer opens that menu on the side. Follow the code I used to change the…
-
0
votes0
answers49
viewsAutomatically delete data from BD the next day
I am with this doubt and I do not know how to develop, you could help me in this case? The user would put for example: Street traffic 17 hours and save in the bank. The next day, this record would…
-
0
votes1
answer149
viewsHow to insert a data list using Volley
My application saves all position information within the table. This table has a column called "SENT". I have to make a select by returning all positions that were not sent and sending to a…
-
0
votes2
answers148
viewsObject sent by Android arriving Null on Webservice server
I’m creating an Android APP for college work, I’m using Android Studio and Eclipse Mars with Glassfish 4. The webservice I believe is okay, because performing the requests by Soapui everything works…
-
0
votes1
answer177
viewsCheck if field contains a date
I have a list of a EditText's which are filled with data returned from the database. Some have a common text, for example <EditText android:id="@+id/edittext" android:layout_width="fill_parent"…
-
0
votes0
answers72
viewsProblems running project with Xamarin: java/lang/Noclassdeffounderror : java/lang/Object
This always works when I try to run an Android or Crossplatform project. How do I resolve this? OBS1: I have the problem again and I don’t know what to do, I have no recourse to this.
-
0
votes1
answer2933
viewsjava.lang.Nullpointerexception: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null Object Reference
I have a Fragment that through a button it will call the other Fragment. But the following error is appearing. 06-20 19:12:12.075 17971-17971/com.example.gerdaumanagement.gerdaumanagement…
-
0
votes1
answer38
viewsHow to place ad inside Alertdialog?
I wanted to put an ad banner inside the AlertDialog , has how to do this?
-
0
votes1
answer52
viewsOne button animation (Imagebutton) android
I would like to know how to do when the user clicks on the button it gets bigger and smaller when releasing, simulating a zoom effect on the component.
-
0
votes1
answer176
viewsWhen navigating on Fragment screens and returning, the screen turns white
have in Mainactivity 3(three) Fragments (Homefragment, Channelfragment and Searchfragment), with change made through tabs with click only. Inside the Homefragment I have 2 (two) more Fragments…
-
0
votes2
answers39
viewsFramelayout does not show my Textviews
Man Framelayout out of nowhere bugged and is no longer showing the data received from Json in my Texview on the part of Header. Even if I add a text it shows nothing. XML: <FrameLayout…
-
0
votes1
answer786
viewsHow to get the Android device IP to be used in Socket() in java?
I’m trying to implement a point-to-point communication (device to device) and I need to get the real IP of the server device to then insert it into the client but I can’t. I’m using: ServerSocket…
-
0
votes1
answer42
viewsCheck and change the first 3 characters of a string?
For example, a string with phone +5531984892883. I would like to check if the first 3 characters are +55. If they are +55, replace them with 0 (zero). How can I do that?
-
0
votes2
answers612
viewsCount the number of characters and insert a new one into a given position, into a string?
I have both strings: String num_tel1 = "03184872882" and the String num_tel2 = "84872882". They are 11 and 8 characters, respectively. How do I count this amount of characters and, if you have a…
-
0
votes1
answer57
viewsHello World differs on Android Studio version
I was watching a video class of a guy who was using Android Studio version 1.3. As much is generated, he was just taking away what was not necessary. I was doing this process, but I realized that…
-
0
votes1
answer689
viewsError in Gradle build: "java.exe finished with non-zero Exit value 2"
I have this error in my Android Studio, this happens when I run an application I am developing. Does anyone know what it can be? Follow my build.Radle: apply plugin: 'com.android.application'…
-
0
votes1
answer122
viewsHow to add Shadow effect to a Framelayout?
I’d like to add an effect shadow which results in a bounce of the screen, like this below: Google image: Code <?xml version="1.0" encoding="utf-8"?> <RelativeLayout…
-
0
votes2
answers121
viewsPick up news from a website automatically
I am creating an app and it will have the news part , how do I make it automatically take the posts of this site? as in the following app I found on the internet. It takes the image of the post the…
-
0
votes2
answers828
viewsFormat Timestamp for string without milliseconds?
I have the following variable public Timestamp CreatedAt; She is placed in a textview in this way: hora.setText(String.valueOf(notificacao.CreatedAt)); The exit is: 2017-06-29 12:31:21.759 I wish it…
-
0
votes2
answers567
viewsGoogle Maps does not load on the physical device
I created a Google Maps study application and in the Genymotion emulator it loads normally but on a physical device it does not load completely (I’m using Android Studio). Follow a screen print of…
-
0
votes0
answers107
viewssave the data coming from parse (back4app) in mobile memory
I am trying to save the data coming from the parse on the device, when it has connection to the internet it works, but when it does not have it does not work so the data only appear when it has…
-
0
votes0
answers360
viewsWhy the key api ( google ) does not work when adding key constraint
I have 2 key api, one with restriction for android apps and the other without, when I put the app to use the restricted api it can not access the api returning Error "403 Forbidden", in the…
-
0
votes1
answer282
viewsRecord audio equal to Whatsapp
Does anyone know how to record an audio while the button is pressed and stop when releasing the button equals Whatsapp?
-
0
votes1
answer19
viewsAlertdialog when there is an exception
Good afternoon, I would like to know how to make a Alertdialog to be shown to the user when there is an exception , on android.
-
0
votes1
answer260
viewsError while trying to add an image as a button background
A few days ago, Android Studio indicated that it had updates that were available... I had already finished an application some time ago and it was ready to be published and Talz, only lacked the…
-
0
votes1
answer1341
viewsCreating bottom horizontal menu Android Studio
I want to create a navigation bottom in my application. I took a look at what’s in the Android documentation, but I wish the icons weren’t highlighted in size when clicked, like Youtube. Could you…
androidasked 7 years, 4 months ago Maria Lins 27 -
0
votes1
answer404
viewsText on Progressbar
I’m a beginner in Android, and I’m with a doubt here that for many can be simple, but for me it’s kind of complicated to solve. Ai goes: I have an app that loads a webview, I put a progressiBar to…
-
0
votes1
answer459
viewsSpinner.setadapter on a null Object Reference
The array of players is filled with the dice but gives error in the method setadapter. Spinner spinnerJogador1; ArrayList<JogadorModel> jogadores = jogadorRepository.SelecionarDisponiveis();…
-
0
votes1
answer225
viewsHow to save user preferences?
I have a code on android that runs an alarm, only I have to register and then check some values, for example day of the week, and has an option called mode, which boils down in "Vibrate" and "Play".…
-
0
votes1
answer51
viewsShared installation Android Studio
Need to perform the installation of Android Studio in a shared way on the same machine and create a local repository for updates, is it possible? I’ve been through the web, and I haven’t found…
-
0
votes2
answers923
viewsjava.lang.Nullpointerexception: Attempt to read from field 'java.lang.String
I am trying to implement a stack(database),the problem is that I am not able to send my data to the other Activitys of my application, so when I open another Activity to check if the data is…
-
0
votes0
answers180
viewsGoogle Maps API, Location not shown
I’m having a problem in google maps API, was working all ok when I was emulating my android studio map to my mobile. After I make my app available in google play, the users that lower, the map does…
-
0
votes0
answers132
viewsAndroid recyclerView - create fields dynamically
How do I create fields dynamically in a RecyClerView? I’m trying to insert a RadioButton I can’t do it manually. All the examples I found, shows that you have to first create an XML layout in order…
-
0
votes0
answers41
viewsHow to save values from an array to a database?
I’m creating an Android app for tcc. I have 3 vectors: coorx[i]; coory[i]; busy[i]. This Busy vector is not fixed, so the values were changing according to what the user requested. Then I would have…
-
0
votes0
answers49
viewsJava Android Bluetoothadapter Override?
I’m developing an app that uses the Bluetoothadapter class... it doesn’t work the way I need it. But I went to try to override the class, but she won’t allow it. When we pass the Bluetoothadapter…
-
0
votes1
answer46
viewsProblems with Objectanimator
I’m doing an animation where an image slides from the bottom up using Objectanimator. In the emulator of Android Studio the animation occurs perfectly, but when I run on Android devices (tested in…
-
0
votes1
answer266
viewsHow do I stop Keyboard from messing with my layout?
How do I stop the button from moving when editText pulls the Keyboard? Thanks in advance. xml of Bhutan: <Button android:id="@+id/hora_picker" android:layout_width="300dp"…
-
0
votes1
answer1149
viewsSaving txt files with Android Studio
I am having trouble saving the name typed by the user in a txt file. When I press save, it says it was created, but I can’t read. Context fileContext; public BancoDeDados(Context fileContext) {…
-
0
votes0
answers84
viewsAsynctask and Fragments
Hello, I’m new to development and have some questions. I have to implement a new layout, where: I converted the activities that load the data into fragments; In a new Activity the graph fragment is…
-
0
votes0
answers143
viewsHow to resolve these error in android studio 2.3?
how do I fix these new errors ! the layout doesn’t work before it worked! i had changed the build version 26.0.0 to 25.2 helped but then appeared these 4 errors…
-
0
votes2
answers1073
viewsGoogle Maps does not work after Gero APK Signed for Google Play
Guys I have an application running Google Maps. I generated the access key (copied and pasted in xml ) right on the Console Developer website. If I generate normal apk (no signature) it works…
-
0
votes1
answer29
viewsRemove values for SQL file not working
I have this code, which takes Strings and puts them in a Database, but the problem is that it is creating Database but I don’t know why , it is not inserting the values in it. Below I leave the xml…
-
0
votes0
answers29
viewsHelp with sql server and android dats
I have this code to do a search to SQL Server database but give me error: Incorrect syntax next to '19' Here’s the search code: SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd…
-
0
votes0
answers57
viewsError while running Android platform in Cordova
When executing the command Cordova run android, of the following error: :mergeDebugJniLibFolders UP-TO-DATE :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE :processDebugJavaRes UP-TO-DATE…
-
0
votes2
answers101
viewsFunction Screenshot on android
I’m putting the screenshot function in the calendar, however the photo is not going as it should. But using native android function comes out correct Follows excerpt from the code: View v1 =…
-
0
votes1
answer361
viewsHow to pass the value of a variable from one local class to another class (outside its scope and with public visibility)?
Good night. I’m having a hard time using the value of a variable in a local class and passing it to another class that will be loaded on Intent. The value of the string is exiting null and gives…
-
0
votes0
answers55
viewsDoubt on how to use "!="
Sometimes I come across the exclamation mark ! before the equal character =and I always have a question of why I have it there. Small example: if (model.getFile() != null){ I know that if the result…
androidasked 7 years, 4 months ago Wallace Roberto 496