Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pcevikogullari/AndroidShortcuts

Example app for shortcuts
https://github.com/pcevikogullari/AndroidShortcuts

android android-shortcuts shortcut shortcuts

Last synced: about 1 month ago
JSON representation

Example app for shortcuts

Awesome Lists containing this project

README

        

# Android Shortcuts

Example app for shortcuts in design library v25

### Demo
![Demo 1](https://raw.githubusercontent.com/pcevikogullari/AndroidShortcuts/master/shortcut1.gif) ![Demo 1](https://raw.githubusercontent.com/pcevikogullari/AndroidShortcuts/master/shortcut2.gif)

### Manifest
Add meta-data before `````` tag in Manifest.xml
```

```

### Add Shortcut
To add or edit a new shotcut, go to /res/xml/shortcuts.xml :
```sh



```

### Handle Actions

To handle shortcuts, just add new constant:
```
private final static String CUSTOM_ACTION = "custom_action";
```

and check the intent for custom action :
```
switch (getIntent().getAction()){
case CUSTOM_ACTION:
textView.setText(CUSTOM_ACTION);
break;
default:
break;
}
```