Posts by claudsan • 691 points
24 posts
-
0
votes2
answers792
viewsA: Check if Registration Exists in BD Sqlite and if there is no Return Message
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_onu_result); DbHelper db = new DbHelper(this); listaElementos =…
-
0
votes2
answers57
viewsA: Print Value of an array
The echo - Displays one or more strings You must use print_r - Prints variable information in a readable form $casa = new Imovel ("Apartamento", "3", "Porto"); echo $casa -> getTitleIdLocation();…
-
3
votes0
answers92
viewsQ: Intercept SQL s on a custom JDBC
You can create a custom implementation based on JDBC to intercept all sql s executed in the application? I did not find anything very concrete about this in Google, I made a simple test just…
-
5
votes2
answers10187
viewsQ: Generate Boleto in Java
I stuck here looking at some libs for bankroll generation and it seems that most have been abandoned. I wonder if there are any updated, better or easy to customize. Analized libs: Bopepo -…
-
3
votes3
answers2843
viewsQ: Controller Angularjs Statement
Following the script below generated a doubt in which declaration to use, in the Angularjs documentation I found the two forms in different examples, but I did not find an explanation of which…
-
0
votes1
answer500
viewsA: How to make this type of notification
You can create your own layout as an example below: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout" android:layout_width="fill_parent"…
-
1
votes1
answer76
viewsA: Height and width SVG
You can do so directly in js, follow below modification of your code: <svg id="xyz"> <script> var window_width = screen.width; var window_height = screen.height; var mySvg =…
-
1
votes2
answers314
viewsA: Jasper Reports 5 to 6 Obsolete methods
In the end I came to this code, with the answer from Anthony Accioly just above: JRXlsExporter exporter = new JRXlsExporter(); SimpleXlsReportConfiguration configuration = new…
-
4
votes2
answers314
viewsQ: Jasper Reports 5 to 6 Obsolete methods
I created some relays through the TIBCO Jaspersoft® Studio - Visual Designer for JasperReports and I am using the lib below in my project. <dependency>…
-
2
votes2
answers3184
viewsA: block "erasing" the screen for downtime
I think you’re gonna need this Wakelock, but it seems that the above answer also solves in doubt makes the test with the two in different appliances. There is also the option to do this partially…
-
2
votes1
answer783
viewsA: Return with different values in JSON / PHP
Solution: <?php include "conexao.php"; mysql_set_charset('utf8'); //<--- SOLUÇÃO // Pucha o conteudo do processo que fica na coluna todo_resto $sql = "select todo_resto from registros";…
-
0
votes2
answers3071
viewsA: www pointing to an ip and any subdomain to another ip
I’ve done something similar using the Nginx, you can configure as subdminios or even in a single url, passing parameters. Exemplo: www.meusistema.com.br/cliente1 = 192.168.1.1…
-
4
votes1
answer169
viewsA: Different layout on another device
Hello you can build your apk with multiple layouts, so it is easier to adapt to each screen either for a mobile phone or a tablet. Just put the same layout on each folder and change according to the…
-
2
votes4
answers1270
viewsA: How to notify Web Api user with Signalr?
I think you’re looking for something like "AJAX Reverso", I did not find a definition in English but here is a link to better understand how it works Prokata.com/reverseajax.html. At the time I used…
-
1
votes1
answer121
viewsA: Look and Feel is not updated on all subcomponents
Actually it was not a "problem" what happens is when I The executable jar by eclipse I was selecting the option Packaging required libraries into generate JAR with this the Eclipse replaces the main…
-
2
votes1
answer121
viewsQ: Look and Feel is not updated on all subcomponents
I am facing a problem with the look and Feel that I found a little strange, when running the project by the IDE all components are rendered according to the skin I selected, but when I use the JAR,…
-
6
votes2
answers2686
viewsA: Running JAR by Browser
Take a look here http://java.sun.com/docs/books/tutorial/deployment/jar/run.html I believe that just create as the example below in the html of your plugin. <applet code=TicTacToe.class…
-
2
votes2
answers4514
viewsA: How to create menu on Android?
William is exactly what @Piovezan said the android itself adjusts the amount according to the screen, but take a look here Implementing Navigation in the Android documentation itself. Because this…
-
1
votes1
answer596
views -
1
votes2
answers209
viewsA: Is there a way to filter contacts by "organization" in the agenda of Android contacts, when triggered through other activity?
Exactly this you can do as is done the operation in any database on android. String[] projection = new String[]{Calls.NUMBER, Calls.DURATION}; Cursor cur =…
-
0
votes2
answers209
viewsA: Is there a way to filter contacts by "organization" in the agenda of Android contacts, when triggered through other activity?
There is yes ,here is a more detailed example you can sort by any field you want https://developer.android.com/training/contacts-provider/retrieve-details.html Below excerpt directly from the…
-
2
votes1
answer109
viewsQ: Change Active Profiles Spring at runtime
I usually use this code snippet to define the profile of the application <servlet> <servlet-name>dispatcher</servlet-name>…
-
3
votes2
answers234
viewsA: Auto increment ID value
You can also change the value of the property if you have lost the sequence if you have removed any record. ALTER TABLE `TABELA` AUTO_INCREMENT = ?; In the ? you substitute for the amount you want.…
-
1
votes3
answers300
viewsQ: Android Development Profile (Profile)
I was taking a look here and I still can’t find out if there is a way, I believe you also go through this. When we are developing an application that uses some service, we have somewhere in our code…