Posts by Hugo • 563 points
36 posts
-
-1
votes1
answer46
viewsQ: Download photo URL without file name
I use to download files and photos the Glide or the Retrofit but had never come across the need I’m having now. The url is type http://meuserver.com/user/4564654/qrcode the number is the user id and…
-
0
votes1
answer25
viewsQ: Commitments hour Vertical day - Android widget
I’m looking for how to make a widget like the photo but I can’t find a way to do it and I can’t find a lib that offers me that. Does anyone know if there is anything native or lib that helps me?…
-
0
votes1
answer31
viewsQ: Is there a problem with instantiating a fragment twice?
I have a Fragment that is the first to be opened, is a list of items! Then depending on the button clicked on the Cards inside this Ragment it opens a screen with a Tablayout with some tabs and one…
-
0
votes1
answer48
viewsA: Android Dagger 2.10 or higher - void inject X @Bindsinstance?
My doubt was when to use Bindsinstance vs Inject in the Component. They’re actually two different things: The Bindsinstance serves to link some instance within the Dagger domains that is not in the…
-
0
votes1
answer85
views -
1
votes1
answer85
views -
0
votes1
answer82
viewsQ: Kotlin + RX Observer without Anonymous
I’m studying Kotlin Android and RX and I only see examples like : val api = StarWarsService() api.loadMovies() .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe( {…
-
0
votes1
answer58
viewsQ: Dagger Nullpointerexception 3rd class which depends on 2nd class
In a project that has the Activity, Presenter and a Model, the Activity has the Presenter and the Presenter has a Model. When I do @Inject in the Presenter to instantiate the Model it is never…
-
0
votes1
answer525
viewsQ: I cannot recover a list of Firebase objects
I have a doubt that I did not find anywhere, I tested part and it worked with doubts and the other did not give. I will explain, if someone can help. The problem is this, if I have two classes…
-
1
votes1
answer115
viewsA: Firebase - Why it does not execute addOnCompleteListener code
Weird, I tested it on another device and it worked. I’ve seen some reports of the same problem and it may also be the implementation 'com.google.android.gms:play-services-auth:X.x.x outdated in the…
-
0
votes1
answer115
viewsQ: Firebase - Why it does not execute addOnCompleteListener code
How does addOnCompleteListener work, it is not a System that will be called when the signInWithEmailAndPassowrd operation is executed? It enters a correct login and password and click on the button…
-
1
votes1
answer145
viewsQ: Am I throwing correctly?
I’m doing like a Firebase DAO that performs and handles Auth, Database and Storage. But Firebase emits some exceptions depending on the scenario, password with less than 6 digits, email already…
-
0
votes0
answers303
viewsQ: Token by Firebase
It is possible to generate token and send to some android device that requests to register in the application by Firebase Auth?
-
2
votes1
answer48
viewsQ: Android Dagger 2.10 or higher - void inject X @Bindsinstance?
I have a big question about the correct use of Dagger 2.10 or higher for android implementing according to the specifications of the Dagger documentation for Android. Example code: @Singleton…
-
1
votes1
answer43
viewsQ: When to use void Inject on Dagger
Dagger, can someone give me a hand? I managed to do some 3 very simple projects always trying several to have new problems and learn more, but one part I’m kind of copying because I don’t…
-
2
votes1
answer982
viewsQ: Two GIT Projects
If I have a project already being done in git and at some point I need to unite with another project but keep the histories of commit has as?
-
1
votes2
answers5419
viewsQ: Format Date yyyy-mm-ddTHH:mm:ssZ to dd/MM/yyyy HH:mm
I receive in JSON a date field "created_at": "2013-01-08T20:11:48Z" and wanted to present on the screen in the formed of Brazil but I can’t use Simpledateformat to format and present in any way.…
-
1
votes1
answer218
viewsA: Viewpager + Fragmentpageradapter + Update Fragment?
I was able to fix the problem by changing the Adapter of the kind FragmentPagerAdapter for FragmentStatePagerAdapter. I don’t know if that would be the only solution but it worked.…
-
0
votes1
answer218
viewsQ: Viewpager + Fragmentpageradapter + Update Fragment?
In the implementation of a Slidingtabs using the Slidingtablayout and Slidingtabstrip classes provided by the Android website Dev + Viewpager + Fragmentpageradapter when the data is updated in the…
-
0
votes0
answers28
viewsQ: Android - Fragment Opens before data is ready
I have a problem with a list of objects that comes in a JSON, I can get the data, it comes, they should be presented in a Fragment that has a Recyclerview, the app opens and shows nothing. When…
-
0
votes1
answer1067
viewsQ: Retrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT
I’ve done some Retrofit projects and it always worked but I’m doing one that consumes the end-point of api.github.com and is giving an error and I’m not able to find a solution, I’ve done everything…
-
4
votes1
answer1302
viewsQ: What does - - mean in git checkout?
When we use the git checkout nomedoarquivo what difference with git checkout -- nomedoarquivo? I don’t know what changes using that --?
-
3
votes2
answers254
viewsQ: Group By different results
Hi, I have a question if anyone can help me on SQL. I know the Group By clause, as far as I know it groups similar data. But I understand that it should group but in the script below it has the…
-
0
votes1
answer77
viewsQ: Use Case in Tool Case
how we should create the use case diagrams, make a diagram encompassing all use cases or make several diagrams for each specific scenario. Ex.: I have within the system several lines of work, part…
-
1
votes1
answer197
viewsQ: MVP - What is where?
I have a question about the MVP. In my studies I understood that in M = Model there is everything that has to do with business rules and codes for handling business-related data, bank access,…
-
1
votes1
answer361
viewsA: Change title in Actionbar
I found a solution in the link right after I posted the question here: http://w9jds.github.io/walkthroughs/2016/03/animating_toolbar_title…
-
0
votes1
answer361
viewsQ: Change title in Actionbar
I’m making an app that has a Sliding Tab, that screen q vc slides to the side it has several screens. It is working and even when I change Tab, in the Listener that detects the change I call…
-
3
votes2
answers5541
viewsA: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 Com Webservice JAX-RS e Android Retrofit
Well person, I managed to solve the problem, it was simple: First, just to state and reaffirm, the problem was the way the JAX-RS web service was generating the JSON half passionate! { "filmes": {…
-
4
votes2
answers5541
viewsQ: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 Com Webservice JAX-RS e Android Retrofit
I’m studying Webservice and consumption on Android with Retrofit2. I’ve done tests with public Apis like Viacep and FIPE and I can use the retrofit quietly, very easy but when I set up my own…
-
-1
votes1
answer47
viewsQ: JAX-RS Rename Set
I created a project using JAX-RS to make a web service REST and it works, I can access the result in a resource and everything but it comes like this: { "carroes": { "carro": [ { "@id": "1",…
-
0
votes1
answer62
viewsQ: What is this layout composed of?
I saw this app and on this screen there are some divisions that seem to have been made with cardview, someone can say if it was really made that way or how it was made? Another detail is at the end,…
-
6
votes1
answer2544
viewsQ: What is needed for OCR Android
I’ve seen several articles and questions on forums and many other sites on the internet, I know what is necessary for a basic ocr, I’ve managed to do one and so but what I’m going to ask here is…
-
9
votes2
answers885
viewsQ: Doubts about DAO, MVC, Multiple Tables and POJO
If anyone can help me, I have a question q has been consuming me a lot in recent days and is psychologically locking my studies (hehehehhe) MVC and DAO with multiple tables. I’m going to put here a…
-
1
votes0
answers59
viewsQ: How to work without Java.awt.image?
I need a help on using OCR on Android, all libraries I’ve tried to use to convert image to Text needs either a Bufferedimage or a Renderedimage both of which are in the Java.awt.image library that…
-
0
votes1
answer80
viewsQ: Object Product Saved on the first screen but not on the second
Hi, I’m having a problem with a little study project. I have 2 activitys, First Product and Second Product. The first instance of the object Product 1 saves it in the Sqlite bank, when calling the…
-
1
votes1
answer1324
viewsQ: Unreachable Statement
I need help, on line 107 the android studio shows an error that says: "Error:(107, 48) error: unreachable statement" Whereas Line 106 is the AdapterView.AdapterContextMenuInfo info is red. When I…