Posts by Henrique • 1,013 points
103 posts
-
0
votes1
answer32
viewsQ: How to filter a database item through a List field?
I have the entity MessageEntity which contains several sessions (SectionsEntity) which in turn contains several calls (TreatmentEntity). I need to bring the messages, filtered by your Id, filtered…
-
0
votes0
answers75
viewsQ: Error when implementing Swagger
I am trying to implement Swagger in my application but I got the error by uploading the application I did it by following the microsoft documentation, but, I did not succeed. It seems a very generic…
-
1
votes1
answer253
viewsA: Where do I find Web.Config in ASP.NET CORE MVC 3.1?
The real mistake has become a little vague, but perhaps the answer below will solve your case. I believe you have to create the web.config at hand, the aspnet does not have it as standard. On the…
-
0
votes1
answer121
viewsQ: Error Use of undeclared type , when trying to use the identifier of one screen to carry information, to another
I am studying Swift and at the moment I am trying to make an application with more than one screen, very simple. But I’m having trouble working with these inter-screen, storyboard connections. I…
-
0
votes0
answers37
viewsQ: How to manipulate data from a Fragment when sliding to the next one?
Explaining: I have 3 Fragments in a viewpager2, for you to make slides. In a specific Fragment, I have some data in edittext and etc. When sliding to the next Fragment, I need this data to be…
-
0
votes2
answers1134
viewsA: Links to pdf files in HTML page using Android Studio Asset directory
You can view or download the PDF, for example by opening it in your device’s built-in browser or in web viewing by embedding it into your application. Open the pdf in the browser, Intent…
-
0
votes1
answer35
viewsA: Make the Mediastore.INTENT_ACTION_STILL_IMAGE_CAMERA put the photo in an image view
Make it work the same, no, but you can tell where the image is coming from. Remember that permissions should be added: PERMISSIONS_STORAGE, REQUEST_EXTERNAL_STORAGE ... private final int…
-
0
votes1
answer46
viewsA: Download photo URL without file name
Glide and retrofit are libraries, in short, for different purposes. With the retrofit you will go to the server and fetch the image path or even download the file. https://square.github.io/retrofit/…
-
2
votes1
answer154
viewsA: Android - How to detect which is the current fragment?
Tag when opening Fragment: frag.replace(android.R.id.content, myFragment, "MY_FRAGMENT"); Then you can know which is active: MeuFragment meuFragment =…
-
0
votes1
answer425
viewsA: X error has 2 Features per sample; expecting 3147
I solved the issue by changing the way to vector the training texts and consequently, I also changed the way to vector the input text. Used to use the function vectorize_text now use count_vect =…
-
0
votes1
answer425
viewsQ: X error has 2 Features per sample; expecting 3147
I’m trying to work with predictions, Machine Learning, but I’ve been having problems with prediction from the training saved, according to the following error: predict(file_name) File…
-
0
votes1
answer315
viewsQ: How to enter new data for prediction (text)?
I’m new to Python and new to Machine Learning. I built an algorithm so that it can be trained to sort texts. So you can predict in which category fits certain text. The training and the score are…
-
1
votes1
answer2738
viewsQ: How to remove unwanted characters from a list of strings?
I’m new to python and I couldn’t find an answer to my question. I get a list of texts from the database and turn it into a list of strings as below: textosPuros = df['texto'] # print(textosPuros)…
-
1
votes2
answers528
viewsQ: Working with custom alertdialog layout
I created this layout, so I could work with this alertdialog. I created it, because I have to record the states after the click and also, when opening the dialog, I can get the value that was marked…
-
1
votes0
answers282
viewsQ: How to have a searchview of material design?
I need to have a Toolbar with the menu items inside, search icon and voice. Like the one in the picture: I have the code to Activity override fun onCreateOptionsMenu(menu: Menu): Boolean {…
-
3
votes1
answer45
viewsQ: Error inserting data into Sqlite : java.lang.Illegalstateexception: getDatabase called recursively
1-07 22:50:59.756 11315-11315/com.dev.bob.rent E/Androidruntime: FATAL EXCEPTION: main Process: com.dev.bob.aluguel_automovel, PID: 11315 java.lang.Illegalstateexception: getDatabase called…
-
0
votes1
answer70
viewsA: SMS with Googlemaps link is not sent
Solved by removing the http: //
-
0
votes1
answer70
viewsQ: SMS with Googlemaps link is not sent
I work with sending SMS with the Googlemaps link, but in some cases, the phone does not send, I can not know the reason, other links are sent normally. Follow the image of the message: I would like…
-
0
votes1
answer779
viewsQ: Unregistered Registration Token - Firebase
I have a project in firebase and am trying to implement push notifications, I followed the documentation but while doing tests, sending direct to firebase, it fails and error appears, "Unregistered…
-
0
votes1
answer33
viewsA: Errors when trying to generate a signed apk, after facebook login is added
I don’t know if it’s the best thing to do, but, uh, this worked for me. Gradle module app: buildTypes { release { ..... lintOptions { disable 'MissingTranslation' } } }…
-
0
votes1
answer33
viewsQ: Errors when trying to generate a signed apk, after facebook login is added
I added the facebooklogin app, works correctly. But when generating a signed apk, he complains, that there is no Portuguese translation of <string…
-
-2
votes2
answers320
viewsA: Get the user’s location (City, State, Country) with the facebook login?
This worked for me by adding the getLocationUser method, it searches the id-based location, coming from the "Location" node in the previous Json: private void facebookLogin() { mAuth =…
-
-1
votes2
answers320
viewsQ: Get the user’s location (City, State, Country) with the facebook login?
How do I get the user’s city, state and country, with a facebook login? I have the code below: facebook.setReadPermissions("email", "public_profile", "user_birthday","user_location"); private void…
-
1
votes1
answer349
viewsQ: Retrofit always returning null in Response
The answer comes with code 200, IE, correct, but the body is null. Follows the model: public class MovieModel { @SerializedName("imdbID") @Expose public String idMovie; @SerializedName("Title")…
-
0
votes1
answer407
viewsQ: Error using Retrofit 2
t={movieName}&apikey=11111" must not have replace block. For Dynamic query Parameters use @Query. This error happens when trying to fetch a movie by name, I have the codes below, but the error…
-
0
votes1
answer113
viewsQ: Create an application shortcut in an onLogClickListener?
The code below creates a shortcut on the device’s home screen, but by clicking on this shortcut, it returns me an error "The app is not installed" How to solve? I would like this mainactivity to be…
-
0
votes2
answers828
viewsQ: Format Timestamp for string without milliseconds?
I have the following variable public Timestamp CreatedAt; She is placed in a textview in this way: hora.setText(String.valueOf(notificacao.CreatedAt)); The exit is: 2017-06-29 12:31:21.759 I wish it…
-
0
votes2
answers612
viewsQ: Count the number of characters and insert a new one into a given position, into a string?
I have both strings: String num_tel1 = "03184872882" and the String num_tel2 = "84872882". They are 11 and 8 characters, respectively. How do I count this amount of characters and, if you have a…
-
0
votes1
answer42
viewsQ: Check and change the first 3 characters of a string?
For example, a string with phone +5531984892883. I would like to check if the first 3 characters are +55. If they are +55, replace them with 0 (zero). How can I do that?
-
1
votes1
answer92
viewsQ: Is it possible to change the function of the physical button, even with the app in the background?
Would you like to change the function of a physical button, for example the volume, by clicking the button, bottom or top, if it is possible to perform a function other than changing the volume of…
-
2
votes1
answer115
viewsQ: Trigger an event by pressing the 2x volume button?
I would like to trigger an event just by pressing the 2x volume button quickly. I have the following code, but it fires by pressing the button only once. How to make it fire only if pressed 2 times…
-
0
votes2
answers756
viewsQ: How do I break a line to send an email to a user with HTML?
I send an email to the user who enters the application. I would like to know how I do the line break, so that it stays the way I wish. Below the code I use: private void newUserEmail(string email,…
-
1
votes2
answers1054
viewsQ: How to hide the keyboard when clicking an Edittext?
I have following XML: <android.support.design.widget.TextInputLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginRight="15dp" android:layout_weight="6"…
-
1
votes0
answers43
viewsQ: Wait for a specific wifi?
I created the following test, searching the name of the WIFI and the MACADDRESS of who sends me this WIFI. I would like to be "listening" if there is a specific WIFI, so that when finding it, do…
-
1
votes1
answer166
viewsQ: How to put more information in the window by clicking a Marker?
When opening the map, in Mainactivity, I display some pins on the screen (markerOptions), as codes below: WAPIService.getInstance().getPontosMapeamento(latitude, longitude, new…
-
0
votes1
answer279
viewsQ: How to place a title in Ragment?
I have the code below, which calls a Fragment, in Activity Schedulesearch: @Override public void openFragment(int home, boolean search, boolean changeClickDirection) { if (home == 0) {…
-
1
votes1
answer30
viewsQ: How to remove titles (at runtime) and decrease the size of Floatingactionbutton?
I have a menu, with floating action Buttons and would like to know how it is possible to put them smaller than the normal size, because they are equal, in size, to the menu, even open and the…
-
1
votes3
answers1707
viewsA: Radiobuttons, horizontal and vertical layout
Solved as follows the Layout: <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout…
-
0
votes3
answers1707
viewsQ: Radiobuttons, horizontal and vertical layout
I have a layout with 6 Radiobuttons. They are both horizontal and vertical. How can I solve this problem? Since using 3 Radiogroups, I can’t uncheck the radio button outside the group. As such, I…
-
2
votes3
answers1312
viewsA: How to get the address through Latitude and Longitude, formatted?
Question resolved as follows: String street = null; String city = null; String adminArea = null; //estado String country = null; String address = null; addresses =…
-
0
votes3
answers1312
viewsQ: How to get the address through Latitude and Longitude, formatted?
From a click on the map, I take latitude and longitude and turn it into a String address, below the code I use: private List<android.location.Address> addresses; @Override public void…
-
1
votes1
answer51
viewsQ: How to open a alertDialog without darkening the screen?
I have this alertDialog: private void createInfoWindow() { AlertDialog.Builder alert = new AlertDialog.Builder(activity); alert.setCancelable(true); alert.setView(R.layout.middle_window_adapter);…
-
0
votes1
answer30
viewsQ: Azure backend with C#. Create a new field in a table
I have a backend built in C#, with Microsoft Azure and SQL Server database. In order for me to add a new field to a table, what should I do? It would just go in the designer of this table, via…
-
5
votes2
answers1407
viewsQ: How to Transform Time String to an Entire?
Example, I get a String with the "16:20" time of day. The day is 1440 minutes long. How to know what interval from zero to 1440 is this time? In an integer value(integer).
-
0
votes1
answer70
viewsQ: Timepicker as a draggable bar
It is possible to make a timepicker this image shape? So I can put in a range, hours. If so, is there an example or a library? If not, any suggestions? Imagery:…
-
0
votes1
answer95
viewsQ: How to get data from this Json?
I need to get the name, Distance, photo and id, which are within "date" and also need to get the route_id that is inside "ride". This will be populated in a listview that contains these first data.…
-
2
votes1
answer65
viewsQ: How to send a json of an Activity to a Fragment?
I have an Activity that is added a data in Jsonobjetct. And as seen in the following code, I take it as a string, but, my doubt, as I by this Jsonobject in the fragment so that I can work with it,…
-
0
votes1
answer34
viewsQ: Error when trying to include a mapfragment in an Activity
I have an Activity that should go up with the map (Googlemaps). But when implementing some methods, so that I can for example click and add a marker, it breaks, with the following error: Attempt to…
-
0
votes1
answer571
viewsQ: How to know which Activity is open, running?
I have two activities, Activity1 and Activity2. I need to know if 2 is active or not in both activities. Example: if (activityrunning == activity2){ //do something }else{ //do something else } Thank…
-
0
votes1
answer48
viewsA: Error after performing Migrations (backend .Net)
The error message is caused by the Entity Framework not having a annotation to create a grouped index, which is not a primary key. The mobile SDK manually creates the correct SQL statements to…