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
answer300
viewsCalling methods from another class
In case I need to call a method of another class to perform an insertion in the database and I have to pass an object of type Usuario as a parameter Code: protected void onCreate(Bundle…
-
0
votes1
answer137
viewsCardview in API 10
With normal background: When changing to another color, a line below the Textview: xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer31
viewsSend selected photo in the gallery to the bank along with form, using web service php
Good people, I’m kind of terrified, I spent hours trying codes and did not work, send a selected photo of the gallery along with some data of a form on android, if someone can give me a light there…
androidasked 8 years, 5 months ago Juliano Morche 116 -
0
votes0
answers48
viewsProblems with Json receiving inner value
I have this code which in turn what it does is to fetch an id from the database but the first value it will fetch is 0 past 1 second it will fetch the correct value tested with a output text .…
androidasked 8 years, 5 months ago Tiago Coelho 739 -
0
votes1
answer24
viewsHow to prevent the line from losing the color reference in Expandablelistview?
I have an Expandablelistview with 5 groups and each group has their children (Child). I changed the background color of some children, but when I use the scroll mess all the lines, painting…
-
0
votes1
answer543
viewsWebview android does not load css image
I am loading an html page with a css in a webview, all files are local and are in the same folder. It’s working normally on my Motorola Moto X 2 device and on my Galaxy Tab 10 tablet, but in Galaxy…
-
0
votes1
answer93
viewsListview is not updating, Android
Guys, I have the code below. I created a FloatingActionButton who takes pictures of all the items that are on ListView, but the method list.getChildAt(i). isEnable is returning nullpointer. Some…
-
0
votes1
answer4019
viewsSetting width and height of an Imageview
Hello, I need to change the size of a ImageView through the java class. And I don’t really know the command. Follows my code xml <ImageView android:layout_width="wrap_content"…
androidasked 9 years, 2 months ago Kleber Souza 451 -
0
votes0
answers168
viewsMenu with customized layout
I need to create custom menu so it stays that way: so I created a res/layout/layout_menuitem.xml . xml to serve as my app’s menu. <TextView android:id="@+id/text_minha_conta"…
-
0
votes0
answers59
viewsPass Actionbaractivity to Fragments
For me to use an acitivity in navigation Rawer a Activity precisa ta extend Fragments, e a minha ta extend action bar And in this action bar, I have the codes of a remote database, how do I put the…
-
0
votes1
answer224
viewsChange the color of the application footer
I would like to change the color, the footer of the application, where is the button "back" android. Image below: XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout…
-
0
votes2
answers1390
viewsHow do I place a Circular image inside an Android Fragment?
I found on the net several tutorials in English with examples of methods to round up a bitmap image. However, I could not implement them within a Fragment. How to proceed in this case?
-
0
votes1
answer45
viewsWidget - Install automatically through the app
I would like to create a feature in the App to automatically add the Widget of the application. When the user clicks on a button, it automatically inserts the Widget on the home screen. It is…
-
0
votes1
answer68
viewsIs there something wrong with this code that sends a String to the server?
Because it is giving nullPointerException. I use Outputstream even to send to the server? public void envia(String minhastring) { HttpURLConnection conn = null; URL url = null; try { url = new URL(…
-
0
votes1
answer668
viewsHow to call a alertDialog within a Fragment?
I cannot call a alertDialog inside a Fragment. At the moment of setting the Builder(this) it returns error. Follows code: public void mostrarMsg(String titulo, String mensagem) { AlertDialog.Builder…
-
0
votes2
answers2007
viewsUnique identifier android device
I have the following problem in my application. At first boot I capture androidID using the following method: Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID) This…
-
0
votes1
answer68
viewsHelp with Scroll Android
Guys, I have a floating button in my view that prints all the items on my listview. What happens is that when I click on the floating button it takes a picture of the first 3 items and does not take…
-
0
votes1
answer527
viewsSlideshow images with android
Does anyone know how to make an image slide show on a Horizontalscroolview on android? Or do you know of any library that does this? I need to make a slideshow inside a Fragment
-
0
votes1
answer73
viewsSplit widget on screen
I want to split two widget within the Layoutlinear, being both Textview . If I use "orientation="horizontal" and in the Textview use the attribute android:layout_weight="1", widgets were split on…
-
0
votes1
answer355
viewsTransparent Toolbar on an Activity only
I have an xml called Toolbar, and reuse it on all my screens calling the <include layout="@layout/toolbar" /> On a specific screen I would like Toolbar to be transparent, but with a slight…
androidasked 8 years, 4 months ago Artur Mafezzoli Júnior 441 -
0
votes1
answer155
viewsExpandablelistview using Recyclerview?
Hello, I had to create a few times recyclerview which had the same principle as expandablelistview for that, I have always made use of this lib It solves the problem. But this is a good solution?…
androidasked 8 years, 4 months ago Caique Oliveira 1,143 -
0
votes1
answer948
viewsAccess date/date folder in DDMS
I am not being able to access the data/data folder in ddms on Windows. I can see all folders plus some as the date/date cannot access. Someone has a solution?
-
0
votes2
answers107
viewsAuthenticate PHP page through the application is not working
I’m trying to make a connection to the MYSQL database to login the user in the android application, I already have some users registered in the database but I’m not able to login with the user data.…
-
0
votes1
answer92
viewsAndroid Animate object height
I have an object in my view but it starts with visibity=GONE and would like to animate it to appear, like a slideDown and JQUERY slideup. <LinearLayout android:layout_width="match_parent"…
-
0
votes2
answers109
viewsCancel Asynctask when choosing another menu item with Navigation Drawer
The Problem I’m developing an app that has a side navigation menu (Navigation Drawer) as shown below. Loading some items from this menu requires an Internet request. Here at this point everything…
-
0
votes1
answer3604
viewsCoin mask on the field
I would like to create masks in my android number field. I’ve already managed to add the mask ###,##. But this is not a good practice, because if I want to add a value of R $ 1,000,00 the field does…
androidasked 8 years, 4 months ago Artur Mafezzoli Júnior 441 -
0
votes1
answer750
viewsPut Button at the bottom of the screen - Android
I have a Expandablelistview and a button that should only appear when someone gives her the Scroll until the end. I already tried to put as footer but, if the list ends in the middle of the screen…
-
0
votes1
answer786
viewsHelp with Asynctask and progressbar
I connect to the database SQL Server 9 and I can connect to it. I made a Connection DAO and a screen to receive the values. I have a problem on the screen where you receive the values, because I…
androidasked 8 years, 4 months ago Ronaldo Santos 99 -
0
votes1
answer379
viewsInflate a warning in the view from a Broadcastreceiver
I have an application where it is necessary to monitor, and warn the user when he is not available with the internet. To solve this, I created a Broadcastreceiver and show a Toast when this…
-
0
votes0
answers101
viewsSetting the Image String on an Android Imagebutton
I have an Imageview and the path of an image in a String, as I can set in Imageview the path of the image since they are of different types ? public TemaArrayAdapter buscaTema(Context context) {…
androidasked 9 years, 2 months ago Gabriel Santana Bonatto 319 -
0
votes0
answers46
viewsHow to customize Showcaseview?
Hello, I’m having some difficulties to use the following library https://github.com/JesusM/ShowcaseViewLibrary already searched in guides, videos including the proposed documentation. But I can not…
-
0
votes2
answers691
viewsOpen calendar from a link
I’ve seen many different ways to do it, but none of it works I need to put a link on my site, where when click, open the schedule for the save person in her calendar just like tel: mailto:, I saw…
-
0
votes1
answer185
viewsMethod onAttach Android
Guys, I’m having trouble using the onattach. I have a view that is set Visible when a button is triggered. I would like this View to disappear at the end of an operation of a Fragment. Look at the…
-
0
votes1
answer511
viewsAndroid - how to save typed text to an Edittext
I want to know how to save the typed text in an Edittext to use it later, I don’t know if it’s possible , but maybe saving it in a file. txt and then grab the text present in the file.Thank you!…
-
0
votes1
answer40
viewsHow to fix Mpandroidchart value is over when it is 0
I’m having this problem when using Mpandroidchart, can anyone tell me if you have any method to put a spacing between one value and another? not to be so on top? Thank you…
-
0
votes1
answer248
viewsEnter contact data from the app
I would like to know if it is possible to insert some data in the phone contact, for example e-mail. Exemplifying: When selecting a contact, from the application, when returning to Activity, is…
-
0
votes0
answers53
viewsMD5 is a safe hash?
MD5 is a safe hash? There is a way to reverse? If not the best option, what you recommend? I await suggestions... Thank you
-
0
votes1
answer82
viewsHow to make a list of available "wifis"
I would like to know how to take all available wifis and put them on a list, searched on the internet, but did not understand right, I would like a well summarized code, thank you. public class…
androidasked 9 years, 2 months ago Lucas Caresia 2,663 -
0
votes1
answer70
viewsSyntax error on token "123", invalid Variabledeclaratorid
I’ve got an R-class error.…
-
0
votes1
answer67
viewsHow to name the app version in Google Play Developer Console to put into production?
I uploaded my first application 1.0 in the alpha test area and then updated and uploaded to alpha test with version code 2.0 is it right to use 2.0 or it would be better to use 1.1?
-
0
votes1
answer6390
viewsHow to make a login and password screen
I’m making my first application and would like to know how I can make the login screen so that the user only access a certain area if you have an email and password registered previously.
-
0
votes0
answers86
viewsError generating signed APK
When will I sign the apk to send the Play Store occurs the following error message: Error: Fragments should be Static such that they can be re-instantiated by the system, and Anonymous classes are…
-
0
votes0
answers25
viewsRenew data in the same
Hello! I would like to know how to go alternating values always in the same Ctivity. I do not know if this is the way to say it, but I will explain by example a tabuada app that I have here and is…
-
0
votes1
answer1384
viewsBlank Activity does not appear in Android Studio
When creating a new project on Android Studio chooses the type of activity, how to put the Blank Activity in the Android Studio?
-
0
votes1
answer405
viewsStop or cancel asynctask
I made this code for my asynctask but the same does not work, it simply continues the process and not the error. public class Act_Poco_Pombal extends AppCompatActivity implements…
androidasked 8 years, 4 months ago Ronaldo Santos 99 -
0
votes1
answer138
viewsBroadcastreceiver ACTION_SETTINGS. Does not intercept
Good evening everyone. I would like my application to be called when the user clicked on "Settings" on his device. So I tried to use one Broadcastreceiver to intercept the…
-
0
votes1
answer379
viewsAnimate the Actionbar button
Good afternoon, I have an app that has a refresh button on Actionbar : <menu xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer240
viewsHow to change the text size and padding tabs in tabHost?
I have a tabHost and I needed to change the padding and the size of the texts in the tabs. Does anyone know how to do this? via code or via xml? Thanks in advance.
androidasked 8 years, 4 months ago daniel12345smith 2,120 -
0
votes1
answer156
viewsLenovo lives a7010 does not work in android studio
I tried everything to make Lenovo’s a7010 smartphone work, literally nothing solved, I’ve had some problems with Motorola, but something that a simple Driver already solve, however, this smartphone…
-
0
votes2
answers300
viewsI am not able to store the correct information of a Radio Button in the database
I’m having trouble storing the correct information of a radio button in the database. When I select the Public option it stores Public, when I select the Private option it stores Public. Can anyone…