Combine Java with Kotlin in Android

I am slightly moving from Java to Kotlin in android app development, but there are some cases where I don't want to code in Kotlin and want those particular cases be written in Java: It is effort-saving that Kotlin removes extra usage of f...
more »

2017-09-18 18:09 (4) Answers

ViewPager for images on SD card not working

I am a newbie in android app development and I am following this tutorial to create an image gallery. https://deepshikhapuri.wordpress.com/2017/03/20/get-all-images-from-gallery-in-android-programmatically/. It's working perfectly but now I want to d...
more »

2017-09-18 08:09 (3) Answers

WebView crash in Android O

This question is not duplicate, I know how to fix NPE in project, this NPE occurred in native method as you can see I get : Caused by: java.lang.NullPointerException at android.content.res.AssetManager.addAssetPathNative(Native Method) I'v fac...
more »

2017-09-18 06:09 (2) Answers

Unable to merge dex

Hello I have android studio Beta and I create new project with compile my old modules but when I try Launch app. app not launch with message Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. com.andr...
more »

2017-09-17 20:09 (6) Answers

FrameLayout not appearing under text view

I'm trying to create a RelativeLayout dynamically but for some reason, the custom view is being drawn on top of the text view. Does anyone know what is going wrong and how to place the text view above the drawing? public class MyRLayout extends andr...
more »

2017-09-17 19:09 (1) Answers

Firebase search using textedit

So i have make firebase database that store recipes(currently only name of recipe and image). Now i want to search firebase using edittext. I want to enter name of recipe and that recipe need to show but i don't know how to do that? This is my showDa...
more »

2017-09-17 18:09 (0) Answers

Wildcards generic in Kotlin for parameter

I have an abstract class using for listen api callback like below. ApiRs is a parent object that every API response object inherit from it abstract class ApiCallback<in T : ApiRs> { open fun onSucceed(apiRsModel: T) {} open fun onFai...
more »

2017-09-17 17:09 (1) Answers

Android: Search Tool in landscape orientation

The Search Tool in StatusBar changes completely when in Landscape orientation. It happens only when Search Bar is expanded. Please see the screenshots. EDIT CODE: @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater...
more »

2017-09-17 12:09 (1) Answers

VideoView stopping on stream

my videoview works perfect on mp4 video but for live streaming iptv file .ts it works for about 10 to 15 seconds and then stops so then i have to reopen activity again and again Here is my code VideoView myVideoView ; @Override protected void onC...
more »

2017-09-16 22:09 (0) Answers

Android keep socket connection open on thread

thank you for your help. I'm trying to stream sensor data from my android device to a server via TCP socket. I'm fairly new to Android and threads are a tough concept for me to grasp. I have two methods, connectToServer() and sendDataToServer(). co...
more »

2017-09-16 21:09 (1) Answers

Add items to bottom of Recycler View

Code of the illustration: mLinearLayoutManager = new LinearLayoutManager(this); mLinearLayoutManager.setReverseLayout(true); mLinearLayoutManager.setStackFromEnd(true); mMessageRecyclerView.setLayoutManager(mLinearLayoutManager); See illustration ...
more »

2017-09-16 14:09 (2) Answers

Detect Firebase Auth Provider for Loged in User

How can i check that my user Loged in to my app Using which Auth Provider ? I wanted to detect that did my user loged in to my app using Facebook auth provider or using Email Provider or by using Google auth provider . I have searched this in Fireba...
more »

2017-09-16 13:09 (2) Answers

SQLite database not created

I am trying to create a very simple app with three fields and the data should be saved on the SQLite database. When I run the app I get the error message "Error running app: Instant Run requires "Tools..Android..Enable ADB integration" to be enabl...
more »

2017-09-16 13:09 (1) Answers

Search item from recycler view list

How do I search an item from the list? I tried going through the same type of question but I am not able to implement the search option, don't know that I am don't know what I am doing wrong. Where should I add TextWatcher and how to pass the adapte...
more »

2017-09-16 12:09 (1) Answers

Push failed: Failed with error:

I'm using Android Studio 2.3.3 with Microsoft Team services plugin 1.123.0. After the last update, I cannot push commits to my remote server (Microsoft Team Services), i just got this error: Push failed: Failed with error: Nothing else. What c...
more »

2017-09-15 18:09 (1) Answers

Android Retrofit 2 Custom JSON request

I am developing an application in i am using retrofit 2. My request JSON is as below { "FirstName":"ABC", "LastName":"XYZ", "Email":"abc@xyz.com", "Password":123456", "PhoneNo":"1234567890", "Country":"1", "State":"1", ...
more »

2017-09-15 13:09 (3) Answers

Reduce database requests in local db

I have a list view in android where i have to check every time do display the List item or not to reduce the requests what i did is saved the id in a single row like 1,2,10, everything was working fine to search i just had to use String[] fav...
more »

2017-09-15 10:09 (1) Answers

UWP xaml ripple Effect (android effect) animation

I try to code in UWP app an Android Effect (ripple). So I create an EllipseGeometry Inside a grid (in my usercontrol) but when RadiusX and RadiusY of my ellipseGeometry play their animation, my EllipseGeometry growth out of my grid... I have tried to...
more »

2017-09-15 09:09 (1) Answers

Proguard error after adding Glide v4

I am not able to generate the apk with proguard enabled after adding glide v4 library. I have added the below lines in proguard-rules -keep public class * implements com.bumptech.glide.module.GlideModule -keep public class * extends com.bumptech.gli...
more »

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

Trying to track down gref leak

I'm having problems with with an application reliably crashing after approximately 10 minutes of operation and I'm trying to track down the source of the crash. The logcat seems to indicate that the crash is due to leaking of grefs based on the foll...
more »

2017-09-15 07:09 (1) Answers

"overzoom" tileoverlay google maps

I have an issue where I'm currently trying to build a custom solution for. I'm struggling, maybe I'll be able to get it to work, but maybe there is already another solution for this. My customer has a backend for getting tile overlays, but it only g...
more »

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