Posts by fabricio b. • 245 points
29 posts
-
0
votes1
answer606
viewsQ: How to open the virtual keyboard on a Fragment focusing on editText?
Hello I am developing an application and when loading the screen to register the focus is on an editText but I need to automatically load the virtual keyboard of Android. public class…
-
1
votes1
answer132
viewsQ: How to initialize the components of a layout in the onCreate of a Fragment?
I created a Fragment to show a list of items, but I need to initialize two components a listview and a Progressbar on onCreate but I don’t have the reference of the layout file they are. How do I…
-
0
votes0
answers28
viewsQ: How to print a custom Arrayadapter in a Ragment?
I am using a Drawer menu in my Android application and I need to print a list in Ragment by clicking on the side menu item, how I create a custom Arrayadapter and how I invoke it in Ragment?
-
0
votes1
answer226
viewsQ: How to set values in a Fragment instead of an Activity using Drawer menu?
I created a slider menu in my application and I was able to call an Fragment when selecting the menu options but I am having difficulties to print the values in this Fragment instead of using an…
-
0
votes1
answer460
viewsQ: How to change the color of the button when pressed?
I need to change the color of a button when it is pressed, as it could be done?
-
6
votes2
answers1773
viewsQ: What is the Retrofit?
I am using the retrofit in an application to consume a Java Web Service and I am in doubt: Retrofit is a library or API?
-
1
votes0
answers517
viewsQ: Creating Event in MYSQL to delete records per day
I’m trying to create an automatic event in Mysql so that every 24 hours it runs the following command to delete promotions without admin interaction, where if the end date is shorter than the…
-
0
votes1
answer265
viewsQ: by checking whether the date of an Edittext is greater than the date of another Edittext
I have two Edittext in my application and select the date using a Datepicker need to make the user not enter a date less than the one given in the first Edittext.
-
0
votes0
answers48
viewsQ: Trigger in MYSQL to delete record when it exceeds a date
Hello how could I create a Trigger that deletes records from the database that exceed the current system date?
-
2
votes1
answer849
viewsQ: Delete a record from the database when the deadline is passed
How can I automatically delete a record from the MYSQL database when it reaches a deadline? remembering I am using a data_termino attribute of type Date
-
0
votes1
answer706
viewsQ: How to convert an array of bytes to a bitmap image?
Hello, I am trying to return to an Imageview an image stored in the database that is saved as an array of bytes in a field of type BLOB, what would be the alternatives to this?
-
0
votes0
answers22
viewsQ: Formatting date to save
Hello, I need to convert a date that is in String to save to a variable data_inicio of the kind Date in Mysql and I did it as follows: String data = "14/11/2017"; SimpleDateFormat formataData = new…
-
0
votes2
answers5485
viewsQ: how to put monetary mask for Edittext in an Android app?
how to put monetary mask for Edittext in an Android application only with numerical values without the R$, ie print in Edittext 2.99? If you have an example.…
-
1
votes1
answer107
viewsQ: How to save to type Numeric in Mysql
Hello, I am using to save the price of a product in MYSQL the type Numeric(9,2) but in my system I am using Double and when printing it appears R $ 2.2 instead of R $ 2.20 what kind of data could…
-
1
votes2
answers1197
viewsQ: How to save to Date type in this format 10-10-2017 using Simpledateformat?
How to save a Date in format 10-10-2017 using SimpleDateFormat? Date data = null; SimpleDateFormat formato = new SimpleDateFormat("yyyy/MM/dd"); try { data = formato.parse(dataInicio); } catch…
-
0
votes2
answers326
viewsQ: how to save date with Date type in MYSQL and return to an Android app
Hello I have an Android application that takes the date of a Datepicker but I’m not able to convert it to the type accepted by MYSQL in the case Date how could do this?
-
0
votes1
answer1037
viewsQ: access permission to android image gallery
Hello, I’m creating an app that by clicking on an Imageview opens the gallery of images android, but when I open it was showing a dialog for whether or not the user wants to allow access to gallery,…
-
1
votes1
answer114
viewsQ: Error trying to insert data into Mysql database
I’m trying to input a promotion into the database Mysql through a Web Service REST in Java, but when trying to insert me returns the following error: Grave: ERRO ao Inserir Promocao -…
-
0
votes0
answers155
viewsQ: How to implement the HTTP protocol DELETE method in a Java Web Service REST
I am wondering how I could implement the DELETE method of the HTTP web service REST JAVA protocol, when I run it says that I am running the GET and not DELETE method. //Method called in Web Service…
-
1
votes0
answers53
viewsQ: When sending Java object from an android app to the database one of the attributes goes as null
Produto produto = new Produto(); produto.setNome(edtNome.getText().toString()); produto.setPreco(Double.parseDouble(edtPreco.getText().toString().replace(",", ".")));…
-
1
votes1
answer68
viewsQ: Error trying to insert information into mysql database
I have the following tables Produto { idproduto nome preco } Promocao { descricao datainicio datatermino id_produto_fk } When trying to insert a new promotion returns me the following error:…
-
1
votes1
answer310
viewsQ: Error while trying to delete with DELETE method using web service Rest in Java
I created a Web Service REST in Java. All operations are working except that of DELETE which returns the following error: HTTP DELETE method: @DELETE @Path("excluir/{idpromocao}") public void…
-
0
votes0
answers58
viewsQ: I have an app that uses menu tabs, one with products and the other with promotions how could I implement a search in this type of menu?
I have an app that uses tabs menu as in the image, one with products and another with promotions as could implement a search in this type of menu with different tabs?…
-
0
votes0
answers32
viewsQ: Transforming image into an array of bytes
ImageView imgProduto = (ImageView) findViewById(R.id.imgProduto); Bitmap bitmap = ((BitmapDrawable)imgProduto.getDrawable()).getBitmap(); ByteArrayOutputStream saida = new…
-
0
votes1
answer843
viewsQ: Transforming image into array of bytes
I have an image that is in a ImageView on Android and I need to convert the image to byte array to send to Mysql. How could I do?
-
2
votes2
answers593
viewsQ: How to prevent the user from typing in Edittext, but allow clicking on it to open a Datepicker?
I have an Edittext that when clicking on it opens a Datepicker, how to prevent the user from typing in Edittext? I tried to use edtData.setEnable(false) but clicking on editText nothing happens.…
-
0
votes1
answer196
viewsQ: How to save images from an android Imageview to a Mysql database using a java web service Rest
I have an android application with an Imageview that receives an image from the device, and I need to save it in a mysql database through a Java web service how could do this?
-
0
votes1
answer544
viewsQ: How to create a mask for monetary value in an editText, real in case it format this way to save in the database "20.99"?
How to create a mask for monetary value in an editText, real in case it format this way to save in the database "20.99"? 1.99 20.99 300.99 1000.99 10000.99
-
0
votes3
answers662
viewsQ: Use the Textwatcher to handle the Edittext field on android but it shows $ 12,50 as it would be without the "R$"?
public class MoneyTextWatcher implements TextWatcher { private final WeakReference<EditText> editTextWeakReference; private final Locale locale; public…
androidasked fabricio b. 245