Questions tagged as 'android'

1
answer

Listen to changes in Firebase Database with Android

I have some data in Firebase Database: - order -catched : false -completed : false - user -name : ejemplo I would like that when you move to an Activity, it will remain listening in a persistent manner if a change occurs in "c...
asked by 05.05.2017 / 02:59
1
answer

How can I merge a background image with a color in an ANDROID layout?

I have an xml file where from another xml I call him and he paints two squares where I fill in a text. This box has a background color, but my idea is to also add a background image and merge with that color. XML: <?xml version="1.0" enc...
asked by 04.05.2017 / 11:00
1
answer

Reset the status of an Activity, avoid reopening the information when it reopens

The question is, I have a Activity with restaurant list by clicking on a restaurant in the RecyclerView, it takes me to an activity of description and Menu, by clicking on the Activity Shopping Cart, the invoice is shown in a RecyclerView...
asked by 26.04.2017 / 00:12
1
answer

Remove Token from FCM

Hi, I have a problem with push notifications using FIREBASE CLOUD MESSAGING, specifically the unsubscribe Token after pressing a button and thus stop receiving notifications. So my question is: How can I unsubscribe a service token or device? I'...
asked by 16.04.2017 / 03:22
1
answer

Create database using splash screen ANDROID

I have a splash screen in which I try to verify the existence of a database and create it in the case of not existing but I do not know how to call the methods of the class AppSQLiteHelper.java as I could do it? In addition, my intention is that...
asked by 22.04.2017 / 21:38
1
answer

Content of a slideable layout

I have a layout with a lot of buttons. My idea is that although they do not all show at the same time, if I can move from top to bottom the content of that layout to be able to navigate in it. But I do not know how I can do it ... Any idea? atta...
asked by 21.04.2017 / 17:59
2
answers

Store data in list and make accounts with them without database

I have a Recyclerview that shows a list of foods, each row of the recyclerview has 2 buttons, one for quantity of the food and the other to decrease the quantity of the food, graphically there is something like this: Coca-Cola Price: 10.00 -...
asked by 21.04.2017 / 13:48
1
answer

Values in Recyclerview are changed by scrolling down and returning

public class RecyclerViewAdapter_Accueil extends RecyclerView.Adapter<RecyclerViewAdapter_Accueil.RestaurantViewHolder> { private Double latitude; private Double longitude; private List<Restaurant> restaurantList;...
asked by 27.04.2017 / 13:21
1
answer

Kivy Launcher: I can not create the / storage / emulated / 0 / kivy directory

To launch an application in Kivy Launcher, it puts me: No projects are available to launch. Please place a project in / storage / emulated / 0 / kivy and restart this application. Press the back button to exit Then I search for that dire...
asked by 14.04.2017 / 09:45
1
answer

Start Splash but after the app is closed

Splash public class Splash extends AppCompatActivity { // Set the duration of the splash screen private static final long SPLASH_SCREEN_DELAY = 3000; @Override protected void onCreate(Bundle savedInstanceState) {...
asked by 09.04.2017 / 19:33