Questions tagged as 'android-studio'

1
answer

Error in android API 22 and 21 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

Good morning! I have a problem with android studio, when running my app on devices with API 21 and 22, I show my Log: 03-16 10:52:33.930 3387-3387/com.lms_la.njoyapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.lms_la.njoyapp, PID: 338...
asked by 16.03.2017 / 17:59
0
answers

How to change the image of a View?

Cordial greeting, I have a Navigation Drawer Activity and I have managed to change my font type of a Textview that is in a nav_header_options.xlm, from this it deletes the image. How to change the default image for another, this to take it in...
asked by 05.03.2017 / 06:30
1
answer

How do I update an editText of a fragment from another fragment in an activity Tabbed?

Good morning, I have a tabbed activity with three fragment, one of them is called frPrincipal and another one is called frConfiguracion. In frConfiguracion I have an editText where I enter an ip and a button with which I save using SharedPrefere...
asked by 08.02.2017 / 14:13
1
answer

Place a link in an android cardview connected to the database in Firebase

public void setLink(String link) {TextView post_link = (TextView)mView.findViewById(R.id.linkText); post_link.setText(link);} I am creating a recycleview list and within them a cardview connected to my firebase database. but...
asked by 03.01.2017 / 20:01
1
answer

Do I have to create a Values / dimens.xml for each types of screen in android?

I have all these measures: 7 "screens - mdpi 3.2 "screens - mdpi. Therefore I try to create directories for each type of screen, but not all respond to their respective description, for example, in the case of tablets that are 1024px an...
asked by 29.01.2017 / 17:42
1
answer

Error of SDK 25 on android

I'm trying to start my project in android studio, previously it worked fine, but I had to clean my computer, I installed android again and when I started it, I got the following error:    Error: Failed to find target with hash string 'android...
asked by 30.07.2017 / 20:25
1
answer

How can I put this out of OnCreate on Android

I am using global variables in the following class: public class VariablesOpcion_HassMovil extends Application { private String cuenta=null; public String getCuenta(){ return this.cuenta; } public void setCuenta(String Cuenta){ this...
asked by 28.01.2017 / 22:48
1
answer

Error classeswithdexfordebug

How can I solve it? I already tried the multidexenabled true and it throws me another error     
asked by 09.03.2017 / 23:17
1
answer

Make the image of a FrameLayout fill the entire screen.

Cordial greeting, I am designing a Navigation Drawer application, the ContentMain I have it with a background image, my ideal is that by clicking on any option the same image appears much more attenuated, for this I put in the fragment the sa...
asked by 09.03.2017 / 03:27
1
answer

Bring files in Android Studio 2.1

A huge favor ... I started my adventure in Android, but I have doubts, when I take my project in Android Studio (as simple as this is) I see that a folder that weighs between 40 to 50 MB is created ... The question is this: To execute my pro...
asked by 04.12.2016 / 12:21