Calculate the Screen Height on a Mobile Device

This drives me crazy. Lots of times I have carousels and such where I need to reset the screen height with JavaScript responsively. The issue is that with mobile devices, the screen height includes the little URL window at the top, so the height o...
more »

2017-01-16 23:01 (2) Answers

Listview scrolling is not working

Screenshot Of My Layout I added TranscriptMode in both xml and java. But its not working... Xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sc...
more »

2017-01-16 17:01 (2) Answers

Download manager does not work on LG devices

I try to perform downloading the file using DownloadManager. Everything works fine except LG devices. Here is my code: private void downloadFile(FileInfo fileInfo) { private DownloadManager manager = (DownloadManager) MyApp.getSingleton(). ...
more »

2017-01-16 15:01 (0) Answers

Disable EditText context menu

I am making a vertical EditText for traditional Mongolian. I have successfully implemented it by embedding a slightly modified EditText inside of a rotated ViewGroup. I need to create a completely custom context menu because the system one does not s...
more »

2017-01-16 10:01 (4) Answers

Android, displaying JSON data in application

I have this JSON data and I'm trying to display "measurements" part, but it doesn't work. (I'm getting this: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $). I'm beginner at Android developing...
more »

2017-01-15 16:01 (1) Answers

ImageView not displaying (Android)

I have this code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" ...
more »

2017-01-15 16:01 (1) Answers

Fraction types not allowed

I'm creating an Android Application with Android Studio 2.2.3 and I can't understand why I'm getting this error message: Error:(336, 49) Fraction types not allowed (at 'abc_dialog_fixed_height_major' with value '80%'). It's the generated file: ...
more »

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

Java: Scale Mapsforge Map when using Online tiles

I use MapsForge 0.6 to display maps. When using online tiles, the map is really tiny on my Hi-resolution device and I can't read anything. I would like to scale the map and I have tried the following: mapView.getModel().displayModel.setDefaultUs...
more »

2017-01-14 21:01 (4) Answers

Add Filters to Video like Instagram

I am coding for an app and need to apply filters to videos like Instagram. I tried with FFMPEG library, but it doesn't work well and does not provide all filters. What I tried so far is, String commandStr1 = "ffmpeg -y -i /sdcard/vids.mp4 -strict ...
more »

2017-01-13 05:01 (0) Answers

Navigation Drawer Over Status Bar In Nougat?

I try to build navigation drawer in my application ,navigation drawer works fine in previous version of nougat but in nougat navigation drawer not comes over the status bar. i tried lot of solutions but not work in nougat please help !! this is my a...
more »

2017-01-13 03:01 (1) Answers