Questions tagged as 'java'

1
answer

Discover partition [closed]

I'm creating an application that will run from an external hard drive. I've been researching but I have not found a way without using a lot of gambiarra to find the partition where that HD was mounted. My goal is to have a File object that ha...
asked by 24.11.2016 / 20:48
1
answer

Problem in converting Photo Base64 on Android

The problem is the following, I take the photo right and I set it in the activity, so that's fine, but after converting it and sending it to the server and decoding, only only part of the photo appears: Photo-taking code private Integer Im...
asked by 15.07.2016 / 16:35
1
answer

Json Custom Spring Receipt

Hello, guys. All right? Currently on my system I'm mapping objects to Spring's default form, but I'd like to do a custom mapping: Current driver @RequestMapping(value = "", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JS...
asked by 28.06.2016 / 00:38
1
answer

Format a string that matcher found

I'm using matcher to pick different patterns of time, but when I write it, I'd like it to be written in the correct format, I tried using SimpleDateFormat ("HH: mm: ss"), but it did not work. For example: The matcher found 17: 4441 in the tex...
asked by 05.07.2016 / 18:43
1
answer

How to open a JFrame passed as a parameter?

My idea is to open this window as a parameter without losing any attribute, for example, I have the class: public class Teste { JFrame janela = new JFrame; public ControllerJPreTransacao(JFrame janela) { this.janela...
asked by 13.06.2016 / 18:59
1
answer

java.io.FileNotFoundException: /storage/emulated/0/desk.csv: open failed: EISDIR (Is a directory)

I have the following screen: Ievenaskedanotherquestion,whichwashavingtroubleloadingthedirectoryfilesinthespinnerandhasalreadybeensolved,theproblemnowiswhenclickingtheImportbutton,toimportthecsvfileintotheImportfolderthatislocatedinthemyFTP,I...
asked by 15.06.2016 / 16:11
1
answer

Android - saving text typed in an EditText

I want to know how to save the typed text in an EditText to use it later, I do not know if it is possible, but maybe saving it in a .txt file and then get the text present in the file. Thanks!     
asked by 11.07.2016 / 15:26
1
answer

Call a method via datatable rows

Given my datatable below: <p:dataTable id="tabela" var="linha" value="#{naturemb.lista}" paginator="true" rows="10" rendered="#{not empty naturemb.lista}" > <p:column styleClass="botoesGrid">...
asked by 14.06.2016 / 00:10
1
answer

Error java.lang.NoSuchMethodError: MainActivity.checkSelfPermission

I'm making several attempts, but I can not get a user's current location using the Location API. I'm running the following example: public class MainActivity extends AppCompatActivity implements GoogleApiClient.ConnectionCallbacks, GoogleAp...
asked by 20.08.2016 / 16:42
1
answer

Edit datatable record

Next staff: In my datatable when I click the edit button, it is not opening the edit screen. Can someone help me where I'm wrong? page:                                                                                                     ...
asked by 05.06.2016 / 17:23