How to Add Android Widget for Obsidian
I literally followed this blog. But since it is not available anymore, I used a cached version and copied it below
Setup
- Download the Obsidian mobile app.
- Install Advanced URI community plugin
- Download an automation app: Automate (free) or Tasker (paid)
In Obsidian
- Open the command palette in the Obsidian app (swipe down by default).
- Search for "Advanced URI" and select with file you want to copy a link to.
Automation App
Automate
- Premade:
- Joschua created a simple flow to open the Daily note in Obsidian: Open Daily Note in Obsidian.
- By duplicating the flow and editing the "Data URI" field, you can open any link in Obsidian URI.
- I created another flow to create a new Unique Note by adding this URI
obsidian://advanced-uri?commandid=zk-prefixer
- I created another flow to create a new Unique Note by adding this URI
- Manual instructions. If you're wary of downloading a script from the internet, here are the basic instructions:
- Create a new flow in Automate
- Select
App start
as a block - Select
md.obsidian
for "Package" - Select
md.obsidian.MainActivity
for "Activity class" - Select
View
for "Action" - Paste your URL in the field "Data URI"
- Connect the block
Flow beginning
with theStart App
block
Tasker
- Open Tasker. Through the
+
icon, create a new task and give it a name. - Add an action with the
+
icon. Select "Browse URL". - Paste the copied URI in the "URL" box.
- With the arrow back, go to the task overview and select an image by tapping the icon in the middle at the bottom.
- Save the task and exit Tasker.
Homescreen
- Add a widget to the homescreen.
- Automate: Select "Flow shortcut" in the "Automate" section.
- Tasker: Select "Task Shortcut" in the "Tasker" section.
- There you go! By long-pressing, you can customize the name or icon.
- Now you can add shortcuts to anything!