Skip to content

Instantly share code, notes, and snippets.

Vipul Kumar vipulyaara

Block or report user

Report or block vipulyaara

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3f1d0074760e393ca602
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ad_relative_layout_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:background="@color/primary_500"
android:padding="8dp">
View gist:b15b79d9624c39fa593b
private void displayNativeAd(List<CustomModel> ads) {
final CustomModel ad = ads.get(0);
adHeadlineView.setText(ad.getTitle());
adBodyTextView.setText(ad.getDescription());
adCallToAction.setText(ad.getCTAText());
// Load the advertisement's creative into your ImageView
avocarrotCustom.loadImage(ad, adIcon);
View gist:e6e3f8dc4fa58c0dc5fa
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{2f98d378 position=20 id=-1, oldPos=21, pLpos:21 scrap tmpDetached no parent}
at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:3887)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4018)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3999)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1892)
at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1338)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1301)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:509)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2365)
at android.support.v7.widget.RecyclerView.resumeRequestLayout(RecyclerView.java:1391)
@vipulyaara
vipulyaara / gist:8ed449257681079e3236
Created May 12, 2015
Pepper talk service exception
View gist:8ed449257681079e3236
05-12 13:54:02.423 17930-17978/com.getcatchit E/SQLiteLog﹕ (284) automatic index on topics(topic_id)
05-12 13:54:02.794 17930-17930/com.getcatchit E/SQLiteLog﹕ (284) automatic index on topics(topic_id)
05-12 13:54:10.504 17930-17930/com.getcatchit E/SysUtils﹕ ApplicationContext is null in ApplicationStatus
05-12 13:54:48.882 17930-17930/com.getcatchit E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.getcatchit, PID: 17930
de.greenrobot.event.EventBusException: Invoking subscriber failed
at de.greenrobot.event.EventBus.handleSubscriberException(EventBus.java:518)
at de.greenrobot.event.EventBus.invokeSubscriber(EventBus.java:500)
at de.greenrobot.event.EventBus.postToSubscription(EventBus.java:429)
at de.greenrobot.event.EventBus.postSingleEventForEventType(EventBus.java:410)
@vipulyaara
vipulyaara / Pepper talk
Created May 11, 2015
Pepper talk exception
View Pepper talk
05-11 14:35:42.017 28980-29514/com.getcatchit E/NativeCrypto﹕ ssl=0x62545aa8 cert_verify_callback x509_store_ctx=0x65db5938 arg=0x0
05-11 14:35:42.018 28980-29514/com.getcatchit E/NativeCrypto﹕ ssl=0x62545aa8 cert_verify_callback calling verifyCertificateChain authMethod=RSA
05-11 14:36:18.139 28980-28980/com.getcatchit E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.getcatchit, PID: 28980
android.database.StaleDataException: Attempting to access a closed CursorWindow.Most probable cause: cursor is deactivated prior to calling this method.
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:156)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:61)
at android.database.CursorWrapper.getString(CursorWrapper.java:114)
at com.espreccino.peppertalk.ui.ChatPepperAdapter.getMessage(ChatPepperAdapter.java:341)
at com.espreccino.peppertalk.ui.ChatPepperAdapter.onBindViewHolder(Cha
You can’t perform that action at this time.