Questions tagged as 'android'

1
answer

Problems when implementing OnLongClickListener [closed]

The error:    Error: (36, 10) error: reached end of file while parsing I know the error is at the end, but I can not solve it My code: public class MainActivity extends AppCompatActivity { ImageView logo_app; @Override...
asked by 26.01.2017 / 14:09
1
answer

Get only the time of a TimeStamp (JAVA / Android)

I would like to know how I can get only the time of a TimeStamp like the following: From here I suppose that if I only take the time I should be given 20:00 PM (I do not want seconds). I have also read online that people prefer to us...
asked by 12.10.2018 / 22:41
1
answer

android make automatic calculations from one edit text to another

I have been asked to make a program on android which is able to convert from Fahrenheit to celcius degrees and vice versa, up to here all easy, but, I wonder if it is possible to do that by putting 1 for example in Celcius degrees I present myse...
asked by 28.09.2018 / 23:52
0
answers

Admob banner blocks EditText autofocus when operating Android keyboard

Within the% co_of main% of my app I have added an admob banner, which for some strange reason prevents that when selecting any Activity the screen will auto-focus on that EditText . If I remove the banner of my main_activity.xml the...
asked by 09.01.2016 / 17:21
1
answer

How can I make a dialog appear when I click on an item in a menu?

I want to make a dialogue appear when I click on an item in a menu, I have an activity that does the following: ... @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is...
asked by 01.02.2016 / 21:03
2
answers

Compare images

I'm trying to make an application that takes a random image of an array and displays it in a view image. What I want to do now, and I can not, is that depending on the image that appears, I want different things to happen, try a switch but it do...
asked by 30.06.2016 / 18:45
2
answers

Problems loading data in a list

I find a medium rare problem, when loading data from a JSON in a list of items codigo , descripcion , precio and ubicacion in the list there are articles that have promotions and others do not. When I want to fill th...
asked by 13.09.2018 / 18:28
3
answers

Like using buttons from a Fragmen like opening other Fragments

I have a Frangent class to which I am trying to put ImageButton buttons so that when choosing one of them I show another Fragment class This is the code with which I'm testing now, which does not do anything, well, when you click on the...
asked by 29.08.2018 / 18:51
4
answers

Query about nodejs and android, use api or queries to the bd

I want to know if to make an application on android, should I connect and make queries directly to the bd, or use an API? , I have currently made a web in express / nodejs and mongo using jade and angular for the management of templates and part...
asked by 18.10.2016 / 05:49
2
answers

Edit EditText with Dates Selector

How can I make it so that when I mark a date in the Date Selector it is added to the EditText? Code that I use for the Dates Selector: private void setAlarm(Uri passuri){ Calendar cal = Calendar.getInstance(); cal.set(datePicker.ge...
asked by 06.01.2017 / 18:34