Questions tagged as 'android'

1
answer

NullPointer managing Networkstats to get data traffic on android [closed]

private void loadData(TextView sentMovil, TextView sentWifi, TextView receiverMovil, TextView receiverWifi, TrafficModel trafficModel){ if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {...
asked by 09.11.2017 / 21:08
1
answer

Access layout elements loaded with pager view

I have an activity with three layout. activity_welcome.xml activity_detalle_refaccion.xml visor_de_imagenes.xml What I charge with this code in a ViewPager : public class DetalleRefaccion extends UtilidadesActividades { priv...
asked by 09.11.2017 / 21:16
1
answer

How do I request this error Error: (26, 13) Failed to resolve: com.android.support:appcompat-v7:27.+?

Good day, a few days ago I opened my Android studio project and I found this error This appeared out of nowhere since everything was working well. I thought I should just click on "Install Repository and sync project" and everything wou...
asked by 15.12.2017 / 05:05
1
answer

Android: anim.slide_in_right Can not Find

I have the following code but I can not access android.R.anim.slide_in_right package com.agmdeveloptest.testinganimations; import android.animation.Animator; import android.media.Image; import android.support.v7.app.AppCompatActivity;...
asked by 15.12.2017 / 16:21
1
answer

Update RecyclerView

I have an ArrayList which provides the data to the RecyclerView, the idea is that when you click on an item this is deleted, and implement the onClick method and I also have the line of code to delete a data from the arrayList, but not I know ho...
asked by 16.12.2017 / 03:29
1
answer

how to access the flash of an android device with api less than 23

I'm programming on android and I need to access the camera flash on the device. I read that the class Camera android considers it obsolete so try to use the CameraManager class but I have a problem, in the following code public void flashOn()...
asked by 15.12.2017 / 15:32
1
answer

MediaPlayer does not play in CountDownTimer

I have a CountDownTimer as follows: cuentaAtras = new CountDownTimer(mili, 1000) { public void onTick(long millisUntilFinished) { long seconds = millisUntilFinished / 1000; if (seconds <...
asked by 15.08.2017 / 11:12
1
answer

How to get the sum of a listview in android studio?

To date I have been able to add elements to my list, but I do not know the method so that in a textview the total value of my list is reflected, I have the source code in case someone wants to try it public class MainActivity extends AppCompat...
asked by 14.08.2017 / 21:20
2
answers

Variable loss in Android Studio

Good, I am trying to use a query to a database, and the truth is that I have several questions, first of all I am very very new to this, so I can understand part of the code, so be patient. I make a query and recover the data from the server,...
asked by 07.08.2017 / 20:28
1
answer

Google Maps Android API NullPointerException

good afternoon. The problem is that when I run the application in which I have a MapFragment, if I do not write code, it works perfectly but if I write the code to have a reference to a GoogleMap, I get an error "NullPointerException", I do not...
asked by 09.08.2017 / 16:00