Category "android"

Android Studio - Java JVM

I downloaded the latest version of Android Studio, but I can not use it. The following message appears: Failed to create JVM: error code -4 JVM Path: C:\Progra

How to create constructor of custom view with Kotlin

I'm trying to use Kotlin in my Android project. I need to create custom view class. Each custom view has two important constructors: public class MyView extend

Connect Thumbor with AWS - s3

I have a bucket with photos on AWS. When I try to access the photo url {photoUrl = https://aws-name-dev.s3.amazonaws.com/photo.jpg} in browser I got 'access d

Android Galaxy Tab : Why is the launch icon surrounded by a pink border?

I followed the icon design guidelines from android and so I have icon in different size: drawable-hdpi (96x96) drawable-hdpi (72x72) drawable-ldpi (36x36) draw

Facebook share error : "the page you requested cannot be displayed right now"

I have used custom stories to do the facebook share and the share happens correctly and displays in posted user's facebook wall. See below: The issue when wh

How to create local notification in react native and android

I am trying to create a local notification in android using react-native. My application is completely local, so I don't want to use GCM or FCM. I saw this ques

How to SHA1 hash a string in Android?

In Objective C I've been using the following code to hash a string: -(NSString *) sha1:(NSString*)stringToHash { const char *cStr = [stringToHash UTF8S

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.