Questions tagged as 'android'

2
answers

When Adding ImageButton ListView Selector to Function

The list view is a list of items available to the user to select, and when the user clicks on a ListView item this item changes color and is added to an arraylist (this is the function of clicking a ListView item ), the function of the button th...
asked by 14.09.2017 / 04:13
1
answer

Android and Stream Java 8

Gentlemen I made a simple code to filter a list by passing the Id and the goal would be to return an object. To make use of the stream I configured the libim annimon: stream and backlamb, I would like a critique of the code below, since it is my...
asked by 05.08.2017 / 00:20
1
answer

Call a class method of the fragment itself

Good afternoon, I have a fragment that has the following XML <Button android:id="@+id/salvar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/gradiente_azul_semconor"...
asked by 20.06.2017 / 19:09
2
answers

How to receive instant payment by credit card? [closed]

Well, these days I had to refuse a site and application proposal, since they needed me to have a payment method for the application / site where it should be approved instantly so that the request was already delivered. I was working with the pa...
asked by 20.06.2017 / 07:23
2
answers

Error when using a final static String to construct a SQL query

Good evening person, I've been searching around and I know what to do to get CRUD organized ... I know that the programmer creates a class with the strings, leaving for example public static final String NAME_TABLE = "nome"; and so on, th...
asked by 20.06.2017 / 06:39
1
answer

java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById (int)' on a null object reference

I have a fragment that through one button it will call the other fragment. But the following error is appearing. 06-20 19:12:12.075 17971-17971/com.example.gerdaumanagement.gerdaumanagement E/AndroidRuntime: FATAL EXCEPTION: main...
asked by 20.06.2017 / 21:19
1
answer

Build Variant Android studio

Why does my build variants (first image) not have the options I want for the build? In this case I intended the "mockdebug" as shown in the second image. WhatdoIneedtodotogetalltheseoptionsinbuildvariants?build.gradleapplyplugin:'com.an...
asked by 21.08.2017 / 16:18
1
answer

Select Checkbox and enable fields on Android

I'm using checkbox and an edittext. When the application starts, edittext is disabled. When the user checks the box for the checkbox, the edittext field enables. I'm having trouble enabling. I already put it on OnCreate plus it does not recog...
asked by 25.07.2017 / 16:29
1
answer

How to put a method value inside a ListView

Good evening, I'm creating an app that generates random numbers for me, but I had an idea that makes it easier for the user .... When he wants to generate more than one block of random numbers, he chooses the amount he wants and sends generate,...
asked by 25.07.2017 / 03:09
1
answer

Error when using Retrofit 2

   t = {movieName} & apikey = 11111 "must not have replace block.   dynamic query parameters use @Query. This error happens when trying to search for a movie by name, I have the following codes, but the error remains: Retrofit retrofit = n...
asked by 25.07.2017 / 15:35