Recyclerview in ViewPager inside scrollview does not work

I have an xml layout that has following views Scrollview->RelativeLayout->Some Views + Tablayout + ViewPager->Recylerview(In Fragment of ViewPager). ViewPager has some fixed height (Keeping it "Wrap_Content" does not show it at all).Now

The Android Error application hangs during installation

Logcat File:- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.nxtgendataingestion/com.example.android.nxtgendataingestion.SplashScreen}: java.lang.IllegalArgumentException: Unknown color at android.app.ActivityT

TextView Does Not Center in the RelativeLayout Parent

I am trying to center a TextView inside a RelativeLayout, but for some reason the position of the TextView is not exactly in the center, it's in the center and a little down. This problem occurs when I add the second RelativeLayout, the one with no i

Alignment in Listview

this is my code <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent&qu

JSON Arraylist HashMap Extraction Android

Please bear with me with this.Follow through the whole code.I will be putting everything just to be clear: And this is my json : you can format here https://jsonformatter.curiousconcept.com/ [{"productLineItemId":5,"restaurantId":2,&qu

Picasso does not load images from Parse.com

I have Fragment with ParseQuery to get Images from parse database. ParseQuery<ParseObject> query = new ParseQuery<ParseObject>(ParseConstants.CLASS_AROUNDME); query.orderByDescending(ParseConstants.KEY_CREATED_AT); query.whereEqualTo(ParseCons

ERROR when running the application in Android Studio

This is the error while running application. What to do?, any help please It seems like you do not have permission to execute adb command. Try to change permissions for adb using chmod and give execute permission. Hope it helps.

Ionic registerBackButtonAction does not work

Here are the steps to reproduce: Create a basic ionic project "ionic start test sidemenu" Add the android platform "ionic platform add android" In app.js add the code: $ionicPlatform.registerBackButtonAction(function (event) { alert(&q

How to set a specific height at runtime for the sliding layout?

I am building an app that uses this library:https://github.com/umano/AndroidSlidingUpPanel to create a panel that slides on from the bottom of the screen when a user clicks an item in a listview. However i dont want the slide up panel to take up the

NullPointerException on HttpURLConnection

I am trying to implement the following code: public class CheckSomeStaff extends AsyncTask<String, String, String> { private HttpURLConnection urlc; public boolean hasActiveInternetConnection(Context context) { try { this.doInBackground(); if (urlc.

Create ImageView programmatically without layout

I'm trying to create an ImageView in code, setting the image resource and then add the ImageView as a child-view to my main view. All examples I found used a layout for that. But inside the constructor of my view I can't figure out how to do that. He

How to pause / resume SurfaceView from MainActivity?

I am currently creating a game which has a MainActivity as well as a SurfaceView. The SurfaceView is not it's own activity, but is simply called in the MainActivity. What I am trying to do is have a button on the MainActivity (Pause / Resume) which w

error: in the Google MapView layout

I am a newbie to android Google maps, I followed some tutorial to begin, I am getting error. I am unable to see google map on emulator(samsung galaxy 2), I wrote all the code below, please help me with the error. Manifest.xml <?xml version="1.0&qu

analyze the array of json objects embedded in the URL

However i keep getting these exceptions. I have also posted my logcat below. I am new to android so i need help. The url consists of an array of json objects. [ { "codeField":"COMPSCI 101", "semesterField":"Summer School

Error during constant call in Java

I'm trying to parse json in my app: So first I Created constant class for my android app, which has about 6 variables for app.config: (Class: 1) public class Constants{ // url to make request public static String url = "http://server.com/"; // J

How to get the entry of dynamically created EditTexts?

I have a Button that adds a row with an EditText to a TableLayout. I need to find out the input in each EditText of the rows that are added. For example: Someone adds 3 rows, meaning there are 3 EditText. In each EditText, they put the number 3. I ne

Printing an InputStream in Logcat

I want to print the InputStream in logcat(for testing/later I will use it), my current code is as follows. @Override protected Void doInBackground(Void... params) { try { InputStream in = null; int response = -1; URL url = new URL( "http://any-websit

Problems with iText trying to create a PDF file

I'm trying to create a PDF file when I press a button. I'm using iText library. My activity: package com.pdf; import java.io.FileOutputStream; import android.app.Activity; import android.os.Bundle; import android.view.View; import com.itextpdf.text.D

GROUP BY with CursorLoader

How do I define a GROUP BY query for my CursorLoader? The two constructors for a CursorLoader I see take either a single Context or a Context, Uri, projection, selection, selectionArgs and sortOrder. But no groupBy. (I'm using the support package for

MonoDroid onClick From XML no such method error

LiftInspection.axml <Button android:id="@+id/expandCollapse1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawableLeft="@drawable/expand_arrow" android:text="Function/Cont

CalledFromWrongThreadException in SharedPreferenceListener

I have an IntentService which updates a preference like this: SharedPreferences.Editor editor = userPrefs.edit(); editor.putInt("COUNT", intCount); editor.commit(); In my main activity I am listening for preference changes and update a TextView

android createBitmap NullPointerException

I got a java.lang.NullPointerException when I try to call createBitmap. Here is my code: board = Bitmap.createBitmap(handler.signs.length * cellSize, handler.signs[0].length * cellSize, Bitmap.Config.ARGB_8888); where the width and height are also gr

Problem with garbage collection Android

I'm developing an app for tivi box powered by Android2.2. I have a loading screen and all of data have been downloaded. After data downloaded it change to home screen . My home screen layout has 4 relative layouts are the same. When i move from gridv

Android Market - double screenshots in the app description

Since yesterday, our application description on the Android Market web version contains two sets of screenshots: the 480x800 ones that we've uploaded, and another one of very small dimensions, that dosen't appear in the application's assets, so, not