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
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)
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
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 android.app.
I wanted to plot real time data via http://www.android-graphview.org/ for data acquired in a Bluetooth thread. Thread code: InputStream tmpIn = mSocket.getInputStream(); while (true) { try { BufferedReader r = new BufferedReader(new InputStreamReader
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.
I'm having trouble using the following code in a fragment activity: ((ImageView) findViewById.getView().(R.id.imageView1)).setImageBitmap(bmp); I've tried using: ((ImageView) this.getView().findViewById(R.id.imageView1)).setImageBitmap(bmp); but this
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
package com.example.selflistview; import java.io.IOException; 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
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
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
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
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
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
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
Time now = new Time(); now.setToNow(); return "Time = ["+String.valueOf(now)+"]\n"; this is the result Time = [20131020T185424Asia/Bangkok(0,292,25200,0,1382270064)] 2013 = year 10 = month 20 = day 18 = hr 54 = min 24 = sec What does (
I have a fragment that does a startActivityForResult() call in OnCreateView if there is no internet. In the NoInternet Activity there is a retry button that finish()es the activity (So I can supposedly check for connection again). When the activity f
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
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
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
I'm trying to fetch data from my Local-Server Using an Android App. I established this using jtds.jdbc Connection. In Emulator It's working fine and fetching Data. While tried to connect using Android device through USB it's Giving the Following Erro
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.
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
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,
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
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
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
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
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 android.media.MediaRecord
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.