Posts by Eduardo Binotto • 2,640 points
73 posts
-
6
votes2
answers74
viewsA: Is there any way to debug through the browser to stop exactly on the line being executed?
Yes, in Chrome just press F12 and go to the sources tab and find the file you want to debug. To stop at the exact moment you are executing the code use the pause button marked in red on the image.…
-
2
votes3
answers3287
viewsA: Fill a text field and display the same text in another field
You can use angular for this. just add the script to the head of your website : <script type="text/javascript"…
javascriptanswered Eduardo Binotto 2,640 -
5
votes3
answers22225
viewsA: How to compile a. java file using the Ubuntu terminal
to compile a. java file, open the termia and run the following command javac arquivo.java And to run the generated class file, use java arquivo…
-
1
votes3
answers8039
viewsA: Search field inside select box how to do?
You can use Select2.js, it is a search component equal to the select you are using, but it makes calls to the server with ajax filtering by the value typed in it. I believe that’s what you need. To…
-
1
votes2
answers1134
viewsA: Hide Menu Navigation Drawer when choosing item
To hide the menu after the user select an item just you make the following code at the click of the item: drawerLayout.closeDrawer(lst); An example of how to do the whole process: private…
-
1
votes1
answer51
viewsA: Lengthy client side image rendering
In your application’s Controller you can create a method to take the image from the database and call on src of your image in this way, for example,…
-
2
votes1
answer834
viewsA: Applyupdates on REST with Firedac
When invoking the Applyupdates method in an Fdquery we should remember that exceptions will not be generated for the application, however Firedac records the error in an internal data logging…
-
2
votes1
answer374
viewsA: In Hibernate, whenever I change the Entity configuration, do I have to drop the tables in the database?
Correct, Because when you let Hibernate generate the tables for you based on your templates, it just creates things, and doesn’t delete. Unless you make the following configuration: <property…
hibernateanswered Eduardo Binotto 2,640 -
2
votes2
answers276
viewsA: Insert sqlite in android app
You must create a class that extends from SQLiteOpenHelper, where it will be responsible for creating your database on the device based on the SQL statements provided by you. Example: public class…
-
1
votes1
answer50
viewsA: What is the correct way to put the address inside the Path?
Use File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); To get the way of android download folder, so it will be easy for you to find your saved files.…
androidanswered Eduardo Binotto 2,640 -
1
votes1
answer97
viewsA: How to display in Listview a single query data that returns two data?
You can separate the name by the spaces using .split();, it will separate your string into an array according to the separator field you enter as parameter. Example to solve your problem: String…
-
2
votes1
answer413
viewsA: Prevent the exchange of orientation from updating the Activity
To resolve this issue open the file AndroidManifest.xml, then in your Activity statement add the following line: android:configChanges="orientation|screenSize" Example: <activity…
androidanswered Eduardo Binotto 2,640 -
0
votes6
answers922
viewsA: Listview very long
You can create an xml layout for the Listview line. row_layout.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
5
votes1
answer3067
viewsA: Android login and password "cache"
You can user SharedPreferences to save the information, so the second time the user accesses your application you check if this information is filled and log in automatically. Example to save…
androidanswered Eduardo Binotto 2,640 -
2
votes6
answers8471
viewsA: Do not open keyboard automatically when on screen with Edittext
To resolve this problem open the Androidmanifest.xml file, then in your Activity statement add the following line: android:configChanges="keyboardHidden|orientation|screenSize" What will make the…
androidanswered Eduardo Binotto 2,640 -
2
votes1
answer327
viewsA: Error: 'Boolean java.lang.String.equals(java.lang.Object)'
The error informed by you indicates that somewhere in your code you are doing str1.equals(str2); whereas str1 is a null object, i.e., you are referencing a null object. check in your code the places…
-
1
votes2
answers814
viewsA: Checking Time in java
To compare dates you must use Android Calendar. Calendar horaComparar = Calendar.getInstance(); horaComparar.setTime(new SimpleDateFormat("h:mm").parse(horarios[0])); Date horaAtual = new…
-
2
votes2
answers83
viewsA: Why every time I turn my Android phone vertical it runs again?
To resolve this problem open the Androidmanifest.xml file, then in your Activity statement add the following line: android:configChanges="orientation|screenSize" Example: <activity…
androidanswered Eduardo Binotto 2,640 -
1
votes1
answer500
viewsA: Return Bluetooth devices on Android
After filling in the List lstBluetooth you must call the event notifyDataSetChanged(); of your Adapter as follows: itemBluetooth.notifyDataSetChanged(); So it updates your Listview…
-
2
votes1
answer3532
viewsA: Directory Download Android
To get the correct path from the android downloads folder use the following code: File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);…
-
1
votes2
answers5650
viewsA: How to turn on the camera flash?
First you must change your AndroidManifest.xml and add permissions: <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" />…
-
1
votes3
answers2523
viewsA: Progressbar does not change color
Change the style of your Progressbar and add om Drawable android:progressDrawable as the example below and create a Drawable file as in the example. <ProgressBar…
-
0
votes3
answers488
viewsA: Keep data from a list when rotating on Android
In the archive AndroidManifest.xml, in your Activity statement add the following line: android:configChanges="orientation|screenSize" Example: <activity…
androidanswered Eduardo Binotto 2,640