Posts by Paiva • 527 points
62 posts
-
0
votes1
answer70
viewsQ: Sort listview by the amount of Ikes in Firebase
I need my Listview items with more Ikes to appear first in my feed, how do I do that? follows image of firebase structure My Adapter @NonNull @Override public View getView(final int position,…
-
1
votes1
answer308
viewsQ: Recyclerview with Show More button
I have a recyclerview that pulls data from firebase, but it takes all the data at once, and this causes the application to lock, as I do for it to show only the first 10 and as the user goes down…
-
0
votes1
answer45
viewsQ: Webview does not capture gestures
Wkwebview loads the link but I can’t perform any action on the site Viewcontroller import UIKit import WebKit class promoVC: UIViewController{ @IBOutlet weak var webView: WKWebView! override func…
-
0
votes1
answer32
views -
1
votes2
answers58
viewsA: Error while adding Youtube Player
The problem was that my main activity was not with extends Youtubebasectivity
-
2
votes2
answers58
viewsQ: Error while adding Youtube Player
I’m making an application that lists youtube videos , I created a layout to inflate in the main Activity and put the player in it <com.google.android.youtube.player.YouTubePlayer…
-
0
votes0
answers152
viewsQ: Geofire updating background location
I’m making an application , the location system is similar to the Uber , who needs to send the location to firebase from 3 in 3 seconds , to get the current location live , but when the app is in…
-
0
votes0
answers30
viewsQ: App when closed and reopened , open in I last state
I’m making an application that has several interactions with google maps , one of them is generate route from one address to the other using the Polyline , if the application is closed and reopened…
-
1
votes1
answer49
viewsA: Gif as the background of an Activity
In Gradle add: dependencies { implementation 'com.github.bumptech.glide:glide:3.5.2' } Example in your Activity:…
-
4
votes2
answers629
viewsQ: Firebase Cloud Messaging does not send sound in notification
I have two applications, when such action happens in one of the two applications, it sends a notification via FCM, for the other application, when it comes to notification , only makes the…
-
0
votes3
answers218
viewsQ: Textview when clicking , increase certain value that is in Edit text
I’m making a test application that has 1 Edit and a textview , Edit text will have a value within the initial 0 , when you click the textview , I want it to increase to 10.00 , and if you click…
-
4
votes5
answers3128
viewsQ: How to get Firebase data and insert it into a Textview?
I need to set the client data in a Textview. I tried to set the email, but it didn’t work because the return is null. public class PerfilActivity extends AppCompatActivity { private TextView…
-
0
votes1
answer858
viewsQ: How to print a webview to a bluetooth printer?
I’m making an application that needs to print the contents of a webview , but the printer is bluetooth , could help me?
-
1
votes0
answers36
viewsQ: Save 2 templates to same firebase id
I have 2 models , the courier and the vehicle , I need to save the data of the two models in the same id of database, I did it this way, I used the vehicle. salvarDados(); but did not save: private…
-
0
votes0
answers132
viewsQ: Blurred effect at the bottom of Edit text
How to put the blurred effect at the bottom of Edit text? <EditText android:id="@+id/button" android:layout_width="300dp" android:layout_height="40dp" android:layout_alignParentTop="true"…
-
1
votes1
answer65
viewsQ: Webview changing url according to day
I did a blog , to use only in this app , it’s about liturgy , and every day has a liturgy , so are 365 liturgies , if I put 365 Activity the app will get very heavy , so I thought to put only one…
-
0
votes2
answers68
viewsQ: App that every day of the week shows an Activity
I’m making an app, which when I go into it, it detects the date and it already shows the acitivity for that date, how do I do that? for example today 07/08 then it will show the Activity set to the…
-
0
votes1
answer39
viewsQ: Increase speed during the game
Good evening , I’m with this code and wanted to know how to increase the game speed as time goes by , or using score , thanks https://pastebin.com/mizhi4UW…
-
0
votes2
answers52
viewsQ: Save typed email and use it in a textview?
I want to take the email that the person typed in the login to display it in a textview, how do I do that? This text is already being used to log in
-
0
votes2
answers27
viewsQ: I can’t add items to scroolview
I’m using this scroolview but I need to put new items underneath , and when I roll down it doesn’t come down, could you help me? follows xml code : https://pastebin.com/x6aVUjr…
-
0
votes1
answer743
viewsQ: Stream audio in android studio
I am using the following code to play a sound saved in the cloud Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW);…
-
0
votes2
answers121
viewsQ: Pick up news from a website automatically
I am creating an app and it will have the news part , how do I make it automatically take the posts of this site? as in the following app I found on the internet. It takes the image of the post the…
-
1
votes1
answer202
viewsA: connection from a mysql to android database
Use firebase Altime friend . Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in real time with all connected clients. When you create cross-platform…
-
0
votes0
answers148
viewsQ: Could someone explain to me why this null Pointer Exception?
Logcat java.lang.Nullpointerexception: Attempt to invoke virtual method 'android.text.Editable android.widget.Edittext.gettext()' on a null Object Reference at…
-
0
votes1
answer38
viewsQ: How to place ad inside Alertdialog?
I wanted to put an ad banner inside the AlertDialog , has how to do this?
-
1
votes0
answers32
viewsQ: how to use 360°image?
How do I use a 360 ° image in android studio? as if they were those of facebook Voce dragging the screen with your finger and you see the rest of the image , or so if the phone has giriscopio Voce…
-
1
votes2
answers143
viewsQ: Button that click sends to location?
How to set a button so that when clicked open the maps and send the user to an address?
-
1
votes2
answers1100
viewsA: Intent stopping the App in Android Studio
Friend , try this way , I removed the Finish () mAnaliseButton = (Button) findViewById(R.id.custom_view_analiseDetalhada); mAnaliseButton.setOnClickListener(new View.OnClickListener() { @Override…
-
0
votes1
answer178
viewsQ: How to make that when creating multiple imageview , it go to the other side?
How to make that when creating multiple imageview , it go to the other side , and when ending the space in the column it pass to the next? I tried to use linear but when it ends the column , he…
-
0
votes1
answer169
viewsQ: How to animate a view through XML file?
How do I make animation in an imageview with the XML animation file?
-
0
votes1
answer753
viewsQ: How to change the color of the navigation Drawer text?
How do I change the color of the text , I’ve tried adding textcolor in the XML menu and but it doesn’t work…
-
2
votes1
answer858
viewsQ: Firebase , how to play an audio in the firebase Audio Log by clicking a button?
I’m developing an application , that when clicking a button it plays an audio , but if I put all the audios in the application , will be very heavy , would have as I put in firebase these audios ,…
-
-1
votes1
answer25
viewsQ: How to put Interstitialad in the app?
How do I put that ad that occupies the entire screen in my app, and it only closes when the person clicks on X?
-
0
votes2
answers442
viewsQ: Help with sounds in Libgdx
I’m using this library for games , and wanted to know how I could do to put sounds to play during the game and with preset time?
-
-2
votes1
answer116
viewsQ: How to run html on an Activity?
How do I have my application run an html file saved to a folder within the application?
-
1
votes1
answer346
viewsQ: Button that when clicking and holding it has a sharing function
I have several buttons that when clicking , emits a sound , I want to make the click and hold the button appear the sharing options , for facebook Whatsapp etc how do I do it ? , follows my button…
-
1
votes2
answers471
viewsQ: Error generating Key Store
I was following the steps of a book , to publish an application , but when creating JKS the android studio returns me an error…
-
3
votes1
answer3646
viewsQ: Intent to open link in browser does not work
How do I get my button to send the user to a link? String url = "LINK"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i); I tried this way but it didn’t work…
-
0
votes1
answer297
viewsQ: How to use gif on Android?
I’ve tried using GIF on ImageView , but it doesn’t work , has some way to make Android accept GIF images?
-
1
votes1
answer223
viewsQ: Android Studio does not matter Adrequest or Adview
The part that gets written android both turn red and no matter import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; import android.os.Bundle; import…
-
2
votes1
answer193
viewsQ: What is the function of Appium in android studio?
What is this Appium for and What are its features?
-
1
votes1
answer518
viewsQ: Webview does not show the page
I set up my WebView to display the privacy policy of my application, but when opening it appears that the web page is not available. See: @Override protected void onCreate(Bundle savedInstanceState)…
-
0
votes1
answer50
viewsQ: Transparency effect on components
How to use the transparency effect on my components such as a button or a textview?
-
0
votes1
answer55
viewsQ: Floatingactionbutton ,how to appear on all screens?
How do I make this Floatingactionbutton (Email button) appear on all my screens , without having to put one on each screen?…
-
1
votes2
answers1453
viewsQ: Leave app only in portrait mode
How to make the application work only in portrait mode, and when turning the screen nothing happens ?
-
0
votes1
answer76
viewsQ: Forms of monetization in applications
What ways to monetize apps you use ? And which are the easiest to apply?
-
6
votes1
answer1762
viewsQ: How to put a logo on Toolbar?
I was researching here and I found something very interesting, the company logo on Toolbar. How do I place a company’s logo on Toolbar?
-
0
votes0
answers62
viewsQ: Context, when to use?
My question is simple, what is the context function in an application ? what’s the difference between using one and not using one? thanks in advance !
-
1
votes2
answers304
viewsQ: Create Intent for the layout buttons of Drawer , Drawer button , when clicking looks just a text
How do I make the Drawer layout buttons take me to another screen? I tried this way , but it didn’t work Another thing, when I click on the Drawer menu, it looks like it’s just a text, don’t give…
-
0
votes1
answer54
viewsQ: Typeface does not change the font
My font is not changing, the font file font1.ttf is in the Assets folder Class package br.com.paivasdev.fazendocafe; import android.graphics.Typeface; import…