Questions tagged as 'android'

1
answer

How to leave imageView behind the buttons?

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...
asked by 27.01.2015 / 00:06
3
answers

ANDROID: How to identify the density of the user's screen?

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 ...     
asked by 26.08.2015 / 03:52
2
answers

Create run-time elements on Android

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...
asked by 30.05.2017 / 20:40
2
answers

Count the number of characters and insert a new one in a certain position, in a string?

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),...
asked by 28.06.2017 / 01:34
2
answers

(Java, Android) Button - Set Click's limit

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)...
asked by 30.07.2017 / 14:08
1
answer

Record audio like whatsapp

Does anyone know how to record an audio while the button is pressed and stop when you release the button like Whatsapp?     
asked by 01.07.2017 / 05:55
1
answer

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.MediaPlayer.start ()' on a null object reference

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....
asked by 22.01.2018 / 07:35
2
answers

How to pass the data from one switch button to another acivity?

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...
asked by 08.01.2018 / 17:13
2
answers

Distributing my app via email

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...
asked by 13.11.2017 / 12:15
1
answer

Verify that all objects in the class that extends RealmObject are empty

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...
asked by 15.09.2016 / 16:04