Posts by Skywalker • 3,151 points
126 posts
-
2
votes3
answers3512
viewsQ: How to decrease the quality of an image on android?
I have a list of objects that have an array of images that are somewhat "heavy", at the beginning of the application I have a custom listview that displays an image (icone) of each object, I would…
-
0
votes1
answer581
viewsQ: Android app initializing with Side Drawer Menu always open
It’s a very simple question, but how can I solve this problem? Every time I start the application it is with that side menu suspended always open. public class NavigationDrawerFragment extends…
-
0
votes2
answers189
viewsA: Does anyone have any information about Google no longer making ADT available for download? Have they fixed Android Studio as a tool?
ADT plugin I hope that’s what you’re looking for.
-
7
votes2
answers2322
viewsQ: How to save/recover image in memory on android?
Hi, I have a Array of Bytes which is a image, from it, how can I save in the external memory and if there is no save in the internal memory android? and then how can I be recovering this image? I…
-
1
votes2
answers3516
viewsA: What is the right way to authenticate to a REST API used by mobile applications?
Answering the second question, but the first one can take as a basis. I believe, that today the most common methods of authentication, is to use a google authentication API, facebook, or some other…
-
0
votes2
answers427
viewsA: How to remove the Appcompat error from the app?
Do not import appcompat, remove this appcompat that you imported. Create a new Test project and appcompat will create automatically. Then clean up the project.
-
4
votes2
answers2093
viewsA: How to detect screen resolution to apply the layout on android?
Hello, you should use folders with this nomenclature. layout-xlarge screens of at least 960dp x 720dp layout-large screens of at least 640dp x 480dp normal-layout screens of at least 470dp x 320dp…
-
2
votes1
answer926
viewsA: How to select a particular java listview line
First check your event logic, you are using an event to select an item from the list, did not understand why change the rest of the items. Before changing the list item I need to know what type of…
-
10
votes1
answer8664
viewsQ: Socket between 2 clients and 1 C server
How to receive two connections? The system consists of 2 clients and 1 server, the server must receive the connections and initiate a sequential conversation with the clients. I was able to…
-
0
votes0
answers56
viewsQ: Question about android default to communicate with other Activitys
I have an Activitymain, it starts at the beginning and only ends its activity at the end of the application, that is while browsing other activitys of the app this Activity will always be behind. My…
-
1
votes2
answers373
viewsA: Selectonemenu is not powered
Meumanagedbean.java @ManagedBean(name="meuManagedBean") @RequestScoped public class MeuManagedBean { //code... public List< MeuManagedBean > getCarros(){ return new CarroDAO().metodoDAO(); }…
-
1
votes2
answers869
viewsQ: Exception with Convert from a Primefaces selectOneMenu
I created a dynamic selectOneMenu that takes a Author Object List that implements Serializable. The code is as follows:: XHTML from selectOneMenu <p:selectOneMenu id="autor_selecionado"…
-
3
votes1
answer4248
viewsQ: How to create a daily event in Mysql 5.6?
I need Mysql to remove all data from a table always at midnight.
-
2
votes2
answers290
viewsQ: Recovering List of Outdated Objects with Hibernate
When I manually insert an object in Mysql via terminal, Hibernate does not recover the list with the updated object, it is always the same as the last query, as if it were taken from some cache. I…
-
0
votes1
answer924
viewsQ: Json upload via android GET
Problem with special characters (keys, parentheses, etc) which contain in a json I’m sending via GET. android generates the following log: > E/AndroidRuntime(1956):…
-
2
votes1
answer745
viewsA: Problem with accentuation when entering data in android Sqlite
Probably having an injection in your sql, I saw that you used water, is the text not water? because if this is the way the problem is there, this quote is closing the content parameter and is being…
-
3
votes2
answers543
viewsA: Java error SQL query
The error is here "select senha from usuarios where usuario="+cliente.getLogin(); the "right" is "select senha from usuarios where usuario= '"+cliente.getLogin()+"'"; see that it has a simple quote…
-
3
votes2
answers2352
viewsA: Error building JSON of an Object recovered by Hibernate
I came to the conclusion after several searches and the problem is that the Client object has as attribute another Category object. The data of the client object are in memory, already the data of…
-
2
votes2
answers2352
viewsQ: Error building JSON of an Object recovered by Hibernate
Error building Json of an Object recovered by Hibernate. session.getTransaction().begin(); ArrayList<Cliente> lista = new ArrayList<>(session.createCriteria(Cliente.class).list());…
-
3
votes1
answer576
viewsA: How/When to Close Hibernate Session?
RESOLVED. Solution! public String listarTodosClientes() { session.getTransaction().begin(); List<Cliente> lista = session.createCriteria(Cliente.class).list(); String retorno =…
-
5
votes1
answer576
viewsQ: How/When to Close Hibernate Session?
I have an error after closing Hibernate Session public String listarTodosClientes() { session.getTransaction().begin(); List<Cliente> lista = session.createCriteria(Cliente.class).list();…
-
2
votes1
answer982
viewsQ: How to change page after inserting object in database?
I created a JSF page with a client form, after saving client by pressing the sign up button. The object persisted in the BD, and consequently I would like you to change pages going to the…
-
0
votes2
answers1338
viewsQ: How to get id of an Imageview on android?
How I can get an id of an image from an Imageview. Example, for me to set an image in my Imageview I use the following code. imageView.setImageResource(R.drawable.icone_x); How do I do the reverse…
-
-1
votes1
answer133
viewsA: Does Try Catch influence performance?
Yes, it has minimal runtime influence, unless you make large loops inside the Ry, use only when necessary and avoid using the Exception, use the exception according to the type of error expected to…
-
2
votes2
answers375
viewsA: How to insert a jTabbedPane into a jPanel of another class
Where did you urge Container ct? According to what you said, the problem is here: jPanelPrincipal.add(ConfEmpresa.ct.getComponent(0)); ct.getComponent(0) is null as it is probably not instantiated.…
-
3
votes1
answer190
viewsQ: Develop for iPhone when you’re an Android developer
I develop for Android, now I want to start developing for iPhone, my doubts are as follows. I use Linux, searching the internet concludes that Apple only provides the tools for Mac. And to program…