All Projects → mcsong → FilteredIntent

mcsong / FilteredIntent

Licence: other
Android intent filter library

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to FilteredIntent

FunFilter
Freely painted area, the software will automatically add filter on its.
Stars: ✭ 15 (-57.14%)
Mutual labels:  filter
Windows-System-Wide-Filter
Windows WDM driver filters to filter IO to devices and file systems
Stars: ✭ 49 (+40%)
Mutual labels:  filter
man-to-md
Converts man pages to Markdown
Stars: ✭ 51 (+45.71%)
Mutual labels:  filter
capella
Cloud service for image storage and delivery
Stars: ✭ 116 (+231.43%)
Mutual labels:  filter
laminas-i18n
Provide translations for your application, and filter and validate internationalized values
Stars: ✭ 40 (+14.29%)
Mutual labels:  filter
Pulse
❤️ A heart rate camera pulse detector written in Swift.
Stars: ✭ 53 (+51.43%)
Mutual labels:  filter
repository
[PHP 7] Implementation and definition of a base Repository in Domain land.
Stars: ✭ 26 (-25.71%)
Mutual labels:  filter
object.omit
Return a copy of an object without the given keys.
Stars: ✭ 79 (+125.71%)
Mutual labels:  filter
pyreports
pyreports is a python library that allows you to create complex report from various sources
Stars: ✭ 78 (+122.86%)
Mutual labels:  filter
MyCuration
RSS Reader for Android with article filtering and curation
Stars: ✭ 23 (-34.29%)
Mutual labels:  filter
nimSocks
A filtering SOCKS proxy server and client library written in nim.
Stars: ✭ 51 (+45.71%)
Mutual labels:  filter
eloquent-filter
Library to form search criteria through expressions in the query string
Stars: ✭ 23 (-34.29%)
Mutual labels:  filter
Filters
An Arduino finite impulse response and infinite impulse response filter library.
Stars: ✭ 36 (+2.86%)
Mutual labels:  filter
blex
Fast Bloom filter with concurrent accessibility, powered by :atomics module.
Stars: ✭ 34 (-2.86%)
Mutual labels:  filter
vesdk-android-demo
VideoEditor SDK: A fully customizable video editor for your app.
Stars: ✭ 90 (+157.14%)
Mutual labels:  filter
animethemes-dl
THIS PROJECT HAS BEEN ABANDONED. Downloads anime themes from animethemes.moe. Supports Batch download and MAL/AniList connecting.
Stars: ✭ 21 (-40%)
Mutual labels:  filter
openapi-filter
Filter internal paths, operations, parameters, schemas etc from OpenAPI/Swagger/AsyncAPI definitions
Stars: ✭ 112 (+220%)
Mutual labels:  filter
ember-cli-blog
Tom Dale's blog example updated for the Ember CLI
Stars: ✭ 87 (+148.57%)
Mutual labels:  filter
matchering-web
🎚️ Self-Hosted LANDR / eMastered Alternative
Stars: ✭ 25 (-28.57%)
Mutual labels:  filter
hexo-filter-optimize
A Hexo plugin that optimize the pages loading speed.
Stars: ✭ 41 (+17.14%)
Mutual labels:  filter

FilteredIntent

Release

Buy Me a Coffee at ko-fi.com

Overview

This library helps to select apps when you want to share text or file to other apps.

Features

  • You can add filters to select apps.
  • A filter is app name and package name.
  • You can show choosing dialog more easy.

Gradle & Maven

Gradle

    dependencies {
    	implementation 'net.sjava:filteredintent:1.3.0'
    }

Maven

    <dependency>
     <groupId>net.sjava</groupId>
     <artifactId>filteredintent</artifactId>
     <version>1.3.0</version>
    </dependency>

Ivy

<dependency org='net.sjava' name='filteredintent' rev='1.3.0'>
    <artifact name='$AID' ext='pom'></artifact> 
</dependency>

##Screenshots

  

Usage

Example 1

  • Show sns apps for sharing "text/plain" contents.
    Intent shareIntent = new Intent();
    shareIntent.setAction(Intent.ACTION_SEND);
    shareIntent.putExtra(Intent.EXTRA_SUBJECT, "share intent subject");
    shareIntent.putExtra(Intent.EXTRA_TEXT, "share intent value");
    shareIntent.setType("text/plain");

    // for testing 
    //String[] filters = new String[]{"1222222222222222222222"};

    // real 
    String[] filters = new String[]{"twitter", "facebook", "kakao.talk", "com.facebook.orca", "com.tencent.mm"};

    FilteredIntent filteredIntent = FilteredIntent.newInstance(MainActivity.this, shareIntent);
    filteredIntent.startIntent("Share sns", filters);

Example 2

  • Show only cloud apps for sharing image file.
    Intent shareIntent = new Intent();
    shareIntent.setAction(Intent.ACTION_SEND);
    shareIntent.setType("image/*");
    // You have to add image file to shareIntent
    
    String[] filters = new String[]{"dropbox", "com.microsoft.skydrive", "com.google.android.apps.docs", "com.box.android", "com.amazon.drive"};
    FilteredIntent filteredIntent = FilteredIntent.newInstance(MainActivity.this, shareIntent);
    filteredIntent.startIntent("Share file to clouds", filters);

Example 3

  • Show apps without gmail, twitter, facebook, kakao, facebook, and tencent apps.
    Intent shareIntent = new Intent();
    shareIntent.setAction(Intent.ACTION_SEND);
    shareIntent.putExtra(Intent.EXTRA_SUBJECT, "share intent subject");
    shareIntent.putExtra(Intent.EXTRA_TEXT, "share intent value");
    shareIntent.setType("text/plain");
    
    // real
    String[] withoutFilters = new String[]{"gmail", "twitter", "facebook", "kakao.talk", "com.facebook.orca", "com.tencent.mm"};
    
    FilteredIntent filteredIntent = FilteredIntent.newInstance(MainActivity.this, shareIntent);
    filteredIntent.startIntentWithout("Share sns", withoutFilters);

Example 4

  • How to get chosen app name.
       if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
            filteredIntent.startIntent(new AppChosenListener() {
                @Override
                public void chosen(String appName) {
                    Toast.makeText(MainActivity.this, appName, Toast.LENGTH_LONG).show();
                }
            }, "Share file to clouds", filters);
        }

License

Copyright 2020 Justin Song

Licensed 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

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].