Posts by Pedro Rangel • 2,747 points
80 posts
-
0
votes1
answer495
viewsA: How to add two floats interacting with the UI?
You can change your code to: Layout activity_main: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"…
-
6
votes1
answer1534
viewsA: Eclipse for Java EE does not start
The problem is that you are trying to start a 64-bit Eclipse version with a 32-bit Java version. You can download it Java SE Development Start Eclipse with a 64-bit JVM and the problem goes away.…
-
2
votes1
answer1082
viewsA: Problem with passing Nodejs/Express parameter
Passport also need to serialize and override the user instance,you can try using these commands below: passport.serializeUser(function(user, done) { done(null, user); });…
-
2
votes2
answers1183
viewsA: Sum of squares
You can use without recursion, because the computational time will be much smaller, below is implemented iteratively: double quadrado(double x0, double r, int n) { int resultado = 0; for(int i = 0;…
canswered Pedro Rangel 2,747 -
1
votes1
answer80
viewsA: Installation error: INSTALL_FAILED_CONTAINER_ERROR app Eclipse
This post on this site can help you: Link Android You can use android:installLocation="auto"…
-
1
votes1
answer5276
viewsQ: How using actionBar appear icon + text of items?
I declared in the Manifest android:uiOptions="splitActionBarWhenNarrow" for actionBar and set the items as showAsAction="ifRoom|withText" appear at the bottom of the screen, follows the figure…
-
1
votes2
answers7960
viewsQ: How to close an Activity(remove from Foreground)?
I have the following code in my Mainactivity class that has a Alertdialog and processing in the onClick method(): import android.app.Activity; import android.app.AlertDialog; import…
-
0
votes1
answer1383
viewsQ: What tools (Apis, libraries, frameworks) are needed to create graphs and reports?
I’m wanting to take data for example from a database and develop charts of this type, follows the figure below: If possible in various formats in pizza, in bars etc. And then generate a report of…
-
0
votes1
answer656
viewsQ: How can I within a class extending from Broadcastreceiver make any changes to the graphical interface?
Having an Activitymain(inherits from Activity) calls a broadcast, and then the Broadcast class is started. But when performed some action in this broadcast I want to change information from the…
-
0
votes4
answers1762
viewsA: Add element in List (Arraylist)
If fit and processes are two lists that have the same kind of values you can use: aptos.addAll(processos);
-
0
votes3
answers10545
viewsA: Regular Expression White Space
String[] vetor = texto.split((^DOC)*[0-9]\\S); The resulting vector will have two positions: vector[0]= 240010 and vector[1]= 24092014, just take the vector[0] that interests it.…
-
3
votes1
answer1608
viewsA: The Android SDK emulator is very slow(booting and running), how to improve?
I will show you 2 options that you can use to remedy this problem or at least mitigate: 1º - If you use a computer with an Intel processor that has Intel Virtualization technology, install the…
-
1
votes1
answer1608
viewsQ: The Android SDK emulator is very slow(booting and running), how to improve?
The Android SDK includes a mobile device emulator - a virtual mobile device that runs on your computer. The emulator allows you to develop and test Android applications without the use of a physical…
-
1
votes1
answer172
viewsQ: Is there a tool to help optimize the layout?
It is sometimes common to doubt which layout to use, which graphic resources consume the most memory, and how to improve the layout in which the views appear. Is there any tool to help in the…
-
1
votes1
answer172
viewsA: Is there a tool to help optimize the layout?
There is, one way is through the View Hierarchy which is included in the Android SDK tools. Allowing you to analyze the layout while the application is running. Using this tool helps you discover…
-
0
votes3
answers476
viewsA: How to see the implementation of a function?
Answering the first question: There are no differences in the implementation question, possibly the comparator >= or <= "exert the function" of 2 comparators, because it first checks whether…
canswered Pedro Rangel 2,747 -
5
votes4
answers1224
viewsQ: How to exchange data between a mobile(android) and another device through Bluetooth communication?
How can I connect and disconnect with any device through Bluetooth communication and then exchange (send and/or receive) data?
-
0
votes2
answers548
viewsA: How to convert an Entry<String, Integer> element to String?
You can use to add using the following commands, for example: //no seu caso o objeto é do tipo Map.Entry<String,Integer> Map.Entry<String, Integer> objeto = new Map.Entry<String,…
-
0
votes2
answers260
viewsA: How do programs store saved passwords?
Websites use cookies which is a text file that has as its main function storing user preferences on all websites. When you search for a product on a particular website and it appears on your screen…
-
0
votes3
answers1142
viewsA: Adapt query to create VIEW that returns sum of count of two Subqueries
You can run the following SQL command: Or you can add 1 field in Tabela1, called countTabela1 and another in table2, called countTabela2 that will contain how many rows each table has. Then you…
-
1
votes2
answers882
viewsA: Standard for typifying errors/exceptions?
For handling errors and exceptions as you exemplified very well in your question, can be seen in this link: Handling of exceptions where it exposes the types of errors and error object constructors.…
-
1
votes3
answers17170
viewsA: How to generate numerical sequences in SQL without creating tables?
What you should do and create a SEQUENCE which has compatibility: The command CREATE SEQUENCE complies with the SQL standard, with the following exceptions: Default expression not supported AS…
-
3
votes1
answer1981
viewsA: How to customize the line of a Listview according to the value in Arrayadapter
I will show an example using with custom Adapter using Textview and a Button, resulting in the image below and you want to insert 50 elements for example: Mainactitvy class based on a Listview:…
-
1
votes3
answers1045
viewsA: Separate values from List
To return a given value from a list position you can run the following code: System.out.println(list.get(Indice)); I think you don’t need to pass your list to an array because an array only "works"…
-
0
votes5
answers6040
viewsA: What tool to use to convert a visually developed UML to code?
You can use a Papyrus editor/plugin provided by Eclipse through the website: Papyrus Eclipse Update. Particularly supporting UML and other related modeling languages such as Sysml and MARTE. But you…
-
1
votes1
answer347
viewsA: Group tables into a single
The normalization serves to ensure that the data is distinct and that there is a better maintenance of the data in your case, so the old database is normalized in distinction of the "update" of the…
-
1
votes1
answer1701
viewsA: How to get information from another running program?
This code below lists the processes being executed by the Operating System: import java.io.*; public class Teste { public static void main(String[] args) { try { Process p =…
c#answered Pedro Rangel 2,747 -
1
votes1
answer76
viewsA: Preventing entries from being deleted using Hibernate
I think that this access control of a certain user is by means of a database in which you are using, for example in MYSQL: Database Access Management Or put some condition in your application that…
-
6
votes2
answers3708
viewsA: How to normalize this database?
You can normalize by following the standard of the 5 Normal Forms (Fns) given this example below a rental company for being simpler and presenting fewer tables after being standardized: I think that…
mysqlanswered Pedro Rangel 2,747 -
1
votes1
answer1351
viewsQ: How to save objects list in Android
I want to save this list (List) after exiting the application, and when running again I want to recover the instance from the list that was previously saved. private List<BluetoothDevice>…