Questions tagged as 'android'

1
answer

Trigger AsyncTask class exception

The class below is responsible for getting data from a WCF Rest service: public class MyAsyncTaskGeneric<T> extends AsyncTask<String, Void, T>{ private final Class<T> typeGeneric; public MyAsyncTaskGeneric(...
asked by 10.04.2015 / 21:57
1
answer

How to check if two drawables are the same?

Good evening!    I'm having difficulty retrieving the current image from my android imageView. It is an image to favor for the user (give like), and I want when the user clicks on that image, I check if the current image is = a heart icon with n...
asked by 21.05.2018 / 04:10
1
answer

com.google.firebase.database.DatabaseException

I looked for this error and found nowhere, just some resemblances but not this:    com.google.firebase.database.DatabaseException: Maps with non-string keys are not supported Controller (where error is): final DatabaseReference banco =...
asked by 16.11.2017 / 20:28
2
answers

Firebase Cloud Messaging does not send sound in notification

I have two applications, when such an action occurs in one of the two applications, it sends a notification via FCM, to the other application, when the notification arrives, it only makes the notification noise if the application is open, when i...
asked by 28.02.2018 / 21:19
1
answer

Pass as parameter the "visibility"

How do I pass a visibility parameter and then set it? Ex: private void _setVisibility(View.VISIBLE a){ _viewLineStatus.setVisibility(a); }     
asked by 01.09.2014 / 20:51
2
answers

Changing Screens in Navigation Drawer

The Navigation Drawer had some changes, where it was used the onNavigationItemSelected(int position, long itemId) method and now comes with the method onNavigationItemSelected(MenuItem item) . I tried to implement the old temp...
asked by 01.12.2015 / 03:43
2
answers

How do I index my app on Google searches?

How can I make my app (Android) start appearing in Google searches? Edit: Look at these prints: Or     
asked by 10.12.2015 / 22:50
2
answers

How to put a PopUp that asks for authorization to use GPS?

People, I'm programming in Java (with Android Studio) and this code to get the GPS position, which works great! Now I'm trying to learn how to ask the user permission to use GPS, but I found "more info" on google ... And nothing else seems...
asked by 25.01.2017 / 00:52
1
answer

Themes, styles and support Library android

Hello since I started working with Android development, I've always had a hard time understanding how Android's Themes, Styles, and libs part of Android support works, I always have for example, to stylize a EditText or a RatingBar...
asked by 07.01.2016 / 01:20
1
answer

Android Protection Reverse Engineering Client-Server

I see that it is very common for applications Android (games for example) to be modified through engenharia reversa . Even using obfuscação and other anti-reverse engineering techniques, it's hard to keep an Android applic...
asked by 13.12.2015 / 14:38