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
-
5
votes1
answer68
viewsCapture the index data in the database
I was able to feed my listview with Sqlite data, however, I now want to capture the data (in the database) that each line of listview matches. For example: Line 10 displays Code. 1 and Name: Felipe…
-
5
votes1
answer1315
viewsDynamically create buttons
I’m making a screen where register some users. On this screen, I have a ScrollView with a Gridlayout inside, with 2 columns. Each column has 1 button, which when clicking, opens a link, in this…
-
5
votes1
answer772
viewsConverting Textview value to double
Good afternoon, on my project I’m having the following problem. In it you have an Activity in which products are added. To add a product you need to fill the fields Name, Quantity and Unit Value.…
-
5
votes1
answer1210
viewsTest effective internet connection
I have an app where I do a connection test before consulting a webservice, just to display a message to user who has no internet connection. I use a method this way: public static boolean…
-
5
votes1
answer585
viewsEnable GPS within the app
Currently to check if the GPS is enabled use the following code: public boolean checkSetting(){ LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); return…
-
5
votes2
answers17946
viewsHow to delete apk posted on Googleplay
Hello, I developed a game in Gamemaker and published in Google Play in the category "For the whole family" but this fact caused the Admob advertisement to stop appearing in the game. There was no…
-
5
votes1
answer301
viewsAn instrumentation test is an integration test?
I saw some videos where they explain how to test the call of an activity by another activity. I took the following test and, after a reflection, I wasn’t sure if the test I ran was for integration,…
-
5
votes1
answer2046
viewsAccess the camera of the mobile phone in a Webview in Android Studio
I am creating a QR code reader on a website and now I need to use this site in a mobile version, for this I am creating a Webview that is opening the site. In any browser the QR Code reader works,…
-
5
votes1
answer407
viewsAndroid - Activity destroyed when rotating the tablet
I have the following problem in my application: When the user turns off the screen on the tablet, turn the screen again, rotates to the vertical position and logs in android again, a Activity user…
-
5
votes1
answer176
viewsHow do you check if two Drawables are the same?
Good night ! I’m having trouble recovering the current image from my android imageView. It is a favorite image for the user(dar like), and I want that when the user click on this image, I check if…
-
5
votes2
answers293
viewsUniquely identify the smartphone
I have an app that needs to uniquely identify a device. Even if the user removes and installs the app again, I would like the handle to continue the same. At first, I thought about using the…
androidasked 6 years, 4 months ago Thiago Luiz Domacoski 7,310 -
5
votes2
answers190
viewsRestart the layout
I made two buttons that set Adapter in recyclerview, each arrow button a different layout, but only doing so findViewById(R.id.layout2).setOnClickListener(new View.OnClickListener() { @Override…
-
5
votes0
answers63
viewsProgressibar with Steps position gets wrong
I’m having trouble leaving in the correct position of the flow with progress <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/checkout_hsv_scrollview"…
-
4
votes2
answers313
viewsDatabase on does not reflect changes in the same Activity
I am trying to update the database in my application. Trying to simulate a possible error in production intentionally I give a DROP in a table, and soon after I do a SELECT in the same table and…
-
4
votes2
answers606
viewsView Listview with available networks
I’m trying to popular a ListView with List returned by method getScanResults() class WifiManager. However, I would not like to have to go through this list, after all, all the information I need is…
-
4
votes1
answer1385
viewsHow to change the value of a string in XML?
There is a way to change a string value in XML. I know how to get the value through getResource().getString(R.string.value); but I don’t know how to change the value directly in XML. Is this…
-
4
votes2
answers132
viewsHybrid Android Apps. Is the performance loss that big?
Someone there has developed hybrid apps for Android and can you tell me if the loss of performance is great? I have read in various articles on this web that there are problems such as delay in the…
-
4
votes1
answer218
viewsHow to set position of a cursor in the Onchanged of a Customview in a Listview?
I’m wearing a customview calling for android-spinnerwheel. I inserted her into a listview connected to a CursorAdapter. If I use the OnitemClickListener from Listview, the cursor goes to the…
-
4
votes1
answer2848
viewsHow to Convert UTF String to ANSI and Create ANSI Text File on an SSD?
I wrote an Android application using Java, so that users answer questions, which are then saved in a file. The problem is that this file is saved in UTF8. The end user will open this file on IBM…
java android character-encoding file-systemasked 10 years, 9 months ago Please_Dont_Bully_Me_SO_Lords 516 -
4
votes1
answer455
viewsHow to set time to silent mode
I have a school schedule app and put the option to mute the device during the time stipulated by the user. However there is only the option to enable and disable silent mode, as I can do this…
-
4
votes1
answer388
viewsJSON returning <html>
I am returning a JSON from a server using PHP with simple code: <?php $response = array(); $response["success"] = 1; echo json_encode($response); I’m getting the answer through an android app,…
-
4
votes1
answer985
viewsDynamically add layouts
I created an XML with Linearlayout, in it I have a Spinner and an Edittext. On my screen I have a Linearlayout that should receive this other layout I created. My question is: how to add this custom…
-
4
votes1
answer743
viewsBy what means does Android automatically update the calendar?
I am developing an app that is connected on a local network but without internet. I am using an APC 8750 card http://apc.io/products/8750a no battery, ie when off loses the calendar. By which means…
-
4
votes1
answer156
viewsHow to create a view with Crosstab in SQLITE via Android?
I have the following tables: ┌──────────────┐ ┌──────────────┐ ┌─────────────────────────────┐ │ TABLE pessoa | | TABLE lente | | TABLE pessoa_lente | ├──────────────┤ ├──────────────┤…
-
4
votes2
answers4107
viewsHow do I pass parameters from the last Fragment to the previous Fragment?
I have the following situation: the Fragment A and from it, with a button click event, goes to the Fragment B. When you’re in the Fragment B and press the back button in order to return to the…
-
4
votes3
answers29445
viewsHow to check if the String is null or blank in Java / Android
I went through this problem implementing a simple library of database queries sqlite in android and would like to share the solution with the community, I believe it will be useful since I have…
-
4
votes2
answers1170
viewsWhy does the Gravity attribute of the Linearlayout.Layoutparams object not work like the View setGravity() method?
Problem I’m working on a UI library for android, where I set the layout parameters (height, width, weight and gravity) dynamically via code, in an object LinearLayout.LayoutParams but the attribute…
-
4
votes1
answer171
viewsShould Android support libraries be compiled together in APK?
I’m developing an application for Android, and it uses two libraries that Google provides. To appcompat-v7 is used to have action bar on devices with version 2.3 or less, as this has only been added…
-
4
votes1
answer1064
viewsUnit tests on Android
How to test unit on Android? How far I searched is only possible to use the framework Robotium. There is another way to test unit on Android?…
-
4
votes2
answers330
viewsQuick Scroll Bar in alphabetical order
I’ve already found some examples with a custom view of a list with a alphabetical quick scroll bar, but I didn’t really find a scroll bar that really looks like the one from my Kitkat contact list.…
-
4
votes2
answers1829
viewsDifficulty running emulator for Android
I’m not getting to run the emulator Android. If I try to run the applicative I get a message from IDE: The Selected Emulator is not running. Do you want to start it? Of course, there’s no emulator…
-
4
votes1
answer1755
viewsWhat does popBackStack()?
I can’t understand or find anywhere that makes me understand what the method does getActivity().getSupportFragmentManager().popBackStack(); Not even reading the documentation I could understand,…
-
4
votes1
answer2392
viewsGenerate private certificate APK using Eclipse Android
When I click "Run" in the eclipse it generates the APK, sends and installs on Android, but it installs using a Debug certificate, I’m using Google Games Services and it only works if the APK is with…
-
4
votes1
answer1146
viewsHow to Make Splash Screen?
I’m developing an app for android using eclipse, in this app, when it starts, I needed to have a presentation screen (splash screen), I mean, a screen with my logo, then wait about 4 seconds, and go…
-
4
votes3
answers360
viewsAlarms are lost when mobile is turned off and on!
How to make the alarms not get lost? Ex: if I create one AlarmManager who calls a Broadcast, if I restart(turn off/on) the mobile phone alarm is no longer triggered.…
-
4
votes1
answer123
viewsHow should I communicate with DB? Technology recommendations
I’m with an Android project, in which I’m trying to do everything using free platform. I need the devices in the field to communicate with the database, and I heard something about JSON and Web…
-
4
votes1
answer9073
viewsSend and receive image via Webservice
I’m developing an app where I need to convert an image to JSON and send it to a Webservice. Later I will need to perform the reverse path, IE, receive a JSON image of a Webservice to present it to…
-
4
votes2
answers950
viewsHow to make a manual system to check for new updates?
My app won’t be published on Google Play, so I need to make a system to check for new updates and download them, without relying on Google Play. And preferably free, using free services (like…
-
4
votes1
answer436
viewsTwo databases in an Android app
I have an Android application and this works with an internal database. Now I need this application to work with 2 internal databases. Is this possible on Android? Some example that can help?…
-
4
votes1
answer351
viewsImport phonegap/Cordova file in eclipse
At the time I will import file I created from phonegap/Cordova in eclipse does not appear anything. file>new>project ae i selecionei Android Project from Existing Code, I look for the folder…
-
4
votes1
answer1383
viewsError while creating PDF file on Android
I have a problem to create a PDF using iText on Android. I have to save in the device’s internal memory, but this giving error because I do not know the way to save because in the tutorial he saved…
-
4
votes1
answer27672
viewsIs it possible to replace my car alarm control with an app?
I’m starting a personal vehicle automation project. At first I will use the native features of my Smartphone, not to need to implement any circuit in the car a priori. I got a Galaxy S4, and a car…
-
4
votes1
answer328
viewsIs it possible to set Android Camera resolution?
I am developing an Android application, and would like to know if it would have how to make my application when calling the camera pass the resolution values of Photo, ex: 1024 X 1024?…
-
4
votes1
answer19780
viewsHow to install . apk apps via adb?
I need help, I would like to understand how to use CMD for this and why they say it is more effective than downloading a file scanning software and installing directly on the device. I basically…
androidasked 10 years, 3 months ago paccamicio 163 -
4
votes1
answer803
viewsInstall Plugin in Netbeans
I tried to install the plugins and it didn’t work. They are visible in the tab definitions. But it is not in the tab Plug-ins available. I even clicked to be found in alphabetical order. I tried to…
-
4
votes2
answers508
viewsWhat is Dénsity and scaledDensity for on Android?
What is the point of Density and the scaledDensity on Android? What use can we give you?…
-
4
votes1
answer3848
viewsCustom popup
I want to do a custom popup, similar to the one in the photo, putting a button to close at the top and it centered in the middle of the screen, anyone know how I do it? I looked for some codes, but…
androidasked 10 years, 3 months ago Gabriel Duarte 565 -
4
votes3
answers1277
viewsDifferences between Padding and Margin
What’s the difference between using Padding and Margin in an Android view? When should I know which one to use?
androidasked 10 years, 3 months ago felipe.rce 1,969 -
4
votes2
answers2098
viewsRecognize if user is using iOS or Android
I am developing a screen of a website, and the customer wonder if there is the possibility of the site recognize whether the user is using Android or iOS. If you’re on Android, go to Google Play to…
-
4
votes1
answer4823
viewsHow do I export an . apk android in Android Studio?
Every time I export the google app from that message: Even though I changed Androidmanifest.xml: android:versionCode="2" android:versionName="1.0.2" Procedure I’m doing: I’m exporting right?…