Questions tagged as 'java'

2
answers

Error "Unsupported major.minor version" in Java

When trying to run a class made in
asked by 02.12.2015 / 00:34
2
answers

How can I get a magnifying glass when selecting an editext on the keyboard? Android Studio

I'm making a mobile application, which I'm looking for to make a search engine, but I'd like to type the magnifying glass icon on the keyboard in the edittext of the search, how is that possible?     
asked by 25.05.2018 / 20:39
2
answers

BitmapFactory.decodeStream (fileInputStream) returns null - Android

Good! I have a problem with the following code in Android Studio: try { FileInputStream fileInputStream = new FileInputStream(dirPhoto); bitmap = BitmapFactory.decodeStream(fileInputStream); vwImagen.setImageBitmap(bitmap); } catch (S...
asked by 17.03.2017 / 19:37
5
answers

Error android.os.NetworkOnMainThreadException in using Android HttpURLConnection

I try to make a request for a resource json using HttpURLConnection I test the following code in onCreate () try { URL url = new URL("http://localhost/testrealm/api/v1/status"); HttpURLConnection urlConnec...
asked by 10.06.2016 / 14:41
4
answers

Android: Remove data from an Object ArrayLIst

I have a problem extracting data from an Object ArrayList. This is my object public class ImageData { private int id; private String name; private Bitmap bitmap; private String path; public int getId() { return id;...
asked by 19.12.2016 / 17:13
2
answers

How to attach files on android to send by email?

Good evening, it turns out that I have my application in which I generate a pdf, then want to send an email and attach the pdf file, the pdf file generates it well, but I do not know how to attach the file. Thanks in advance.     
asked by 27.10.2016 / 10:53
2
answers

What is a POO Instance

I've been programming for a while and whenever I read or hear the word instance , we instantiate , I get an idea of what is being talked about but I'm not sure at all. I understand that the instance of an object is when we create a new ob...
asked by 12.04.2016 / 08:55
4
answers

Problem when changing a string word for another word in a phrase

Hello, I just need help printing the sentence already changed please. When printing I get the following: [Ljava.lang.String; @ 2a139a55 Here is my code: public static void main(String[] args) throws IOException { BufferedReader...
asked by 07.03.2016 / 06:04
1
answer

Simple LinkedList will not let me add .add (int);

I'm practicing with some tutorials and I had a problem. Can not I add a int object to the list? package paquete; import java.util.*; import java.util.LinkedList; class Main { public static void main(String[] args) { // TODO Auto-g...
asked by 14.01.2016 / 16:23
2
answers

TextView Multiline with horizontal and vertical scroll

Well, so that we are in tune, my idea is to create a logger I've already managed to make it scroll vertically but as I do not fit the text in TextView I share the code: <?xml version="1.0" encoding="utf-8"?> <android.suppo...
asked by 27.10.2018 / 21:07