Posts by daniel12345smith • 2,120 points
129 posts
-
6
votes3
answers71632
viewsQ: How to make a select in the bank not to bring repeated values?
For example have in the table the values: green, red, blue, blue, pink, pink, pink, yellow. I would need to return from the colors table only once the blue and the pink. Is there any way to do this?…
-
0
votes3
answers1106
viewsQ: How to view query result in Sqlite?
To view tables I use a plugin called Questoidplugin and works very well, but and to view results of queries, has something?
-
2
votes2
answers202
viewsQ: How to optimally read a list of Arraylist dependencies?
I’m in four classes, each class has one ArrayList, where the last element depends on another ArrayList: Example Genêro->Artists->Albuns->Music To read the songs I’m doing as follows. for…
-
0
votes1
answer3258
viewsQ: How to access "data" folder in Android File Explorer using mobile phone as emulator?
I use a p plugin/ view the tables created in Sqlite, but I can’t access the "date" folder when I use my mobile phone as an emulator, only works when I use an AVD. Someone knows how to release this?…
-
0
votes1
answer65
viewsQ: Android not finding class inside a Jar. What to do?
This is the mistake:java.lang.ClassNotFoundException: br.org.projeto.precos.bean.Lista where the "br.org.projeto.precos.bean.Lista" is the Jar from which I am trying to use a class. I imported…
-
1
votes0
answers47
viewsQ: How to create a Jar and export from CVS?
I need to turn a project into Jar in CVS but I’m not getting, someone knows how to do step by step?
javaasked daniel12345smith 2,120 -
0
votes0
answers33
viewsQ: How to get a variable Inside of thread?
I have a webservice Receiving data and Stores it in a String , how do I get this string Global variables doesnt work! Im using a traditional thread: new Thread() { public void run(){…
-
0
votes1
answer51
viewsQ: Is it possible to inflate a class instead of layout using Fragmenttab?
I made a dynamic form, so I have to inflate the class and not the layout, but I am in doubt if this is possible with Tabfragment.
androidasked daniel12345smith 2,120 -
3
votes2
answers1845
viewsQ: How to recover the return result of a routine from within a Thread?
I need to run a routine within a Thread, and get the return of this method. My code is like this. class Main { public static void main(String[] args) { String resultado = ""; Thread t = new Thread()…
-
2
votes2
answers602
viewsQ: Does Eclipse Logcat for Android display Log messages?
public void ImprimeLog(){ Log.i("Funcionando",""); Log.e("Funcionando",""); Log.v("Funcionando",""); Log.w("Funcionando",""); Log.d("Funcionando",""); } In Android Studio works, but Eclipse is not…
-
2
votes1
answer73
viewsQ: How to decode an object via URL?
I have the object URL and I needed to encode and then de-perform, how do I do that? The URL is from a server that displays a Java object encoded and serialized.
javaasked daniel12345smith 2,120 -
2
votes1
answer167
viewsQ: Can you inflate a class?
There are many methods that you inflate a layout.xml but I need to inflate a class within a tab, anyone know what I can do? I’m suffocating in here. To inflate layout.xml use this code:…
androidasked daniel12345smith 2,120 -
0
votes0
answers67
viewsQ: How to prevent Jsonarray from organizing alphabetically?
I am taking the data of a Jsonarray and passing to another String, however in this process my data are getting in alphabetical order, and I would like it to be in the order of reading the Json file.…
-
5
votes1
answer260
viewsQ: How to inflate a class on Android?
I needed to inflate a form into a tab, always make the form in xml, but this time I did it via code, someone knows how to display my class instead of xml in a FragmentTab? Code to inflate an xml in…
-
0
votes4
answers374
viewsQ: Is it recommended to use more than one Activity in an Android project?
I always use several (in large project with web service and everything), the ideal is to use only one or no problems use several?
-
0
votes2
answers1571
viewsQ: How to use Android Scrollview via Java code?
In xml it’s easy to use, but I’m making a dynamic form and it’s not working. I’m doing something like this: ScrollView scroll = new ScrollView(this); From there inside the onCreate() I use it:…
-
-1
votes2
answers6738
viewsQ: How to get the name of the properties of a Javascript or JSON object?
{ "Ficha":[ { "nome":"nome", "sobrenome":"sobrenome", "idade":"idade", "endereco":"endereco", "empresa":"empresa", "telefones":[ { "residencial":"residencial" }, { "celular":"celular" } ] } ] } I…
-
4
votes1
answer603
viewsQ: How to get the string of a parent Json or a Json in array format?
I got the following JSON: String json = "{\n" + "\n" + " \"Pessoas\":[\n" + " {\n" + " \"NomeHomem\":{\n" + " \"Idade\":1\n" + " }\n" + " },\n" + " {\n" + " \"NomeMulher\":{\n" + " \"Idade\":true\n"…
-
4
votes1
answer611
viewsQ: How to read a Json without knowing what is inside it or the amount of data?
I’m developing a dynamic form for Android in which you get a Json file and create the forms. Everything is automated, except for the part where I have to pick up a string in Json’s hand. There is a…
-
0
votes1
answer92
viewsQ: How to catch the Json string without knowing what’s in it?
I use jo.getString("name") to get the value of a Json file, it’s like I get this name without having to put the "name" inside getString?
-
0
votes1
answer634
viewsQ: Can you read a json and get all the strings without knowing what’s inside?
I’m making a dynamic form where I get one Json and create a dynamic form, everything is automated, except the part I have to extract each string of JSon and put inside a array.…
-
0
votes1
answer87
viewsQ: How to popular a Jsonobject in hand?
I’m trying but not sure, I wanted to put it in the hand created, as if I had already received my JSON file. I tried to put the JSON structure inside Jsonobject but it didn’t work.
-
2
votes1
answer54
viewsQ: Does anyone know how to put "UTF-8" and "Scrollview" on Android via Java code?
I am developing a dynamic form, so I am doing everything via java code without using xml. Does anyone know how to add UTF-8 and Scrollview I’m not getting.
androidasked daniel12345smith 2,120 -
4
votes2
answers481
viewsQ: How to increment the txt file name that will be created in php?
If it is possible, how to increment the txt filename in php? I am working with php that I know very little, I need to increment the name of a txt file, to create a new file json.txt whenever I send…
phpasked daniel12345smith 2,120 -
4
votes3
answers821
viewsQ: What is an object returned in parentheses?
} return (carro); } Does it have any behavior other than the object without parentheses? I was in doubt, apparently the code works normally.
javaasked daniel12345smith 2,120 -
0
votes2
answers1089
viewsQ: Is there an online server where I can send a form made in Android with Json to test?
Just to test if my application is working. Something very simple even if you receive my form in Json format.
-
9
votes1
answer907
viewsQ: Thread or Asynctask? When and which one should I use?
When it is recommended to use threads? At what point it is advisable to use the AsyncTask? I would like to know what to use and when to use it.
-
0
votes0
answers273
viewsQ: How to send saved data from an Android form to email?
Instead of saving in the sqlite, would like to send p/ my email. Someone knows how to do?
androidasked daniel12345smith 2,120 -
1
votes1
answer104
viewsQ: What is the name of the menu that displays details on Android?
The menu that when you click on a title appears the options for you.