Posts by Vale • 2,919 points
153 posts
-
-2
votes1
answer1169
viewsQ: How to use the C++ "strcpy" and "strcat"?
How to use the strcpy and the strcat to take the names of the txt files in a directory inside the application in a folder called value.
-
0
votes1
answer128
viewsQ: How to take the number separated by the whole function just below and sort it correctly as described in the main doubt in bold in the question in C++
The function to separate an integer number from a noninteger is simple void Inteiro(float n) { int x = n; float y = n; if (x==y) { cout << "E inteiro" << endl; } else { cout <<…
-
1
votes1
answer673
viewsQ: Eclipse or android studio?
I’m using the Eclipse, but I came across the android studio, there’s some reason to change?
-
2
votes2
answers1854
viewsQ: How to make so that after reading a file "txt" it read another one then
How to do after reading the file txt check if you have a next file txt, I know to read the file is enough: ifstream Arquivo; Arquivo.open("teste.txt"); while () { // leitura } After reading this…
-
0
votes1
answer95
viewsQ: How to integrate android with visual studio 2013?
Hello folks would like to know if it is possible to integrate the Android in the Visual Studio 2013
-
0
votes1
answer287
viewsQ: The eclipse doesn’t recognize sdk?
How to solve this problem in eclipse does not recognize where sdk is .
android-eclipseasked Vale 2,919 -
8
votes2
answers325
viewsQ: How to use random in C++?
I would like an example of the use of random in C++, because I need to use it but I don’t know how it works.
-
7
votes3
answers1117
viewsQ: How to use Gesturedetector?
I would like a practical example for this method, because I want you to detect left motion run a command and if you go right run another command. Searching the net I found this code seems to be…
-
1
votes0
answers121
viewsQ: detecting movements using onTouchEvent
I found this method on the internet to detect movement, but I would like when it moves right it executes a command (example changes button color), but I’m having trouble implementing this code if…
-
1
votes1
answer279
viewsQ: How to run a command on Android when touching the screen or swiping your finger on the screen?
How to run a command on Android by touching the screen or swiping your finger on the screen, if someone can help me
-
0
votes0
answers53
viewsQ: How to create a navigation layout?
I would like to create a navigation layout. Example: I have keyboard with swipe in horizontal motion, it changes the keyboard layout. What layout should I use to accomplish this task? If anyone…
-
1
votes1
answer2615
viewsQ: How to set a size for Edittext text box?
How to set a size for text box EditText to make a square
-
0
votes0
answers79
viewsQ: I can’t identify the error on Android
If anyone knows this is wrong. 04-09 13:45:42.403: E/androidruntime(5902): FATAL EXCEPTION: main 04-09 13:45:42.403: E/Androidruntime(5902): java.lang.Runtimeexception: Unable to instantiate…
-
0
votes1
answer39
viewsQ: How to edit editTexte keyboard to take up less space?
I have several editText, when calling the keyboard it compresses all together with the button has how to solve it.
-
0
votes2
answers2944
viewsQ: How to use the string created string.xml via code
How to use the string maid strings.xml via code example has how to call <string name="hello_world">Hello world!</string> at some point in the code (Activity).…
-
1
votes1
answer3482
viewsQ: How to place a frame or space between Edittext’s?
I have 3 EditText's in a layout that are distributed the weights between them, but when I go down with a color, the impression that it is only one, would have a better editing method or put a…
-
7
votes1
answer3466
viewsQ: How to use include other Android Layout?
Hello I would like to know how to use the Include Other Layout and what it’s for.
-
3
votes1
answer56
viewsQ: How to support foreign languages in android apps?
How to internationalize a TextView on Android, someone could give me an example. <TextView android:id="@+id/textView4" android:layout_width="0dp" android:layout_height="wrap_content"…
-
0
votes1
answer258
viewsQ: I’m using openGL on android, time to emulate error
I am testing an example found on the internet and at the time of execution gives me the following error on Logcat 03-23 09:43:22.286: E/androidruntime(1036): FATAL EXCEPTION: Glthread 72 03-23…
-
-2
votes1
answer4125
viewsQ: Calculate distance between two points in C++ using struct
I’m having a hard time printing the result, but before that it’s not realized because it’s a new type created by struct He doesn’t know because he asks double follows the code #include…
-
0
votes1
answer1359
viewsQ: Someone knows a library that calculates integral and derivatives in java
I wonder if anyone knows a library that calculates integral and derivatives in java.
-
1
votes1
answer83
viewsQ: In the android eclipse, when the emulator stays in landscape the program does not change?
In the android eclipse, when the emulator stay in landscape the program does not change continues in portrait how to solve it.
-
2
votes2
answers81
viewsQ: How to keep the layout in standby mode?
Well I have two layout teste_1 and layout teste_2 , when I turn apparatus for portrait appears teste_1 and when I turn apparatus for landscape appears teste_2, have to leave this layout in standby…
-
3
votes1
answer109
viewsQ: How to lock a layout on ORIENTATION_LANDSCAPE and another on ORIENTATION_PORTRAIT
I’m using the method for when change of layout change position but when start application in landscape it starts layout teste_01 landscape mode being that its format is portrait how to fix it. if…
-
3
votes3
answers1994
viewsQ: How to count characters from a Java reference?
Example I have some characters 123456789.123456789. How to do to count up to the . after the . count again remembering that the point should not be counted.…
-
9
votes1
answer2783
viewsQ: How to pass a number in scientific notation in Java?
I’m using a method not to display scientific notation DecimalFormat dfor = new DecimalFormat("#"); dfor.setMaximumFractionDigits(10); txtTexto.setText(df.format(valorDouble)); But when you press a…
-
3
votes1
answer2318
viewsQ: in the eclipse how to generate a project jar aquivo?
In eclipse how to generate a file .jar of the project to use in another application
-
0
votes3
answers2310
viewsA: Keyboard hides Edittext
You have to use it that way <ScrolView android:id="@+id/scroll" android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/EditTextMeta1"…
-
4
votes3
answers2212
views -
1
votes2
answers89
viewsQ: How to erase a word at once?
I am using this method to delete the last character typed in a Textview: texto = txtTexto.getText().toString(); int length = texto.length(); txtTexto.setText(texto.substring(0, length - 1)); When a…
-
0
votes1
answer81
viewsQ: When deleting a character, how do I execute something?
I am using this method to delete the last character typed in a TextView: texto = txtTexto.getText().toString(); int length = texto.length(); txtTexto.setText(texto.substring(0, length - 1)); But…
-
3
votes2
answers243
viewsQ: How to make the program recognize ' x ' as multiplication?
It has how to treat x as *, because the user will type x to multiply a number, it would be like the program to recognize x as multiplication via the code? example double b = 5 x 5;…
-
5
votes3
answers2379
viewsQ: How to see how much memory occupies such a variable in C++? And how to use the define?
How to see how much memory occupies such a type variable int, char e long in the C++? And how to use the #define?
-
17
votes3
answers5444
viewsQ: How to calculate mathematical expressions in a string?
I’m making an application picks up an expression. How do I calculate the result of an expression? For example: 3(-9)+50/2. This expression is typed in TextView.
-
1
votes3
answers12679
viewsQ: How to change the color of the boot via code on android?
How to change the color of the button via the code, because when touching the button I want it to change the color, the color is inside the drawable.
-
0
votes1
answer94
viewsQ: How to make three buttons work as radio button?
I wonder how to make three buttons work as "radio button". By clicking the button it changes color and executes command, by clicking another button changes color and another normal turn.…
-
3
votes1
answer945
viewsQ: How to write mathematical symbol in android xml button?
How to write mathematical symbol in Android xml button as root n of x, x high n, would have to do so typed and not with picture.
-
2
votes1
answer3158
viewsQ: How do I make the message center and flash on the screen in C++?
How to make this message flash on screen, stay centered, and how to change the message color? #include <iostream> #include <cstdlib> #include <windows.h> using namespace std;…
-
0
votes1
answer176
viewsA: How to add ad in app?
Just remove the lines android:padding....... then it worked right.
-
2
votes1
answer82
viewsQ: How to lock the phone only in the app
I wonder how to lock the phone via the code to stay only in the application, when press back and home on the device do nothing, then pressing a button it leaves the application. You can do it?…
-
0
votes1
answer176
viewsQ: How to add ad in app?
I’m using this code: <com.google.android.gms.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="MY_AD_UNIT_ID"…
-
0
votes1
answer1466
viewsQ: How to increase emulator memory?
I’m with an application giving full memory error, I find no alternative to case not increase memory 02-01 17:53:07.950: E/AndroidRuntime(767): FATAL EXCEPTION: main 02-01 17:53:07.950:…
-
1
votes1
answer140
viewsQ: Which command to clear memory on Android
I am using Imageview which are called by buttons to load the image fills the memory by stating this error java.lang.Outofmemoryerror would have a command that would clear the memory.
-
0
votes1
answer73
views -
3
votes1
answer120
viewsQ: Multiple Imageview within Framelayout, an error occurs
Well the problem is I’ve got a few ImageView which are called buttons, run cool, but when setting 4 images it still goes well, add one more ImageViewwith another picture there the error program, in…
-
4
votes3
answers1464
viewsQ: How to control volume to app media on Android
I’m like a doubt on how to control the volume of the app’s media. I’m using this method: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1); button1.setOnClickListener(new…
-
1
votes2
answers2456
viewsQ: How to call a sound when clicking the android button
Hello, would you like to know how to call a more efficient sound? 'Cause I’m using this method : Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1);…
-
1
votes1
answer1441
viewsQ: How to blink button on Android.
Hi, I’d like to make a button(Button) flash on Android.
-
8
votes2
answers6768
viewsQ: Run something after inserting a certain number of characters in an Edittext?
I wonder how to limit characters and run something then on Android. For example, in a EditText or a TextView type 5 characters, when typing the fifth character executes a command, for example, it…
-
1
votes2
answers643
viewsQ: How to set a time to close image when opening
I’m having a doubt how to set a time to image that was opened close. It would be a loop? I’m using ImageView: <ImageView android:layout_width="match_parent" android:layout_height="wrap_content"…