Android Studio Emulator is not running my app

When I try to run my application, Android Studio loads my emulator but it says: "waiting device to come online" forever, then when I try to run my app with the emulator open, It says my emulator is already running and it doesn't launch my app. I alre...
more »

2017-05-14 21:05 (2) Answers

Multiple Functions in a Single Button

I have a google map project, and I am wondering how I would be able to change to different map types using a single button click. For Example: At the first time run of app, the map type is NORMAL, then when I tap on the button it will change to TERR...
more »

2017-05-14 19:05 (2) Answers

Drawing a Path with multiple colors

I am drawing on using I want to allow the user to draw using a range of colors and stroke widths, however, whenever the color or stroke width is changed, everything is re-drawn using the new color or str...
more »

2017-05-14 19:05 (3) Answers

ConstraintLayout content shape changed if scrolled

I used constarintLayout as a container for my recycleView, And i fill my items by depend on json (Retrieved data). So i makes some tricks here, If my retrieved json contain a specific value i have to make some items in my constraint layout to disap...
more »

2017-05-14 09:05 (0) Answers

Android Studio - Custom ListView Crashing

So, recently followed this video's instructions on how to make custom ListView: The program is crashing on startup, its DOA and show's nothing before it crashes. It's not logging any errors to the console...
more »

2017-05-14 00:05 (1) Answers

Overwrite File with Zeros Android

I am trying to overwrite a file with zeros so that the file cannot be restored..I have searched a lot but there is nothing for android ,all what I found was for windows..So I want to choose w file from internal storage then overwrite it with zeros..a...
more »

2017-05-13 21:05 (1) Answers

Gravity sensor listener not working

I want to get accelerometer sensor data which is in earth axis through a service. I read about a way to do it as well on one of the posts on stackoverflow. But I have an issue. @Override public void onSensorChanged(SensorEvent event) { Toast.m...
more »

2017-05-13 18:05 (1) Answers

Android Studio - Ruined seekbar

I have a problem with my seekBar. When I am implementing to Android Studio, seebars look good and works perfectly. Here is a photo. View in Android Studio When I run app in real device seekBars is ruined out, but I do not know why ? Here is a p...
more »

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

Transparent action bar and status bar like Uber

I've done a few researches on this topic but I couldn't found some solution for my App/ Activity. I have tried to get a transparent action bar. First, I have tried to change the themes in my AndroidManifest.xml: values/styles.xml: <style ...
more »

2017-05-13 09:05 (6) Answers

Firebase cloud messaging in C#

I am trying to send push notifications from server in C#, i am using the correct registration token and API key but still getting the following response. {"multicast_id":7864311304033595507,"success":0,"failure":1,"canonical_ids":0,"results":[{"err...
more »

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

Android undefined reference with NDK

I'm trying to implement code from here When trying to compile it, I get these errors: Error:(339) undefined reference to `ANativeWindow_fromSurface' Error:(340) und Error:(349) undefined reference to `ANativeWindow_setBuffersGeometry' Error:(351)...
more »

2017-05-11 23:05 (1) Answers

Displaced elements with LinearLayout

I am making a simple calculator using LinearLayout. The problem is that it looks like this : Instead of like this: I simply want it to look like in the second image. I don't get why it doesn't. Please, can someone help me with this? Here'...
more »

2017-05-11 22:05 (3) Answers

Downloading Unity .obb content via Android app

I am trying to make a apk with .obb files, alpha on the store, however when trying to download the .obb it doesnt extract correctly or doesnt load all of the content I am not sure, any help would be appreciated. its an Android structured app, with a...
more »

2017-05-11 17:05 (1) Answers

How to make a squircle ImageView with Android

Is it possible to make an ImageView into a squircle? i.e not just rounded corners but a squircle? If so, how do you do it? Basically, I want a list of icons that are squircles, so doing it in XML and setting the background on widget would be ideal. ...
more »

2017-05-11 15:05 (0) Answers

Grails/Gradle test fails on CI not locally

Running our tests locally (OSX) with gradle test the run/pass just fine. On our CI (Ubuntu 16.04 LTS) machine we're running into an issue with the application context java.lang.IllegalStateException: Could not find ApplicationContext, configure Grai...
more »

2017-05-10 20:05 (0) Answers