Posts by Igor Oliveira • 1,110 points
124 posts
-
0
votes1
answer178
viewsQ: How to keep the countdown running in the background
I’m trying to do a countdown of 24 hours but keep running in the background, because I want to send a notification when it’s 5 hours, what I got so far was trying to implement a service with…
-
1
votes1
answer408
viewsA: Space between image and content Android studio
Add android:scaleType="centerCrop" In your imageview, to stay the way you want, the image needs to be cropped and centered
-
1
votes2
answers260
viewsA: Retrieve json object
To get the result is Answer.body does like this: User replies service = Answer.body dai tu instance the user class (the POJO you created ) and saves like this: user.setname = answerservice.getname,…
-
0
votes0
answers72
viewsQ: Nosuchmethoderror with Firebasemessaging
I’m getting the following error while running my app: E/AndroidRuntime: FATAL EXCEPTION: main Process: br.com.igoroliv.youtubecanal, PID: 29233 java.lang.NoSuchMethodError: No virtual method…
androidasked Igor Oliveira 1,110 -
0
votes1
answer330
viewsQ: Jobscheduler to run every x hours
I need to run an api access in an interval of hours, for example every 3 hours. I was looking for ways to do this, I read about Alarmmanager and about this Jobscheduler that seems to be the latest.…
-
2
votes1
answer1578
viewsA: How to use Findviewbyid E Onclique in a Fragment?
This oncreateview class has to resume a view so to use findviewbyid you have to use the view like this: public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable…
-
0
votes2
answers46
viewsA: Error in Sqlite class
You have to put a space in the from and Where, if n gives syntax error because when it will execute the command it tries to read everything together. where you’re wrong: Sqlitedatabase…
-
0
votes1
answer50
viewsQ: Why does my database ( Sugar ) return null when I search by id?
I saved in my database using sugar every time I get a new notification, it works correctly, then in a Ragment I populate a recycleview with all database notifications, it also works correctly, but…
-
0
votes1
answer223
viewsQ: How to get inverted Recycleview position?
I’m with a recycleview q takes the data from a database ( I’m using Sugar ORM ) and reversed the order because I wanted from the newest to the oldest, but to delete I need the position in the…
androidasked Igor Oliveira 1,110 -
1
votes1
answer571
viewsQ: How to get Firebase notifications received in the background?
I implemented the notification service in my app, working, even receives notification in the background, however I wanted to save the notification message, searched a little and created a service (…
-
0
votes0
answers360
viewsQ: Why the key api ( google ) does not work when adding key constraint
I have 2 key api, one with restriction for android apps and the other without, when I put the app to use the restricted api it can not access the api returning Error "403 Forbidden", in the…
-
3
votes1
answer199
viewsQ: How to call youtube API with multiple parameters?
I’m trying to get the data from various videos, but the Youtube API is separate for videos and playlist, then I used the API of playlist to obtain the VideoID of each video in a given playlist, but…
-
0
votes1
answer3991
viewsQ: Recyclerview No Adapter Attached; Skipping layout
My app was closing at start, I was recommended to pass all code ( creation of the Recycle view ) to the onActivityCreated from Fragment, I did this, the app works, but it should load the recycleview…
-
0
votes1
answer66
viewsQ: Error using Mainactivity method in Fragment
I am trying to use a method that returns a list, when using this same method inside the mainactivity where it was created everything works well, but when trying to access it in a fragment of the…
-
0
votes2
answers143
viewsQ: It is possible to open Activity inside framelayout
Is it possible to "inflate" an Activity ( in this Activity has a recicleview) inside a framelayout ? if not, what I use to open 3 different activitys, keeping the navigation bar down as in…
-
1
votes1
answer126
viewsQ: Remove setError after field is completed
I put a setError , warning the user to fill in the form if they had not, however after it filled out was to disappear the error, but continues, I did using setErrorEnable(False) but it did not work.…
androidasked Igor Oliveira 1,110 -
0
votes1
answer1426
viewsQ: How to place button next to two text fields
I want to put the button next to Edit text, I’ve made several attempts with layout_toleftof and Weight layout but the button ends up disappearing, or is in the same place. My xml is like this:…
androidasked Igor Oliveira 1,110 -
1
votes1
answer386
viewsQ: Open screen inside mainactivity
I’m making a mechanical calculator, but I wanted to make several calculation options in the navigation drawer and when you click the specific calculator click on the screen (the intention is to make…
androidasked Igor Oliveira 1,110 -
1
votes1
answer56
viewsA: Doubt about content Activity
These are the design files of your application, the content is the content you put inside the application as textviews list views etc.
androidanswered Igor Oliveira 1,110 -
5
votes3
answers629
viewsQ: Why does my Actionbar due to an error stay inside my Statusbar?
I started a new default project on Android, I did like this reply to my ActionBar stay on top of the standard menu NavigationDrawer, now, my ActionBar enters into the StatusBar and the source gets…
-
2
votes3
answers6632
viewsA: Float button
That to xml <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content"…
androidanswered Igor Oliveira 1,110 -
8
votes1
answer1445
viewsQ: How to Set and Get Application Version
I’m almost finished my first android app, and I made a "page" of about and manually put the version number. Da para definir a versão em algum local ? e tem como obter ela dentro do programa ?
androidasked Igor Oliveira 1,110 -
0
votes1
answer1060
viewsQ: How to put Navigation Drawer menu under the Action Bar?
Hello, I started a new project with the standard Navigation Drawer, a standard Android project, it comes with the menu that goes over the Action Bar, so: I’d like it to look like the image below:…
-
1
votes0
answers615
viewsQ: Get string from an Edittext
I’m a beginner in android and the max that I managed to do so far is to press the save button it prints in the log that I wrote, but I’m not able to store this in a variable. package…
androidasked Igor Oliveira 1,110