Posts by AndronCreation • 193 points
16 posts
-
0
votes0
answers302
viewsQ: How to fix Activitynotfoundexception error?
I have two activities put in extremely different packages as shown in the codes below: Mainactivity package com.main.package; import ...; public class MainActivity extends Activity { @Override…
-
-2
votes1
answer64
viewsQ: How to get a specific field of a class even though it is inherited
I am facing problems while trying to get a field of a class, I am always getting the error NoSuchFieldException. What is known is that this field is inherited and deprived of another class, but the…
-
1
votes1
answer38
viewsQ: How to scale a bitmap quickly
I’m making a game using Surfaceview and I need a bitmap to be , for example ,a size of 20x20 ,but this bitmap is reused in other parts of the code in different sizes ,that is, it would not be…
-
-2
votes1
answer74
viewsQ: How to "launch" a new programming language
I’ve always been interested in how the dark side of languages was ,how they worked and work ,how they are on the inside ,and now that I know I’m creating my own basic good ,because I don’t have a…
language-designasked AndronCreation 193 -
2
votes4
answers9949
viewsA: Load image via javascript
The event onload cannot be accessed by document it has to be accessed directly by window ,as shown in the code below. window.onload = function imageOption() {…
-
0
votes4
answers3471
viewsA: Matrix generator in Python
The matrix is being created in the wrong way it should be created like this: lista = [] linha = [] nc = int(input('Quantas colunas? ')) nl = int(input('Quantas linhas? ')) for c1 in range(0, nl):…
-
5
votes1
answer590
viewsQ: How to replace the space character with another one?
The title of the question is to understand that it is simple I ask silly ,but I would not like to know how to replace the space of a EditText by something else ,as in the image below: In the case of…
-
0
votes1
answer54
viewsA: The code is right, but could someone tell me how True and False works in detail in this question (step-by-step)?
If I understand correctly you want to know how True and False works right? The operation is as follows: lista = [] #sua lista não tem nada. for i in range(8): n = int(input("digite um número")…
-
2
votes3
answers135
viewsQ: Edittext style texts - Underline in Zigzag
I have an edittext that when it detects a specific word it highlights it for example: print("Destaque") The word print will be deployed. Only so far so good but I want every time it detects a…
-
0
votes2
answers95
viewsA: Doubt about importing libraries
To access the.py example just do the following. For a much more detailed example I put a function inside the.py example.. Codes: example.py def funciona(): print("tudo OK") file that will make the…
-
0
votes1
answer352
viewsQ: How to change Alertdialog buttons?
I wanted to change the buttons of my Alertdialog for example: I would like to exchange the positivebutton for a textview and so put the onClick event in it. My java: Mainactivity.java public void…
-
2
votes2
answers1689
viewsQ: Change the color of a word in a still-editing textarea
How do I make sure that every time the browser finds a "reserved word" in textarea, it automatically changes her color. I want to know to make a syntax highlight.
-
2
votes2
answers574
viewsQ: How can I change the Edittext selection and pointer color?
I want to change the color of seleção of the text in a EditText and also change the color of bolinha (name is pointer if I’m not mistaken) by java. It has to be the same as the image that follows…
-
2
votes2
answers72
viewsA: When I put b on Pattern.Compiler it returns find as false
Thank you @Paz for your reply but simply I use an app that uses bars in its string: Ex: String A = "\\b"; What was actually happening was that the app took one bar of java another and only got the b…
-
0
votes4
answers5555
viewsA: Determine the nth Fibonacci term with recursion
A recursive function is more or less a function that calls another only in case it works like this: Sample code: def fatorial (n): if n <= 0: return n else: return n*fatorial(n-1) Explanation:…
-
1
votes2
answers72
viewsQ: When I put b on Pattern.Compiler it returns find as false
When I put b in pattern.compiler he returns the matcher.find as false, because he can’t even find a pattern precisely because of the b. Following the code I use: final Pattern py =…