Android (Xamarin) padding in gridview

I have some buttons I've created using gridview and a custom adapter, but the buttons are surrounded by a padding which I believe to be part of the gridview. I found this thread and tried the solutions but was unable to fix the problem. Here is a pic...
more »

2017-06-15 23:06 (2) Answers

Zebra printer won't print ZPL format

I am following the Zebra Android Link_OS SDK sample code for printing a test label on a ZQ510 over Bluetooth, but it won't print in ZPL format. Here is the code I'm running to print the label: private void sendZplOverBluetooth(final String theBtMac...
more »

2017-06-15 21:06 (2) Answers

A-frame Random page reloads/refresh

I've been working on a VR game within A-Frame. When I started testing on devices (iPhone 7/iPhone 7 Plus running Safari, and Samsung Galaxy S6 running Chrome), I began to notice the page would randomly refresh, which is an issue for us, as it restart...
more »

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

Android: Draw shape with skewed corner

I want to use a background for my buttons. But when I use a png it slows down the app. Therefore I want to use a xml shape but I do not know how to make the corner cut (like on the picture). By now I have the following shape which is just a rectang...
more »

2017-06-15 11:06 (3) Answers

Replace new method dexlib2 failing

I am using dexlib2 to rewriting existing apk through one jar utility. I want to change one instruction with my own instruction. It is basically returning some object and I want to replace it with another method which is returning different object. It...
more »

2017-06-14 23:06 (0) Answers

Linear Layout using weight to adapt screan size

I am trying to use a linear layout as a row for my recycleView/adapter, basicly my row has 3 elements: a image, a textView and a checkButton with some text. What i want is the image ocupy like 50% of the width plus 40 height, so i set the weight of ...
more »

2017-06-14 22:06 (4) Answers

What are the platform common classes in Kotlin?

I'd like to use Kotlin to define interfaces between client and server. Currently, Kotlin can be used in 3 platforms: Java, Android, Web(JS). What Kotlin build-in classes can I use across all these platform? I would expect some common library depen...
more »

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

Android O Geofence Trigger Delay

I have a navigation app that used geofences(Creating and Monitoring Geofences). Google says (Background Location Limits): The average responsiveness for a geofencing event is every couple of minutes or so. On previous Android versions was ...
more »

2017-06-13 14:06 (0) Answers

Broadcasts are delayed

We use broadcasts to communicate state changes between a remote services and our UI. Doing this, we discovered a very strange behaviour: Sometimes (I can not find any clues why) these broadcasts are delayed around 8s. How we send them (pretty basic...
more »

2017-06-13 10:06 (1) Answers

.prefs file pattern in android studio

I am very very new to Android Studio and coding in general. I'm working on a project that involves me moving open sourced code to android studio emulator. However, one of the folders that needs to be moved over is the .settings folder. It contains a ...
more »

2017-06-12 19:06 (0) Answers

Runtime exception Android O with boot_completed

I'm trying to start an IntentService within my BOOT_COMPLETED receiver, but in Android O (API 26) I get: java.lang.RuntimeException: java.lang.IllegalStateException: Not allowed to start service Intent { act=intent.action.update
more »

2017-06-12 16:06 (2) Answers

Setting up Gradle for api 26 (Android)

Since I have upgraded my Nexus 5x to Android O DP3 I am not able to test my applications. I get the error for not having configured my Gradle-file to work with the new API-level (26). So I changed this and the dependencies, but I keep getting errors...
more »

2017-06-12 15:06 (2) Answers

Depth Pager Transformer just like SnapChat

I'm trying to implement ViewPager with DepthPageTransformer just like Snapchat application. In SnapChat application, there is a Camera screen which always comes in center of ViewPager and swiping from left or right brings other fragments on top of ca...
more »

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

Make countdown timer go from 10sec to 1sec

I have a CountDown timer that counts down from 10000ms to 0ms in increments of 1 second each to make a button clickable after 10 seconds. Although the timer is accurate and does what the code says, I would like to change the way the seconds are expre...
more »

2017-06-12 05:06 (4) Answers

Progress Bar with 2 solid colors

I wanto to create a circle progress bar with a drawable with 2 solid colors. At the moment I have a gradient progress bar like this. <?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="" ...
more »

2017-06-12 05:06 (2) Answers