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
votes1
answer93
views3 layouts and an Activity
I have an actyvity_main, containing 3 radiobuttons (each one corresponds to a layout), and a button. After the user selects the option, he clicks on the button, which makes a call to another…
androidasked 9 years, 6 months ago Makson Santos 1 -
0
votes1
answer56
viewsHow to create a template on Android?
Regarding that answer of this question, I asked the author the question If he chose to store in an Object Array, this question had an image what could be done. his answer you can create a template…
-
0
votes1
answer1004
viewsDelete item from Listview
I have a ListView that displays the title of each subject. When I click on the item another is displayed Activity that shows the details about the title. In this Activity has a button for rule out…
-
0
votes1
answer124
viewsList Adapter duplicating positions in Listview
I have a class called "Adapterlistplayers" that extends the class Basedapter and in it I inflate a layout that contains a Checkbox and an Imageview. Class Adapterlistplayers public class…
-
0
votes1
answer56
viewsDoesn’t List View exclude the first time?
Hello, my Listview is not deleting right, because I click on the item, open the menu, I click delete, it leaves the Listview, but it’s still in the database, so I have to exit the screen and go back…
-
0
votes0
answers64
viewsInflate Toolbar in Stepper
I need to create a Stepper in my application that I got the library on Github https://github.com/shivasurya/materialsteppers I managed to implement the application, however I want to put a Toolbar…
java android android-layout android-fragmentasked 8 years, 9 months ago Joel Messias Do Nascimento 103 -
0
votes0
answers47
viewsAndroid Toolbar getting behind topbar
What may be occurring, Toolbar is staying behind the topbar as in the image below This is happening in the versions 4.4.2 and 4.1.1…
-
0
votes0
answers155
viewsgetView being called several times
I am creating an Android app and I came across a problem, I created an Adapter to fill the items on my screen but the getView method is being called several times when I select the product thus…
-
0
votes0
answers86
viewsHow to choose a gallery video to be default and always play?
I am working on a program that is interactive with users. With this, the user can choose image or take a photo and replace with the one that was in ImageView. When you click on ImageView, a video of…
-
0
votes1
answer699
viewsChange cardview and text color of a listview
I have a listview with a card view and inside the card view I have two text, I know how to activate the contextual action bar when you give long press in the list view and how to change the color of…
androidasked 8 years, 9 months ago felipe.rce 1,969 -
0
votes1
answer35
viewsClass call without success
I have done practically the same way, changing only the names of the variables in another file of the same project. However, when arriving on the line to call the application class to and gives…
-
0
votes2
answers822
viewsHow to store images in an Android vector?
I have images inside the drawable and to access it simply R.drawable.myimage. How to store this image in a vetor?
-
0
votes3
answers3188
viewsHow to make an image fit to various screen sizes on Android?
I’m using a button with background image <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btn" android:background="@drawable/myimage" /> I…
-
0
votes0
answers1263
viewsList data in a List View
I’m studying programming for Android, I’m making a query in the database Sqlite, however I can not play the data obtained in a listview, it always returns me my string in full instead of the value…
-
0
votes0
answers56
viewsNull Pointer Android
While running the application, this Adapter error appears: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.LayoutInflater.inflate(int,…
-
0
votes3
answers156
viewsANDROID - ERROR: Unchecked cast: java.lang.Object to java.util.vector
I’m trying to fill a spinner city according to the state selected in another spinner via webservice. But this giving an error in this line in the class usuarioDAO. Vector<SoapObject> resposta…
-
0
votes1
answer748
viewsApi Maps Offline
Good evening, everybody, okay? I wonder if it would have as my application to open the map when the user is without internet ?
-
0
votes1
answer226
viewsPass data between Activity Android
I’m new to programming for android, and I just made my first app, but I’m having a problem, which is: My game has the start menu with the button to start the game and the information about the high…
-
0
votes0
answers27
viewsHow to recover the project by the executable?
I have an app on Android, only I lost all my project and it and it is only installed on my phone working properly, is there any way I can recover all the code just by the executable that is on my…
androidasked 8 years, 9 months ago Gabriel Santana Bonatto 319 -
0
votes1
answer499
viewsHow to generate signed apk with different keys
My problem is this I have an app on Google Play that I climbed some time ago. Create a key and its respective passwords. Now I made some improvements and when I went to generate the signed apk I…
androidasked 8 years, 9 months ago Thiago Luiz Domacoski 7,310 -
0
votes1
answer35
viewsKnow how many chips an Android device has
I need to know if an Android device has a chip (SIM card) or not. And if you do, I need to know if you only have one or more. Thank you very much to everyone who tries to help me. I’ve researched…
androidasked 8 years, 9 months ago AnselmoGóis 11 -
0
votes2
answers109
viewsNullpointerexception on Android
I have a problem listing the photos in the folder DCIM on Android. It gives loop error for, launching a java.lang.NullPointerException? What can it be? See the code that I get the information from…
-
0
votes1
answer89
viewsBuild with problems
Follow the project settings: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' } } allprojects { repositories { jcenter() } } apply plugin:…
-
0
votes0
answers240
viewsHow to force sign in with Android?
I’m having trouble developing a piece of my app. Come on. First I need to click on a button and access a certain link and then the application return me a PDF. This already exists through the…
-
0
votes1
answer284
viewsHow to center an imageView on the screen via code?
I created a imageViewvia code and would like to know how to center it on the screen
-
0
votes0
answers63
viewsHow to share the bank with two android apps?
Hello, I have 3 apps, one makes insertion in the database and another shows a list of these data (do not ask me why this idea) and I needed a third show a record Count in a table of this database.…
-
0
votes1
answer418
viewsDo not save photo to Android folder
I’m having a problem to save the photo in the Android images folder. Simply it does not save the photo, IE, nor runs the TRY of ActivityResult. He even puts it on ImageView: // CAPTURAR FOTO BOTÃO…
-
0
votes1
answer1462
viewsHow to search an Ionic Framework Angularjs list
Guys I have an application of Ionic, however I need to do a search or filter on the contacts that appear on the screen but I’m not getting and the worst that does not return any error: My control:…
-
0
votes1
answer1029
viewsHow to Implement "zoom in" and "zoom out" for imageView on Android?
I have an Activity where I display an image in the screen size, but I needed to implement the zoom in the image, the same zoom as the Android system that has in all galleries and browsers Android.…
-
0
votes1
answer90
viewsWhen creating an imageView and Textview via code how to remove via code?
Good create that way TextView textView = new TextView(this); textView.setText("Alguma coisa"); LinearLayout linear = (LinearLayout)findViewById(R.id.layoutVertical); linear.addView(textView); and to…
-
0
votes1
answer38
viewserror: 'List ' is Abstract cannot be defined
I intend to use java with Android Studio to make a calculator, however, every time I click an add button to a list the values of these buttons. But having error in the list statement. someone can…
-
0
votes1
answer132
viewsImage captured from Sqlite gets black background in Imageview
In my application, I have the need to capture an image that is on a basis SQLite in format byte (Blob) and then convert it to Bitmap in order to display it in a ImageView. My problem is that the…
-
0
votes1
answer54
viewsPage does not load on screen size
I want to change the code to open the screen size. I am using: import flash.geom.Rectangle; import flash.media.StageWebView; var webView:StageWebView = new StageWebView(); webView.stage =…
-
0
votes1
answer357
viewsHow to call a Service through another app?
I have two apps, the app 1 has several CRUD, the app 2 has several services and notifications. When trying to start Service by App 1, this is happening: java.lang.Securityexception: Not allowed to…
-
0
votes1
answer44
viewsIs there any way to disable a view without leaving it gray?
I would like to standardize the views, some screens to view and edit and others just to view. In view mode I leave the views disabled. I’m trying to keep the appearance similar, using the following…
androidasked 8 years, 8 months ago Rodrigo Santiago 1,822 -
0
votes0
answers37
viewsHow to block a user for a few hours
In my Android application, we have a policy of use of the application and if some rules are violated by the user its registration should be suspended for a few hours. I use Parse.com as a back-end…
-
0
votes0
answers72
viewsHow to animate button before it is clicked
Here’s an animation I’m using in my project, only it gets animation as soon as it’s clicked: Button refresh = (Button)findViewById(R.id.refresh); refresh.setOnClickListener(new…
-
0
votes1
answer240
viewsUncaught Referenceerror: Ionic is not defined
I’m trying to perform a "Android Push Notification" with the Ionic.io. I’m caught in a mistake I can’t fix: "Uncaught Referenceerror: Ionic is not defined" I’ve tried everything and I can’t fix it.…
-
0
votes0
answers285
viewsgetResources(). openRawResource Resources$Notfoundexception
I use the command InputStream input = getResources().openRawResource(R.raw.tabelas); no problem in an app. Only if you use the same command in a new application, the error occurs…
androidasked 9 years, 5 months ago Daniel Tibúrcio 21 -
0
votes1
answer123
viewsRun Android method when application is terminated
I have an app that downloads and sends files via ftp. When the app starts it receives a text file and would like to send the file when the application is closed. I searched on how to do something…
androidasked 8 years, 8 months ago Gustavo Rotondo 149 -
0
votes1
answer159
viewsHow to create a style for Imageview on Android?
How to create a format style for ImageView passing to length and height in this style so it gets "formatted" on the screen?
-
0
votes1
answer172
viewsHow to remove Datepickerdialog days?
How can I remove the days of DatePickerDialog I wanted a calendar with only year and month, if anyone knows a way to do that and can help me?
-
0
votes1
answer155
viewsKnowing if an app is open through a Broadcastreceiver
I have a BroadcastReceiver that displays a notification to the user! But if the user has the app open (with the screen active), I would like to cancel the notification! Is there any way to find out…
-
0
votes1
answer114
viewsIdeal image size
Someone would know me what is the ideal size for this type of image, where I make the configuration to leave in this same format of the image below.…
-
0
votes1
answer485
viewsCheck Facebook button login on Android
Good evening, I’m new to programming, I’m starting now. My question is the following, I started studying the Facebook Login API, she is logging in normally and forwarding to the next Activity, so…
-
0
votes0
answers93
viewsMake a condition to apply mascara to an Edittext
I can’t make a condition to apply mascara in an editText anyone help me please ? final EditText tel = (EditText) findViewById(R.id.phone); // Armazene seus TextWatcher para posterior uso //telMask =…
-
0
votes1
answer121
viewsHow to use Sharedpreferencesfrom Android? Can I choose several filenames?
I’m learning to use android by making an example application with various types of functions of Android Studio. At the moment I have a list presented in a Listview and I would like to save it. I use…
-
0
votes0
answers163
viewsShared Preferences - Error in some cell phones
Is there a reason for an application that uses Shared Preferences to work on only a few phones? Yes, the reason the particular application stops working on some phones is the Shared Preferences. If…
-
0
votes1
answer460
viewsDouble check - Java
I’m not getting this check I’ve tried everything, but always gives me this mistake: java.lang.Numberformatexception: Invalid double: "" If anyone can help, thank you. package com.calculadora; import…
-
0
votes0
answers51
viewsHow do I inform if the user already exists when I press the save button?
How do I press save button and inform if user already exists. public void salvar(){ String comando = ""; if (this.getId() == -1){ comando = String.format("INSERT INTO cadastro (nomedousuario, senha)…