Questions tagged as 'android'

2
answers

How to simplify the clicks on buttons in Java for Android?

I'm starting to have many buttons in the same Activity and however simple they are, the code is getting big, and it gets even bigger. I wonder if you have a way to simplify by reducing the number of lines: For example to open an activity t...
asked by 25.02.2018 / 18:42
1
answer

Using executor on android

I'm trying to use an executor to write data to the bank using threads. When instantiating an Executor Service class object and retrieving an instance of Executors.newSingleThreadExecutor (); it returns the error that is not finding the instance...
asked by 24.02.2018 / 18:33
1
answer

ionic 3 - AdMob is experiencing an error while placing it in APP

When I put AdMob in my ionic application it looks like the picture below: What would be the mistake to not be showing ads? Code I use: displayBanner() { if (this.platform.is('cordova')) { const bannerConfig: AdMobFreeBannerConfig = {...
asked by 24.02.2018 / 14:18
1
answer

Firebase - Because it does not execute the code of addOnCompleteListener

How does the addOnCompleteListener work, is it not a listener that will be called when the signInWithEmailAndPassowrd operation is executed? It enters a correct login and password and I click on the button it arrives until the task.addOnComplete...
asked by 24.02.2018 / 15:36
1
answer

When I load my App class is not recognized

It says that BadeView does not exist in the current context in this line of xaml.g.cs [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")] private global::Xamarin.Forms.BadgeView bdgDesvioFat...
asked by 23.02.2018 / 21:23
1
answer

Create spinner with dynamic values

I'm trying to create a spinner with dynamic values. It is giving an error when I try to set the adapter in spinner , below is the error and my code. java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget...
asked by 21.03.2018 / 18:32
1
answer

Android pass Authentication Token on header using Volley

I'm having trouble sending authentication token to the header using volley This is my code @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); Log.i("onActivit...
asked by 19.03.2018 / 22:59
1
answer

Problem with ToString in Android Studio

I have variables of type String and variables of type Int. When I do getText.ToString() in a variable of type int Android Studio presents error because the type of variable is not a String. Would anyone know which option I can use for...
asked by 24.06.2018 / 17:01
1
answer

Online image in Adapter

I have an adapter in my App, and I would like to take photos of my server to put on it instead of a saved photo in the root, I already tried several forms, already tried using the Picasso API but the most I could get was 1 photo for free. Ada...
asked by 24.06.2018 / 22:57
1
answer

Information bubble in EditText - Android

On websites there are several informational fields that when clicking or putting a wrong information means that a balloon comes up giving a proper information, I would like to know if it is possible to do this in java for android, if so, which l...
asked by 17.03.2018 / 05:34