Questions tagged as 'java'

3
answers

Error with Text View

my codigo throws an error when I define the id of TextView . package com.david.animefm2; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent;...
asked by 05.10.2017 / 14:26
1
answer

ERRORnon-static variable this can not be referenced from a static context

I am implementing a class that allows me to create a linked list. But at the moment of instantiating a new linked list, I miss this error:    MainListaEnlazada.java:19: error: non-static variable this can not be referenced from a static conte...
asked by 29.10.2017 / 20:43
0
answers

Error trying to consume a web service: java.lang.ExceptionInInitializerError

I am trying to consume a web service from a particular company. I already got the wsdl and it generated the corresponding java codes. Now, when I try to try a service, I get the following error: [ERROR] java.lang.ExceptionInInitializerError...
asked by 10.11.2017 / 16:47
0
answers

Android architecture [closed]

Greetings, I want to start in the world of android programming and I would like to know if you can program between layers in android, that is, if I can use the data, business and presentation layer in android, thank you very much for your collab...
asked by 11.11.2017 / 17:21
1
answer

problem with notifications

the notification works fine, but when I press it, I create another activiti instead of opening the one that is already in memory, this causes the audio to continue playing, but the new activitie is not able to interact with that audio (let's say...
asked by 06.10.2017 / 14:36
1
answer

How to identify a word within a String and replace it completely with another symbol (#)?

The program should read a given String and find certain words with the following characteristics: start with 'p' and end with 'r' and start with 'h' and anywhere in the word have the letter 'o' . Since the word is identified it must be complete...
asked by 07.10.2017 / 03:51
1
answer

setOnItemClickListener send post data

Hello, excuse my previous questions and delete them to avoid generating spam since they were not well posed. This time I try to capture the data from a listview and send them via post. I'm using a class I found on the web called httpParser...
asked by 29.09.2017 / 01:37
1
answer

Cardinality in java

Good evening, my question is about in this case, how would you implement this, "The employee can have 1 to 3 services", how would that represent in code? This is what I have: package Hojatrabajo; public class Empleado { //ATRIBUTOS p...
asked by 28.09.2017 / 01:20
1
answer

How can I fix the immersive mode in Android Studio?

I have a problem with the Immersive Mode , it is that the app is in full screen at the beginning but if I open another app and return to mine already the Immersive Mode disappears, and I have to close it and open it again to return the app to...
asked by 29.09.2017 / 18:48
1
answer

Take the result of a list and print it in a JTextArea

my method "finderEnTextArea" , it does not work, it only prints the last string that says Fin, not the list of files. When I select the folder, and supposedly in the method searchTextArea I list all the files contained in it and I print them in...
asked by 21.09.2017 / 14:40