Posts by Diego Fortes • 357 points
11 posts
-
0
votes1
answer248
viewsQ: Adding values to the Hashmap <Integer, List<Integer>> and fetching them through the key?
I’m making an app focused on external vendors. 1 external seller has several customers, and also several products, which is traded freely with these customers. These products do not always remain at…
-
0
votes2
answers66
viewsQ: Using a map to store 1 ID for N values?
EDIT for lack of details, I have answered the question here. The question has been flagged and a moderator will delete it as soon as possible, thank you. I have the following Ids and values…
-
2
votes1
answer842
viewsQ: Android Studio does not display English characters correctly
My project is not displaying any English characters correctly. When I display a string as "no", it displays "no". The strange thing is, when I call the string straight from the res/string.xml, it…
-
1
votes1
answer176
viewsA: Android - Animation, hiding and displaying a menu
To make an animation of a component is very simple. See the example below: EditText cadastroEdtNome cadastroEdtNome.startAnimation(AnimationUtils.loadAnimation(CadastroCliente.this,…
-
0
votes3
answers1117
viewsA: How to use Gesturedetector?
Good night, good friend! Take a look if it works for you: Gesturelistener.java class GestureListener extends GestureDetector.SimpleOnGestureListener { static String currentGestureDetected; @Override…
-
2
votes1
answer985
viewsA: Send string via bluetooth on Android
Hello, good friend! Try this: private OutputStream outputStream; private InputStream inStream; private void init() throws IOException { BluetoothAdapter blueAdapter =…
-
3
votes2
answers3168
viewsQ: Count duplicate values in list
I have a ArrayList with multiple numbers inside it. I need to identify how many times each number appears and then eliminate redundancies. I was able to eliminate redundancies, but I’m having big…
-
10
votes1
answer6178
viewsA: How to configure the back button action on android?
Hello friend! @Override public void onBackPressed() { //Seu código aqui dentro }
-
0
votes1
answer605
viewsA: Custom Listview occupying 100% of the screen
Hello! The only solution that comes to mind is to increase the size of the ballot. However, with a little research I found a similar case and that might work for you! Go to your Androidmanifest.xml…
-
1
votes1
answer1693
viewsQ: Grab database ID when selecting option in spinner?
Usually I get the ID of a selected object/clicked with the onItemClickListener, but it does not work with the Spinner. I tried that way: spn.setOnItemSelectedListener(new…
-
2
votes1
answer4232
viewsQ: Android Sqlite: Displaying bank content in textView?
I would like to know how I do to display content from the Sqlite database in textviews. I am using the following method to display in a Customlistview: public Cursor getAllData () { String buildSQL…