Questions tagged as 'android'

1
answer

imageView.getDrawable () method throws NullPointerException

I wanted to get the drawable from ImageView and convert it to a bitmap. The conversion method I already have and is working fine, but when I request execution, it has the following error: Error Displayed: WhenItakethedirectimagefromtheDra...
asked by 03.03.2016 / 18:54
1
answer

Error trying to set custom ActionBar: java.lang.NullPointerException

I'm trying to customize my ActionBar but whenever I try to emulate the application it closes and returns me the following error in LogCat: 01-07 16:21:57.092 1388-1388/br.com.jeiferson.agenda E/AndroidRuntime: FATAL EXCEPTION: main 01-07 16:21...
asked by 07.01.2016 / 17:31
2
answers

Alternative to Absolut Layout

I saw that AbsoluteLayout was discontinued because of patterns on different phones. I currently use RelativeLayout , but if it keeps the objects in relative positions, if I change one, the rest everything changes. Is there a subs...
asked by 27.06.2016 / 14:20
2
answers

How to open a project directly by explorer

I was left with the following question these days and could not find a solution for that. Next, I have several projects in Android Studio (all have already been imported and are working perfectly), but every time I open the AS it opens the la...
asked by 14.11.2016 / 19:38
2
answers

How to destroy my Activity?

I need to destroy my MainActivity when I leave the app. How can I do this?     
asked by 19.06.2016 / 03:00
1
answer

How to send data from an Activity to a Fragment?

As you can see in the code below I can send data from one Fragment to another and also from a Fragment to Activity but I have tried everything to send from Activity to Fragment but I can not: MainActivity.java public class MainActivity exten...
asked by 30.06.2016 / 02:07
1
answer

Is it possible to create a multiplatform hybrid application with PhoneGap?

With the advent of creating mobile applications for various platforms using PhoneGap, as an example, I found on the Adobe PhoneGap website the chance to create a hybrid app using both native components of the chosen mobile platform and Cordova co...
asked by 13.10.2015 / 01:37
2
answers

How do I create notifications?

I'm making apps just to test some functions for Android and would like to know how to create notifications in the status bar. My Java code and a default code that only calls the XML file: package com.bandicootapps.nav; import android.app.*...
asked by 03.09.2016 / 14:33
2
answers

Place text underneath the image

I'm developing an application and I put an image with a text underneath but when I run the application it looks like the text on the side of the image: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayou...
asked by 12.08.2017 / 19:36
1
answer

Bring only the name in the ListView, but relate to the ID

I have a WebService that lists all my users and brings users to the bank. I have a class Usuario { int id; String nome; } With its builders, gets and sets, etc. And I can return all my users. However, I want to throw all this in a...
asked by 23.06.2015 / 02:18