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
-
-1
votes2
answers675
viewsPosition the text in the center
I have this Textview: would like the text to be centered vertically and horizontally in relation to the black area, which is the background of Textview itself, which defined the height of 100dp,…
-
-1
votes1
answer791
viewsHow to check if the field is filled in
I have some Edittext that must be filled. The button that checks if it is filled is an imagebutton in actionbar. I tried to do it in a way but it didn’t work. the mistake is…
-
-1
votes2
answers348
viewsDatabinding error in Android Studio 2.1.2: package databinding does not exist
I am trying to learn databinding and there is a strange error when I try to build: Error:(8, 54) error: package br.com.aulas.vitor.cadastrodecarro.databinding does not exist My Build.Radle looks…
-
-1
votes2
answers2782
viewsSend a message via Whatsapp to a specific contact
I’m trying to send a text message via Whatsapp to a previously selected number. The contact chat opens, but the message contained in Extras does not appear in the text box. See: var uri =…
-
-1
votes2
answers1729
viewsWhite screen on app startup - Splash Screen
I created a home screen for my application using an empty activity that is visible for 3 seconds with a background image. Usually, the app starts with a white screen before the background image…
-
-1
votes1
answer47
viewsWebview + videoview open HTML videos and play in videoview
Look friends I’m new on Android platform But I wanted a simple example of how to open an HTML with video links and play them directly in my app’s video view I am grateful to whom you want example to…
-
-1
votes3
answers542
viewsBluetooth communication between android and Arduino for interaction with grbl
How to do Android then connect with Arduino via a Bluetooth module for O Arduino receive data. I just need to understand the part of Android would be a Bluetooth Serial. I found this code on…
-
-1
votes1
answer2317
viewsConfigure JDK in Android Studio
I need to configure the JDK path in Android Studio via terminal without root access to a script. The computer has JDK/JRE 7, I tried to change the value of some variables: PATH, JAVA_HOME, JDK_HOME,…
-
-1
votes1
answer93
viewsHow to keep Textview centralized in the emulator?
I’m a beginner in development and I started learning how to develop for Android with Android Studio 3.1.1. In one of the exercises I am doing, it is necessary to recover which checkbox was checked…
-
-1
votes1
answer172
viewsAndroid Studio Doesn’t Recognize Gradle Libraries
I took a project that has several external dependencies, like facebook lib, even some of the android support itself. The design compiles normally and runs perfectly on the device. The problem is…
-
-1
votes1
answer501
viewsOndestroy android studio
Whenever gave an error in android code should not call onDestroy? For what I have seen here it calls onDestroy only when it is used when using Finish().. correct? In case an error occurs wanted to…
androidasked 6 years, 6 months ago Anderson Scherdovski 85 -
-1
votes1
answer37
viewsRecover data from Parser.com pointer type
I have the table in the Parser database, which is called Comentario. Inside it I have the comment field and a field called "pointer" pointer that points to the objectId of another table called…
-
-1
votes2
answers761
viewsError - Binary XML file line #30: Binary XML file line #30: Error inflating class Fragment
I have an Fragment...class in which I am inflating an xml file. This Fragment is being called in Mainactivity...but when executed this error appears java.lang.Runtimeexception: Unable to start…
-
-1
votes1
answer99
viewsHow to make a PDF file in my APP’s Assets open by the android’s native PDF reader?
I have an APP that needs to open some PDF files (laws) that should come along with the application. The idea is to call an Intent to open these PDF files by Android’s own native PDF reader or a PDF…
-
-1
votes2
answers57
viewsHow to use the same Drawer Navigation menu on multiple Activitys without repeating code?
How to use the same menu Drawer Navigation in several activitys without repeating code?
-
-1
votes1
answer271
viewsAndroid Firemonkey virtual keyboard repeating words
We have an Android app that is experiencing typing problems after sending a message. The problem happens when we try to insert a new message, after typing the first character, Tmemo automatically…
-
-1
votes1
answer23
viewsAndroid List View with "Complex" Layout
Until today I had not needed to use layouts that escape the pattern of a list for example. This time, I need to create a list view with a sort of header. For example: [{categorias: [{1, 2,…
-
-1
votes1
answer49
viewsSending mobile information to the web
Good morning my dear! I want to collect some data and send some information from Mobile (Android) to a website I am developing with (Python+Django). However I do not know the name of this cell phone…
-
-1
votes1
answer1024
viewsjava.lang.Runtimeexception: Unable to start Activity Componentinfo {...}: java.lang.Nullpointerexception
I’m trying to rewind facebook data and I’m getting this error. Logcat 10-24 00:46:41.230 7526-7526/sptour.hotmail.com E/AndroidRuntime: FATAL EXCEPTION: main Process: sptour.hotmail.com, PID: 7526…
-
-1
votes1
answer20
viewsAndroid class to trigger events, Batch Routine?
I need a class that, from time to time, tries to cross-reference database data and depending on the result send a notification to the user or modify/include database information. I don’t know if…
-
-1
votes1
answer46
viewsDownload photo URL without file name
I use to download files and photos the Glide or the Retrofit but had never come across the need I’m having now. The url is type http://meuserver.com/user/4564654/qrcode the number is the user id and…
-
-1
votes3
answers1432
viewsConvert Double to Integer
I would like that in the TextView where the value of "trees to restore" appears without a point or zeros. In the situation below appears "180.0000000" and should appear "180". Is he the type Double,…
-
-1
votes1
answer158
views -
-1
votes1
answer36
viewsBest practice to call a new screen
I have a Activity containing a RecyclerView, by clicking on it opens a Dialog with the selected item information. And in that Activity has a FloatingActionButton, I want you to call a registration…
-
-1
votes1
answer297
views(Android studio) How to get a user id from their email in Realtime Database (Firebase)
I would like to know how I can get an id of my database in firebase by email. For example I have the email [email protected] and would like to get his id just by email. It is possible?
-
-1
votes2
answers56
viewsAndroid change the color of a button for 1second
I have an array that contains integer numbers from 0 to 4. {1,4,0,3,2} need a button to blink a certain color according to the sequence. How this is done ?
-
-1
votes1
answer389
viewsDetect the mobile operating system and redirect to a specific page
Good afternoon guys, all right? , I would like someone to guide me on something, I’m trying to implement on a website, a button where depending on the operating system, it redirects to a website.…
-
-1
votes2
answers601
viewsPosts Firebase in English
I made the registration of users by Firebase and after the registration is sent to the email to the user validate access. However, Firebase messages are in English. There is the possibility to stay…
-
-1
votes1
answer718
viewsDelete a log from firebase auth
I need to delete a record from Firebase Auth, I am using the following code: FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); user.delete().addOnCompleteListener(new…
-
-1
votes1
answer746
viewsSqlite giving "near "CREATE" error: syntax error (code 1):"
Does anyone know what’s wrong to be making that mistake? I/System.out: ERRO 1 :android.database.sqlite.SQLiteException: near "CREATE": syntax error (code 1): , while compiling: CREATE TABLE…
-
-1
votes1
answer34
viewsDoubt about images on Android
images should be in the drawable or mipmap folder in my Android project? I’ve been using the mipmap folder. There is some difference in using these folders in an Android project?
-
-1
votes1
answer493
viewsPush notification in hybrid app
I’m creating a hybrid Android app, which is actually a webview running a system, hosted on some server, made in php. I need to deploy a notification system (Push Notification) that sends…
-
-1
votes1
answer1633
viewsRun python script on android via one-click file extraction
Talk to me guys, How do I convert a script made in python to run on android? My script is very simple, only to extract a file that will always stay in the same place, do not need a graphical…
-
-1
votes2
answers228
viewsHow to pass a search parameter in the retrofit with Kotlin?
I am trying to use the Retrofit library to make HTTP requests for the API: API Star War, with the Kotlin language, however I don’t know how to correctly pass a search parameter to an API function.…
-
-1
votes1
answer49
viewsHow to get values from a Textview of another Activity?
I would like to get the email that was typed on the login screen and with this value pass to another Activity.
-
-1
votes1
answer30
viewsAndroid task flow app?
You can create an application that does a "path" for the user? For example, when running the application it calls an Intent pro user set the time and the application "waits" the user events to go to…
-
-1
votes1
answer216
viewsType of Android kernel
The Android operating system developed by Google is a monolithic kernel or microkernel?
-
-1
votes2
answers54
viewsImplement a Layout in Android Studio
I want to implement a layout like this in Android Studio, I searched already in Google, but I did not know to refer to this type of bar I want to do, then I made this image. I think it is quite self…
-
-1
votes1
answer22
viewsCapture images simultaneously on two USB cameras at regular intervals on Android
Hello I would like some tips on how to develop on Android an application for capturing simultaneous photos at regular intervals, from two USB cameras (MJPEG M12 Lens AR0330 Dual Stereo Micro Mini…
-
-1
votes1
answer99
viewsError in Java database
Hello, I "created" an application with user registration and login, after the login screen that comes the problem, the system to log in is working, started to give problem after I created a screen…
java android android-studio sqlite android-recyclerviewasked 5 years, 7 months ago Gabriel Delfino 51 -
-1
votes1
answer60
viewsGet multiple edittext results in a Recyclerview
I have a recyclerview, being that I am creating for each item in the list, an Edittext(via XML). Since the purpose of that edittext is to be filled with the amount of ITEMS that is desired. Soon…
-
-1
votes1
answer40
viewsEdittext via Java
Hello, I am developing a custom view and would like to know how it would be possible to add an Edittext via Java (without using xml, and without referencing the R class because it would be via java…
-
-1
votes1
answer92
viewsHow to delete an external library
How do I delete external libraries that generate version 28 incompatibility. It already deletes manually in the directory. idea/Ibraries and also clicked on them and had them deleted in both cases…
-
-1
votes1
answer64
viewsProblems with cast in Reflection
Good afternoon. I’m new to using the java Reflection API. I’m having the following problem, when trying to create a generic Dao class to be used in a CRUD for sqlite on android, I can’t cast a field…
-
-1
votes1
answer37
viewsIONIC and Cordova build error
Well, I searched everywhere and could not find the solution. I give the command "Ionic Cordova build android" and appears this error below. Taking that I have already created the "Plataform" however…
-
-1
votes1
answer756
viewsjava.net.Socketexception: Connection reset
I have a web service that validates the users of the application that runs on Android. In positive case the system returns a JSON with the information that is ok and to which database that user has…
-
-1
votes1
answer40
viewsI’m finding it very complicated to fix the layout in xml
I want to make a simple menu. But it gets all crooked Why do I do? Someone gives me tips? I’m new to android. <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
-1
votes2
answers553
viewsHow to load a Combobox in Firemonkey for Android
I have an Edit and next to it a Combobox. The idea is that Edit displays the registration id and combo the description. And when changing the combo option also change the id on Edit. In the VCL to…
-
-1
votes1
answer145
viewsExport data from a listview to PDF
Hey there, guys! What do I need to export data from a listview on android to a PDF document? I would like to write a PDF file with all the data contained in listview.
-
-1
votes1
answer177
viewsHow to access a field (value) of a JSON
I got a problem, I got this JSON…