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
votes0
answers200
viewsHow to change the color of the notification icon?
I have an app with push notification. But the icon I assign to the notification gets the full gray color. I want to know how to have colored icons in the push notification, like these examples: The…
-
2
votes2
answers1454
viewsCalling a new Activity through a Fragment
I have the following code: Fragment: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View i =…
-
2
votes1
answer52
viewsNoclassdeffounderror: com.itextpdf.text.Document error after updating SDK
I have a database on sqlite on Android, and export report to pdf using the library itextpdf. But recently after updating the Android SDK, it started from the error in the line below: Document…
-
2
votes1
answer50
viewsOnclick crashing app, in database connection
Hello. I am developing a simple app with login and password, but there are always problems when trying to log in. It is worth saying that I am using Okhttp. This is Java: EditText txt_Email,…
-
2
votes2
answers255
viewsMask in Textedit
I have a form fuel intake and I needed a liter mask that had 3 fields after the comma. Example: 002.555 liters I needed the field to be filled with "000.000" and that, were filled back to front as…
-
2
votes2
answers2499
views -
2
votes1
answer567
viewsSet text if selected android checkbox
I have the following checkbox: <CheckBox android:id="@+id/papel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Papel" /> if it is selected is to write…
-
2
votes0
answers27
viewsWhen deleting gallery photo the file still exists in the gallery without image
I’m trying to delete a photo gallery via code by android studio. After the execution of the code the photo file still remains there without the image containing an exclamation as image. The name,…
-
2
votes1
answer47
viewsError using date type on android
I have this code: String dt = "2017-01-04"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); try { sdf.parse(dt); } catch (ParseException e) { e.printStackTrace(); } But when I use dt , in…
-
2
votes1
answer320
viewsUse a layout folder for more than one size
I have a Tablet(7") and a smatphone(5"). My layout folders are: layout > Has almost all layouts layout-large > One of the screens(Screen A) will behave differently to wide layout-normal-land…
-
2
votes1
answer368
viewsOpen an Edittext when a Switch component is turned off
I have a Adapter custom rendering list, in this list has a switch that by default comes on and when the user shuts down, the system validates a rule and if that rule was true, he has to show a…
-
2
votes0
answers64
viewsOutofmemoryerror when starting Activity sometimes
I am developing my software engineering project that consists of an Android application and I have a problem in the transition between Activity. The problem is based on two screens: Login screen,…
androidasked 8 years, 7 months ago João Felipe Gonçalves 68 -
2
votes1
answer54
viewsRemove child from an Expandedlistview
Hello, I would like to know how to remove a subitem from an Expandedlistview, in other words remove the Adapter item, where the Adapter receives a Map<Categoria, List<SubCategoria>> and…
-
2
votes1
answer4540
viewsSubstitute for the Progressdialog
In my apps I used Progress Dialog however I read that it is depreciated from the O API . According to this link I wanted to know which component can be a substitute for it, because I used it as…
-
2
votes2
answers190
viewsHow could I get an image inside a <Scroolview to stay fixed and all the content "scroll" through the "bottom" of the image?
Hello, I wonder how I could do to keep a picture fixed and the information rolls underneath it, with all this inside a Scrollview, follows layout print and XML Code: <ScrollView…
-
2
votes1
answer59
viewsHow to improve the performance of an Android app
I am developing an Android application that receives data from a webservice (Json php). The structure of the project: To get the data I’m using asynctask, I have a progressibar in preExecute and…
-
2
votes1
answer363
viewsHow to do date validation?
How to validate the date as the date of birth? Can not put the date in the future. data.addTextChangedListener(DateUtils.insert("##/##/####", data)); mData = data.getText().toString();…
-
2
votes2
answers1079
viewsPermission for android app
I created an app in eclipse for android, when the phone install it does not give permission, in case it was an APK of web streaming radio, on Samsung devices works 100%, but in Motorola do not work.…
-
2
votes1
answer2788
viewsProgram for Android without Android Studio
I have a computer with Linux Mint that can not run Android Studio very well by having low settings, I wonder if there is a way to develop applications for Android using an editor and compile by…
-
2
votes1
answer13850
viewsWorking with Radiobutton and Radiogroup
I’m trying to make a screen where the user would have to choose between the options on <RadioButton and if he chooses the right one counts for the right one and otherwise for the wrong one,…
-
2
votes1
answer105
viewsData Binding does not work
I’m trying to use the Data Binding on Android. For this I added the classpath in the application: buildscript { repositories { jcenter() } dependencies { classpath…
androidasked 8 years, 7 months ago Thiago Luiz Domacoski 7,310 -
2
votes2
answers1483
viewsCompress image size
How to compress the size of an image so that it is smaller ? public void onCaptureImageResult(Intent data) { Bitmap thumbnail = (Bitmap) data.getExtras().get("data"); ByteArrayOutputStream bytes =…
-
2
votes2
answers1687
viewsHow to decrease the size of the text in a Listview?
I would like to know how to shorten or increase the text of ListView. In the TextView there is the property android:textsize="15";, which property would be equivalent to textsize in the ListView? I…
-
2
votes1
answer236
viewsXamarin - Dependencyservice NULL
Dear friends, good morning! I started seeing a tutorial to develop a simple app in Xamarin with Sqlite, but I have a problem, with an object that calls Dependencyservice, they always come null, and…
-
2
votes1
answer146
viewsScripting language for JVM and DVM
I intend to use a scripting language attached to Java SE applications, my fear is to develop something and later have difficulties in porting it to Android platform. I am not professional in the…
-
2
votes0
answers60
viewsUpdate my android app
I have an app android with an update button, where low apk updated and installed, but it is necessary to close the application, install the new one and start it again. Is there any other way to…
androidasked 7 years, 3 months ago Alexwell Souza 47 -
2
votes1
answer224
viewsI would like to make a point limit for my game developed on android
I would like to make a point limit for my android game, example: when you reach 100 points he open another blank screen saying for example congratulations! but I’m having a hard time doing this is…
-
2
votes3
answers420
viewsDouble Tap Opens Two Activitys Android
I’m having a problem with a list where I use a RecyclerView, by clicking on an item in the list, OnClickListener is dealt with in the ViewHolder that RecyclerView:Meuviewholder: public…
-
2
votes1
answer124
viewsNavigation Drawer - Call up camera via Menu
I’m having a problem, take the Layout of Android Studio Navigation Drawer to do my project, but when I want to call the camera class the error. I created another class for the camera, where I have…
androidasked 8 years, 6 months ago Juliano Morche 116 -
2
votes1
answer42
viewsParameter crossing error from an Activity to a Pageadpter
Good night, I have an Activity Class that generates an Array String, I need to pass this array to another Class but this class is a Pageadapter. What I need to do is take the Activity Filearray…
androidasked 8 years, 6 months ago Fabricio Aguiar 129 -
2
votes0
answers241
viewsViewflipper Dinamico - Android
Hello, I need to create a dynamic viewFlipper with 12 Imagesview or when loading Activity I need this Flipper to upload the images for me. Below is my code: In XML <ViewFlipper…
-
2
votes1
answer238
viewsHow to obtain Arraylist from Listview?
I have a screen in my application with several fields, spinners and a listview, one of the spinner is products. When I select a product in the spinner and click on a button called add, the…
-
2
votes1
answer379
viewsProgress Bar with Asynctask and multiple download links
I have an Asynctask that downloads several images that I pass through an Arraylist with the links to download and I use a Progress bar and it is not working perfectly. The progress bar restarts to…
-
2
votes2
answers759
viewsHow to give Restart in an Activity?
I want to re-start my activity without the help of buttons, I want it to restart automatically within a while. How do I do this?
-
2
votes3
answers7082
viewsYou uploaded an APK with an invalid signature
I went to put my apk on the console and gave this following error. Sending failed You have uploaded an APK with an invalid signature. apksigner error: ERROR: JAR_SIG_NO_SIGNATURES: In JAR Signatures…
androidasked 7 years, 3 months ago renan silva das neves 159 -
2
votes1
answer1118
viewsVoice recognition on Android
I did some research and need help to implement voice recognition in an application with Android Studio, I’m having some difficulties in finding support material. Thanks in advance!
-
2
votes1
answer55
viewsonFling conflict with onSingleTapUp in Gesturedetector
I have an application running on Android with a Gridview (grid). On this grid I need to detect various events and so I’m using a gesture detector. Only by clicking on a grid item, sometimes the…
-
2
votes2
answers935
viewsAndroid Studio - Firebase - Search & edit data
I’m creating an app using Android Studio, which stores customer information in Firebase : I need to create a way to search for these clients by name or CPF, if it is necessary to change something,…
-
2
votes0
answers548
viewsAndroid client communication with Python server
I have an extremely basic server in Python and an Android client, but I can’t establish the connection. I have a client also made in Python and other in Java, and both connect perfectly to the…
-
2
votes3
answers883
viewsValidate whether INSERT was successfully executed or not (JTDS)
I would like to know a form of validation to know if the Insert was successfully executed, I have no idea how to do this because the execute() method does not return anything!!! Connection…
-
2
votes1
answer434
viewsCheck Connection to bank and validate to user
I would like to know the following: I am trying to make an application that makes several connections to the database. I always wanted to check the connections and if the connection is not available…
-
2
votes1
answer3814
viewsRegister user with photo in firebase
Good night! Guys, I’m registering users in my app and would like to in addition to the personal data I will save in the database Realtime I would like to also save the profile photo and a cover…
-
2
votes2
answers410
viewsAndroid - Transfer Data and Change Fragment by Click
Hi guys. I need help to transfer from Fragment when I click my button inside a Listview. Currently I have a Mainactivity (extends Appcompatactivity) to manage the Fragments. Below are some images of…
-
2
votes0
answers695
viewsHow does data encryption work in Firebase?
I am developing an Android messaging application using Firebase and I realized that it will be necessary to protect the user data and the messages exchanged by them, because at the moment it is…
-
2
votes1
answer277
viewsNavigation Drawer without interaction when clicked
I’m using the default menu Navigation Drawer and complemented the method that already comes in the project to open my activities(Atividades). I have already created the classes and called each of…
-
2
votes3
answers1544
viewsHow to go to the next field( an Edittext) without having to press Next on android?
I am doing a crossword and each field is an Edittext as in the example below : // GRIDLAYOUT USADO PARA ORGANIZAR OS EDIT TEXT EM UMA MATRIZ <GridLayout android:layout_width="match_parent"…
androidasked 8 years, 5 months ago Linkon Louvison 37 -
2
votes1
answer4359
viewsChange android domain design
I need to change the domain of my android project. Example: When I created the project I placed a fictional domain: br.com.dominio-x Then when the project evolved, I registered a valid domain:…
-
2
votes1
answer937
viewsCheck in real time what you have typed in Edittext Android
I have an Edittext that will receive the user’s data. It will click and type a number between 1 to 10. I was wondering if there’s any way I could check once he jumps to another Edittext, if he…
-
2
votes1
answer306
viewsPlayerprefs Unity3d
I’m developing a game for android but I’m having a hard time saving the type of input. For example in this game the user can choose whether to play on touch or accelerometer, in Unity + remote works…
-
2
votes1
answer230
viewsResources$Notfoundexception: Resource ID #0x7f060007 type #0x12 is not Valid
When finished creating a listFragment and calling it in main the apk terminates giving the error below: Here is my Listfragment: ArrayList<HashMap<String, String>> data = new…
androidasked 8 years, 5 months ago Carlos Diego 683