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
answer3874
viewsChange the edittext and selection color in edittext
I am using a Autocompletetextview and an Edittext, for email and password, respectively. Is it possible to change their color? Here is an image: Change the selection color and the color on the…
-
2
votes1
answer8352
viewsHow to catch the current date on Android?
I am developing an application and need to pick up the current date only, I used the Date data = new Date(); only it doesn’t work. I tried localdatetime also more was not, someone has some…
-
2
votes1
answer224
viewsDoubt about the functioning of the Audiorecord class
I’m a beginner and I was trying to understand how to record an audio using android and how it processes this audio. And during the searches I found this site:Audio Record The example works…
-
2
votes1
answer112
viewsSelected Item Listview Retrofit
I have an application that uses retrofit for connection, and in it I have a listview where I want to do a long click on it and select the position item and do a post on the webservice with this…
-
2
votes1
answer69
viewsModel receive context on Android MVP
I have a sqlite database, to use precise context, however, sending the context to the presenter and then pro model would be a violation of MVP, because it is part of the view, is part of Android.…
androidasked 7 years, 1 month ago felipe.rce 1,969 -
2
votes1
answer802
viewsAndroid - Textview Hyperlink to another Activity
Is there any way to format a Textview so that one of your words is a Hyperlink to another app Activity? In this case it is a kind of Dictionary, where in the explanation of the word may have another…
-
2
votes1
answer1171
viewsSave image to POSTGRES database with DELPHI Tokyo by Android App
I need to save a photo that is taken on the tablet camera and save it in the database. The field type is typea. I’m using the Timage component to view and reference the image, but I can’t save it to…
-
2
votes1
answer1008
viewsError inflating class android.support.design.widget.Navigationview
It is working correctly on most devices, however on other devices the following error is occurring: android.view.Inflateexception: Binary XML file line #16: Error inflating class…
java android xml android-layout navigation-drawerasked 8 years, 5 months ago Giancarlo Abel Giulian 3,999 -
2
votes1
answer576
viewsHow does content-type work in java?
I saw a video of a guy wearing the connection.setRequestProperty("content-type", "aplication/x-www-urlencoded"); But I don’t understand how it works, especially the "aplication/x-www-urlencoded".…
-
2
votes2
answers574
viewsHow can I change the Edittext selection and pointer color?
I want to change the color of seleção of the text in a EditText and also change the color of bolinha (name is pointer if I’m not mistaken) by java. It has to be the same as the image that follows…
-
2
votes2
answers593
viewsHow to prevent the user from typing in Edittext, but allow clicking on it to open a Datepicker?
I have an Edittext that when clicking on it opens a Datepicker, how to prevent the user from typing in Edittext? I tried to use edtData.setEnable(false) but clicking on editText nothing happens.…
-
2
votes2
answers1710
viewsTextview with scratched letter
how can I get this result ̶W̶a̶l̶l̶a̶c̶e̶ ̶R̶o̶b̶e̶r̶t̶o̶c̶ like this in the name of the first list below... the one on the list is crossed out because I did it on the server side.. the intention…
-
2
votes1
answer119
viewsRedeem user phone number
On Android, using Java, it is possible to redeem the device user’s phone number with the following code: TelephonyManager tMgr = (TelephonyManager)mAppContext.…
-
2
votes3
answers99
viewsFirebaseexception: Failed to Bounce to type
I’m trying to requisition an app for firebase. I can save data in the database normally, but when retrieving it, I find the following error: 06-20 12:07:15.151 28158-28158/sgk.com.br.sgk…
-
2
votes0
answers58
viewsIncompatibility android 4.4.2 with Ionic 2
I made an application in Ionic 2 and everything works perfectly, however, a user when using on mobile with android 4.4.2, some features, as for example, file upload, It does not work. Does not…
-
2
votes1
answer421
viewsHow to check if a button is visible?
I would like to know if it is possible to use a condition operator, such as if, to check whether a button is visible or not. If that’s how can I implement it? I made a few attempts using is.Enable…
androidasked 7 years, 1 month ago user86375 -
2
votes2
answers1591
viewsError while selecting emulator in Android Studio
Good afternoon. I’m starting to study Android and use Android Studio. I clicked to run the application and appeared the window requesting a new emulator. I’ve done this before on another computer…
-
2
votes1
answer496
viewsHow to find out if an Imageview has an informed photo
Hello, I want to create a condition that checks whether all the fields on the screen were informed by the user or not. If any have not been informed, I would like to present a Toast showing error.…
-
2
votes3
answers616
viewsHow to hide the title bar? Crash when changing android:Theme="@style/Apptheme"
I’m breaking my head here to hide the bar that gives the name of the app... I’ve tried everything I’ve seen on the Internet, nothing works... and when I change the android:theme="@style/AppTheme"…
-
2
votes1
answer358
viewsDependencies Gradle with error
Every time I try to introduce any API in my project and put Compile there in the dependencies of Gradle it gives error and does not come out of it. I’ve tried synchronizing too. The Gradle only…
androidasked 8 years, 5 months ago Artur Mafezzoli Júnior 441 -
2
votes2
answers397
viewsEdittext Spacing Help
I can’t get a hold of Edittexts on my project. the amount of Edittexts are generated according to the amount informed by the user, that is, it was programmed in the Java Code.…
-
2
votes1
answer194
viewsCreate responsive website app icon
I have site already all responsive and such, Just that I didn’t want the user to need to access the browser by mobile in order to access my site. I wanted to post an app from my site on google play…
-
2
votes0
answers40
viewsglClear emulator:416 GL err 0x506
When I try to run the app in Android Studio to see the preview of how this error is getting, I’ve tried to use another emulator , even different from the Nexus api…
-
2
votes1
answer229
viewsRemove an Imageview
Is there any way to remove an image in a Imageview or leave it empty via code? For example: I "Seto" img1.setImageResource(R.drawable.icon_circpreto); It has how to remove it via code?…
-
2
votes2
answers749
viewsHow to use Android Studio Interface Editor only?
I program for Android with Xamarin in the Visual Studio, but I don’t like his design editor at all, I can only use his editor Android Studio when I need it? I changed the design extension from .axml…
-
2
votes2
answers308
viewsDelete an editText when modifying another
I’m starting my studies on Android now, and I’m doing some tests. I have two Autocomplittextview fields, in both an id and a description is shown. X1 and X2 (fictitious names). The X2 list is…
-
2
votes1
answer927
viewsHow to share app audio for Whatsapp?
My code can open Whatsapp but when selecting the person does not send anything back to Whatsapp, how can I share audio from my app ? code I’m using public void onClickshe (View v) { Intent…
-
2
votes3
answers135
viewsEdittext style texts - Underline in Zigzag
I have an edittext that when it detects a specific word it highlights it for example: print("Destaque") The word print will be deployed. Only so far so good but I want every time it detects a…
-
2
votes2
answers882
viewsHow to organize data from a listview?
I have a list view of times where it says the name of the line, the stop , time and state. If someone can explain me how the organization works in android I would just need to know how to…
-
2
votes4
answers8186
viewsMobile does not enable USB Debugging
I bought a "Galaxy On7" for testing apps, however, when enabling "Developer Options" and activating it, when touching the "USB Debugging" option, nothing happens! Do not activate! In Prompt, when…
-
2
votes2
answers41
viewsUpdate Listview from a sorting Radiogroup
I’m trying to update a ListView populated with database data from an ordination of a RadioGroup. Here are my codes: private List<ApplicationInfo> mAppList; private SimpleCursorAdapter…
-
2
votes1
answer234
viewsAndroid json utf8
Good afternoon! I have a class that imports data json, but some characters are not recognized, I have to apply utf8 to them, but I’m not getting, below the function that matters the data. public…
-
2
votes0
answers72
viewsUpload files. only in Xamarin Android
I’m trying to convert a class Java for C# in the Xamarin.Android. The class Java that’s the one: private native boolean OpenDeviceCtx(Object obj); public native boolean CloseDevice(); public native…
-
2
votes0
answers278
viewsError: Failed to execute shell command "getprop,dev.bootcomplete"
Comrades, I’m having a problem running "Ionic Cordova run android --target=name of my device". The emulator normally opens with the Nexus 5X API 26 but before fully starting the emulator it returns…
-
2
votes1
answer197
viewsAdjusting images on different screens
I’m running the app on two emulators that have exactly the same resolution but different densities: 720 x 1280 160dpi 720 x 1280 320dpi I want the image to take the same space on the screen. I…
androidasked 8 years, 4 months ago Levy Schiavetti 121 -
2
votes2
answers157
viewsIcon SVG created with Inkscape is not properly imported
With Inkscape app, I’m trying to create my own custom SVG icons and then import them to Android Studio. On import to Android Studio I get the following error message ERROR@ line 29 <defs> is…
-
2
votes1
answer39
viewsHow to delete a SD Card file?
I have an application that saves information from a requested table within Sqlite in a CSV file and then that file is transferred to an FTP. I need this file, stored in my SD card, to be deleted as…
-
2
votes2
answers604
viewsHow does firebase work for sending notifications?
This question is not about codes but understanding the functioning of firebase. I want to build a system that notifies the user in an Android app through a PHP web service. For what I researched,…
-
2
votes0
answers59
viewsShow notifications on any screen
I have an app and want to make it show a pop-up style notification, like Whatsapp and/or iOS reminders, but with a custom layout. I’ve searched and so far nothing, anyone has any idea how to do?…
-
2
votes2
answers347
viewsError while calling Activity
main activity import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import…
-
2
votes2
answers990
viewsI can’t change the default React app
I made some changes to the file index.android.js and saved, when running command React-Native run-android, the app remains the same!! The code is like this: var React = require('react'); var Text =…
-
2
votes1
answer97
viewsInitialize element from one fragment into another
I have two fragments attached to my Victoria. My doubt is, how I initialize an element that is in another fragment? In a fragment, to access Activity I use the code Textview tv =…
-
2
votes3
answers529
viewsTurn Jsonobject into Jsonarray
How do I get the data from this Json? I want to turn it into a Jsonarray to go through, but it’s a Jsonobject... { "1":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"},…
-
2
votes0
answers642
viewsDisplay button while sliding Listview item
I need to make two buttons appear when I slide an item from ListView to the left. I even managed to do that, but it’s pretty ugly. I would like them to appear as if they were being "pulled" from the…
-
2
votes1
answer808
viewsOrganize layout files in Android studio
Following, I have a project that will be huge in the end. currently I finished 1 module of a total of 4 modules and it is already full of layouts, etc. Follow an image just for you to be aware of…
-
2
votes2
answers124
viewsSend data from one method to the other in the same Activity
I know that to send data from one activity to another is the following: String value = filename; Intent intent = new Intent(getApplicationContext(), ReceberNome.class); intent.putExtra("nameFile",…
-
2
votes2
answers156
viewsCalling an internal class method from outside
I have a class B and in that class I need to call a method, getSomething(type, option), which is defined in a class A which is a class which extends AsyncTask and which is within Class C. My Class C…
-
2
votes2
answers79
viewsAndroid - How to access an Activity through a Papplet?
I have a class with extends PApplet and I want to migrate from it to another with extends Activity I tried through a Intent but I couldn’t. Body of the Papplet class: public class CamMain extends…
-
2
votes1
answer193
viewsSpinner does not load data from the.xml string
My spinner only appears the arrow. no 1 has to show the States and so informed 2 shows the cities of that state This is the java code. public class PropertyRegisterActivity extends AppCompatActivity…
-
2
votes1
answer154
viewshow to hide an item in the menu
I created a menu with buttons to save, back and add, and would like when you click add it to be hidden or disabled. I tried to use MenuItem item = menu.findItem(R.id.my_item); in which I saw in this…