Questions tagged as 'android'

2
answers

Application is returning NullPointerException error despite object being set

Error clicking save new process after assigning data in each field: java.lang.NullPointerException: Attempt to invoke virtual method 'long com.example.alex.levprocess.processos.RepositorioProcesso.salvar(com.example.alex.levprocess.processos.P...
asked by 30.11.2015 / 00:02
1
answer

Reduce size of a Bitmap

How do I reduce the size of a Bitmap? For example, take a photo of 600kB and reduce it to 50KB. obs: No java.     
asked by 13.10.2015 / 23:46
2
answers

Error in Android connection with Web Service Restfull

I'm developing an android app for a course in college. I am connecting the Restfull Web Service with the android using the Gson library to pass data. In the method below I am performing a POST request, in that I make this connection via web i...
asked by 07.12.2015 / 21:39
1
answer

View PDF on android

I need to insert a pdf in my application; how could I do that? Is there a pdf view? The pdf will be inside the application itself in the assets folder. Thank you.     
asked by 01.11.2015 / 21:06
1
answer

How to present a listView with only one line with the changed color?

It may seem easy, but I'm catching it. I needed a list of 10 names, for example the 3rd name in green. As I do to get his position, I'm not getting it, I need to present this list with the modified color as soon as I open the screen. can someone...
asked by 21.09.2015 / 16:48
1
answer

Resize bitmap without blurring

I'm using a code to make ImageView circular. The problem is that I need to use " scaleType: centerCrop ", which leaves the oval image instead of circular , depending on the resolution of the image. I tried using the code below to resize...
asked by 19.10.2015 / 05:45
1
answer

Android toolbar occupying all layout space

I'm trying to implement a Toolbar implementation in my Android application, but for some reason it takes up all of the screen space. I would like to know why, since I am using the below property in the layout after the toolbar. activity_main...
asked by 18.08.2015 / 03:45
1
answer

Android Studio freezes in Gradle: Resolve dependencies ': app: _debugCompile'

When I open Android Studio, Gradle runs multiple processes. When it arrives at Resolve dependencies ':app:_debugCompile' it crashes and even having an abort does not respond. This is my build.gradle : // Top-level build file wh...
asked by 23.08.2015 / 15:51
2
answers

Change the Bar Status to transparent in a Fragment within an Activity

I have a Activity which has a theme for its Status Bar, but it has an influence on Fragment to which I want another color in the Status Bar. Is there any way I can change the color of the Status Bar only when that Fragment...
asked by 27.07.2015 / 20:49
2
answers

How to find the way between two markers on Android?

I have two Markers placed on the map. I would like to insert a route between them. How can I do this? //Nometodoondeimplementoosmarkerstenhoosegunintecodigo//TenhoabaixooprimeiroMakerimplementadoMarkerm_person=mMap.addMarker(newMarker...
asked by 31.07.2015 / 08:54