Questions tagged as 'android'

2
answers

Android, pick id of an item from a listView by long click

Does anyone know how to pull an ID of a ListView item through SetOnItemLongClickListener and could you tell me if this method would work with an item being displayed from the database ?? The Adapter code: public class ObjetoAdapter e...
asked by 01.06.2015 / 00:14
2
answers

Variable map only receives null value

I'm making an app for people with addresses. Every time I open the map by setting the initial location with the cell phone's GPS, the app hangs and closes. In code analysis I noticed that the map variable is getting null, causing ha...
asked by 21.05.2015 / 18:38
1
answer

Consuming JSON webservice with the use of AsyncTaks [duplicate]

Well, I'm trying to make an application that logs into a database, I was previously using the thread method to get it working, but at the time of reporting the error messages on the screen or something, it was not. I have modified it to use as...
asked by 25.05.2015 / 14:40
2
answers

Error while placing image in ImageButton

When there was only a drawable folder this error was not happening, but the app was distorted in other resolutions, hence I created the drawable folders with different resolutions (ldpi, hdpi ...) and inside I put the image that I want to set wi...
asked by 26.04.2015 / 16:10
1
answer

Open Android app with connection

I want to know how the Cerberus app, for Android, can open your app when we call a certain number? For those who do not know Cerberus, it is an anti-theft application, so it hides its icon so that people do not realize that it is installed....
asked by 29.04.2015 / 14:53
1
answer

Error 505 when installing Google Play App on Lollipop

I'm a developer and I'm having trouble installing an app in the Lollipop version. I have researched and believe that it is a packages error, ie there are two Apps calling the same package (but I'm not sure), this is part of my code. Both ap...
asked by 17.04.2015 / 15:00
1
answer

Change icon mylocation

I created an xml with an ImageView informing the image that I want to put in place of the icon. I want to put this image in place of the blue ball in the image below.    Is it possible to change the icon of mylocation?   If yes, what is t...
asked by 19.11.2015 / 14:17
1
answer

How to know the value that "MATCH_PARENT" will have when the view is drawn?

I'm using this code: LayoutParams par = new LayoutParams(40, LayoutParams.MATCH_PARENT); The second paramentitro, LayoutParams.MATCH_PARENT representing the height is the size of a horizontal layout I created. In the first parameter...
asked by 18.11.2015 / 14:23
1
answer

ToolBar Android

Personally, I wanted to be able to take the
asked by 23.11.2015 / 19:28
2
answers

How to adapt an Android app to various screen sizes?

For example ... I want the Android app to be displayed equally on both 5 "and 3" screens ... And how do I apply a "scroll" layout, how to add a scroll to the layout on Android?     
asked by 09.03.2015 / 17:34