Posts by Tássio Auad • 1,482 points
67 posts
-
2
votes1
answer436
viewsA: What to use instead of . getIntent
Hello, Artur. That’s not how it’s done. From what I see in your code, you want to use an input received from a search to extract the text typed in the search. The point is that you are not taking…
androidanswered Tássio Auad 1,482 -
3
votes3
answers153
viewsA: Passage of values between Fragment and Activity
Hello, prothfind. To get started, the idea is for your Activity to implement an interface that Fragment knows and calls. So, let’s create such interface that will be called when there was the click…
androidanswered Tássio Auad 1,482 -
0
votes1
answer165
viewsA: Application to manage database in Raspberry pi
Hello, João. Your question is very generic. In wiki from the "android" tag here from Stackoverflow in Portuguese has some cool tutorials (in the part of Tutorials & Examples) and I advise you to…
-
2
votes2
answers410
viewsA: Android - Transfer Data and Change Fragment by Click
Hi, Victor. I’m gonna write a code real quick here to try and help you out. These data transfers between Fragments will always have Activity as an intermediary. The Fragment that received the click…
-
0
votes2
answers1687
viewsA: How to decrease the size of the text in a Listview?
In Listview there really is no such attribute, because Listview is actually (and obviously) a list of views and you will have to do the customizations you want directly in the views. Within each of…
-
2
votes2
answers224
viewsA: Error using sendMessage() method of the Handler class. "Message not posted or already removed"
Gabriel, your research has brought you accurate information. It is not possible to send the same Message object several times, so we always have to create a new instance. Or rather, instead of…
androidanswered Tássio Auad 1,482 -
4
votes2
answers3031
viewsA: Update Activity previous to end Current Activity
Paul, I think the simplest and most elegant way in your case is to use Activity’s own life cycle for this. When Activity B is finished, Activity A, which was in stop, will have its life cycle…
androidanswered Tássio Auad 1,482 -
1
votes2
answers9143
viewsA: Android Gradle Sync failed
You’ll need to use a newer version of Gradle to build your apps. You are using version 2.10 and are being asked for version 2.2. I don’t know how the settings are in your IDE, so I’m going to cite a…
-
0
votes1
answer1546
viewsA: My Android Studio does not run the app for testing
Adilson, I believe this error is happening because of the version of your Build Tools used in your app. In the build.Radle file there is the android{} element and inside there is the…
-
7
votes4
answers16860
viewsA: How to get the current location of android device?
I will try to summarize. If you want to understand more deeply every step I quote, I recommend reading this document. First step - Configuration Add dependency to Gradle: dependencies { compile…
-
0
votes1
answer5521
viewsA: Event of the back button
Henry, You missed the Login Activity after opening Mainactivity. Now, if you’ll allow me, it’s not good practice to change the back button. The back button aims to always go back to the previous…
androidanswered Tássio Auad 1,482 -
1
votes1
answer165
viewsA: Web Service for Android app
I don’t see how that would give you a problem of incompatibility. The application would take data from Sqlite turning into objects (Java), these objects would be sent to the web service that would…
-
1
votes1
answer829
viewsA: How to create app about event scheduling?
Hello, Renan! Welcome to the Android world! Congratulations on your initiative. Not what is your level of knowledge to answer such a comprehensive question, so I apologize if I explain things you…
-
2
votes2
answers138
viewsA: Remote reading on Android: Json or XML?
I agree with Brunobr, XML is more verbose and with greater dialect possibilities than JSON, which in turn is simpler and easier to understand. As for practicality, there are very good frameworks to…
-
0
votes3
answers74
viewsA: Problem when creating project
Put the error so that we understand better what is happening. But, as many have said, it’s recommended, almost forced xD, the use of Android Studio for application development. I particularly…
androidanswered Tássio Auad 1,482 -
2
votes2
answers3625
viewsA: Android, pick up id of an item from a listview through long click
It was a little difficult to understand, but if I understand correctly, you want to take the id of your object and not simply its position in the listview, as it is received in the Listener…
-
0
votes2
answers318
viewsA: How to remove a View from an xml layout?
I can see two ways to do this. The first is that you can hide the view you want through the method suaView.setVisibility(View.GONE). She’ll still be there, but she won’t be visible. The second is…