Questions tagged as 'android'

2
answers

Check in which Activity I am

I have this Button in my Adapter of RecyclerView and when I click on it you should update my RecyclerView with the method ActualizarRecyclerView holder.delete_nota.setOnClickListener(new View.OnClickListe...
asked by 25.06.2017 / 14:35
1
answer

Error getting SharedPreferences

I'm trying to create a class to get the predefined data, but when I call the method Load() the app stops. Could you help me? Thanks package com.example.nano.prueba.login.loginprueba; import android.content.Context; import android.conte...
asked by 03.04.2016 / 01:40
1
answer

For each RecyclerView an Adapter?

A question, for example to create a recyclerView I have to create its adapter and put the design inside, now well if I want another design I necessarily have to create another adapter ?? in itself it would be every recyclerView has its own adapt...
asked by 31.03.2016 / 12:54
3
answers

EditText arrangement on Android

I would like to know if I am doing it correctly. I have many EditText and it is difficult to be casting by casting assigning. Before this I do the following: EditText[] Informacion; Informacion = new EditText[]{ (EditText)fi...
asked by 18.03.2017 / 08:15
2
answers

Refresh query of a JSON every X seconds

The following Activity gets the data of a file in PHP that generates a JSON with the data obtained from MYSQL , I am new in this JAVA ANDROID , and I have little experience in PHP , I barely defend myself,...
asked by 18.01.2016 / 02:26
2
answers

Error passing a variable from an Activity to a fragment

When I pass a variable from the activity of the navigation drawer to a fragment, it gives me an error of null when retrieving that variable. I'm going to put only the necessary code. This activity receives variables from the main and puts them i...
asked by 10.05.2018 / 18:57
4
answers

how to know if a device has a camera with flash?

Hi, I am programming in android studio and I need to know how to detect if an android device has a camera with flash and then launch a Toast informing if it has a camera or not with flash.     
asked by 14.12.2017 / 16:46
1
answer

Change Image Background of the Android System

What I am trying to do is to have an application where there is a button, when I press the button I want to change the Background image of the Android system . I want to change this image: I have researched how I can do this, but th...
asked by 25.12.2017 / 16:34
2
answers

I've updated Android Studio and now I see errors that were not there before

Well, that worked perfectly ... I updated the Android Studio and now it does not work. I see errors in build, Run tasks .. and I have no idea what it is or how to solve it This is an image of what I see I also see that in one of m...
asked by 11.11.2018 / 18:05
3
answers

Open a new Activity by clicking on a Cardview

I have a Recyclerview and a Cardview the problem is that I want to open a new activity by selecting from the 6 different items that the list shows, I have obtained the position of the items when I press but when I try to implement...
asked by 21.12.2016 / 20:03