Posts by Vale • 2,919 points
153 posts
-
0
votes2
answers63
viewsQ: How to open a form behind an already opened Delphi form
How did I open a form behind one another form already open? This form that is open have a time to close, when to close, I need the second form is open so modal.…
-
0
votes1
answer140
viewsQ: How to make a delay or cause a wait on Android?
I have a for where it sweeps a vector String, sending command completed increment . for(int i=0; i < msg.size(); i++) { enviarComando(msg.get(i)); } When he sends I want him to wait 1 second for…
-
0
votes1
answer67
viewsQ: How to stop a for via external loop interference?
I have a for running and clicking on the button I want this for stop. for (int i = 0; i < codigo.size(); i++) { if (codigo.get(i).contains("Para") || Stop == true){ sendCommand("parou"); break; }…
-
1
votes3
answers169
viewsQ: How do I identify the method or command in the code to display a data list in Navigationview?
I found this code on hithub about an embroidery viewer follows the project link, I tried to look in that app where is invoked method or command to display this data list follows screen prints to…
-
3
votes1
answer1717
viewsQ: Android studio does not display the devices to emulate
Android Studio not displaying the emulator that is on the pc nor by usb device on mobile how to fix it. follows an image to assist, as you can see no devices appears.…
-
0
votes3
answers542
viewsA: Bluetooth communication between android and Arduino for interaction with grbl
I found the solution to my problem that in this code Bluetooth serial communication, with him I can communicate right in my project.…
-
-1
votes3
answers542
viewsQ: Bluetooth communication between android and Arduino for interaction with grbl
How to do Android then connect with Arduino via a Bluetooth module for O Arduino receive data. I just need to understand the part of Android would be a Bluetooth Serial. I found this code on…
-
0
votes1
answer78
viewsQ: Error running a phone call
The error appears when I click on the CALL PHONE button. Mainactivity class package com.edu.chamada; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import…
-
1
votes2
answers1423
viewsQ: How to change the app title source?
I want to change the title of the app with a custom font, the source is already in the folder assets/fonts.
-
0
votes1
answer352
views -
0
votes1
answer135
viewsQ: How do I make the app icon appear in the action bar?
by default it was to appear but it is not appearing I found this question Application icon does not appear but the answer did not answer me.…
-
1
votes1
answer1792
viewsQ: How to take Activitb’s Intent values and move to Activitya in a List?
I have a ActivityA which is the main one, contains a ListView and a botão, and I have a ActivityB containing two EditText and a button. When do I start app begins in the ActivityA with empty list,…
-
1
votes0
answers33
viewsQ: Why did I open a bunch of windows when I used Internet?
I have a ActivityA, contains a ListView and a botão, and I have a ActivityB containing two EditText and a button. When do I start app begins in the ActivityA with empty list, when pressing the…
-
0
votes1
answer954
viewsQ: How to pass a List using Intent from an Activity to or Activity
I need to pass List<Carro> carro using Intent of a Activity to or Activity. Car is a class with several elements String modelo, String categoria Double potencia…
-
0
votes1
answer2271
viewsQ: How to add a button in Action Bar?
I would like to put only one button in the Action Bar. follows an example image of the internet.…
-
3
votes1
answer533
viewsQ: How to store data from Arduino in a Java string?
I need to store data from Arduino in the Java via serial communication only the values sometimes not filled in completely. I am using the library rxtx. //trecho do código para leitura int available…
-
3
votes3
answers4536
viewsQ: How to select a piece of the Java string?
I have the String x = "@646646&". I’d like to take everything in between @ and & and play in another String. Regardless of what is between these characters being number or not. How do I do?…
-
2
votes2
answers189
viewsQ: What is class to draw circle on Android?
I know the Class Rect for rectangle and circle private Rect retangulo = new Rect(); What class to draw circle on Android?
-
0
votes1
answer1384
viewsQ: Blank Activity does not appear in Android Studio
When creating a new project on Android Studio chooses the type of activity, how to put the Blank Activity in the Android Studio?
-
-1
votes1
answer110
viewsQ: How do I move with a character in Jframe Java?
I wanted to know if how to make a camera for character when it reaches the end of the panel start going along with the character, because when setting a size this.setSize(500,500); the character…
-
6
votes1
answer86
viewsQ: Class Rectangle, is there a circular class?
I know that Class Rectangle is rectangular shaped for collision of objects, there is a Circular class for this purpose?
-
1
votes1
answer1077
viewsQ: What is the function of @Override in Java?
Seeing some code or even creating an automatic method I noticed the presence of it @Override. What he really does in the code?
-
1
votes1
answer69
viewsQ: How to pass the class (Teste2 teste2) as reference in the ("super") C++ constructor?
On the basis of that reply In C++ what command corresponds to super() of Java? Class Teste2{ int x; int y; public: Teste2(int x, int y){ . . . } } class Testando{ Teste2 *teste2; public:…
-
8
votes2
answers2706
viewsQ: How to use vector to store a class?
Example: class Nome {private: string nome; public: Nome(string nome); virtual void exibirNome() =0; }; class SobreNome: public Nome {private: string nome; public: SobreNome(string nome, string…
-
3
votes1
answer4507
viewsQ: "error: 'string' does not name a type" when declaring strings
Follows the code class Nome { public: Nome(string nome, string sobreNome); void exibirNome(); virtual ~Nome(); protected: private: string nome; string sobreNome; }; Error error: expected ')' before…
-
4
votes2
answers658
viewsQ: In C++ what is the command corresponding to Java super()?
In Java: public class Teste extends Testando { private String nome; private int numero; public Teste(String teste, String nome, int numero) { super(teste); this.nome = nome; this.numero = numero; }…
-
1
votes1
answer126
viewsQ: How to eliminate extra space formed in a Linearlayout when creating Imageview via code?
I’m using this code to create a Imageview and add it to a Linearlayout: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { LinearLayout.LayoutParams params = new…
-
5
votes1
answer425
viewsQ: Why does the image get distorted (doesn’t maintain the proportions) in Imageview?
I have some images inside the folder drawable and call them via code: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { image.setBackgroundResource(rid);…
-
1
votes2
answers4441
viewsQ: How to set space between buttons on Android?
I’m using 3 buttons on one Linear Layout. I would like to distribute the spaces between the buttons. Follows the image as exexmplo: xml screen: <LinearLayout android:orientation="horizontal"…
-
4
votes2
answers339
viewsQ: How to completely delete an Arraylist and a List
I would like to know how to destroy the erase completely a ArrayList and a List in full at runtime. example: ArrayList<Elemento> e = new ArrayList();//Elemento e uma classe for (int i = 0;…
-
0
votes1
answer49
viewsA: How do I click an Imageview that doesn’t interfere with the application?
Really the ImagemView did not interfere to call the function onClickAcaoof Linear Layout
-
0
votes1
answer49
viewsQ: How do I click an Imageview that doesn’t interfere with the application?
I have a Linear Layout <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/linear" android:orientation="horizontal"…
-
5
votes3
answers14329
viewsQ: How to use the C++ vector class?
Necessarily need the library #include<vector.h> To raise it vector <int> c; Question: How to store values in it and read them?
-
1
votes1
answer337
viewsQ: How to create an abstract class in C++?
In C++ virtual uses file . cpp #ifndef TETES_H #define TETES_H class Tetes { public: Tetes(); virtual ~Tetes(); virtual void exibeDados(); protected: private: }; #endif // TETES_H file . h #include…
-
3
votes1
answer9873
viewsQ: How to create a class with attributes and methods in C++?
In Java I know how to do it, but in C/C++ it’s little different so how to create a class with attributes and C methods++? I am using Codeblocks. When I create a class in C++ it creates two files one…
-
0
votes0
answers108
viewsQ: How to generate random numbers in Java without repetition?
I wonder how to generate random numbers without repetition I’m trying this method but it seems to me not working properly. public static ArrayList<Integer> numerosAleatorios(int inicio, int…
-
1
votes1
answer38
viewsQ: Method to create a new list based on elements from an existing list?
In c# there is the function numeros.GetRange(0, quant); I would like to know the equivalent function of numeros.GetRange(0, quant); of C# in Java
-
0
votes1
answer159
viewsQ: How to create a style for Imageview on Android?
How to create a format style for ImageView passing to length and height in this style so it gets "formatted" on the screen?
-
1
votes2
answers951
viewsQ: How to pass variable by parameter created in Enum in Java?
I created a Class enum of java public enum Cor { AZUL(1),VERMELHO(2),VERDE(3); private int var; Cor(int var) { this.var = var; } } In the main I’ll create a menu using do/while and switch/case and…
-
0
votes1
answer90
viewsQ: When creating an imageView and Textview via code how to remove via code?
Good create that way TextView textView = new TextView(this); textView.setText("Alguma coisa"); LinearLayout linear = (LinearLayout)findViewById(R.id.layoutVertical); linear.addView(textView); and to…
-
0
votes2
answers89
viewsQ: How to read a txt file store the value in the whole type?
I’m using this example: try { AssetManager assetManager = getResources().getAssets(); InputStream inputStream = assetManager.open("nome-do-arquivo.txt"); InputStreamReader inputStreamReader = new…
-
10
votes5
answers12645
viewsQ: How to create a vector without determining its size in Java?
I have a class TesteAplicacao that is to test and a class Teste with attributes and methods. When creating a vector in Java: Teste[] t = new Teste[10];// veja que teve definir um tamanho It would be…
-
0
votes1
answer284
viewsQ: How to center an imageView on the screen via code?
I created a imageViewvia code and would like to know how to center it on the screen
-
0
votes3
answers3188
viewsQ: How to make an image fit to various screen sizes on Android?
I’m using a button with background image <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btn" android:background="@drawable/myimage" /> I…
-
4
votes2
answers4120
viewsQ: Question about reading txt files on Android?
On the basis of that question by stackoverflow in the reply is suggested this code try { AssetManager assetManager = getResources().getAssets(); InputStream inputStream =…
-
0
votes2
answers822
viewsQ: How to store images in an Android vector?
I have images inside the drawable and to access it simply R.drawable.myimage. How to store this image in a vetor?
-
4
votes2
answers65
viewsA: Incremental result?
I don’t know if this is what you’re looking for. As you’ve already shown one who is x = x+1; below this equation just put this one that will work normally y-=x; or y = y- x;…
-
1
votes1
answer1153
viewsQ: How to create a Textview and Imageview via code?
I would like to know how it creates via code a TextView and a ImageView and destroy it via code.
-
6
votes1
answer460
viewsQ: How do I use Scanner to capture keyboard inputs?
I would like to know how to use the Scanner in the java to simulate cin and cout of c++
-
2
votes0
answers247
viewsQ: What are the advantages of developing an app in Xamarin Visual Studio?
I know that in the Visual Studio with Xamarin it is possible to develop applications Android, then aroused the curiosity: In the code part I know you use c#, but part xml it’s more complicated or it…