Posts by Bandicoot_ • 161 points
14 posts
-
2
votes2
answers436
viewsQ: Convert float value to String
I’m programming for android, and I’m trying to display a float value found by function getX() in a Toast, which only displays String values. How do I do this conversion?
-
0
votes0
answers30
viewsQ: Android - getx() function does not work
I’m trying to create a game using java without using other libraries. I was able to do everything I needed so far but I’m not able to use the getx() function in Imageview controlled by the player in…
-
0
votes1
answer25
viewsQ: Android - Change components of a Dialog
I used a Dialog to display a custom alert this way: Dialog dialog = new Dialog(); dialog.setContextView(R.layout.resource); dialog.setTitle("Diálogo"); dialog.show(); However I can’t change Dialog…
-
1
votes0
answers49
viewsQ: Example of Navigation Drawer
How do I add a Navigation Drawer to a Activity? I searched several sites but only found the projects to download and not the explanation of how to do it.
-
1
votes1
answer83
viewsQ: Android - Run function with seconds delay
My question is: how do I get one function to run seconds after another? Mainactivity.class public void onClick(View p1){ //quero que essa função seja executada primeiro…
-
1
votes0
answers18
viewsQ: Android - Textview displaying letters gradually
How do I make a Textview display the text gradually, showing letter by letter? I searched the internet and found some tutorials on Typewriter effect, but I could not use. main.xml: <TextView…
-
1
votes1
answer76
viewsQ: Android - Detect specific word in an Edittext
How do I make it so that when a button is pressed, it activates a function only if a specific word has been typed at any position in an Edittext? Thank you. main.xml: <EditText…
-
1
votes1
answer512
viewsQ: Android - Hide Actionbar buttons
I made a code for a button to be pressed to display an Edittext. But I only managed to hide the title and icon of the application. So how do I hide the buttons too? Mainactivity.java: package…
-
0
votes1
answer45
viewsQ: Android - Add a double every time the function is called
How do I make a function always add a double value to another, since onClick() adds only once. Mainactivity.java: Button somar = (Button)findViewById(R.id.btn); TextView txt =…
-
1
votes1
answer63
viewsQ: Android - Share Preferences for another device
My question is the following: it is possible to share information saved by Sharedprefences to another device, either by bluetooth or another connection ? Mainactivity.java: SharedPreferences.EDITOR…
-
1
votes2
answers64
viewsQ: Android - Open Random Activity
Well, my question is this: is it possible to make a function call a Random Activity?
-
1
votes2
answers123
viewsQ: Andorid - Open Activity only once
How do I have an Activity open only the first time the app starts?
-
2
votes3
answers1443
viewsQ: C++ - How to create a window in windows
I’m starting to program for windows using c++ and the Devc++ program. How do I create a common window?
-
1
votes1
answer321
viewsQ: Android - Is it possible to play videos on a Webview?
I am developing a browser for android with java. It works fully through webviews. But the app is not able to play videos via stream... I wonder if it is possible to do it. Thank you. Webview in xml:…