Skip to content

Instantly share code, notes, and snippets.

View felixgborrego's full-sized avatar

Felix felixgborrego

View GitHub Profile
@felixgborrego
felixgborrego / gist:568f3460d82d9c12e23c
Created August 25, 2014 15:06
Custom DefaultClientConnectionOperator compatible with Spark 1.0.x
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
@felixgborrego
felixgborrego / gist:7943560
Last active April 10, 2019 12:01
To call Camera or Gallery Intent or any other intent in relation with photos. 1- look for all the available apps in the phone 2- Show a popup with the list of apps
package com.daft.ie.client.widget;
import java.util.ArrayList;
import java.util.List;
import com.daft.ie.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ComponentName;