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
answers42
viewsArray x Arraylist
Yesterday I made a question on how to use a Two-dimensional Array dynamically, so I ended up getting a reply to use a Arraylist, and this served perfectly for my case, however, from that it…
-
0
votes1
answer46
viewsError javascript: In Strict mode code, functions can only be declared at top level or immediately Within Another Function
While testing my application on an android 4.4, appears this error, however on android 5 the error does not appear. Can anyone tell me what it might be.
-
0
votes1
answer1770
viewsAndroid Relativelayout align items
I am not being able to align vertically in the center the items of the third line marked in the image. This is a layout of items in a listview. I’ve tried Gravity="center", layout_gravity="center",…
-
0
votes1
answer93
viewsHow do I make a recyclerview of mine appear on a tab instead of fixed on main?
I created a recyclerview on main which is ok, tbm I created 2 tabs which are ok. But when I change between tabs the Recycler view is fixed on the screen instead of just appearing in tab1. A friend…
-
0
votes1
answer4041
viewsBlock and unlock editing an Edittext
In the code snippet below I disable the freight value edition when the freight type is SIF put the code snippet Library.editTexPermission(edtFrete, true); that should release editText edition does…
-
0
votes1
answer347
viewsGrab images from the drawable folder by name
I would like to know how to take an image id from the drawable folder and use it in an Imageview. I am trying to do this within a Listview String nomeImgFilme = filme.getImagem(); int imgID =…
-
0
votes1
answer895
viewsApplication opens and closes
After I updated my phone (ASUS Zenfone 3) for Android My apps open and close when I try to debug... I can only debug if I delete the app from my phone and compile again, does anyone know how to fix…
-
0
votes1
answer1462
viewsDynamically change the image of an imageView (Android Studio)?
I have a two-button View image, go back and forth. In a gallery of 5 photos I would like to keep changing the image so that one button forward an image and the other back. I know how to do just to…
-
0
votes1
answer103
viewsHow to create browser tabs in Android Studio
Hello! , I’m creating a browser for Android using Android Studio I’m trying to create a feature that has in all browser that are the multiple tabs like Google Chrome, but I’m out of luck and all my…
-
0
votes2
answers234
viewsI need to click the button twice to get the value
Someone knows what I did wrong, because I need to double-click the button to pull the value. package fabiohcnobre.jhotelcolonialdosnobres; import android.os.Bundle; import…
-
0
votes0
answers93
viewsCursor.getColumnIndex() returns -1
I’m trying to accomplish a select in the database of Android, but every time I try, it ends up generating error. By debug discover that one of the columns, when performing the getColumnIndex() is…
-
0
votes1
answer27
viewsChange shadow color of Viewpager
How do I make this shadow of viewpager change color?…
-
0
votes1
answer478
viewsOpen HTML via Asset
How do I open html via Asset? I’m making my text editor application, I really need to learn how to open html via Asset.
-
0
votes1
answer55
viewsMake Toast disappear while running root command
Long live, I have my phone connected to the computer and when I run root commands by the adb, a Toast always appears in the middle, is there any way to make these toats disappear? I remind you that…
-
0
votes1
answer297
viewsAfter Sqlite my application stopped working
I’m developing an app and needed to put the database SQLite, after I put in when I will open the application it gives an error showing that the application stopped working, I asked my teacher of…
-
0
votes0
answers354
viewsParallax/Rally effect does not work on Chrome for Android, but works on desktop
I have this page: http://einconformado.blogspot.com.br/p/livraria-do-eterno-inconformado.html where I use the parallax/Parallax effect, and yes, the effect works smoothly on Chrome and Firefox…
-
0
votes1
answer261
views(Solved) Error running Android app on mobile but working on other devices and emulator
[Solution]: The solution found was to add the attributes android:hardwareAccelerated="false" , android:largeHeap="true" in the manifest I’ve been dealing with Android for a while and I got this…
-
0
votes0
answers54
viewsHow do I match a value of an array with another value in another array in Java?
I know how to get the value of an array position and compare the array values. As code below. for (int i = 0; i < listadosWifi.size(); i++) { /* pega o SSID e o BSSID */ providerName =…
-
0
votes0
answers208
viewsIonic, service, how to create a task
I wonder if it is possible to create a service in Ionic, running even with the app in the background and that at certain times run a method as if it were a setTimeout but always active.
-
0
votes2
answers108
viewsAutomatic user address search
Any automatic search method for the address from the current location of the user? No need to fill in the address fields. Informing the zip code or clicking a search button.
-
0
votes1
answer488
viewsCheckbox and Radiobutton Validation
How to validate and return a message if Checkbox and Radiobutton components are not selected in an application ? JAVA
-
0
votes2
answers437
viewsHow to place Mapactivity in a Fragment
It is so, I have a Mapactivity, but I would like the map to be in a Fragment. How can I do this? I created a Fragment, implemented the methods of Mapactivity created by Android Studio, but I come…
-
0
votes2
answers87
viewsReturn message if no checkbox is selected
How to do the treatment in this code so that it returns message to the user select at least one checkbox if it does not select any? public void verificaCheckBox(){ Listcheck.clear(); if…
-
0
votes1
answer25
viewsI can’t call Activity for minutes without a button
Good afternoon, I’m starting to learn ansdroid, and I’m in the grip senguinte, I can’t do the screen change for minutes, where I’m missing and someone can give me an optimization? public void…
androidasked 6 years, 7 months ago Gilliard Pacheco 11 -
0
votes1
answer194
viewsMethod Invocation 'notify' may Produce 'java.lang.Nullpointexception'
NotificationCompat.Builder builder = new NotificationCompat.Builder(getActivity(),"M_CH_ID"); builder.setAutoCancel( true ) .setSmallIcon( R.drawable.icon_notificacao ) .setContentTitle( "RPfm…
androidasked 6 years, 7 months ago Robson Cabral 33 -
0
votes1
answer403
viewsAndroid - Connection to Postgresql
I’m trying to connect the Android directly with PostgreSQL. Include in the project package: postgresql-9.1-903.jdbc4.jar and I’m using PostgreSQL 9.1. But I can’t successfully make the connection. I…
-
0
votes2
answers78
viewsCreate frame for item list
I need to create a frame for a listview item but I have no idea how to do this…
-
0
votes0
answers133
viewsError compiling Ionic application with Crosswalk
I am developing an app that will support for Android 4.1+ and I am having problems compiling APK for Android 4.4 devices<. In the Ionic documentation there is some information regarding your…
android ionic apache-cordova cordova-plugin crosswalkasked 6 years, 7 months ago Adriano de Azevedo 533 -
0
votes0
answers151
viewsAdd login to android project
Guys sorry if this is too trivial, but I’m starting to study android, I have an example project that you add note and edit them, this project is already working with this mainActivity: public class…
-
0
votes0
answers202
viewsFirebase API Scheduled Notification
I’m trying to schedule a specific time and I want to send a notification using Firebase. I am working on the project where I have to submit the notification shortly after two hours of the current…
-
0
votes0
answers251
viewsXML layout with problems
I have a problem, I have a layout with some fields Edit Text, what happens is that the Scrollview that I use works for all fields of Activity except for the button that ends up going down the…
-
0
votes0
answers32
viewsRecover Firebase Data in Other App
I have a User App that sends a request that will be received by a Company App. For now the user App sends data that is being recorded only in Firebase. How do I recover this data in the other…
-
0
votes0
answers34
viewsDevice model checking when publishing to the play store
Hello, I want to publish an app in the play store, but I would like it to be available only for models that have edge screen (S6 edge, S7 edge, S8+, etc) and for other models to be showing as the…
-
0
votes0
answers15
viewsHow can I control the time a data was entered in the database - sqlLite Android
I need to control the time a data is entered into the database, to do certain actions as a function of time. I thought to make the difference between the current system time and the insertion time,…
-
0
votes0
answers182
viewsFill Listview with an array
I have an Array List where I store the subjects with the respective grades of a particular student. This array has only 2 attributes: nomendDiscipline valuer I would like to know how to fill a…
-
0
votes2
answers1039
viewsHow to force the Landscape/Landscape position?
How to force the Paiage/Landscape position on my Activity forever active and lock the Portrait/Portrait position. I want my app to already start in landscape position and can’t turn to portrait…
-
0
votes0
answers161
viewsCannot resolve Symbol 'Theme' in the Styles.xml file
Is giving the following error message: Android Studio 3.2.1 build.Gradle (Project:xxx) dependencies { classpath 'com.android.tools.build:Gradle:3.1.2' } I tried the following: 1) I deleted the .…
-
0
votes0
answers186
viewsRecover Database data to Android using php!
I need to retrieve the name, message, lat, long data from php. The problem is being in the part of Android, what I need to do to recover this data from the Activity "Android Part" saving these in…
-
0
votes1
answer110
viewsPass Activity coordinates to Mapsfragment
I need to pass the latitude and longitude that I pick up at the HomeActivity to the MapsFragment, for the map to open soon at user’s position. I tried to see Intent and it doesn’t work. My code:…
-
0
votes1
answer342
viewsTake mysql data and use in Mapsfragment on Android
My part of php I believe is working. I don’t know how to get this data to Android. How can I do? I need to pass the name data,message,lat,long for some variable on android. Part in Php: $sql =…
-
0
votes1
answer271
viewsCardview inside a scrollview
I’m not getting the scrollview to work on my cardview.... Since scrollview works with a single child, I changed the main layout to Scrollview and created a linearLayout to encompass the rest within…
-
0
votes1
answer324
viewsHttpurlconnection - Use php to connect to Mysql
I am trying to fetch the data of a user saved in an external database to log in/register. However I run the system and there is no Exception, but it does not connect. I tested the php that I am…
-
0
votes1
answer32
viewsInsert Image in code, Android Setimage, Error while doing dynamic in java
ImageView img = (ImageView) findViewById(R.id.img); //Atualizando a imagem dinamicamente. A classe R é utilizada para acessar o recurso. img.setImageResource(R.drawable.img); There’s a mistake, I…
-
0
votes1
answer24
viewsWhere on the list with recyclerview
I need to get the position of an item in the list, where the code is what I passed. In C# I do this like Python, how to do in java? public void onBindViewHolder(final LineHolder_Entidade holder,…
-
0
votes1
answer291
viewsonMapReady performs faster than the function that recovers the location
hello, I’m trying to use map help in my app. I recover the coordinates through Json, the problem is that the function that leads to the coordinate (onMapReady) performs faster than the function that…
-
0
votes1
answer45
viewsAndroid - Add a double every time the function is called
How do I make a function always add a double value to another, since onClick() adds only once. Mainactivity.java: Button somar = (Button)findViewById(R.id.btn); TextView txt =…
-
0
votes0
answers124
views"Unfortunately, My Order has stopped" (My Order is the name of the app). How to resolve?
Event Log 11/05/2018 13:06 Executing tasks: [:app:assembleDebug] 13:07 Gradle build finished in 6s 267ms Logcat 05-11 16:07:12.601 6407-6407/com.example.aless.meupedido E/AndroidRuntime: FATAL…
androidasked 6 years, 6 months ago Álesson Maia 1 -
0
votes1
answer70
viewsSearch string snippets
In a search filtered in java using .startWith (query) for example: I want to search "Military Police" in the search I type "Police" and appears police, ok. If I type "military", does not appear in…
-
0
votes1
answer110
views"android.view.Inflateexception: Binary XM file line" when changing activity
I am currently developing an app for Android and I have a problem that ends up making my program stop working from the moment I press the button "Signin". The App has no problem at the time of…
-
0
votes1
answer322
viewsTake current Activity and put on another Activity
My app has an Activity which is a customer list and also a sales Activity. When I only click on a name on the customer list it opens the customer details. There’s all the customer data. So far so…
androidasked 8 years, 2 months ago Artur Mafezzoli Júnior 441