Questions tagged as 'android'

0
answers

Add elements to the ViewPager dynamically

ViewPager adapter: public class TabsWeekAdapter extends FragmentStatePagerAdapter { private List<Fragment> fragments = new ArrayList<>(); private List<String> titlesFragments = new ArrayList<>(); public...
asked by 24.01.2017 / 16:06
1
answer

Problem with dex on Android

Hello, has anyone had this problem in your android application?    Error: The number of method references in a .dex file can not exceed   64K. Learn how to solve this issue at I have read in link what it is about but in my development n...
asked by 19.01.2017 / 21:37
1
answer

Why do I get this error when trying to install the android platform in cordova?

ANDROID_HOME=C:\Users\James\AppData\Local\Android\android-sdk JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_60 Subproject Path: CordovaLib Starting a new Gradle Daemon for this build (subsequent builds will be faster). FAILURE: Build failed wit...
asked by 22.11.2016 / 19:00
2
answers

android: error when trying to use java 8

I'm trying to upload the java version (to java 8), in my build.gradle(Module:app) I added the following: apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig {...
asked by 01.12.2016 / 21:24
2
answers

Get properties of a JSON

I have this JSON , and I want to analyze it in Android :    {"usd": {"code": "USD", "alphaCode": "USD", "numericCode": "840", " name ": "US Dollar", " rate ": 0.062953567779141," date ":" Sun, 4 Dec 2016 12:00:01 GMT "}," eur ": {" code "...
asked by 04.12.2016 / 17:24
1
answer

Error generating an APK in Android Studio

Trying to generate a BUILD APK shows me the following error    Build APK: Errors while building APK. You can find the errors   in the 'Messages' view. He tells me that I have errors in the messages I do not understand what he means by...
asked by 16.02.2017 / 01:57
1
answer

Put Youtube videos on RecyclerView-CardView Adapter Android

Good afternoon, I'm trying to put YouTube videos on a CardView using the Youtube API, but it does not show me anything. This is my xml:       <android.support.v7.widget.CardView android:layout_width="match_parent" android:lay...
asked by 15.02.2017 / 20:22
2
answers

Perform Toast from a new Java class on Android

I have a main Activity called LoginActivity , which when clicking on a Button connects to a database. I wanted to make the connection in a new class called MiTurno . My problem is that it gives me an error when doing a Toast (this...
asked by 19.02.2017 / 22:08
1
answer

Scrolling in RecyclerView shows me a TextView that does not correspond to the name of each image

I have a recyclerview that is populated from an array that contains images of cars and their marks through the Glide library. Below each image I placed a textview that is where the brand of each car appears, it turns out that when running the ap...
asked by 01.04.2017 / 02:12
2
answers

I'm not managing to change the fragments

import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransa...
asked by 29.03.2017 / 00:05