Questions tagged as 'android-studio'

2
answers

Attempt to invoke virtual method 'void android.widget.TextView.setText (java.lang.CharSequence)' on a null object reference

The error I got when doing Debug from my app was: Attempt to invoke virtual method 'void android.widget.TextView.setText (java.lang.CharSequence)' on a null object reference I have a custom adapter called MyAdapter where I t...
asked by 17.12.2018 / 05:07
0
answers

How to get the total of a table and a list?

I'm making an expense application and I want my shopping list to have a total of purchases and that every time I add a new purchase the total is modified. Here my layout: <ImageView android:layout_width="match_parent" android:la...
asked by 09.12.2018 / 02:14
0
answers

Webview does not show content on some devices

Good morning, I would like to ask for a bit of help regarding an issue that I have in an app that implements a WebView and in some devices perfectly loads the web app and in others it does not, this is presented mostly try to show some im...
asked by 30.11.2018 / 17:59
0
answers

Error with android.graphics.Paint

I'm starting with Android and its IDE. I'm following a slightly outdated manual but that most of the things it describes are valid. Then with the description of this error that AndroidStudio gives me, I can not find out the reason for the failur...
asked by 23.12.2018 / 17:50
2
answers

Error in Snack bar: Attempt to invoke virtual method

I'm trying to show a Snack bar in a fragment but it gives me the following error:    Attempt to invoke virtual method 'android.view.View   android.app.Activity.findViewById (int) 'on a null object reference This error happens when I want...
asked by 29.11.2018 / 00:28
1
answer

CardView does not occupy the full screen width despite having match parent property

this time I try to make a CardView can occupy the full width of the screen through its property layout_width="match_parent", but when running the application these CardView are shown as if they were configured as "wrap_content" . The LAYOUT...
asked by 29.11.2018 / 04:55
1
answer

Can not convert object of type java.lang.String to type com.funds.abisu.chatfirebase.Messages

Create the database in firebase and I was able to do a single insertion, but when I did it I got the following firebase exception Can't convert object of type java.lang.String to type com.fundamentos.abisu.chatfirebase.Mensaje My mistake is...
asked by 29.11.2018 / 19:50
2
answers

Problem when initializing an array in AndroidStudio

I'm making an application that every time you press a button, change the text that is displayed by a random string. The strings are stored in an arraylist. The code I had so far was the following: private TextView texto; @Override protected vo...
asked by 23.11.2018 / 16:16
0
answers

Slash Screen Android Studio disproportionate

I am trying to create a splash screen of a mobile application with Android Studio, the case is that I try to do it with a 2732x2732 image since with ionic cordova I simply do the resources and it generates all the versions, however, I try to do...
asked by 23.11.2018 / 13:15
1
answer

Error in the file R.java "; expected "

I'm having a problem in the R.java file. The compiler tells me    error: ';' expected on the following line: public static final int Go!=0x7f080003; I think the file R.java has been generated badly I tried removing the exclamation ma...
asked by 23.11.2018 / 18:44