Posts by Mathias Berwig • 953 points
41 posts
-
0
votes1
answer45
viewsA: Keeping data in the app after updating in the play store
If the new version does not have a mechanism to recover the token from the old version (how to store it in the internal memory to read later) and you made the update available to all users, I…
-
1
votes2
answers330
viewsA: Is it possible to have an app with multiple apps inside?
Comprehensively, yes, it is possible. PWA If a web app is sufficient to meet the needs of the project, I strongly suggest using it as an alternative. Some limitations occur especially in iOS, where…
-
0
votes2
answers210
viewsA: Error opening Android React-Native project on Androidstudio via macos
As the error indicates (permission denied), your user has no permissions to change the file local.properties. This file serves to indicate the SDK directory on the computer and is stored in the…
-
0
votes2
answers296
viewsA: What is a business rule and an enforcement rule? What defines a mechanism as one or the other?
My perception is that separating the concepts of business rule and application becomes simpler as more agents are added to the scenario. During the software requirements survey stage, it is natural…
-
1
votes2
answers73
viewsA: Line limit in Recycleview
This happens due to different system screen sizes and densities. In terms of usability, if you have a small and fixed number of lines (as in the case of a menu) you can use something like…
-
-1
votes2
answers408
viewsA: AWS with Route 53 - Domain with WWW does not work and neither does HTTPS
After backing up your current setup, try: Remove all website entries with www. Create a Type A record with the www address pointing as ALIAS to your www-free address.…
-
0
votes2
answers87
viewsA: Generico code for building mysql queries
When constructing SQL statements dynamically, one of your first concerns should be security, as attacks of the type are common SQL Injection. If the queries will be generated only server-side, the…
-
0
votes1
answer213
viewsA: Validation of a CPF
If you are developing a system unable to handle valid but non-existent Cpfs, the only reliable way is to consult their source in a competent body (such as the IRS, cited in the comments). If you do…
-
0
votes3
answers116
viewsA: URL does not display symbols
Urls do not support some special characters, which end up converted by the client (browser, application, etc.) at the time of making an HTTP request. The two Urls you reported are equivalent (after…
-
1
votes2
answers153
viewsA: How to set a target Theme-color in Runtime from the application styles
From the discussion in the comments of the question, and the hugocsl’s response, "I connected the dots" and found a solution to my problem. I describe here what would be a complement to Hugo’s…
-
1
votes2
answers153
viewsQ: How to set a target Theme-color in Runtime from the application styles
I’m developing a React-based web app that uses Material Components (which in turn uses Sass) and requires the color of the browser bar (defined via html meta, as shown in the following code) to be…
-
11
votes2
answers1395
viewsA: How do I allow only certain applications to access my API?
You will need some form of authentication between the client and the API. There are some possibilities that vary according to the degree of security you need. If you want something trivial to…
-
13
votes1
answer605
viewsA: Questions about analysis and structured and object-oriented design
What is the main difference? In the Structured Analysis (we will call AE), the focus is mainly on the process and procedures. The main techniques used are the DFD (Data Flow Diagram), flow charts,…
-
1
votes1
answer80
viewsA: Div display:None hiding the rest of the code after it
When using the display: none you cause the element (your div) not to be rendered, only included in the DOM. It is an explicit attribute indicating "this does not need to appear on the screen".…
-
1
votes2
answers88
viewsA: incrementation table test
Values return different due to the way the code is executed. Operators x++ (post-increment) and ++x (preincrement) perform at different times the sum of 1 to the variable value. Behold this answer…
canswered Mathias Berwig 953 -
1
votes1
answer148
viewsA: Error starting the app
See the exceptions described in the error: Unable to start Activity [...Mainactivity]: android view..Inflateexception: Binary XML file line #12: Error inflating class Imageview. Indicates that…
-
0
votes1
answer214
viewsA: Name of the MYSQL Server
You must open the Windows command line (Windows keys + R) and type cmd. In the window that opens, type hostname and press enter. On the next line will be the name of your machine. In the Workbench…
-
0
votes2
answers162
viewsA: Output: Nan | Bhaskara Formula (quadratic function) in javascript
When adding a console.log(a) you’ll see he returns NaN (which means NotAnNumber). Hence, the error happens when you try to convert user entered text into a number. You can use the methods…
-
2
votes1
answer112
viewsA: Update fragment with Listview
After any changes to your Adapter data, you should call the method notifyDatasetChanged, which will update your Listview according to the changes. If this is not enough to update the data, you can…
-
0
votes1
answer22
viewsA: Capture images simultaneously on two USB cameras at regular intervals on Android
Considering that essentially its goal is to develop a camera app, we start with the references of using external cameras in the development for Android. The system SDK supports the use of USB…
-
0
votes2
answers167
viewsA: How to filter so that accents are not differentiated in Google Sheets?
You can select the option Filtrar por condição -> A fórmula personalizada é and then insert a special expression to make the comparison. Based in this answer (in English), you can create a…
-
1
votes1
answer677
viewsA: Send SMS using android
To send an SMS programmatically on Android is necessary to add the use of permission in the manifest <uses-permission android:name="android.permission.SEND_SMS" />. If you are developing for…
-
1
votes1
answer30
viewsA: Remove item from an Adapter class
After removing the item (item.remove(...)) you must notify the adapter that there has been a change in the data. This can be done with the method notifyDatasetChanged. Consider using the standard…
-
11
votes4
answers4763
viewsA: Delete multiple rows from a database
If you will manually type the Ids: delete from paginasimagens where idPaginasImagens in (121, 122, 123) If Ids come from a query: delete from paginasimagens where idPaginasImagens in (SELECT…
-
2
votes1
answer94
viewsA: How to Compile Android API 19 App?
The Play Store error probably indicated that your application should support API 26, which means that your compileSdkVersion and targetSdkVersion must have a value of 26 or more. In practice, the…
-
1
votes1
answer235
viewsA: How better is text-to-Speech in my android app, not respecting the punctuation marks?
The implementation of the TTS engine is the responsibility of your provider (system or store application) and may or may not support customization of the read parameters, so the read result can…
-
2
votes1
answer120
viewsA: Make the Tostring() method return two fields separately from a typed object
Reinforcing the @Maniero comment, you should create specific methods to get these properties separately. The standard getters methods should be sufficient to meet this need, see the code: public…
-
0
votes1
answer79
viewsA: Crashing app for no reason - Ionic 4
The generated Exception explains the error: E/PluginManager: Uncaught exception from plugin: means that the plugin manager detected a flaw not dealt with by the plugin (which may indicate a problem…
-
1
votes1
answer502
viewsA: put Subtitle on Chart.js
You can pass a string array to the property title.text, as noted in official documentation: var options = { type: 'pie', data: { labels: ["Opção 1", "Opção 2", "Opção 3"], datasets: [ { data: [12,…
-
1
votes2
answers308
viewsA: Android internationalization - Developing in Android Studio
The features of the application are loaded at the startup of the application and creation of the components, according to the settings set in the system. To test your app in Chinese, one of the…
-
1
votes1
answer50
viewsA: How to remove margin top from Imageview
Check alignment of your ImageView. Using the property layout_alignParentTop= true you will ensure that the top of the component will be connected to the top of your parent layout. If the margin…
androidanswered Mathias Berwig 953 -
1
votes1
answer64
viewsA: When to use Relative or Linear Layout?
Linearlayout It is indicated when you want to align the components in series, whether vertical or horizontal. The following image shows a layout with horizontal orientation (the 3 components are…
-
0
votes1
answer1812
viewsA: Error running Android app - React Native
When generating the release build (app release APK), the procedure is different from that performed for debug (development APK). In this print file you sent, try disabling the properties…
-
0
votes1
answer169
viewsA: Getting information from an Objectjson without Array
Isolating the code responsible for Parsing, we have: try { cliente = json.getJSONArray(TAG_CLIENTE); JSONObject c = cliente.getJSONObject(0); String nome = c.getString(TAG_NOME);…
-
0
votes1
answer157
viewsA: How to allow one device to be logged in at a time
You can store user session information (such as device serial, date and time of access, etc.) in a Realtime Database node and manually control from this information whenever a user is authenticated…
-
2
votes1
answer1146
viewsA: Problems trying to change a nav_header_main.xml text view
Assuming that the lock you refer to is a NullPointerException, the method findViewById is not finding the ID you reported. This is because the informed id does not belong to the hierarchy of the…
-
0
votes1
answer6407
viewsA: Is it possible to recompile an APK for Android to change only the name and icon?
It is possible to make some changes to the APK yes, but that depends on how it was generated and signed. The APK format is nothing more than a ZIP file when viewed simply. You could in some cases…
-
1
votes1
answer104
viewsA: Use findViewById in all scopes or use a variable?
The transactions carried out by the method findViewById may be considered costly, but they do not usually affect performance significantly outside of lists or loops. It is recommended that you use…
-
0
votes3
answers1312
viewsA: How to get the address through Latitude and Longitude, formatted?
Return of Geocoder API calls includes formatted address (results.formatted_address JSON), as seen in the following query:…
androidanswered Mathias Berwig 953 -
1
votes2
answers964
viewsA: Problems with importing libraries
The error in question informs you that the library you are trying to use does not have an AAR version, which is the only supported format. According to Repository Maven, version 2.1.1 is only…
-
2
votes1
answer486
viewsA: Push android with Amazon SNS
According to Amazon SNS and GCM documentation for android, you need to complete 3 basic requirements: The application must be registered with the GCM: you must have a Google Cloud Messaging API…