Category "android"

Spotify Authentication auth_service_unavailable

I am trying to login to spotify. Although when the app is installed it always throws an AUTHENTICATION_SERVICE_UNAVAILABLE error. If the app is uninstalled the

Android Game Activity Flow - Back to Start

I am looking for the best way in which you would setup navigation in an Android game; a best practice for Android Game Activity Navigation. I have the following

Spinner does not show selected value

I have implemented the spinner by populating the array list through database.I can get and show the array list in my spinner array adapter but if I select the i

Run espresso test multiple times

Sometimes I faced with rare bug in my application. But I can't reproduce it as it's very rare. So, I decided to write simple espresso test: @RunWith(AndroidJUn

Android traceroute, ping, dnslookup

I want to implement traceroute/ping/dns lookup in the my application. For ping i use a ProcessBuilder: ProcessBuilder processBuilder = new ProcessBuilder("

How to remove all callbacks from a Handler?

I have a Handler from my sub-Activity that was called by the main Activity. This Handler is used by sub-classes to postDelay some Runnables, and I can't manage

react-native-image-picker getting reverse height and width

I am using react-native-image-picker library to capture image code as follow: launchImageLibrary({ includeExtra: false, mediaType: "photo", selectionLi

Add mono.android reference Xamarin.Forms

Im working on a Xamarin.Forms project and I need to work with mono.android things. The problem is that in a project before, I do have the reference, but in the

"Failed to create Context 0x3005" for Android Emulator

I installed a project in Eclipse and when I run Android emulator I get this error: [2013-11-10 17:19:16 - Emulator] Failed to create Context 0x3005 [2013-11-10

Android image scale type to fit width and scaleY = scaleX

I have a layout with a background image. The image width should be the same as the screen width (match_parent). But it's ugly, the OS don't stretch the picture

Set label color for swipe on Android RecyclerView

I created a RecyclerView with customized swipe draw functionality. Everything works fine, except of the color of the swipe label. Question: How can I change the

VLC encountered an error with this media Android

I have been trying to play an mp3 audio file in the default media player. Copying the code from here I write my code like this AlertDialog.Builder dialog =

How to draw rounded rectangle in Android UI?

I need to draw a rounded rectangle in the Android UI. Having the same rounded rectangle for TextView and EditText would also be helpful.

Firebase Project Results in "Auth/network-request-failed" error on login

I'm running into a strange problem with my Cordova Project that uses Firebase. It works perfectly in browser, but when I run my app on an emulator or phone (And

Register device id directly with Amazon SNS

I am using the Amazon Web Service to send push notifications directly to a device. After I install the app I get the device id, that I need to manually add to t

Update an image to a view using Layoutinflater

ImageView image= (ImageView)getLayoutInflater().inflate(R.layout.tab1,null).findViewById(R.id.imageView1); Bitmap thumbnail = (Bitmap)data.getExtras().get("da

How to set corner radius to imageview

I want to set corner radius to imageview and control the radius on seekbar. As the seekbar progresses the corner radius should increase and vice-versa. Currentl

using a graphical editor/ide to develop a project on Android running Termux

I'm developing on Android making use of Termux to simulate a linux box with webserver/database server etc. I can use Vi or Nano to edit a laravel/vuejs project

Java equivalent of #ifdef that allows non-compilable code

Is it possible in Java to do a sort of #ifdef thing, like in C/C++? Example: class Test { public static final boolean ANDROID = false; public Test()

How to remove ImageButton's standard background image?

In ImageButton I want to remove the standard button background image. In http://developer.android.com it is said, that one must define his\her own background im