Posts by jallisson jallis oliveira band • 100 points
25 posts
-
0
votes1
answer82
viewsA: Notification icon modifies with closed app
just put the code below in Androidmanifest.xml, as per: https://vike.io/pt/408790/ <meta-data android:name="com.google.firebase.messaging.default_notification_icon"…
-
-1
votes1
answer82
viewsQ: Notification icon modifies with closed app
When the App is open the icon appears normal, now when the app is not open only a circle appears instead of the icon. I have a system in Swing that when the user does a certain action is sent a…
-
0
votes2
answers798
viewsA: Get Imei on Android using Java
I used the method below to get the MAC. Creditworthiness public static String getMacAddr() { try { List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces()); for…
-
0
votes2
answers180
viewsA: Error sending push notification with Firebase-messaging
I managed using the method below: Creditworthiness public void sendToTokenFcm(String tkn, String corpo) { try { URL url = new URL("https://fcm.googleapis.com/fcm/send"); HttpURLConnection conn =…
-
1
votes1
answer620
viewsQ: Direct Print to Non-standard Printer with Jasperprintmanager
In my system a txt file is imported read and printed on the standard printer, the report is done in ireport and I use the printPage method of Jasperprintmanager to print on the standard printer,…
-
0
votes2
answers180
viewsQ: Error sending push notification with Firebase-messaging
I’m using the below method that worked: public void enviaNotificacaoDenuncia(String mensagem, String token) { Sender sender = new Sender(apiKey); Message message = new Message.Builder()…
-
1
votes1
answer58
viewsQ: Special Character with Scanner and Filereader
I have a.txt file with the following values: TESTE 17,00% 01/01/2014 25,55 AÇAILANDIA When importing this txt in my Java application the special character Ç is not imported and the result is like…
-
1
votes2
answers798
viewsQ: Get Imei on Android using Java
I’m needing to get a unique identifier for my app, I’m trying to get the device IMEI and I’m not getting, below follows the code I tried to get the IMEI and it always stops at the first if that has…
-
0
votes2
answers51
viewsA: Tablecellrenderer, problem in color display in table
In this case you instantiate a Defaulttablecellrenderer object thus: DefaultTableCellRenderer colorRenderer = new DefaultTableCellRenderer() { @Override public void setValue(Object value) { switch…
-
0
votes2
answers51
viewsA: Tablecellrenderer, problem in color display in table
Do it like this: public class ColorirTabelaTramitacao extends DefaultTableCellRenderer { /** * */ private static final long serialVersionUID = 1L; public static final float R = 0.9f; public static…
-
0
votes1
answer350
viewsQ: Update in a specific field in Django 2.0
I have the following Model: class Venda(models.Model): id = models.AutoField(u'AÇAIEX', primary_key=True) hora_saida = models.TimeField(max_length=6) responsavel_frete =…
-
0
votes1
answer110
viewsA: Update on Timefield Django 2.0
Solved added code in Setting: TIME_INPUT_FORMATS = [ '%H:%M', ] So he returns hours and minutes.
-
1
votes1
answer110
viewsQ: Update on Timefield Django 2.0
I have a model with several fields, one of them is the Timefield type: class Venda(models.Model): id = models.AutoField(u'AÇAIEX', primary_key=True) hora_saida = models.TimeField(max_length=6) To…
-
1
votes1
answer32
viewsQ: Label não some Django
Use a radio and a Javascript script to make the action disappear the agency field of the report Model, the problem is that add only the combobox the label does not add up. Model class…
-
0
votes1
answer53
viewsQ: '<' not supported between instances of 'method' and 'method' Django 2.0
I implemented a validation with two methods def clean(self, *args, **kwargs): #valortotal = Venda.objects.filter(id=self.id).aggregate(valortotal=Sum(F('item__produto__valor') * F('item_qtde'),…
djangoasked jallisson jallis oliveira band 100 -
0
votes0
answers45
viewsQ: Validation with clean method in Django 2.0
In my Model have this method below: def clean(self, *args, **kwargs): valortotal = Venda.objects.filter(id=self.id).aggregate(valortotal=Sum(F('item__produto__valor') * F('item__qtde'),…
djangoasked jallisson jallis oliveira band 100 -
1
votes2
answers189
viewsA: Change the position of the maps map by clicking
I was able to put the clear function of the Googlemap variable mmap at the beginning of the map onclick method. example below: mMap .setOnMapClickListener( new GoogleMap.OnMapClickListener() {…
-
0
votes2
answers189
viewsQ: Change the position of the maps map by clicking
I want to change the position of the marker of the maps by clicking on the screen of the Smartphone, in my code instead of changing the position it creates several markers. below the main code…
-
0
votes1
answer57
viewsQ: Text breaking in Android notification Using upstream FCM
Upon receiving the notification the text is not displayed completely, at the end of the text an ellipsis is shown, how to resolve this. Below the notification sending code…
-
1
votes1
answer867
viewsA: Recyclerview error: cannot find Symbol variable when running the Android Studio Project
It was solved, the error occurred because there were three Activity_main.xml thing that I had not noticed, one was without Recyclerview, and another Visual Studio well that could have informed on…
-
-1
votes1
answer867
viewsQ: Recyclerview error: cannot find Symbol variable when running the Android Studio Project
My project when axecutar appears this error: Error:(417, 63) error: cannot find symbol variable testando Error location: The app’s Gradle has all the right Recyclerview Imports: apply plugin:…
-
0
votes1
answer13
viewsQ: Page position on Webviewer Android
Someone can tell me if I have how to set a position of a web page at the time of starting the App that has a Webviewer, example when opening the page it shows initially from the middle.
-
0
votes3
answers70
viewsA: Error Code: 401() when sending FCM notification using a server
Blank Notification Case Resolved Modified Registrationintentservice package com.t2ti.cardapiobalcao; import android.app.IntentService; import android.content.Intent; import…
-
0
votes3
answers70
viewsA: Error Code: 401() when sending FCM notification using a server
I followed the link How to find Sender ID I was putting the wrong token, but now I’m with another problem, the content of the message does not appear, follow an example below as I’m using the method…
-
0
votes3
answers70
viewsQ: Error Code: 401() when sending FCM notification using a server
I’m having trouble sending notification using Firebase Cloud Messaging on Android. I’m using the method below: public void enviaNotificacao(String mensagem, Pedido pedido, String token) { Sender…