All Questions

1
answer

How to include a txt file, already created, in your Android project

I have been reviewing how to work with files on Android and I have done some practices on how to create a file, write about it, read, etc. But, what if the file I have already created ?, Imagine that I want to insert in my application a file...
asked on 02.05.2018 / 16:44
2
answers

How to prevent a script under "_" from being added to the end of the contents of a TextBox

I'm working with nicks (first names). When a user registers, he must enter his nickname, he can not contain symbols (except the underscore), only numbers and letters. I use the event KeyPress of my TextBox Username for this:...
asked on 01.05.2018 / 22:57
1
answer

Long to Float in Java?

Good morning, I have the following problem I get in a variable of type Long a conversion of milliseconds to hours, but I need to store them in a Float type variable. tiempos.setFechaHoraFinal(fechaActual); tiemposFacade.edit(tiempos);...
asked on 11.09.2017 / 13:28
1
answer

problems with Action_send: ActivityNotFoundException

Hi, I'm executing action_send but I'm stopped by the application I'm using android 7 and with other versions it works but with this it stops. String email = "[email protected]"; Intent intentMail = new Intent(Intent.A...
asked on 12.09.2017 / 02:07
1
answer

Android app always vertical?

I want my APP to only run vertically but I can not, I have implemented the following without success. Manifest: < application ... android:configChanges="orientation" android:screenOrientation="portrait"> Act...
asked on 27.04.2018 / 15:56
2
answers

Set the checkbox of a DataGridViewCheckBoxCell to true

I load a DataGridView through a list. datagridview.DataSource = listaVariables; This DatagridView, is formed by a column (the first) that is of the DataGridViewCheckBoxCell type. What I want to do is that, depending on a property of the...
asked on 13.09.2017 / 12:01
2
answers

Thread concurrency problem. Thread Race Exercise. JAVA

My problem is as follows, I have a runner class, the only thing he does is a method run (thread) that simulates the distance traveled and is saved in the variable distance that is a summation of the result of the Math.Random();...
asked on 26.04.2018 / 17:43
1
answer

Post with Ajax always gives an error but it still works

SOLUTION: One of the given solutions (which was the one that worked for me was to eliminate dataType : 'json', then if the route remains as in my case /search/search/undefined that I solved changing window.location.href = respon...
asked on 12.09.2017 / 11:52
2
answers

place the image on the right

Good! How can I make the second image on the right? I put a single class for her that is called derecha but the problem that when float right, the page loses its flow and are piled on top of each other. I just want the second one, t...
asked on 11.09.2017 / 11:07
4
answers

AdmiralCloack.lua: 54: 'then' expected near ')'

function Cloaks:Init() if (file_exists)(Cloaks.DB) == false) then print('Creating Admiral Cloak Database') table.save({},Cloaks.DB, FILE_WRITE) end end     
asked on 10.09.2017 / 15:35