Posts by Alexandre Strevenski • 465 points
15 posts
-
0
votes2
answers127
viewsA: Can I use tools.jar in the Classpath of my Java project?
Probably not necessary, he’s already part of JDK. Just check if where to run the application, which JAVA_HOME is set.
-
0
votes1
answer32
viewsA: How to close Drawer after changing orientation?
The following code closes/opens Drawer: button.setOnClickListener(new OnClickListener() { public void onClick(View view) { if (mDrawerLayout.isDrawerOpen(Gravity.LEFT)) {…
-
4
votes1
answer988
viewsA: What are the Android design standards?
Design Standard is a reusable solution, being a model, and not actually an implementation, so there are no language-defined, or Android-specific design standards. A design standard can be…
-
2
votes3
answers30862
viewsA: When to use Stateful or Stateless
Oracle JAVA EE 6 documentation regarding: Stateful Session Beans The state of an Object consists of the values of its instance variables. In a stateful Session bean, the instance variables represent…
-
3
votes1
answer1390
viewsA: How to read . txt file?
To read a . txt from android, you can use the following code: try { AssetManager assetManager = getResources().getAssets(); InputStream inputStream = assetManager.open("nome-do-arquivo.txt");…
-
0
votes4
answers374
viewsA: Is it recommended to use more than one Activity in an Android project?
Yes, normally each Activity dams an Android project screen.
-
2
votes3
answers1367
viewsA: Problems to implement convert to selectOneMenu
In selectOneMenu you must add converter="generic", because the convert is not being found. Your selectOneMenu is like this: <p:selectOneMenu id="empresaMenu" value="#{topsisBean.pd.empresa}"…
-
2
votes3
answers2263
viewsA: How do I show icon in the Bar action when item is in overflow?
You can follow the example in this link: http://developer.android.com/guide/topics/ui/actionbar.html#ActionProvider XML would look like this: <?xml version="1.0" encoding="utf-8"?> <menu…
-
1
votes1
answer918
viewsA: Return Exception Java to Ajax
Erico, Normally launch the SQLException and in the error: put the following: error: function(jqXHR, status, error) { var err = eval("(" + jqXHR.responseText + ")"); alert(err.Message); } This should…
-
7
votes1
answer4309
viewsA: Android minSDKVersion and targetSDKVerion
Jorge, minSdkVersion indicates which minimum API is required to run the application. In your case, minSdkVersion="14", indicates that it will not be possible to run the application if the user has…
androidanswered Alexandre Strevenski 465 -
0
votes2
answers642
viewsA: Uploads of files via ajax
Have you tried using Updatepanel? This link has a very complete example: http://www.codeproject.com/Articles/482800/FileplusUploadplusinplusUpdateplusPanel Basically it would be a code like this:…
-
1
votes2
answers1095
viewsA: Count selected Checkbox lines in a Gridview
Nix, Take a look at these two links that talk about checkbox on Gridview: https://stackoverflow.com/questions/5684881/checkbox-in-gridview…
-
1
votes1
answer351
viewsA: Import phonegap/Cordova file in eclipse
Try to follow these steps: Create a new android project. Copy the files (.java, jar, etc) Paste where this new android design. Refresh in eclipse project to list copied files.…
-
1
votes2
answers234
viewsA: A way to unify calls in WCF Service?
Paul, If the main goal is to call methods without updating the client, following the example, I can suggest the following: enum Metodos { MetodoA, MetodoB }; [ServiceContract] public interface…
-
4
votes1
answer2895
viewsA: How to call a report created with iReport
Augusto, You can do it this way: Map parametros = new HashMap(); String relatorio = "caminhodorelatorio\\arquivo.jasper"; JasperPrint jasperPrint = JasperFillManager.fillReport(relatorio,…
ireportanswered Alexandre Strevenski 465