Posts by felipe.rce • 1,969 points
66 posts
-
3
votes1
answer972
viewsQ: What is considered a failure in the Google Play Console
I accessed the statistics of my app in Google Play Console and noticed that there are several notes of failures, but there is no ANR and the crashlytics registered very few crashs, which leads me to…
-
0
votes1
answer179
viewsQ: Access list from inside a Viewholder in Kotlin
I need to access a list that is in the Adapter, however, I need to access being in a Viewholder, I know that with Java it would be enough to reference the list, however, in Kotlin the list is not…
-
3
votes1
answer180
viewsQ: Centralize Recyclerview Items with Flexboxlayoutmanager
I’m using Flexboxlayoutmanager to align the items, but I need all items to be aligned in the center, regardless of the amount of items (dynamically). I want these items to stay like this: But what…
androidasked felipe.rce 1,969 -
2
votes1
answer354
viewsQ: Change the color of a background image on Android
I have a background image in a textview, I need the color of this image to be changed dynamically, I tried to change using setColorFilter, however, it changes the color of the whole image, I can’t…
androidasked felipe.rce 1,969 -
2
votes0
answers86
viewsQ: How to count how many days of a certain type (Monday, Friday etc.) exist between two dates?
How do I know how many weekdays of specific types (for example, only Mondays, Tuesdays and Wednesdays) exist between two dates in Java? For example, from date 01/12 to 30/12, how many segundas,…
javaasked felipe.rce 1,969 -
2
votes1
answer69
viewsQ: Model receive context on Android MVP
I have a sqlite database, to use precise context, however, sending the context to the presenter and then pro model would be a violation of MVP, because it is part of the view, is part of Android.…
androidasked felipe.rce 1,969 -
0
votes1
answer79
viewsQ: Align view on top of a Linearlayout
How to align a view on top of a linear layout? (At the bottom left). I want the blue ball to look like this: But the way I’m trying to do it is: Xml layout: <?xml version="1.0"…
androidasked felipe.rce 1,969 -
0
votes1
answer103
viewsQ: Android Start My App Only
I don’t know if this would be a programming problem, I think so... I’m with a project that the app I’m developing will be installed on X-branded devices, this app MUST be the only usable app, IE,…
androidasked felipe.rce 1,969 -
2
votes2
answers373
viewsQ: Remove spaces from a String array
How to remove spaces (not all spaces, just the beginning and end) from all indexes of a Java String array?
-
2
votes1
answer895
viewsA: Set textview default color on Android
Just take the value that was (or was not) defined in the textColor, if it is null (no color was defined in XML), then seven the white color. color =…
androidanswered felipe.rce 1,969 -
2
votes1
answer22
viewsQ: Good practices with Android comic book
What would be the best practices in relation to sqlite on Android? I use a single db Contract for all tables (each table a class within the main class Contract)? public final class…
androidasked felipe.rce 1,969 -
2
votes1
answer895
viewsQ: Set textview default color on Android
I have a custom Textview, currently it arrow the color of the text to white, however, I wanted this to be the default color, IE, that was chosen white if not set a color with textColor in xml, how…
androidasked felipe.rce 1,969 -
0
votes1
answer490
viewsA: Sending a file by form, but not by Postman
I found the problem, the code is ok... I forgot to put the Formdataparam "file" in the key of the Postman
-
1
votes1
answer490
viewsQ: Sending a file by form, but not by Postman
I made a webservice with Java Jersey to send files, when I try to send files using an HTML form, it works, however, when I try to send from a client or in Postman, an error 500 is returned with…
-
0
votes1
answer327
viewsQ: Add items to the top of Recyclerview with Firebaserecycleradapter
How do I add items to the top of a RecyclerView using the FirebaseRecyclerAdapter? By default, whenever I add an item, it goes to the bottom of the Recyclerview list, and I want it to go to the top.…
-
2
votes1
answer160
viewsA: Pass Firebaserecycleradapter values
Problem solved, I did so: @Override protected void onDataChanged() { super.onDataChanged(); if(getItemCount()==0) { noteList.clear(); } }
-
1
votes1
answer160
viewsQ: Pass Firebaserecycleradapter values
How do I pass an object by clicking on a Recycler view item while using a FirebaseRecyclerAdapter? The way I’m doing it is working, I create a list, and in the method populateViewHolder i add the…
-
1
votes1
answer144
viewsA: How to send a parcelable of a list object?
I decided to remove the parts with comment and adding in.readTypedList(ingredientsList, Ingredients.CREATOR); in the builder public class Recipes implements Parcelable { public static final String…
androidanswered felipe.rce 1,969 -
0
votes1
answer144
viewsQ: How to send a parcelable of a list object?
I’m trying to send an object to a activity using parcelable, happens that the object is sent but the lists that are inside it arrive empty... Class containing the lists: (I tried to solve the…
androidasked felipe.rce 1,969 -
0
votes1
answer82
viewsQ: Problem with threads on Android
I’m trying to get values from a json and play in a recycleview using OkHttp, he is taking the values and playing in the list, no errors, but I am not able to pass these values to the Adapter, the…
-
0
votes1
answer1003
viewsQ: Most suitable mapping of JSON to Java object
I need to work with a JSON that has recipe information. This JSON has an object (Recipe) with some object arrays (Ingredients, Steps). What would be more appropriate from the point of view of object…
-
3
votes1
answer157
viewsQ: Javadb generating sequence of ids with 3 digits
I’m trying to learn Hibernate with JPA, I did a test to record in the Javadb database and realized that the id autoincrement instead of generating an initial sequence of a digit (1,2,3,4...) is…
javaasked felipe.rce 1,969 -
3
votes0
answers100
viewsQ: How to request permission to access sdcard on Android 6+?
I have an app that accesses sdcard, everything was working perfectly, but I noticed that Android 6 has a permissions system where the user has to accept the permission not when the application is…
-
0
votes1
answer699
viewsQ: Change cardview and text color of a listview
I have a listview with a card view and inside the card view I have two text, I know how to activate the contextual action bar when you give long press in the list view and how to change the color of…
androidasked felipe.rce 1,969 -
2
votes1
answer1502
viewsA: Highlight multiple dates with Android Calendar View
I searched and found a third-party api for that... Her calendar is much more attractive and easy to use, searching a lot saw that can not highlight several dates with Android Calendarview... Create…
androidanswered felipe.rce 1,969 -
1
votes1
answer1502
viewsQ: Highlight multiple dates with Android Calendar View
My app logs events with date and time on sqlite, has a menu that will show all these records in a calendar, marking the dates (no schedules) in the calendar, as an event app... When the user clicks…
androidasked felipe.rce 1,969 -
4
votes1
answer70
viewsQ: Detect copied text
How to perform an action whenever someone copies some text in Keyboard android? And would have to use a service to leave running all the time?
androidasked felipe.rce 1,969 -
2
votes1
answer211
viewsQ: Control java application on the outside
I created a java SE application that runs in the background, without swing or anything... But how do I control this application? for example, in python applications we can execute commands (python…
-
2
votes1
answer520
viewsQ: Prevent improper access to the Restful API
I am developing a Restful API with Laravel PHP that will be consumed by an Android application, the API is consumed only by the application, there is no web system. I am learning Restful, and during…
-
5
votes1
answer1244
viewsQ: Using multiple databases
I don’t know much about databases, and I’ve never worked with large systems... I’m creating an application with Cakephp that will serve as a webservice for two distinct client types, one client is…
-
8
votes1
answer2249
viewsQ: When and where to use webservice?
I’m with an android app project that is similar to Easytaxi (has nothing to do with taxi, but follows this logic of using map to locate "taxi drivers" in real time, with account registration and…
-
2
votes2
answers2271
viewsA: Take printscreen on Android by API
Only to complement Maniero’s response. You have a solution to take print screen from the Android screen, you can use this in a service, but needs root: try { Process sh =…
-
4
votes2
answers2271
viewsQ: Take printscreen on Android by API
I have a app and one of the functions would be to printscreen screen. How to do this?
-
1
votes1
answer599
viewsQ: Use a private key for all apps
Why use a private key (other than why post to Google Play)? It’s better to have a key and Keystore for all apps or each app with its own? Having a key and Keystore for all apps influences something?…
androidasked felipe.rce 1,969 -
7
votes2
answers2975
viewsA: Check if 'Allow dummy locations' is enabled
I resolved... To check if the option is enabled: private boolean isMockSettingsON() { return !Settings.Secure.getString(getContentResolver(), Settings.Secure.ALLOW_MOCK_LOCATION).equals("0"); } To…
androidanswered felipe.rce 1,969 -
5
votes2
answers2975
viewsQ: Check if 'Allow dummy locations' is enabled
I have an app that needs the "Allow Dummy Locations" option of the standard Gallery app enabled to work. How to check if it is enabled? How to send the user to this item of my case is disabled? This…
androidasked felipe.rce 1,969 -
0
votes1
answer50
viewsQ: Execute method on all Activitys according to a range
I need to run a method every 20 seconds, this method has a condition, if it is false it will send a Alertdialog. But this method should be run independent of the Activity that is in the foreground,…
androidasked felipe.rce 1,969 -
4
votes1
answer822
viewsQ: Implement serializable in JSF
Why to implement serializable in the JSF bean Managed? When to use and not to use? What is the serializable interface for?
-
1
votes0
answers287
viewsQ: Prevent removal of a sqlite bank on Android
Prevent sqlite database from being removed when uninstalling the application? I have an application that asks password for access, the password is recorded the first time the user starts the app…
-
2
votes1
answer1890
viewsQ: What is the real use of Sqliteopenhelper on Android?
I was watching a course online devmedia explaining about Sqlite on Android, in the example of the course was made a basic crud, were created 1 bank and 2 tables. In the example, I was creating two…
-
21
votes3
answers5317
viewsQ: Why use get and set in Java?
I learned in college a while back that you should always use getters and setters for access of values in an object and I heard that it is for security reasons. So I ended up always using and seeing…
-
24
votes2
answers17995
viewsQ: What is a context on Android?
What is a context on Android? What’s the difference between getContext(), getApplicationContext(), getBaseContext()? Has some relationship with getActivity?…
-
1
votes1
answer53
viewsA: Force refresh Gallery app on Android 4.4
I found the answer. the media scan does not accept a Folder as path, has to image by image in a String array, only so use scanFile. inside the path through the folder:…
androidanswered felipe.rce 1,969 -
1
votes1
answer53
viewsQ: Force refresh Gallery app on Android 4.4
I have an application that handles images, in it has options to move and delete images, when I delete an image is sent a boradcast so that the android gallery application recognize that the image is…
androidasked felipe.rce 1,969 -
3
votes1
answer413
viewsQ: Prevent the exchange of orientation from updating the Activity
I have a problem, an Activity of mine has a list of multi-selectable objects, with the long click I can select several of these objects and click the remove button, when I click to remove, appears a…
androidasked felipe.rce 1,969 -
2
votes1
answer1204
viewsQ: Prevent an Android app from 'minimizing'
I don’t know if minimizing would be the right word, I don’t think so... Please correct me. I have an application and I want to stop someone from minimizing it using the Home button, if someone…
androidasked felipe.rce 1,969 -
0
votes1
answer555
viewsQ: Take position of the arraylist that is in focus in Viewpager
I have an arraylist of images that is shown in a Viewpager, so far so good, this showing all the arraylist normally. But how do I get the Viewpager that’s in focus? That is to take the right…
-
3
votes1
answer1291
viewsQ: Folder permission only for Android application
Is there any way to make the files in a folder on sdcard accessible only from the app? (something like chown and chmod) Not necessarily read, but prevent removal and editing through other…
-
2
votes3
answers1012
viewsA: Recover md5 password from an Android application
I found the answer, I will not accept my own answer because it was finalized thanks to the answers of g.carvalho97 and mgibsonbr, I am responding to only add to the content for those who are in…
-
2
votes3
answers1012
viewsQ: Recover md5 password from an Android application
I created an Android application where asks for a password to access the application. The user registers this password (numeric) and an email to recover password, the data is recorded in Sqlite and…