Posts by dferreira • 71 points
10 posts
-
0
votes1
answer40
viewsQ: How to destroy a jobSchedule via Activity?
I’m studying the services in Android Background and managed to create a service in Background that already works well in the background even after restarting the android or close the App. The…
-
0
votes2
answers603
viewsA: Error while trying to generate apk - Ionic v 3.20.1
Returning an earlier version of Cordova can solve your problem: npm install -g [email protected] Source:…
-
1
votes2
answers89
viewsA: Regex because only true if put above 5 numbers?
The problem was only in your regex, the correct is: var reg = /^[0-9]{0,4}$/; Totaling length a maximum of 4 digits, with the marker also required ^ to check inside the numbers and not the String.…
-
0
votes1
answer49
viewsA: Set voice value in an editText
This section calls onActivityResult() startActivityForResult(it,REQ_CODE_SPECH_INPUT); I commented on the lines that were added and explained their logic within the code. private final int…
-
0
votes5
answers2164
viewsA: Square root manually in Javascript
Here I ran and it stopped at 100 normally. Usually when I’m having doubt on the size of the loop, I put some counting print to see how it works: var numero = 100; var contador = 0; var i; var num1 =…
-
0
votes3
answers101
viewsA: Function if you change css
Using pure javascript I would do so: function changeWidth() { let divItem = document.querySelector('.portfolio-item img'); divItem.style.width = "50%"; } .portfolio-item img { background: yellow;…
-
0
votes1
answer70
viewsA: Write Json record in variable
Your Jsonobject is being declared within the method onResponse(JSONObject response) In order to access the variable in another method, it will be necessary to declare the same globally. Ex: Classe…
-
1
votes1
answer117
viewsA: Is it possible to make edits in . apk?
With the right text file for your problem. You can generate the file in the Mobile Downloads folder. Ai after Voce use it with the app, can erase the txt and record the data in the Settings on…
-
1
votes1
answer215
viewsA: How to pass data through an Intent to Main Activity?
This is very simple. From what I understand Oce already has the logic of the program and just wants to pass information from one Activity to another, so follow the steps. In the Activity which has…
-
0
votes1
answer47
viewsA: Error declaration Android-Studio
Please try the following steps: 1 option Go to Menu > File > "Invalid Caches / Restart" In case it doesn’t work. 2 option Go to Menu > Build > clean Project. After you finish the process…