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
votes2
answers252
viewsSlideshow with images from Urls
I was developing a slideshow loading images from Urls I found a library developed by a Russian, the Universal Image Loader, however this slideshow will be used in the application in the version of…
-
5
votes1
answer164
viewsFacebookoperationcanceledexception error in Facebook SDK Friend Smash example game
I followed the tutorial from Facebook SDK to implement the game Friend Smash. In Activity Home has a button to view the Scores. However, when clicking it shows a connection error on the screen:…
-
5
votes2
answers4586
viewsHow to create an AVD for Android in Delphi
I’m starting at Delphi® XE5 and would like to know how to configure/create an AVD to emulate Android applications. Only gives me the option to choose the device, but I have nothing in Target Android…
-
5
votes2
answers258
viewsApp crashing when an image is selected
I am trying to get an image using an Intent, but when I select the image, my application closes immediately. This is my current code: private void capturarFoto() { String nameFoto =…
-
5
votes2
answers5722
viewsHow does it work to adapt to different resolutions on Android?
In html for example, objects can (sometimes without any special code) adapt to the size of the window, for example by placing two images of fixed size, if you shrink the window one goes to the…
-
5
votes1
answer7034
viewsTake Edittext value from a layout passed as a parameter to a Alertdialog.Builder at the click of the button?
I use Layoutinflater in my view - View view = li.inflate(R.layout.alertdialog, null); I created a Alertdialog.Builder Builder setting for it the view, and the buttons positive and negative. My…
-
5
votes2
answers332
viewsDifferent orientations on smartphone and tablet
Hello, I am developing an app and I need the screen to be in Portrait for smartphones and Portrait/Landscape for tablets. The customer does not want to accept different applications and does not…
-
5
votes3
answers4187
views -
5
votes1
answer120
viewsError with super(this) when calling a Java constructor
This is allowed? public Produto(Context context) { super(context, this); } You’re making a mistake : Cannot refer to 'this' nor 'super' while explicitly invoking a constructor I’m trying to make a…
-
5
votes1
answer1988
viewsMultiple layouts in one Activity - how to use?
As in this passage: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.addcontact); imageButton01 = (ImageButton)…
-
5
votes1
answer387
viewsHow to send/encapsulate a file in a . apk to use in the app installation?
I have a file . xls that would like to encapsulate next to apk so that when installing the app it uses that file to popular a database. How to do?
-
5
votes1
answer443
viewsPerformance comparison on Android: Canvas vs Opengl ES
Is there any comparative performance table, or some list with rules/guidelines, which tells me from which moment it pays to use Opengl ES on Android, instead of the Canvas + Activity pair configured…
-
5
votes2
answers6687
viewsHow to Save Path of a Photo Taken from Camera on Phone in Path or String
I need to take the path that was saved the image and save it so that whenever I launch the app appears the image in an Imageview. my code is this public void onClickCamera(View v){ Intent…
-
5
votes1
answer3020
viewsWhat is the best way to create methods accessible to any Ctivity?
Hello. When I need to create a method for an Activity I simply write it in my Activity code. For example: package com.pcriot.maxsoft.testapplication; import android.os.Bundle; import…
-
5
votes1
answer668
viewsDetecting Volume Keystrokes Pressing on Android
I found a palliative solution, which keeps monitoring the change in the volume of the system itself. When the volume decreases, for example, from 10 to 9, the program resets the volume back to 10…
-
5
votes1
answer1179
viewsAndroid app closes as soon as it loads (Noclassdeffounderror)
I installed the Android SDK all right, installed the USB drivers of my Motorola Moto G. It’s all right, so when I run the application directly from Eclipse, it finds my device connected. USB…
-
5
votes2
answers5176
viewsHow do I put an external source in my app?
I’m trying to put a custom font in my app, but I’m having too many mistakes. I’ve tried using Pixlui, I’ve tried several different codes and always error, or the application runs, but crash (app…
-
5
votes5
answers13518
viewsHide the keyboard
As soon as the user clicks on one of EditText from my Android app, the keyboard appears, however, it does not disappear when you finish typing and click off it. I would like to know which method…
-
5
votes1
answer7213
viewsLibraries for communication between Arduino and Android
I am a beginner Arduino programmer trying to make a connection to my mobile phone (Android) and / or my laptop using Java. I’ve done some research and so far I’ve found three examples of how this…
-
5
votes1
answer633
viewsTools for mobile development
I’m looking for development tools mobile. I started looking at a call Codenameone, for example. However I would like some tips on which tool to choose. I have separated below some criteria that I…
-
5
votes1
answer560
viewsWhat are Android SDK Extras?
I would like to know what is the purpose of each of the options of the "Extras" of the SDK, to see which ones need to be installed (some I know more or less, I’m not sure). Android Support…
-
5
votes2
answers2122
viewswhat is tools:context in layouts files?
Good morning, everyone. In some tutorials I’ve been seeing around, the creators defined this property, 'tools:context' in the main layout manager of xmls. I looked in Ricardo Lecheta’s book, but he…
-
5
votes2
answers201
viewsBetter/Secure way to transfer sensitive data to an android application through JSON
I am trying to develop an application for android that will work with a database in this case Mysql and I was thinking to make the communication between the database and the application through JSON…
-
5
votes1
answer3992
viewsHow to perform a method in a given time?
I need that at certain programmed hours, a method is executed even if the user is outside the application.So I searched I will have to use services? I didn’t quite understand how to program time, I…
-
5
votes2
answers4323
viewsHow to update BD sqlite java android
How do I add a column in the database of my android java application without losing data from the current database? My code: public DataBaseHandler(Context context) { super(context, DATABASE_NAME,…
-
5
votes4
answers1387
viewsHow do I know if it’s a tablet or a smartphone?
How do I know I’m working on one tablet or a smartphone with the Android API? Nowadays resolutions, dpi are almost the same thing between tablets and smartphones and it gets complicated to know…
-
5
votes1
answer312
viewsCode Metrics, Analysis and Clone for Android Studio
Guys, is there something similar to Code Metrics, Analysis and Clone Visual Studio for Android Studio? I know Lint exists, but as far as I know he doesn’t measure code complexity, duplicate code and…
-
5
votes1
answer98
viewsPass "visibility" as parameter
How do I pass as parameter a visibility and then set it? Ex: private void _setVisibility(View.VISIBLE a){ _viewLineStatus.setVisibility(a); }
-
5
votes4
answers1224
viewsHow to exchange data between a mobile(android) and another device through Bluetooth communication?
How can I connect and disconnect with any device through Bluetooth communication and then exchange (send and/or receive) data?
-
5
votes1
answer370
viewsIs it possible to do spatial orientation only with magnetic sensor?
It is possible to determine the spatial orientation of the smartphone using only the values x, y, and z magnetic sensor?
-
5
votes1
answer1101
viewsHow to make a Listview with components next to the text on each line?
Several current Androids systems have menus like the one in the example below: Notice that anywhere I touch my finger in the blue area under "Access my location" it turns on or off the switch and…
-
5
votes1
answer267
viewsChange HTTP User Agent
When an Android app sends a post to a web server (like a PHP page), this page receives an HTTP-Useragent type "Apache-Httpclient/UNAVAILABLE (Java 1.4)". I wonder if you have a solution to change…
-
5
votes1
answer1111
viewsAndroid Sqlite data insertion
What is the best way to insert more than 10000 rows of data into a 13-column table using Sqlite Android? I thought of using the ContentValue then: Db.insert(DATABASE_TABLE, null, ContentValue);…
-
5
votes1
answer380
viewsAdding libs on android with eclipse
I usually take the jar and put it inside the lib folder of my project, but I’ve seen people who do the same thing and add it by "Java Build Path/Add Jars...", it’s different to just put it in the…
-
5
votes1
answer120
viewsIs it possible to call the Internal (no visibility operator) method from a class inherited from another package?
Problem I’m trying to create some extra behaviors in some native Android components. For that I am creating a class above the Android component and rewriting some situations I intend to have a…
-
5
votes2
answers2666
viewsBackup in Sqlite database
I need to backup an Android Sqlite database. Ex: I will change device and need to copy the application BD to be loaded on other Android phone. Is there any viable solution? I developed an…
-
5
votes1
answer10356
viewsHow to use the Toolbar widget?
I’ve seen the own documentation of android I’ve done all the steps of other forums and still could not use Toolbar in my screen layout. How I should proceed step by step regarding the implementation…
-
5
votes1
answer1198
viewsBest way to model a chat database
I have an application that works with webservices and mysql database, I’m putting a chat in it, the part about how to pick up messages, display notifications and search for users I already have, my…
-
5
votes1
answer233
viewsHow to remove notification when user kills application
I have a notification that appears when a service is running and disappears when it stops running. If the user kills the application with the service running, the notification stays there forever.…
androidasked 10 years ago Erick Filho 211 -
5
votes1
answer996
viewsIncluding in APK an Sqlite database
Is it possible to include the application database in the APK installation? I already have all the necessary records for the operation of the application and would like to include it during the…
-
5
votes1
answer335
viewsSlide item to increment Textview
Is there any component that when sliding an item of a ListView, it increases a TextView in the item itself? As in the image below: Sliding to the right, increments according to the value that…
-
5
votes2
answers1610
viewsAndroid with PHP Web Service
Someone has an example of what it takes to recover data from an external database without using JDBC ?
-
5
votes1
answer731
viewsWhat is the best AVD for an app developed preferably for g motorcycle?
I have a bike g appliance and I intend to use it through the usb interface to test a developing app. But for now, I will use the emulator. Which emulator model should I use to be more like the g…
-
5
votes1
answer379
viewsAnimation on Android, circle emitting waves
I need to do an effect similar to that of ZenUI in call, that the photo with circle emits waves (zoon from below) as can be seen in the video http://youtu.be/niWK2U71t28?t=1m38s Does that help a lot…
-
5
votes1
answer516
viewsAndroid - Different ways of "setar" a system in objects
Is there a different way (Syntax) to "set" a Switch on an object on Android ? For example, I only know this way: btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v)…
-
5
votes1
answer248
viewsOptimize the movement of the marker in Maps
Working with an application where I add one Marker on the map, as : markUser.draggable(true); But I want to optimize this method, to move the marker is necessary to hold for a while, I want with a…
-
5
votes1
answer6204
viewsHow to increase the font size of an Edittext according to the screen size?
I would like the font size to be proportional to the screen size of the device running the application.
-
5
votes2
answers2975
viewsCheck if 'Allow dummy locations' is enabled
I have an app that needs the "Allow Dummy Locations" option of the standard Gallery app enabled to work. How to check if it is enabled? How to send the user to this item of my case is disabled? This…
androidasked 9 years, 8 months ago felipe.rce 1,969 -
5
votes2
answers11135
viewsException vs Runtimeexception, when using one or the other?
I was with that doubt, and when I was made aware of it another came to me, which I would like to be clarified. What’s the difference between Exception and RuntimeException? When to use Exception or…
-
5
votes2
answers3895
viewsDrawable or Mipmap?? What’s the difference?
Since version 1.1 of android studio appeared a new folder called mipmap with the same features of drawable. What is the usefulness of this new folder?