As ramaral posted seven code:
In the Layout of your Activity you must declare an ImageView
If you want it to be visible only after pressing a button you should include the android attribute: visibility="invisible"
<ImageView
a...
I want the application to only download images that are adaptable to the user's screen, for example: if the user's device supports xxhdpi images, it is not necessary to store the xxxhdpi, mdpi, hdpi, and There you go ...
Is it possible to create elements at runtime on Android?
For example, I want to build an app where the user can create a questionnaire or a checklist and save it to the database.
Depending on the issues or items to be scanned, which were c...
I have both strings:
String num_tel1 = "03184872882" and String num_tel2 = "84872882" . They are 11 and 8 characters respectively. How do I count this number of characters and, if you have a String with 11 characters (num_tel1),...
Well, can someone tell me how to set a limit for the number of clicks on a button, and when I reach that limit, will I prevent the button from being clicked again?
Here it is:
public void N1(View v) {
EditText editTextView = (EditText)...
I'm learning Java and I know basically what NullPointerException means. But I would like to understand why this occurs.
This is the Activity code:
package com.example.android.miwok;
import android.media.MediaPlayer;
import android.support....
I'm developing a mobile application in AS that has a list of cardviews. On these cards I have a switch button that when clicking ON will open an alert dialog to confirm the change of status. But I'm having trouble passing the information, I beli...
I did the distribution of my App, compiling it in the release, and then the Archive option. Well, it generated the key and several files. Now how do I send by email to my client and also put on my website. What will it get to install on your sma...
My Book.class that extends realmobject
public class Book extends RealmObject {
private String title;
private String author;
public String getTitle() {
return title;
}
public void setTitle(String titl...