Is it possible to override dependency of library

I'm tryingg to use some library, but I'm getting following error. All com.google.android.gms libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 8.4.0, 10.2.1. Examples include com.go...
more »

2017-08-15 22:08 (2) Answers

Difference between callback and interface

What is the difference between these two piece of code btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } }); is that inner interface of View class, if so we know that interf...
more »

2017-08-15 15:08 (5) Answers

Updating json url for Flickr api

I am using Flickr api and I am trying to change tag on the original url and to do my search based on that however, for some reason i cannot access the new url, can someone give some guidance. The error that i am getting is NetworkOnMainThreadExceptio...
more »

2017-08-15 14:08 (0) Answers

Android: Fb adding privacy not working

While login into FB at that time privacy webview from fb is poped up. After trying to update privacy while posting but not working. Is there any API I need to call. Bundle params = new Bundle(); JSONObject privacyObj = new JSONObject(); privacyObj...
more »

2017-08-15 12:08 (0) Answers

Proper way configuration keys in gradle properties

Im trying to upload my apk to the playstore direct with android studio. Using ribot boilerplate I can see that they are putting the keys in gradle.properties like this: ribotAppKeystoreReleaseLocation = keystore/release.keystore ribotAppReleaseKeyA...
more »

2017-08-14 20:08 (1) Answers

sendEmail method in dynamically created button?

I dynamically created buttons and I want to send an email by clicking on these buttons, but something goes wrong. Nothing happens. :( Please help me, I am beginner. AdapterListingOrders: public class AdapterListingOrders extends AppCompatActivity ...
more »

2017-08-14 19:08 (1) Answers

Skip test tasks for specific build types

I have 4 different build types: release dev mock test When I want to make clean build task for my project I see that Gradle is making a clean build with unit tests. It is ok but unit tests are running with every build type, it takes 4 times lon...
more »

2017-08-14 19:08 (1) Answers

Add dual color notification to app?

How do I add a dual color notification icon to my app like this one: It seems like all apps have this feature except mine. Why? My icon always stays white. As you can see, the notification is white and then it's in color when the user pulls dow...
more »

2017-08-14 18:08 (0) Answers

Retrofit object returned as null

I've built a RetroFitService to return some objects. In MainActivity I call the service with a simple button click. I seem to be getting some kind of object, but I don't feel it's actually being returned from the REST API that I specified. It shows u...
more »

2017-08-14 18:08 (2) Answers

Android - Arraylist size always zero

i try to make a application. i use facebook sdk and i can login with facebook. App is getting movies with user likes. i can do this with graph api and i can add all name of movie into arraylist. Everything is OK so far. but when i try to access in on...
more »

2017-08-14 17:08 (1) Answers

OffsetDateTime to Date Android

I am getting an OffsetDateTime from our backend in a String format like this: "2017-07-15T10:52:59Z" I am trying to parse this String to a Android Date: private SimpleDateFormat mSimpleDateFormat; private static final String DATE_FORMAT_PATTERN =...
more »

2017-08-14 15:08 (1) Answers

AutoLink won't recognize an email as an email

I have a piece of code that should recognize an email, but doesn't. I think it is because the 'beginning' part of the email address (the part before the @ sign) only has two characters. Does anyone know how to fix this? I tried using android:autoLink...
more »

2017-08-14 15:08 (1) Answers

Failed resolving dependencies due to OneSignal

I found the following question: Failed to resolve: com.android.support:customtabs:[26.0.0,26.1.0] People marked it as duplicate (which is wrong ! see next sentence) or wrote something about Maven or cleaning project etc. I have exactly the same pro...
more »

2017-08-14 13:08 (2) Answers

dump memory in android

sorry, anyone here do you know about dump memory on android system? I knew that we could get information for these files and used them. But i don't know exactly what is the dump memory. how was it created? when is it? how can we get those files and a...
more »

2017-08-14 09:08 (1) Answers

alternate to maintaining a session for an API

I am making a project in android where I have to login in users through google sign in button . Now after signing-in the user can travel between different activities and features . The Web Development way would be to give the user a cookie but in and...
more »

2017-08-13 21:08 (2) Answers

Facebook loggin button on android

I try to add a facebook loggin button on my project, but when I test the error log show me this: FATAL EXCEPTION: main Log in attempt failed: FacebookActivity could not be started. Please make sure you added FacebookActivity to the AndroidManifest. ...
more »

2017-08-13 19:08 (1) Answers