Questions tagged as 'android'

1
answer

Error changing activity

Good evening, I have an app with two Activity that loads external data, and I'm having trouble changing the Activity before it loads all the data. When I call the Activity Category, it loads external data, but if it calls the Activity before the...
asked by 22.06.2018 / 22:52
1
answer

Multiple TextView

I would like to know if I have a TextView in a layout by java. I have an xml that has a TextView and in the Activity class I use the setContentView () to bind the two, but I wanted to put more TextView in the Layout by Java and not by xml     
asked by 25.02.2018 / 03:05
1
answer

Executing an action after each character typed in an EditText

It's the following, I'm not able to find out if the user typed something in EditorText . What I want is that, every character, number or letter that the user types, I can do an action right after. I researched a lot, I did several tests...
asked by 24.02.2018 / 01:02
2
answers

How to capture the date value with DatePicker

I have a DatePicker in my project and would like to know how to get the value of the chosen date after you select it. I know that in calenderView it looks like this: calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListene...
asked by 24.02.2018 / 03:40
1
answer

findViewById (); with a variable within the method

Type like this: public void main(){ String a = "bt1"; Button bt1 = (Button) findViewById(R.id.a); } I know this does not work, but it would be more or less like this, using a String variable.     
asked by 12.02.2018 / 02:51
2
answers

How the item.setOnClickListener works (view - method ())

How does this item.setOnClickListener(view -> method()); work? I had never seen this type of call, I saw it today and I was curious about this view , where does it come from? How does this type of call work? @Override publi...
asked by 20.04.2018 / 07:01
2
answers

Update android project

I have in my hand a project of 3 years ago and I need to put it to run, so when I opened the project in android studio already gave the default gradle error, I changed the line classpath 'com.android.tools.build:gradle:1.0.0-rc2' -> classpa...
asked by 28.03.2018 / 20:48
1
answer

How to create browser tabs in Android Studio

Hello, I'm creating a browser for Android using Android Studio I'm trying to create a resource that has in all browsers that are multiple tabs like Google Chrome, but I'm out of luck and all my attempts are failing, does anyone know how to create...
asked by 10.04.2018 / 02:59
1
answer

Null object in array - Android Base adapter

Hello I was doing a gallery, I created the Adapter, it worked normally, then proceed to the step of listing files in a directory and then put it in the list: ArrayList<GalleryItem>items = new ArrayList<>(); File pa...
asked by 18.01.2018 / 15:23
1
answer

How do I send push notifications to a specific user (from the application) through Firebase?

I'm developing applications using the Ionic framework. One of the biggest questions I have is how do I work as remote notifications (other than local notifications, easily generated by Ionic). Using Firebase, I was able to generate remote not...
asked by 05.03.2018 / 20:41