Posts by Igor Oliveira • 1,110 points
124 posts
-
0
votes2
answers1039
viewsQ: Add array within array
How to add an array within another array ? I’ve got these two, I want to add the bottom one on the top, with the name "answers" Array ( [0] => Array ( [id] => 0 [unidade] => 4 [exercicio]…
phpasked Igor Oliveira 1,110 -
0
votes1
answer53
viewsQ: Why does my recycleview not respect Match Parent?
I have a cordinatorlayout that contains a recycleview, however it fills the whole screen, and this all set as match_parent, including the recycleview card XML:…
-
0
votes1
answer71
viewsQ: Recyclerview Scrolllistener - Animate view visibility
I want a view containing some buttons to disappear and appear when I slide the recycleview as in Coordinator layout: but currently this way, and he has no animation, just fades and appears: Current…
androidasked Igor Oliveira 1,110 -
0
votes2
answers4597
viewsQ: Include menu in all pages
I made the menu of a system I am doing in html and php, I wanted to insert this menu in all pages, however I wanted to change the active menu according to the open page, is possible ? My current…
-
2
votes5
answers3285
viewsQ: Remove the space between two Ivs
I have this code but I wanted the Divs to be below each other but they have a space that I have tried to remove in various ways, but nothing happens. <html> <head> <meta…
cssasked Igor Oliveira 1,110 -
0
votes2
answers45
viewsQ: return tinyint as boleano in json Ncode
I make a fetchall with Pdo in the database and receive the result correctly, but the values are saved in tinyint in the database, and I get them in 1 and 0, so when I do json Ncode, it returns me 0…
phpasked Igor Oliveira 1,110 -
1
votes0
answers38
viewsQ: Even include with button on different viewpager screens
I have a include with a button, and I use it has 2 screens, inside a viewPager, it happens that when I do the click system, it clicks the include of the last screen, and not the screen I clicked.…
androidasked Igor Oliveira 1,110 -
2
votes1
answer668
viewsQ: exclude column of select *
I have an api that returns the data of the user in json, but wanted to return all data except the password, would it have any way without being select in all fields except the password? I’m doing so…
-
0
votes1
answer29
viewsQ: animate removeAllViews when recreating view
I have a scrollview with 6 buttons that change the background according to a previously chosen numberpicker, When I change the number of the Picker number and it removes the existing buttons and…
androidasked Igor Oliveira 1,110 -
0
votes1
answer329
viewsQ: circle with Shape edges
How to make this circle in xml ? what I have so far: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item…
-
0
votes1
answer225
viewsQ: Stackoverflowerror Retrofit With Basic Authentication
I have a Servicegenerator that creates the retrofit for min, it works great when I sign in and password for it, but when I try to use it without these options, my code goes into a loop and crash the…
-
2
votes1
answer921
viewsQ: Return Json in Array instead of object
I have an api that returns data from 1 user, but it returns an object: [{"id":"0","nome":"xx","sobrenome":"xx","email":"x","senha":"xxx","unidadexlocal":"Praia da…
phpasked Igor Oliveira 1,110 -
0
votes0
answers85
viewsQ: Because my app is slow in transitioning from Fragment
My app gets slow ( and comes crashing, but without crashing ) after I click a button that transitions from Fragment, was working normal, I went to tinker with another area of the app and when I…
androidasked Igor Oliveira 1,110 -
0
votes0
answers793
viewsQ: Uncaught Error: Class not found - Slim Framework
I’m getting this mistake: Fatal error: Uncaught Error: Class 'CrudUser' not found in /home/doupenglish/www/api/index.php:27 Stack trace: #0 [internal function]:…
-
0
votes2
answers46
viewsA: Nullpointerexception on button inside include
I managed to solve, just to take the id of the include
androidanswered Igor Oliveira 1,110 -
0
votes2
answers46
viewsQ: Nullpointerexception on button inside include
I have a button that advances a viewpager, but I did it inside a include, because I use on several screen, but when I try to click on it it me error Nullpointerexception, I have checked the ids, if…
androidasked Igor Oliveira 1,110 -
0
votes1
answer18
viewsQ: How to get button that is inside include
I have a Fragment, which contains a Viewpager that inflates 2 views for now, but will have a button next in all layouts so I made a separate file with this button, and however I can’t catch it to…
androidasked Igor Oliveira 1,110 -
1
votes1
answer70
viewsQ: How to store questions and answers in the bank
How can I store questions in this style: a. __She__ is alone in the park, sitting by__herself___. (She/Her/Herself) in the bank with these spaces to fill and use these spaces on android for example.…
-
0
votes1
answer166
viewsQ: How to reload only table after ajax
I am reloading the page after entering a data in the bank via ajax, there is the possibility to update ( rebuild) only the table, or the div in which it is? $(document).ready(function(){…
-
0
votes2
answers70
viewsQ: Why can’t I use Onbackpressed Listener within Ragment
I have a navigation Drawer that opens several Fragments, I want to click and return, check the visibility of a layout and do something with it, and instead of closing the app, but I can not override…
androidasked Igor Oliveira 1,110 -
0
votes1
answer95
viewsQ: How to Deploy Api with Composer / Slimframework
I have an api working on localhost how do I send it to my ftp? I have these folders, downloaded with Composer slimframwork just send everything?…
-
0
votes1
answer55
viewsQ: Class to create json
I made this class in order to create a JSON to return in my Web Service, but it’s not working, someone would know why? Class Uteis <?php class Uteis { public static function…
phpasked Igor Oliveira 1,110 -
0
votes1
answer35
viewsA: I can’t instantiate my class to db
I managed to find out, I did the wrong instance: $sql = new $Sql(); There’s no $ in Sql, getting like this: $sql = new Sql();
phpanswered Igor Oliveira 1,110 -
1
votes1
answer35
viewsQ: I can’t instantiate my class to db
I made a class that connects in the bank and makes select, it happens that when I instate it in my index, does not work, from this error: Notice: Undefined variable: Sql in C: xampp htdocs apitest…
phpasked Igor Oliveira 1,110 -
0
votes3
answers173
viewsQ: Why my load does not load after Submit
I have a basic form, and wanted to change the contents of the div after clicking on the send form, when I run without Submit works, poem with Submit does not work <!DOCTYPE html> <html>…
-
1
votes1
answer490
viewsQ: How to close the keyboard?
When I step into this Fragment with the keyboard already open, it remains open, which ruins my layout, how to hide it or not open it?…
-
0
votes2
answers155
viewsA: Change visibility of xml layout with the change of orientation of the device
Add android:configChanges="orientation" in its Activity manifest thus: <activity android:name=".HelloAndroid" android:label="@string/app_name" android:configChanges="orientation"> Then…
-
4
votes3
answers294
viewsQ: Transform Set<Integer> into Set<String>
I need to store a Set<Integer> within a sharedpreferences, however it only accepts Set<String>, has how to make this conversion ? Set<Integer> checados = group.getCheckedIds();…
-
0
votes1
answer43
viewsQ: How to get the Primary key of an item in an orderly recycleview
I have a recycleview populated with a Realm bank, if I don’t sort, my code works because it puts in the ID order ( Primary key ). However I want to sort alphabetically, and when I do that my code is…
androidasked Igor Oliveira 1,110 -
1
votes1
answer345
viewsQ: Is Hashmap possible with various values?
I need to fill a bank like this: Milk 50 kcal 20 proteins 120 Carbo etc. I got to do with hashmap, but I can only use one key for a value, it would have to do with various values, or another way…
-
0
votes0
answers56
viewsQ: Saving data from various Ragments
I have a slide ( using the material-intro lib) that has several fragments, I need to save the data that are typed in those edittext fragments when I close this slide, I’m trying via Input but I’m…
androidasked Igor Oliveira 1,110 -
1
votes2
answers5485
viewsA: how to put monetary mask for Edittext in an Android app?
You can use this lib: https://github.com/santalu/mask-edittext Then just add edittext already with xml mask: <com.santalu.maskedittext.MaskEditText android:id="@+id/et_phone_number"…
-
0
votes0
answers66
viewsQ: Centralize input vertically within panel-Heading
How can I center this search input to stay on the line of text? I tried applying margin but instead of going up, he pushes the table down Current Code: <!-- tabela servicos solicitados -->…
-
2
votes0
answers28
viewsQ: Popular form with database data
I need to populate a form when the page loads, I tried to search with php and store it in an array and other ways ( some are commented), but there is no error, just no information appears. Like I’m…
phpasked Igor Oliveira 1,110 -
0
votes2
answers197
viewsQ: How do I know if it’s past midnight or a new day has begun?
I need to make a make a if for when past midnight, but how can I get this information even with mobile turned off? I’m trying like this these days: date_current = simpleDateFormat.parse(strDate); if…
androidasked Igor Oliveira 1,110 -
0
votes1
answer1496
viewsQ: How to make an Alert in php
Do an Alert or other type of message after the user misses the password on the login page for example ? I tried to do it this way: unset ($_SESSION['login']); unset ($_SESSION['senha']);…
phpasked Igor Oliveira 1,110 -
2
votes1
answer1026
viewsQ: Call to a Member Function bind_param()
I’m a beginner in PHP and I’m getting this error while trying to make a Insert in the database using Mysqli functions: Fatal error: Call to a member function bind_param() on string in…
-
0
votes1
answer253
viewsQ: Display database data when click table row
I have a table filled dynamically when the page loads with data from the database, using php, everything works until then, but need to click on a row in the table it displays in a side panel the…
-
0
votes1
answer659
viewsQ: How to finish an Activity from another class?
I need to close an Activity if it has opened, when a certain timer has finished, how do I do it ? because to use Finish I need context. I tried to cast a cast, but to no avail: if…
-
1
votes1
answer56
viewsQ: Display 1, 2, 3 if you receive odd numbers
I need that in the textview displays in order 1, 2, 3, 4 etc. But the value it receives from dados.getdia() is always 3, 5, 7, 9, 11 etc. I have tried several things. In this code below it works up…
-
3
votes3
answers722
viewsQ: Format String to "00:00:00"
I need this string to come out in 00:00:00 format currently it comes out: 5:4:1 for example, what I did was to do several ifs, but it is not efficient, and also it does not format when the 3 are…
-
1
votes1
answer91
viewsA: How to open an Activity from a calculation?
Only use if with the account result: double imc = peso / Math.pow(altura,2) if (imc <20 ){ Intent tela1 = new Intent(getApplicationContext(), tela1.class); startActivity(tela1); }else if(imc >…
-
0
votes0
answers135
viewsQ: Keep Countdowntimer running after the app closes
I made a Countdown in a service, it works when the app is sending to the background, but when the app to the state "Dead" it to the count and restarts when I open again. I need it to continue…
androidasked Igor Oliveira 1,110 -
0
votes1
answer157
viewsQ: How to identify that the application has stopped working?
I need to save some data every time the application closes, I did this by overriding the onStop, onDestroy, onPause and works, under normal conditions, more when the crash, he does not perform any…
androidasked Igor Oliveira 1,110 -
0
votes1
answer62
viewsA: How do I get the interfacial ad between an Activity and another?
I believe you should call the new Activity when the ad is closed, using Adlistener mInterstitialAd.setAdListener(new AdListener() { @Override public void onAdLeftApplication() { // Code to be…
-
0
votes1
answer20
viewsA: Because my countdowntimer treats the received time according to the mobile
Solved, it was problems with locality, not to suffer from this problem, format the time so: public void onTick(long millisUntilFinished) { long second = (millisUntilFinished / 1000) % 60; long…
-
0
votes1
answer20
viewsQ: Because my countdowntimer treats the received time according to the mobile
I have a countdowntimer that gets a long value of 86400000 ( 24 hours ) on my emulator android 5.1 it recognizes 24 hours and starts counting since then, but on other emulators and on my physical…
-
1
votes1
answer61
viewsQ: Textview does not centralize on android 4.1.1
I got a problem with mine layout, in API 16 ( 4.1.1 ) TextView is not centered. I am using ConstraintLayout. The properties in XML are like this: <TextView android:id="@+id/txv_textomeio"…
androidasked Igor Oliveira 1,110 -
0
votes0
answers42
viewsQ: Close Interstitial Ad programmatically
I wanted to close my Interstitial ad after 30 seconds in case the user doesn’t close manually. I tried to close by simulating the back button pressed, but it has no effect. public void onFinish() {…
androidasked Igor Oliveira 1,110 -
2
votes2
answers660
viewsA: Create "forgot password" links on Android
You first need to declare the textview in your code: Textview telaperdeusenha = (Textview ) findviewbyid(R.id.telaperdeusenha); then you create a click event in the textview and send it to another…
androidanswered Igor Oliveira 1,110