Posts by Lucas Queiroz Ribeiro • 1,828 points
83 posts
-
4
votes1
answer883
viewsA: Publish private app on Google Play without being a company
Good afternoon Maycon, You can distribute your application through a private channel, it is not necessary to be a company. For this you need to have a developer account (the same) the only exception…
google-playanswered Lucas Queiroz Ribeiro 1,828 -
1
votes1
answer339
viewsA: Use values passed from one Activity to another
There are several ways you can get what you want, I would use a Simplecursoradapter. It works as follows, instead of you passing a list of Strings to popular Listview, you will pass directly the…
-
1
votes1
answer47
viewsA: How to pass Activity values to useful?
Bom Tiago, I do not see a good reason to try to instantiate a class within itself, I believe that the ideal would be for you to divide this class in two, being one only with the Object that will…
androidanswered Lucas Queiroz Ribeiro 1,828 -
0
votes1
answer786
viewsA: Help with Asynctask and progressbar
Seeing your mistake now made it easy to identify, Only the original Thread that create a view can touch it's views This is because Asynctask runs outside the Thread UI, meaning everything that…
androidanswered Lucas Queiroz Ribeiro 1,828 -
0
votes2
answers615
viewsA: How to decode the following JSON? PHP
just use the variable containing the JSON and use the index: $json = json_decode(file_get_contents('php://input',true)); // <---- Usei esse exemplo, mas você pode usar qualquer "raw JSON" //…
-
1
votes1
answer257
viewsA: Sqlite database in android project
Well, everything you need can be found at official documentation of developers. Good studies ^^…
-
1
votes1
answer378
viewsA: How to view images with a proportional screen size with libgdx?
Well, I’ve worked very little with libgdx, but from what I’ve seen, you can use Viewports to resize your image, however, I confess that I have never tested it in this way. Another solution, which…
-
1
votes3
answers2364
viewsA: How to assign "Selected" to a dynamic option?
I usually do this without using so many Jquery tags, particularly I get lost less with html. I would do something like: var selected = ""; if(isSelected){ selected="selected"; }…
-
1
votes2
answers882
viewsA: How to organize data from a listview?
Listview organizes the items in the order you put them in, if your data is cluttered, most likely it is because of the JSON object because according to the documentation http://www.json.org/ Json…
-
1
votes1
answer234
viewsA: Error trying to fetch location
Try calling the start finding location function again after asking for permission: @Override public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {…
-
2
votes2
answers2007
viewsA: Unique identifier android device
Well, unique ID on Android is a little tricky to be sure, there are several places that provide an ID and not always the same place is available on all devices, my solution was to create a ID of my…
androidanswered Lucas Queiroz Ribeiro 1,828 -
6
votes1
answer313
viewsA: Recyclerview enviezada(diagonal) - android
Marcela, I can’t test at the moment, but try this (API 11+) Insert this line into your method onCreateViewHolder : view.setRotation(-10); Will stay like this: @Override public TipViewHolder…
-
2
votes2
answers8005
viewsA: What is the difference between the logical operators NOT, AND and OR?
The difference is in the conditions of true, AND(E) returns true if the two entries are true, OR(OR) returns true if at least one of the entries is true (one OR another), NOT(NOT) simply reverses…
-
0
votes2
answers674
viewsA: Validating input file with ajax request
The problem is that AJAX does not support sending files with serialize, and it is necessary to specify content type and process data for false. try the following: $('.formulario').submit(function()…
-
1
votes1
answer246
viewsA: Solutions to count downloads from a file
I believe it’s a little personal preference, I would particularly prefer to create a tabelinha to store the information from these downloads, it would be much easier to take statistics or something…
-
0
votes1
answer1127
viewsA: JSON Restful API Accents
When receiving the data in PHP use an Encode to transfer the data to the variable: header("Content-Type: text/html; charset=UTF-8",true); $json = json_decode(file_get_contents('php://input',true));…
-
2
votes2
answers49
viewsA: Aid to create the first android project
Complementing Leonardo’s excellent suggestion, I highly recommend the Udacity Free course that is done by Google professionals, they use only Android Studio and teach well explained. The course is…
androidanswered Lucas Queiroz Ribeiro 1,828 -
1
votes2
answers352
viewsA: Display given in textView
Good morning Henrique, The method getReadableDatabase() must be executed in your database. SQLiteDatabase db = criaBanco.getReadableDatabase(); Cursor cursor = db.rawQuery(sqlNome,null); if (cursor…
androidanswered Lucas Queiroz Ribeiro 1,828 -
1
votes1
answer70
viewsA: Millions of users simultaneously on Android
Bom Luiz, Android itself has a database that stays on the device itself, thus storing the local data of your application. If you wish to store this information, treat it or interact with it, you…
androidanswered Lucas Queiroz Ribeiro 1,828 -
1
votes1
answer908
viewsA: How to scroll through a multi-row table and select only one specific table?
Hello ! You do not need to use Jquery to do this, in a similar code I did the following: <tr> <td><a id='".$id."' href='#' onClick='return slide(this.id);'>Nome…
-
1
votes2
answers4746
viewsA: How to adapt an Android app to various screen sizes?
I believe that in most cases declare the XML elements using wrap_content and match_parent works well. However, to handle different situations with greater freedom, Android allows the declaration of…
-
4
votes2
answers970
viewsA: Close all applications in the background except my app
First I think it would be interesting to explain a little how the Android architecture works. Applications developed for Android are written in Java, which means they will be compiled and run within…
androidanswered Lucas Queiroz Ribeiro 1,828 -
4
votes1
answer742
viewsA: PHP - Upload file to different folders
When you use move_uploaded_file() you take the file that was saved temporarily and move it to another place, if you use it again, it will move the file again but always a single file. To create…
-
3
votes1
answer143
viewsA: Connect server to local network by hostname
I found in the stack in English the following code. try { Log.d("ReverseDNS", "Reverse DNS for 8.8.8.8 is: " + InetAddress.getByName("8.8.8.8").getHostName()); } catch (UnknownHostException e) {…
-
1
votes3
answers330
viewsA: Doubt game two players, half screen upside down
It seems to me that each part will have an individual functionality ? You can use an Activity, and popular it with two Fragments, then you specify the orientation of each Fragment. This question (in…
-
0
votes3
answers2658
viewsA: Knowing that a button has been clicked
You may have misunderstood, however, as I understood by clicking on btnRegister you will check that the fields are not empty correct ? It seems to me that the validation will be inside the…
androidanswered Lucas Queiroz Ribeiro 1,828 -
1
votes2
answers152
viewsA: What is the difference between instantiation in the same variable or in 3 different variables?
I believe your example was made to exemplify several ways to build an instance. When you instance an object, it automatically invokes a constructor method, which has not been declared. If you…
-
3
votes5
answers1294
viewsA: change the title of a Window confirm()
You should pass the title as parameter, for example: notification.confirm('message',onConfirm,'title','Restart,Exit'); that is, the order of the parameters is: Message, function to be executed in…
-
6
votes2
answers513
viewsA: Is there a difference between compiling from the linux terminal or from the IDE?
I believe it is important to know how it works on the terminal, but unless you are going to use very specific commands to compile there is no need. The entire IDE is designed to speed up and help…
-
0
votes3
answers531
viewsA: Using Activity Methods in a Fragment
Good afternoon ! You can instantiate an async task yes ! First you use a constructor to instantiate: JSONParse parse = new JSONParse (); Then you run asynctask with the parameters you declared to be…
-
0
votes0
answers415
viewsQ: Use a Carousel inside a tab-panel (Bootstrap)
Good afternoon! I am trying to implement a Carousel within a tab-panel; however, both use the "active" notation in the class to determine which item will appear. So, when I select the desired tab,…
-
0
votes3
answers108
viewsA: Is there any way in pure C to implement set?
I believe that in C you cannot use functions like the ones Python Set allows, comparisons should be done "manually", you could use an array to store all words and compare through a loop of…
-
0
votes0
answers36
viewsQ: Mixitup does not display elements
Goodnight, I’ve been trying to use the Mixitup plugin to modify the Thumbs of an image gallery, however, the images are always not shown (as initially the plugin asks), I can’t identify what the…