All Questions

3
answers

Vertical slide navigation including highlight thumbnails

There is a slider here on this site that has a vertical navigation that sits on the right side, which includes the thumbnails of the previous slides and also the following slides. I would like an example to replicate this effect and I would...
asked on 13.06.2015 / 01:32
1
answer

Can not update my app on google play?

I know that it is necessary to change the version number, but when I make the change and try to generate an apk it gives an error and shows me a message ... Error: XML version "2.0" not supported; only XML 1.0 is supported.     
asked on 22.02.2015 / 02:52
2
answers

Saving a list of elements with Shared Preferences

I'm creating a contact list and would like to save this list with SharedPreferences . Example: public class MeusContatos extends Activity implements OnClickListener { int pos=0; public static final String PREFS_NAME = "Preferences"...
asked on 23.04.2015 / 05:30
3
answers

What is the advantage of using array include vs configuration file?

I have observed some codes where the programmer does the following: /** Arquivo A.php */ return array('databaseName' => 'bancoTeste', 'port' => 5208); /** Arquivo B.php */ $configs = include("A.php"); // Acesso as $configs echo $confi...
asked on 11.02.2015 / 12:15
2
answers

Singleton in JavaScript

How to implement the Singleton pattern in JavsScript in a simple and correct way - what assures me that the instance will be unique? I've seen some rather complex implementations, but would not that be enough? var xyz = xyz || (function (){...
asked on 15.11.2014 / 19:12
2
answers

What better way to organize and work with routes in ASP.NET MVC?

What better way to organize and work with routes in ASP.NET MVC? While we have 1, 2 routes, it's quiet, but when do we get 500? 600? In a corporate application there are many routes, what is the best way to organize them without losing contro...
asked on 07.08.2014 / 23:56
1
answer

How to make a click shoot another click?

I would like to know if there is a click on an element by clicking elsewhere, something like this: jQuery $("#button1").click(function(){ $("#button2").click(); }); I tried this and it did not work. Taking the example IDs as real;...
asked on 04.07.2014 / 23:21
2
answers

AsyncTask x MultiThreading

When it is more advantageous to use AsyncTask, and when to use Threads. For example: Home Download some file (ex: JSON). Which would be more advantageous in this case and why ??     
asked on 06.05.2014 / 14:58
1
answer

How to make an Expandable ListView?

I want to make a ListView only custom, clicking on it will open a tab below to show more information and the next item of ListView will automatically go down a bit to the open tab, follow the example: / p> In the image we no...
asked on 26.12.2014 / 14:31
2
answers

What are the advantages and disadvantages of generating HTML on the client or server?

Historically, HTML has almost always been generated on the server, Javascript being used for few things like animations, validations, masks, etc. However, in recent times there has been a tendency to generate HTML (almost) entirely in the cli...
asked on 16.09.2014 / 15:55