Questions tagged as 'android'

1
answer

Android + Firebase Push Notification with locked phone

I have my android application that receives alerts via FCM Push Notification using the (Java) method: @Override public void onMessageReceived(RemoteMessage remoteMessage) My conflict is that I am not making the screen (Activity) that opens...
asked by 28.11.2018 / 14:33
0
answers

Android Studio error in Login Google, use Firebase

Hi, I'm new to Android Studio, I'm trying to log in with Google, to get information and work with it. I downloaded the Firebase assistant tools to configure the application. When I run the application I get a message saying "The application h...
asked by 28.11.2018 / 15:55
1
answer

Align bitmap image to center

I have the following code to generate a bitmap on a ticket for a thermal printer: String ticketPreSelectedImage = SharedPref.getInstance(this).getTicketPreSelectedImagePath(); if (ticketPreSelectedImage != null) { Bitmap image = B...
asked by 30.11.2018 / 08:20
0
answers

Error getReference (). child () with firebase

I'm doing a chat example using Firebase and I have the following error. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.yordy.richard.firebaseejemplo, PID: 23054 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yor...
asked by 27.11.2018 / 14:11
1
answer

How to filter by city in Google Place Autocomplete?

I am using it in a EditText Google Place Autocomplete , to search the streets of a city, for the moment I filter it by Country in the following way: AutocompleteFilter autocompleteFilter = new AutocompleteFilter.Builder() **.setTypeFilt...
asked by 26.11.2018 / 15:15
0
answers

Synchronize contacts with remote database

I try to synchronize the contacts of the mobile device with a database in this case Postgresql, the way I do it does not seem to be the most convenient. public void sincronizarcontactos(){ // Se tiene permiso final String[] projec...
asked by 26.11.2018 / 15:29
0
answers

How to get an object through an ArrayList in Firebase

I'm doing an app, and I've gotten it with the Real Time Database . An object contains a field that is of type Arraylist . I have to make a query for orderByChild . This query consists of passing the elements of another list, an...
asked by 26.11.2018 / 19:54
0
answers

Can a PreferenceFragment class be called before executing a method?

In my application before executing the Intent that is inside onOptionsItemSelected I need to read the ListPreference values, for that I am using MyPreferenceFragment, but when I try to execute this inside onOptionsItemSelected I get an error, so...
asked by 28.11.2018 / 00:44
0
answers

Reduce Cursor in Android Studio

I have a question about cursors, in my application I created a cursor that collects data from an internal database of the app, in this case it collects the thermal printers connected by network, I have 2 printing zones and each of them I have as...
asked by 28.11.2018 / 08:41
0
answers

Help with problem finished with non-zero exit value 1 (Android Studio)

I have a problem with an APP, I get this error. Process 'command 'C:\Users\SANCHEZ\AppData\Local\Android\Sdk\build-tools.0.3\aidl.exe'' finished with non-zero exit value 1 Here I attach my Build Gradle. (already try to reinstall everything...
asked by 26.11.2018 / 06:13