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
votes3
answers188
viewsHow to share an android photo
I have this drawable: String nome_foto = itens.get(pos).nome_foto; int drawableId = getResources().getIdentifier(nome_foto, "drawable", getPackageName()); Drawable drawable =…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
0
votes0
answers74
viewsHow to put a transparent layer over the camera preview?
My app involves an Activity that takes a photo. When the user enters this option and opens the camera, I would like to put an intermediate layer. Something like a square or a "scope" over the image…
-
0
votes0
answers114
viewsWhy is the method calculating 1 product only?
I have a problem with a method in which you are calculating the amount of a single product instead of calculating all that I select. I’m sure the problem lies in the position I passed to the…
androidasked 9 years, 9 months ago Eric Andrade 65 -
0
votes2
answers2331
viewsEdit the name of Aplicationid in android Studio
Good afternoon, I’m trying to publish an app on google play, but it turns out the following error: Use a different package name. "com.example" is restricted. I already changed (manually) the package…
androidasked 9 years, 3 months ago Daniel Kchevi 125 -
0
votes1
answer4337
viewsAdapter in a Listview in Android Studio
I’m trying to complement a code that controls a custom Listview, through three classes: AdapterListView, ItemListView and the MainActivity. So far, the code only manages the insertion of data and…
-
0
votes1
answer167
viewsHow to use a UI kit (PSD) in an Android application?
Hello! I recently came across several UI kits for Android made in Photoshop (PSD). How do I use them in my application? For example, I have this kit:…
-
0
votes1
answer38
viewsCanvas: Density Pixels to draw images
Good afternoon ! I’m creating a custom Marker for the map: final Bitmap markerIcon = Bitmap.createBitmap(275, 275, Bitmap.Config.ARGB_8888); final Paint paint = new Paint(); final Canvas canvas =…
-
0
votes0
answers550
viewsAPK error in android studio
Guys, when I try to emulate the application I get this error, someone can help me solve? When I click ok it does nothing, create another image would try to emulate dnv? If yes I’ve tried, with…
androidasked 9 years, 3 months ago Rodrigo Marden 1 -
0
votes1
answer50
viewsHow can I tell which viewpager this is when I try to take a print with a floating boot?
I have a view with several Ragments, I added a floating button to print the screen, but I would like to know how to differentiate each Ragment to put different names in the photos. I have the code…
-
0
votes1
answer251
viewsHow to load a Recycleview with a list?
I have a List loaded with a JSON of a query with multiple records and multiple columns: List<Videos> lstVideos = new ArrayList<Videos>(); So far so good. What I need is to carry one…
-
0
votes1
answer659
viewsArray of phrases in Java
I’m studying Java, and Android development, and I want to make this application to understand how it works. I’m using the Toast class so that when I click on the image, a sentence appears, I can…
-
0
votes3
answers958
viewsANDROID: How to identify user screen density?
I want the application to just download the images that are adaptable to the user screen, such as: if the user device supports xxhdpi images, it will not be necessary to store the images of xxxhdpi,…
-
0
votes0
answers240
viewsAndroid bug when running emulator project
I’m trying to run a project in Android Studio and this giving an error that I do not know how to solve. Gradle Console: > Executing tasks: [:app:generateDebugSources, >…
-
0
votes1
answer5041
viewsDetermine time and date of installation of an app on Android
It is possible to obtain the date and time exact that your user has installed the application? On iOS7+, you can get a receipt from when the app was downloaded using [NSBundle appStoreReceiptURL].…
-
0
votes1
answer178
viewsSettext error checking internet connection
I am using this code to check my internet connection, however it does not allow me to use the setText() to change a text in the layout, gives error and closes the app, someone can help? private void…
androidasked 9 years, 3 months ago Renato Souza 321 -
0
votes0
answers58
viewsAndroid Studio - Error trying to open my old projects
I often get this error while trying to open some of my old projects that do not yet belong to Android Studio! Does anyone know the solution to this problem? Thank you. My Android SDK Manager:…
-
0
votes2
answers2831
viewsHow to inflate a button inside a Listview Item?
I need to put a button inside an item of a Listview to match the image below: But I’m doing everything dynamically, I get an array of data from the database and fill in the Listview lines. Does…
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
0
votes1
answer226
viewsHow to know if the user is already logged in to another device?
I have an Android app that connects to the API of Parse.com, but it could also be another Restful API that I created myself. The question is how to control sessions on different devices? Example, a…
-
0
votes1
answer58
viewsSharedpreference calling an Activity
If I want to put a sharedpreference on a button, in case to select the desired city in a list view, how would it be? Because I only find sharedpreference with login etc.
-
0
votes1
answer31
viewsRemove the action from the Optionsmenu’s physical button
We have an application in which we are removing the action of OptionsMenu of the physical button and inserting in the Toolbar. I wonder if it is possible to undo the action of the physical Menu…
androidasked 9 years, 2 months ago Thiago Luiz Domacoski 7,310 -
0
votes1
answer755
viewsHow to set a checkbox as checked?
Good morning, I have a layout with some checkbox, these are disabled so that the user can not check them because for security reasons this check must occur via code, I have the following code: I…
-
0
votes0
answers209
viewsConsuming a PHP Webservice
I set up a Webservice in PHP and need to know how to consume it, whenever I do a search on it it returns me like this: All Alerts: get_all_alerts.php {"table_alerts":[{"id":"1",…
-
0
votes3
answers2523
viewsProgressbar does not change color
I have this problem of changing colors. Code: <ProgressBar android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminateTint="#00bfff"/> Appears to have…
-
0
votes1
answer59
viewsSkip User registration activities already logged in the application
Good afternoon. I wish I knew the best way to jump Activities of registration when initializing the application on Android when the user is already registered in the application, as occurs on…
-
0
votes0
answers22
viewsHow do I store a Bluetoothsocket object in a Bundle?
I already tried . putParcelable and . putSerializable and it didn’t work. If it is not possible to do this, it is possible to get a Bluetoothsocket object already connected from the system?
androidasked 9 years, 2 months ago Marcos Vinícius 71 -
0
votes0
answers122
viewsUpdate a Switch from a Dialog
I have a dialog like this: public void Dialogo_Iluminacao() { final Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.dialogo_iluminacao); dialog.setTitle("Iluminação"); final Switch…
-
0
votes2
answers5089
viewsFind the Sqlite database folder in android studio
How to find the database folder in android studio ? Already tried tools -> Android -> Android device Monitor, the data folder is empty.
-
0
votes1
answer159
viewsHow Gradle Scripts works
I’ve read several topics regarding the 'backward compatibility' of Android and its versions, including the documentation of it. But I still don’t understand one thing: I guarantee that my…
androidasked 9 years, 2 months ago user24280 -
0
votes1
answer81
viewsI get no data from the URL
I’m working on a project where I have to make an app that will fetch information from the database via Json. I’ve done dozens of tutorials and I always end up not being able to receive a reply from…
-
0
votes0
answers921
viewsHow to create a multiplayer game with bluetooth?
I’m doing a multiplayer game on Unity3d and I’m using Unity’s new networking API, I’ve seen that there are some plugins for Unity that make it possible to create a multiplayer via bluetooth, but are…
-
0
votes1
answer59
viewsWhat is the best way and how to implement global data storage in an application?
In an application that has authentication, most of the time it is necessary to store information such as name, email and, depending on the case the ID of this user. This information can be used in…
androidasked 9 years, 2 months ago Geison Santos 4,428 -
0
votes1
answer534
viewsHow to get markers close to the user’s location?
Good night Anyone who knows the Tinder app knows that a map is not shown, but knows that it takes the user’s location and uses it to look for people who are close in a certain radius. I would like…
-
0
votes1
answer66
viewsAndroid Setting Name with brackets in body json parameter
I’m having the following problem: I’m using the Android Rest API library https://github.com/excilys/androidannotations/wiki/Rest-API, and I’m trying a post, but the post only accepts a single…
-
0
votes0
answers528
viewsConsume webservice C# amsx on android Volley
I created a webservice in c# that returns me a string in the JSON pattern, I’m trying to consume this webservice with Volley but the same returns me null, depending on the variation of the url it…
-
0
votes1
answer97
viewsHow to use setText from a service running in java?
I have a service running a stopwatch that loops from one in a second, how to set the text in the open Activity? I’m using: //tempo new Thread(new Runnable() { @Override public void run(){ int…
-
0
votes1
answer45
viewsHow to keep the colors of items that had the colors changed from listview on Android?
I have a listview, and when I click on a list item it changes color, I needed to keep this color even after the list Activity was called again. Is it possible to do this without having to engrave…
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
0
votes2
answers3513
viewsHow to run an application with Database on Android?
I’m starting my activities in the mobile world, and would like to build an application that uses Database for Android platform, an example application so I can move forward, I looked on the internet…
-
0
votes1
answer475
viewsHow do I change the color of cardview after a longclick on it?
How do I make it happen? I would like to after a longClick in the cardview the color of the same change indicating which or which ones I selected! public static class ViewHolder extends…
-
0
votes1
answer1137
viewsHow to open the image in the gallery by clicking on it through my application?
My app has a button that when it is pressed opens the camera, as soon as I take the photo, it is placed in an Imageview on the screen and the image path is saved in my database. I would like to know…
-
0
votes1
answer56
viewsDoubt about selection of items in Listview
How do I stop when I "click" on the Android "Back" icon I deselect all Listview items instead of terminating Activity?
androidasked 9 years, 2 months ago Marcos Vinícius 71 -
0
votes1
answer163
viewsHow to put the weight percentage of 2 Edittext fields via code without using xml?
I have two Editext fields, name and age I need the name field to be 70% of the line and the age to 30%, in xml it’s easy to solve this, but in Java code I’m not getting, does anyone know how to do?…
-
0
votes1
answer320
viewsI transferred an image from one imageview to another imageview in another
Guys I have a grid view that displays images of a server, when clika in the image I have to reload the image a few more details, I wanted instead of having to download the image again, That is, I…
-
0
votes2
answers121
viewsErro android studio, error: Error retrieving Parent for item: No Resource found that Matches the Given name 'android:Theme.Holo.Light'
Would anyone know what that mistake is: error: Error retrieving Parent for item: No Resource found that Matches the Given name 'android:Theme.Holo.Light'.
-
0
votes2
answers162
viewsAndroid getIntent error
Hello, I have an application that I need to send data of a Activity to another Activity. I tested several ways however all failed, but in another project one code worked normally, but in my current…
-
0
votes1
answer773
viewsalign Linearlayout
I have three Linearlayout inside a Linearlayout <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout…
androidasked 9 years, 8 months ago Ilgner de Oliveira 1,098 -
0
votes0
answers208
viewsBrowse a gallery and put in a scrollview
I’m using this to use as an image gallery . <android.support.v4.view.ViewPager android:id="@+id/galeria" android:layout_width="match_parent" android:layout_height="match_parent"…
androidasked 9 years, 8 months ago Ilgner de Oliveira 1,098 -
0
votes1
answer6803
viewsCapture value from an Edittext
I need to capture the value of 2 Edittext and 2 Checkbox, to capture the text of Edittext I transformed it into a string and tried to capture the value but the application closes giving java…
androidasked 9 years, 2 months ago Matheus Arruda 482 -
0
votes0
answers215
viewsList View always returns first position
I’m making an app to manage my exams at school and it’s almost ready. However, there is a problem: when I want the position (int position) of Listview, it returns ALWAYS the first position, even if…
-
0
votes1
answer28
viewsWhat is Fauxgap.js for
all right? After seeing some articles on mobile dev, much was said about a facilitator file for emulation called fauxgap.js What exactly does it do? Emulates Cordova and phonegap js in the browser?…
-
0
votes2
answers142
viewsCreate App by manipulating external website
I want to create an app for a site that has no mobile version, so I need to show the user only 04 fields on the screen (login, password, sign up and ok). How can I do that It’s not my site and I…