Beginning of RecyclerView (Xamarin) activity

I have Xamarin app with RecyclerView. I have TextView in block. I want to start activity on click. Here is code: public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { var movieViewHolder = (MovieViewHolder)holder; movi

ERROR: Failed execution for task ': app: processDebugResources'

When I try to build my project, the Messages Gradle Build reports these messages: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processDebugResources'. java.lang.IllegalArgumentException (no error message)

expected = JSONException.class does not catch

I made a Test where I send an invalid JSON, and it should catch me a JSONException. When I run the test, it fails and shows me a JSONException, Why doesn't test catch it? @Test (expected = JSONException.class) public void testExtraFieldsJsonException

Suggestions Android Search slider at line X returned exception

I have been trying to get this piece of code to work but with no joy. Here is the error from logcat Search suggestions cursor at row 0 returned exception. java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String

laggy android graphic view on huge data

I wanted to plot real time data via for data acquired in a Bluetooth thread. Thread code: InputStream tmpIn = mSocket.getInputStream(); while (true) { try { BufferedReader r = new BufferedReader(new InputStreamReader

Android Studio can not resolve imported AAR module symbols

All of the answers in similar questions talk about manunally editting gradle files. But I've used Android Studio to import the AAR file and checked the build.gradle files and they all seem correct. My problem is this: I've imported ShowCaseView v5.0.

Android: How to start an activity in the device settings?

How can I start an activity which is in device settings? I need to start a settings page with intent.These are the activities the default settings app exposes to you so that you can create an intent with the appropriate action set in it and launch th

I want to send listview data to another activity in android

package com.example.selflistview; import; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org

Android AsyncTask re-executes when the activity is open

In my App the user has to login. They open the app on the login page They enter email/password and hit login A LoadingScreenActivity is opened that has a swirly circle and is running an AsyncTask that goes to my database and retrieves all the users i

Get a definition of non-class found error in the error?

I am writing an android app but using JUnit to test it out some of the more java-specific functionality before creating activities and the android-specific functions. As I write out the JUnit tests and execute them bit by bit, I am finding failures a

Asian characters missing on Android 5.0 devices

I'm using Unity4.5.4 and NGUI 3.6, and want to support multi-languages. When I try on devices using Android 4, it is totally fine. When I install the same build on Google Nexus 7 using Android 5.0, English version is fine, but almost all the Asian ch

The Eclipse LogCat window is not empty, but empty

I am debugging an android app on a device and the LogCat window is blank, but not empty. What I mean by that is there is a scroll bar that looks like stuff is being added to the window, and I can indeed click on a line in the window and it highlights

how to change the height of a software keyboard at runtime?

I'm designing a soft keyboard and I want to change its height at run-time as the user choose between landscape and portrait mode. I know how to change key's height in xml, but I need to do it dynamically. The only thing that came to my mind was to su

Asynctask with fragments, Shutting down VM error

I'm trying to use a AsyncTask consulting a parseobject and brings me a picture and text in a list, but when running above shows me the following error: 10-27 16:29:18.335: D/AndroidRuntime(28453): Shutting down VM 10-27 16:29:18.335: W/dalvikvm(28453

how to erase the empty space while the image is zero?

I'm new to android domain. My problem is.. I'm getting a empty space in the image view. From the database im retrieve the image as string and stored in array and displaying. When im getting null in the string that time i should not get a empty white

How to place an image in the edittext?

I want to place implement search in my app for that I need to make a search bar like we see in the google bar image at the end of the text field. I have tried using FrameLayout and I place EditText and image, but it doesn' work ..How do I make it.Use

Pad is disabled in the emulator

I am using android sdk 4.0.3 ,I have created an Emulator of it. Now I have a problem that the emulator is showing the Disabled DPAD Buttons .I have set up the Hardware keyboard present and display skin with buttons option in configuration. So i just

Get the value of the option chosen in Spinner

I want to get value of choosed option in Spinner. I know, I can get this from setOnItemSelectedListener, but I don't want to use this. I have this: String spinner1odp = spinnerSubject.getSelectedItem().toString(); But result of this code is: android.

Android accelerometer class

I tried to create seperate accelerometer class that holds values of accelerometer and I can acces them from any other class whenever I want, but it doesn't seem to work. Here is my Accelerometer class: import android.hardware.Sensor; import android.h

Android countdown to date

I am trying to make a countdown timer for a game/date in android. I want to create a timer that displays the days, hours, minutes, and seconds to a date I specify with a final variable. The timer then sets text views to show the days, hours, minutes,

Could not save the activity in the manifest?

Before I ask my question I saw android intent filter? and Android: Activity not registered in the manifest also I searched this ,but I could not find my answer. In my App,I have to start Activty1 form IntentFilterActivity(both are Activities) with im

Why the Android convention does not follow Java

So I've been around android for about two years now, and around 6 with java, something that I liked from the very start that i discover them where the Java Convetion, this guide that help me wrote more understandable code you know the typical CalmelC

Exit SurfaceView automatically

I have a game I'm developing for Android 2.x. When the player looses, I want to automatically exit that and go back to the previous menu of the game. This may be a simple question, but how do I do that? I have a MenuActivity, which calls GameActivity

The emulator does not work

I just downloaded the SDK and tried to open the emulator but, even though the emulator showed, nothing appeared on the screen of it, also, the new hardware comes with a dual core, so how can I give my emulator two cores?The emulator takes a while to

How to record sound using a built-in microphone in Android

I need to record sound by using mobile's own microphone... How to do it?It's explained here Audio capture from the device is a bit more complicated than audio/video playback, but still fairly simple: Create a new instance of

General questions about billing via the Android app

I know In-App billing is new in Android and I would like to use it, but the version requirements make me think twice whether it's worth the effort. I would appreciate any input from those who have implemented or worked with In App Billing in detail.