<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Android on mm-dev</title>
    <link>https://mm-dev.rocks/tags/android/</link>
    <description>Recent content in Android on mm-dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Thu, 08 Aug 2024 17:47:33 +0100</lastBuildDate><atom:link href="https://mm-dev.rocks/tags/android/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Set up Vim for Flutter</title>
      <link>https://mm-dev.rocks/posts/flutter-in-the-terminal/set-up-vim-for-flutter/</link>
      <pubDate>Thu, 08 Aug 2024 17:47:33 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/flutter-in-the-terminal/set-up-vim-for-flutter/</guid>
      <description>&lt;p&gt;There are various ways of installing Vim plugins. I use &lt;code&gt;vim-plug&lt;/code&gt; in my examples here but I&amp;rsquo;ll add links to instructions for each plugin so you can do it your own way.&lt;/p&gt;
&lt;h2 id=&#34;dart&#34;&gt;Dart&lt;/h2&gt;
&lt;p&gt;As Flutter uses the Dart language, install &lt;a href = &#34;https://github.com/dart-lang/dart-vim-plugin&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Dart support for Vim&lt;/a&gt;. I add the following to my &lt;code&gt;~/.vimrc&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-vim&#34; data-lang=&#34;vim&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;&amp;#34; Between the &amp;#39;plug#begin()&amp;#39; and &amp;#39;plug#end()&amp;#39; lines&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;Plug&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;dart-lang/dart-vim-plugin&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then I restart Vim and run &lt;code&gt;:PlugInstall&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This adds syntax highlighting and auto-indentation of Dart code.&lt;/p&gt;
&lt;h2 id=&#34;language-servers&#34;&gt;Language Servers&lt;/h2&gt;
&lt;p&gt;Language Servers/LSPs (LSP = Language Server Protocol but both terms are often used interchangeably) give your editor information about the structure of a language and enable it to do syntax highlighting and code completion, along with deeper functionality such as allowing you to jump to the definition of a function, do refactoring etc.&lt;/p&gt;
&lt;p&gt;LSPs are used in Visual Studio for a lot of its advanced functionality but they can also be used in Vim. There&amp;rsquo;s more than one way of doing this but I use &lt;a href = &#34;https://github.com/neoclide/coc.nvim&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;coc-nvim&lt;/a&gt; (despite the name it works in modern versions of Vim, not just Neovim).&lt;/p&gt;
&lt;h3 id=&#34;install-the-cocnvim-plugin-in-vim&#34;&gt;Install the &lt;code&gt;coc.nvim&lt;/code&gt; plugin in Vim&lt;/h3&gt;
&lt;p&gt;Using &lt;code&gt;vim-plug&lt;/code&gt; I add the following to my &lt;code&gt;~/.vimrc&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-vim&#34; data-lang=&#34;vim&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;&amp;#34; Between the &amp;#39;plug#begin()&amp;#39; and &amp;#39;plug#end()&amp;#39; lines&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;Plug&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;neoclide/coc.nvim&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; {&lt;span class=&#34;s1&#34;&gt;&amp;#39;branch&amp;#39;&lt;/span&gt;: &lt;span class=&#34;s1&#34;&gt;&amp;#39;release&amp;#39;&lt;/span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Again, I restart Vim and run &lt;code&gt;:PlugInstall&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For other ways of installing just follow the &lt;a href = &#34;https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;instructions &lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;install-a-flutter-lsp&#34;&gt;Install a Flutter LSP&lt;/h3&gt;
&lt;p&gt;Install the Flutter language server in CoC, &lt;a href = &#34;https://github.com/iamcco/coc-flutter&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;coc-flutter&lt;/a&gt;. This provides lots of helpful functionality for working with Flutter in Vim as described in the link.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-vim&#34; data-lang=&#34;vim&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;CocInstall&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;coc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;flutter&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This LSP needs to know where the Flutter SDK is installed. In Vim, run &lt;code&gt;:CocList FlutterSDKs&lt;/code&gt; and make sure it finds at least 1 SDK. If not, add a line to CoC settings (&lt;code&gt;:CocConfig&lt;/code&gt;):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;flutter.sdk.path&amp;#34;&lt;/span&gt;: &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$HOME&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;/.local/flutter/bin&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can find the correct path with &lt;code&gt;which flutter&lt;/code&gt; in the terminal.&lt;br&gt;
&lt;em&gt;Originally, I had installed my Flutter SDK at &lt;code&gt;/usr/bin&lt;/code&gt;. That caused invisible errors with &lt;code&gt;coc-flutter&lt;/code&gt; as it couldn&amp;rsquo;t access the path properly to find the Flutter SDK. I was having trouble getting this step working. I then moved the Flutter SDK to &lt;code&gt;$HOME/.local/flutter&lt;/code&gt; and everything started to work properly&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&#34;cocnvim-settings&#34;&gt;&lt;code&gt;coc.nvim&lt;/code&gt; settings&lt;/h2&gt;
&lt;p&gt;To change CoC settings the command &lt;code&gt;:CocConfig&lt;/code&gt; can be used in Vim. On my system it opens up the file &lt;code&gt;~/.vim/coc-settings.json&lt;/code&gt;. You can open/edit this file directly but depending on your Vim configuration it may be in a different location.&lt;/p&gt;
&lt;p&gt;Here are some of the settings I prefer:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;diagnostic.checkCurrentLine&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;diagnostic.enableMessage&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;jump&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;colors.enable&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;suggest.noselect&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;inlayHint&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;false&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;diagnosticcheckcurrentline-true&#34;&gt;&lt;code&gt;&amp;quot;diagnostic.checkCurrentLine&amp;quot;: true,&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;By default, Coc will show you a diagnostic error or warning when your cursor is over the word causing the problem. Setting this to &lt;code&gt;true&lt;/code&gt; means you only have to be on the same line as the error to see the dialog, not the exact word.&lt;/p&gt;
&lt;h3 id=&#34;diagnosticenablemessage-jump&#34;&gt;&lt;code&gt;&amp;quot;diagnostic.enableMessage&amp;quot;: &amp;quot;jump&amp;quot;,&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This diagnostic popups can be really helpful, but it&amp;rsquo;s all a bit frenetic for me, I&amp;rsquo;m a &lt;code&gt;prefers-reduced-motion&lt;/code&gt; kind of person. Setting this to &lt;code&gt;jump&lt;/code&gt; means they don&amp;rsquo;t pop up automatically, but can still be shown when I want to see them. I also add this line to &lt;code&gt;~/.vimrc&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-vim&#34; data-lang=&#34;vim&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;nmap&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;silent&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;gh&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Plug&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;(&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;coc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;float&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;hide&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;nmap&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;silent&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;gl&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Plug&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;(&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;coc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;diagnostic&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;info&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Which allows me to show/hide the diagnostics with &lt;code&gt;gh&lt;/code&gt;/&lt;code&gt;gl&lt;/code&gt; respectively.&lt;/p&gt;
&lt;h3 id=&#34;colorsenable-true&#34;&gt;&lt;code&gt;&amp;quot;colors.enable&amp;quot;: true,&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This setting is for another CoC addition called &lt;code&gt;coc-highlight&lt;/code&gt;. I installed this in Vim with:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-vim&#34; data-lang=&#34;vim&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;CocInstall&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;coc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;highlight&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This adds various types of colour highlighting, but the one I was most interested in is how it will detect any colours (eg RGB or hex) in your code and change the colour of their text to give you a preview of them. This feature is enabled with the &lt;code&gt;colors.enable&lt;/code&gt; line as above.&lt;/p&gt;
&lt;h3 id=&#34;suggestnoselect-true&#34;&gt;&lt;code&gt;&amp;quot;suggest.noselect&amp;quot;: true,&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;When you start typing a word, CoC will default to inserting its first suggested autocompletion word. This is a bit more &amp;lsquo;help&amp;rsquo; than I like, so I add this setting to make the process more intentional.&lt;/p&gt;
&lt;h3 id=&#34;inlayhint-false&#34;&gt;&lt;code&gt;&amp;quot;inlayHint&amp;quot;: false,&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;By default CoC inserts &lt;em&gt;inlay hints&lt;/em&gt;, for example if you haven&amp;rsquo;t added a type hint to indicate what kind of widget is being referred to somewhere, it will insert the &lt;code&gt;&amp;lt;Widget&amp;gt;&lt;/code&gt; hint for you as a piece of magical ghost text.&lt;/p&gt;
&lt;p&gt;These bizarre bits of text appear in the middle of lines of code, except they aren&amp;rsquo;t really there, you can&amp;rsquo;t select them or delete them and if you&amp;rsquo;re moving your cursor around it acts as if they don&amp;rsquo;t exist. I&amp;rsquo;m sure some people enjoy them, and for those people I&amp;rsquo;m glad that they exist. For me, they are disgusting, obnoxious devil-warts.&lt;/p&gt;
&lt;p&gt;Thankfully, they can be vanquished by adding this line to the CoC settings.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Install Flutter</title>
      <link>https://mm-dev.rocks/posts/flutter-in-the-terminal/install-flutter/</link>
      <pubDate>Thu, 08 Aug 2024 17:47:32 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/flutter-in-the-terminal/install-flutter/</guid>
      <description>&lt;h3 id=&#34;follow-instructions-from&#34;&gt;Follow instructions from &lt;a href = &#34;https://docs.flutter.dev/get-started/install/linux/android&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;https://docs.flutter.dev/get-started/install/linux/android&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Download the &lt;code&gt;flutter_*.tar.xz&lt;/code&gt; archive&lt;/li&gt;
&lt;li&gt;Unpack the archive into &lt;code&gt;$HOME/.local/bin&lt;/code&gt; (creates &lt;code&gt;$HOME/.local/bin/flutter/bin&lt;/code&gt;)&lt;br&gt;
&lt;em&gt;At first I tried putting this at &lt;code&gt;/usr/bin&lt;/code&gt;, but that caused invisible errors in coc-flutter as it couldn&amp;rsquo;t access the path properly to find the Flutter SDK&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Add the new path as above to $PATH eg in &lt;code&gt;~/.profile&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# ~/.profile&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;PATH&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$HOME&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;/.local/bin/flutter/bin:&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$PATH&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;p&gt;For ARM64 architectures the Flutter SDK cannot be found at the above link, nor in the archives. In this case the SDK can be obtained by cloning the main flutter repo, then running a &lt;code&gt;flutter&lt;/code&gt; command to trigger a download of dependencies&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;git clone -b main https://github.com/flutter/flutter.git
./flutter/bin/flutter --version
&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;h3 id=&#34;agree-to-more-licenses-and-get-flutter-doctor-to-pass&#34;&gt;Agree to more licenses and get Flutter doctor to pass&lt;/h3&gt;
&lt;p&gt;First, agree to several laughably long licence agreements which Google knows full well that nobody reads.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;flutter doctor --android-licenses
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then type Y and Enter for each prompt&lt;/p&gt;
&lt;p&gt;Now run &lt;code&gt;flutter doctor&lt;/code&gt;. It should pass every test except &amp;lsquo;Android Studio (not installed)&amp;rsquo;. If so, we&amp;rsquo;re ready to start building Flutter apps (with Android Studio not installed).&lt;/p&gt;
&lt;h3 id=&#34;sample-project&#34;&gt;Sample project&lt;/h3&gt;
&lt;p&gt;You can make a really simple sample project to check that everything&amp;rsquo;s installed correctly and see how it works.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;flutter create sample-project
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will create a &lt;code&gt;sample-project&lt;/code&gt; directory with a Flutter app in it, a simple built-in demo of a button which counts up as you tap it.&lt;/p&gt;
&lt;p&gt;To run the app:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; sample_project
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;flutter run
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Install the Android SDK</title>
      <link>https://mm-dev.rocks/posts/flutter-in-the-terminal/install-the-android-sdk/</link>
      <pubDate>Thu, 08 Aug 2024 17:47:31 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/flutter-in-the-terminal/install-the-android-sdk/</guid>
      <description>&lt;p&gt;Getting the Android SDK set up manually can be tricky, I think the expectation is that most people will use Android Studio so not a lot of work has been put in to making manual installation user-friendly.&lt;/p&gt;
&lt;h3 id=&#34;pick-a-directory-where-youll-keep-the-sdk&#34;&gt;Pick a directory where you&amp;rsquo;ll keep the SDK&lt;/h3&gt;
&lt;p&gt;This is an important directory that will always store all the Android-SDK specific tools, platforms, build tools etc. Various bits and pieces need to know where these things are, so we&amp;rsquo;ll set some environment variables for them later.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m using &lt;code&gt;$HOME/android_sdk/&lt;/code&gt; in these examples.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir &lt;span class=&#34;nv&#34;&gt;$HOME&lt;/span&gt;/android_sdk
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;install-the-sdk-manager&#34;&gt;Install the SDK Manager&lt;/h3&gt;
&lt;p&gt;This is a set of command line tools used to install different versions of the SDK (for when you want to target different Android devices).&lt;/p&gt;
&lt;p&gt;Based on Google&amp;rsquo;s instructions at &lt;a href = &#34;https://developer.android.com/tools/sdkmanager&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;https://developer.android.com/tools/sdkmanager&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From the &lt;a href = &#34;https://developer.android.com/studio&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;downloads page&lt;/a&gt; (I had to scroll down a long way), download the &lt;code&gt;cmdline-tools&lt;/code&gt; zip and unzip it to the directory you created above eg &lt;code&gt;$HOME/android_sdk/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Inside the unzipped directory &lt;code&gt;cmdline-tools&lt;/code&gt; make a &amp;rsquo;latest&amp;rsquo; directory and move all of the other contents of &amp;lsquo;cmdline-tools&amp;rsquo; inside it (so you end up with &lt;code&gt;cmdline-tools/latest/bin&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You should end up with something like the following (I&amp;rsquo;m using &lt;code&gt;tree&lt;/code&gt; to list the directory contents but don&amp;rsquo;t worry about that, just make sure your directories are in the right places):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ tree -L &lt;span class=&#34;m&#34;&gt;2&lt;/span&gt; cmdline-tools/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cmdline-tools/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── latest
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ├── NOTICE.txt
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ├── bin
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ├── lib
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    └── source.properties
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;add-some-environment-variables-to-profile&#34;&gt;Add some environment variables to &lt;code&gt;~/.profile&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Make sure these make sense based on what we&amp;rsquo;ve done so far if you&amp;rsquo;ve used different directories to me.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# ~/.profile&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;ANDROID_SDK_ROOT&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$HOME&lt;/span&gt;/android_sdk
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;PATH&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$PATH&lt;/span&gt;:&lt;span class=&#34;nv&#34;&gt;$ANDROID_SDK_ROOT&lt;/span&gt;/cmdline-tools/latest/bin
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;PATH&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$PATH&lt;/span&gt;:&lt;span class=&#34;nv&#34;&gt;$ANDROID_SDK_ROOT&lt;/span&gt;/platform-tools
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Source the profile with &lt;code&gt;source ~/.profile&lt;/code&gt;. Then run &lt;code&gt;sdkmanager&lt;/code&gt; and see if it does something. If you get &lt;code&gt;command not found&lt;/code&gt; double-check everything and try rebooting.&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;&lt;span&gt;My sdkmanager binary name clash (this won&amp;rsquo;t affect you but click to expand if you&amp;rsquo;re interested)&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;In my case I already had a binary installed with the name &lt;code&gt;sdkmanager&lt;/code&gt;, as that&amp;rsquo;s the name Garmin use for their ConnectIQ SDK Manager. Apparently neither Garmin nor Google could foresee that anyone other than themselves might call their SDK manager software &amp;lsquo;sdkmanager&amp;rsquo;.&lt;/p&gt;
&lt;p&gt;So I had to do some hacky stuff with bash aliases in &lt;code&gt;~/.profile&lt;/code&gt; to let the two live alongside each other, and remind me of the situation:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;alias&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;sdkmanager&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;echo &amp;#34;Use either *sdkmanager-garmin* or *sdkmanager-android*&amp;#34;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;alias&lt;/span&gt; sdkmanager-android&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$ANDROID_SDK_ROOT&lt;/span&gt;/cmdline-tools/latest/bin/sdkmanager
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;alias&lt;/span&gt; sdkmanager-garmin&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$HOME&lt;/span&gt;/.local/bin/sdkmanager
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/details&gt;
&lt;h3 id=&#34;accept-sdk-licences&#34;&gt;Accept SDK licences&lt;/h3&gt;
&lt;p&gt;The SDK licences must be accepted for everything to work.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager --licenses
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then type Y and press Enter for each prompt&lt;/p&gt;
&lt;h3 id=&#34;install-the-android-toolchain&#34;&gt;Install the Android toolchain&lt;/h3&gt;
&lt;p&gt;To pass the &amp;lsquo;Android toolchain&amp;rsquo; step of &lt;code&gt;flutter doctor&lt;/code&gt; (in a bit) we need 3 things:&lt;/p&gt;
&lt;ol start=&#34;0&#34;&gt;
&lt;li&gt;Platform tools (generic)&lt;/li&gt;
&lt;li&gt;A valid platform&lt;/li&gt;
&lt;li&gt;Build tools to match the platform&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Various instructions online will tell you to do things like &lt;code&gt;sdkmanager &amp;quot;platform-tools&amp;quot; &amp;quot;platforms;android-33&amp;quot;&lt;/code&gt; (ie pass multiple arguments to &lt;code&gt;sdkmanager&lt;/code&gt;), but as observed in &lt;a href = &#34;https://stackoverflow.com/questions/76650927/failed-to-find-platform-sdk-with-path-platformsandroid-33&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;this StackOverflow answer&lt;/a&gt; &lt;em&gt;if using the command line tools, the platform tools need to be installed via separate commands ie:&lt;/em&gt;&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager &lt;span class=&#34;s1&#34;&gt;&amp;#39;platform-tools&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager &lt;span class=&#34;s1&#34;&gt;&amp;#39;platforms;android-33&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager &lt;span class=&#34;s1&#34;&gt;&amp;#39;build-tools;33.0.2&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the installation has worked correctly you should end up with something like:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ tree -L &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; android_sdk/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;android_sdk/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── build-tools
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── cmdline-tools
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── licenses
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── platform-tools
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── platforms
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;details&gt;
&lt;summary&gt;&lt;span&gt;Another weird, me-specific problem I encountered&amp;hellip;&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;At first, my installations weren&amp;rsquo;t appearing in my &lt;code&gt;android_sdk&lt;/code&gt; directory and Flutter tools were complaining about not being able to find the Android SDK.&lt;/p&gt;
&lt;p&gt;Forcing the SDK path like this worked:
&lt;code&gt;sdkmanager --verbose &amp;quot;platform-tools&amp;quot; --sdk_root=$HOME/android_sdk/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;But something smelt wrong, as the original &lt;code&gt;sdkmanager&lt;/code&gt; install commands seemed to be completing without error. I investigated this by running the following:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager &lt;span class=&#34;s1&#34;&gt;&amp;#39;platform-tools&amp;#39;&lt;/span&gt; --verbose
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Which revealed that they were going into:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/data/data/com.termux/files/usr/share/android-sdk/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is because I was on Android using Termux, in a proot container, and I had previously installed the SDK in the main (non proot) Termux environment. This was not needed any more so I deleted the other installation.&lt;/p&gt;
&lt;p&gt;This is an exotic situation and you&amp;rsquo;re probably not as stupid as I am to get into this situation, but maybe this note will help in some other situation.&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;
</description>
    </item>
    
    <item>
      <title>Dependencies and Environment</title>
      <link>https://mm-dev.rocks/posts/flutter-in-the-terminal/dependencies-and-environment/</link>
      <pubDate>Thu, 08 Aug 2024 17:47:30 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/flutter-in-the-terminal/dependencies-and-environment/</guid>
      <description>&lt;p&gt;To get started I&amp;rsquo;m presuming you have a Linux installation of something like Debian/Ubuntu.&lt;/p&gt;
&lt;h2 id=&#34;general-dependencies&#34;&gt;General Dependencies&lt;/h2&gt;
&lt;h3 id=&#34;git&#34;&gt;Git&lt;/h3&gt;
&lt;p&gt;You probably already have this but just in case:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install git
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;ensure-java-jdk-is-installed-and-recent-enough&#34;&gt;Ensure Java JDK is installed and recent enough&lt;/h3&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install openjdk-17-jdk
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;stuff-flutter-needs&#34;&gt;Stuff Flutter Needs&lt;/h3&gt;
&lt;p&gt;The latest info about this should be &lt;a href = &#34;https://docs.flutter.dev/get-started/install/linux/android&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;here&lt;/a&gt; but at time of writing:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And some other tools Flutter uses:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install clang cmake ninja-build
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;if-using-chromium-browser-instead-of-chrome&#34;&gt;If using Chromium browser instead of Chrome&lt;/h3&gt;
&lt;p&gt;The Android SDK likes to know where Chrome is on your system. I use Chromium and the SDK can&amp;rsquo;t find it.&lt;/p&gt;
&lt;p&gt;So I export an environment variable to let Flutter know where to find Chromium eg in &lt;code&gt;~/.profile&lt;/code&gt;&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;CHROME_EXECUTABLE&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/usr/bin/chromium
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Parts of the SDK</title>
      <link>https://mm-dev.rocks/posts/flutter-in-the-terminal/parts-of-the-sdk/</link>
      <pubDate>Thu, 08 Aug 2024 17:47:30 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/flutter-in-the-terminal/parts-of-the-sdk/</guid>
      <description>&lt;p&gt;There are several components making up the SDK. I&amp;rsquo;ll list them here along with examples of how they can be installed later on when the SDK manager is set up and working.&lt;/p&gt;
&lt;p&gt;This is just an overview to help your mental model of what&amp;rsquo;s what, we&amp;rsquo;re not installing anything just yet.&lt;/p&gt;
&lt;p&gt;We download them as a zip and place them in a specific directory, as detailed later.&lt;/p&gt;
&lt;h3 id=&#34;command-line-tools&#34;&gt;Command Line Tools&lt;/h3&gt;
&lt;p&gt;These commands can do several things like signing and optimising APKs, but the main one we are interested in is &lt;code&gt;sdkmanager&lt;/code&gt;. This is the command we use to install the other tools.&lt;/p&gt;
&lt;h3 id=&#34;platform-tools&#34;&gt;Platform Tools&lt;/h3&gt;
&lt;p&gt;These are tools for interfacing with Android which you may already be familiar with, such as &lt;code&gt;adb&lt;/code&gt; and &lt;code&gt;fastboot&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager &lt;span class=&#34;s1&#34;&gt;&amp;#39;platform-tools&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;platforms&#34;&gt;Platforms&lt;/h3&gt;
&lt;p&gt;A platform represents a specific version of Android. It includes multiple system images, which the device emulator uses to emulate various devices on that platform.&lt;/p&gt;
&lt;p&gt;Information used to compile your app for this platform version, and source code to be used for debugging are also included.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Multiple platforms can be installed alongside each other on the same system.&lt;/em&gt;&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager &lt;span class=&#34;s1&#34;&gt;&amp;#39;platforms;android-33&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;build-tools&#34;&gt;Build Tools&lt;/h3&gt;
&lt;p&gt;These are tools used for building Android apps. I&amp;rsquo;m not 100% clear on what these are and why they are different from Platform Tools, it seems that they were part of Platform Tools in the past but have been sectioned off into their own thing.&lt;/p&gt;
&lt;p&gt;Anyway, we need them. Usually use the latest version, but sometimes if you&amp;rsquo;re targeting specific platforms eg older ones, errors may indicate that you need an older version.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdkmanager &lt;span class=&#34;s1&#34;&gt;&amp;#39;build-tools;33.0.2&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Intro</title>
      <link>https://mm-dev.rocks/posts/flutter-in-the-terminal/intro/</link>
      <pubDate>Thu, 08 Aug 2024 17:47:29 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/flutter-in-the-terminal/intro/</guid>
      <description>&lt;p&gt;Given the choice, I&amp;rsquo;d rather avoid huge complex apps like Android Studio. They use a lot of system resources and are very GUI/point-and-clicky. Those things definitely have their place but I prefer keyboard control where it makes sense, and for me programming in Flutter is one of those situations.&lt;/p&gt;
&lt;p&gt;A lot of what Android Studio does behind the scenes is automatically editing text files and running shell commands such as &lt;code&gt;flutter run&lt;/code&gt;, &lt;code&gt;flutter build&lt;/code&gt; and so on. If you&amp;rsquo;re comfortable with the terminal these commands are fairly simple to run manually.&lt;/p&gt;
&lt;p&gt;As an IDE Android Studio also helps with stuff like syntax highlighting, code completion, refactoring etc. If you&amp;rsquo;re into Vim it can be set up to give you these pleasantries. I&amp;rsquo;m sure there is stuff Android Studio can do that Vim can&amp;rsquo;t, but whatever it is I&amp;rsquo;m not missing it and I feel good when I use Vim.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve set up a couple of systems with this Flutter dev environment recently and hit some stumbling blocks. They weren&amp;rsquo;t too hard to resolve but I wanted to write up the process for future reference and to help anybody else in a similar situation.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>The Bad Parts</title>
      <link>https://mm-dev.rocks/posts/android-as-a-dev-environment/the-bad-parts/</link>
      <pubDate>Fri, 05 Apr 2024 11:44:43 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/android-as-a-dev-environment/the-bad-parts/</guid>
      <description>&lt;h3 id=&#34;the-low-memory-killer-daemon---official-docs&#34;&gt;The Low Memory Killer Daemon - &lt;a href = &#34;https://source.android.com/docs/core/perf/lmkd&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Official Docs&lt;/a&gt;.&lt;/h3&gt;
&lt;p&gt;This feature of modern Android versions kills tasks (/apps) when it thinks they are causing memory-related performance problems. It can feel pretty heavy-handed, with apps abruptly closing at seemingly random intervals.&lt;/p&gt;
&lt;p&gt;In practice this can irritate but I&amp;rsquo;ve never lost any work because of it. The most noticeable occurrence is when &lt;em&gt;Termux:X11&lt;/em&gt; closes &amp;mdash; my Linux desktop suddenly shuts down! Sounds terrible But actually my Vim buffers are constantly auto-saved, my browser tabs are stored&amp;hellip; I just have to restart the session, then &lt;em&gt;Tmux&lt;/em&gt;, then maybe a couple of other items. I&amp;rsquo;m back up and running in 1-2 minutes, and this problem might occur once or twice per week at the most.&lt;/p&gt;
&lt;p&gt;There are various ways to tweak the daemon though, search for terms like &amp;lsquo;disable android oom killer&amp;rsquo;, &amp;rsquo;tweak low memory killer daemon android&amp;rsquo; etc.&lt;/p&gt;
&lt;h3 id=&#34;missing-tools-for-arm-architecture&#34;&gt;Missing Tools for ARM Architecture&lt;/h3&gt;
&lt;p&gt;As the types of CPU in Android devices (usually ARM) are not the same as those used in laptops/desktops (usually X86), the standard desktop versions of software can&amp;rsquo;t be installed and compatible versions must be available (unless you want to compile them yourself).&lt;/p&gt;
&lt;p&gt;This isn&amp;rsquo;t as bad as it sounds as the package manager for whichever distro you use will automatically pull in the correct version for your CPU architecture. Some software might be missing though.&lt;/p&gt;
&lt;p&gt;A couple of specific gaps in the system affect me:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Garmin Monkey C&lt;br&gt;
&lt;em&gt;Garmin apps are written in their own language &amp;lsquo;Monkey C&amp;rsquo;, which has to use their own Java-based compiler and device simulator. As far as I can tell this isn&amp;rsquo;t happening on ARM. It was hard enough to get it working on Linux and Vim as they presume Windows/VSCode in their tutorials, so once I achieved that I didn&amp;rsquo;t take it any further.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Flutter cross-compilation&lt;br&gt;
&lt;em&gt;The situation with Flutter is strange. Flutter is used to make multi-platform apps, so the same code can output apps for Linux, Android, Windows etc. I can build a Linux (ARM64) binary on my Android Ubuntu&amp;hellip; and I can build an Android binary on my (normal, X86 desktop) Linux. But I can&amp;rsquo;t build an Android binary from Android. Apparently people were able to do this on older versions of Flutter, so it seems like Google (who control Flutter) intentionally stopped supporting it.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;fingers-crossed&#34;&gt;Fingers crossed!&lt;/h3&gt;
&lt;p&gt;Mine is a niche use-case and I understand that I can&amp;rsquo;t expect organisations to support such a tiny minority as ARM Linux. Apple&amp;rsquo;s M1/M2/M3 ARM chips are doing very well, which is great if you&amp;rsquo;re into that but I don&amp;rsquo;t enjoy their ecosystem.&lt;/p&gt;
&lt;p&gt;So for now I need to hang on to my X86 desktop. But I hope ARM continues to gain recognition as more than a mobile phone CPU and can be used for more development tasks in future.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Software</title>
      <link>https://mm-dev.rocks/posts/android-as-a-dev-environment/software/</link>
      <pubDate>Fri, 05 Apr 2024 11:44:41 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/android-as-a-dev-environment/software/</guid>
      <description>&lt;p&gt;&lt;em&gt;Although this is all in relation to working on Android, the software I use is generally the same as if I was on a Linux desktop. That&amp;rsquo;s kind of the point, nowadays I can use almost the same environment on Android as I can on my desktop.&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&#34;termux&#34;&gt;Termux&lt;/h3&gt;
&lt;p&gt;&lt;a href = &#34;https://termux.dev/en/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Termux&lt;/a&gt; is a brilliant free terminal app and Linux environment for Android. It has most of the Linux commands I need and I can install &lt;em&gt;git&lt;/em&gt;, &lt;em&gt;Vim&lt;/em&gt;, &lt;em&gt;Tmux&lt;/em&gt;, &lt;em&gt;mutt&lt;/em&gt;, &lt;em&gt;ImageMagick&lt;/em&gt;  and the majority of the terminal software I like to use. For certain jobs such as scripting, SSH sessions and writing, this is all I need.&lt;/p&gt;
&lt;p&gt;Termux can run non-terminal, graphical apps too, but you won&amp;rsquo;t be able to see them. That&amp;rsquo;s what the next app is for.&lt;/p&gt;
&lt;h3 id=&#34;termuxx11&#34;&gt;Termux:X11&lt;/h3&gt;
&lt;p&gt;&lt;a href = &#34;https://github.com/termux/termux-x11&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;This amazingly useful app&lt;/a&gt; describes itself as being in early development, but I&amp;rsquo;ve been daily-driving it for months without significant issues.&lt;/p&gt;
&lt;p&gt;Termux:X11 is an X Server for Termux. This allows you to install graphical Linux apps, as long as they are available for your system architecture (ie AArch64 &amp;mdash; or ARM64 as it&amp;rsquo;s known &amp;mdash; for most modern Android devices).&lt;/p&gt;
&lt;p&gt;This means I can run, directly on my tablet:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Desktop &lt;em&gt;Firefox&lt;/em&gt; (so, full developer tools)&lt;/li&gt;
&lt;li&gt;Desktop &lt;em&gt;Chromium&lt;/em&gt; (this was quite hard to get installed and isn&amp;rsquo;t the absolute latest version but is still very useful for development)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Krita&lt;/em&gt;/&lt;em&gt;Inkscape&lt;/em&gt;/&lt;em&gt;GIMP&lt;/em&gt; for image processing&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Thunar&lt;/em&gt; file manager&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Audacity&lt;/em&gt; (using &lt;em&gt;PulseAudio&lt;/em&gt; over the network to pipe the audio up to Android by using the devices own IP address&amp;hellip; I&amp;rsquo;m sure this creates some delay/latency but I&amp;rsquo;ve not noticed it in practice and for my typical usage of minor adjustments to audio files it works well)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;proot-distro&#34;&gt;PRoot Distro&lt;/h3&gt;
&lt;p&gt;This is a &amp;lsquo;container environment manager&amp;rsquo; and allows you to easily install, uninstall, backup and restore Linux distributions, alongside/on-top-of Android, sharing the kernel.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s really simple to use, eg installing Debian Linux is a matter of opening &lt;em&gt;Termux&lt;/em&gt; and entering:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;proot-distro install debian
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then for a shell login:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;proot-distro login debian
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;PRoot Distro &lt;a href = &#34;https://github.com/termux/proot-distro&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;provides a nice choice of distros&lt;/a&gt; including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Alpine Linux (edge)&lt;/li&gt;
&lt;li&gt;Arch Linux ARM&lt;/li&gt;
&lt;li&gt;Artix Linux (AArch64 only)&lt;/li&gt;
&lt;li&gt;Debian (stable)&lt;/li&gt;
&lt;li&gt;Fedora 38 (AArch64 only)&lt;/li&gt;
&lt;li&gt;Manjaro (AArch64 only)&lt;/li&gt;
&lt;li&gt;OpenSUSE (Tumbleweed)&lt;/li&gt;
&lt;li&gt;Pardus (yirmibir)&lt;/li&gt;
&lt;li&gt;Ubuntu (23.10)&lt;/li&gt;
&lt;li&gt;Void Linux&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can install as many distros as you want and swap between them easily. Each distro just sits in a directory on the Android device. Using the backup tools the entire system can be bundled up as a single archive file and moved over to another Android device.&lt;/p&gt;
&lt;h2 id=&#34;window-management&#34;&gt;Window Management&lt;/h2&gt;
&lt;p&gt;I believe that the best user interface (actually, interface of any kind) is one that I don&amp;rsquo;t even notice exists. It doesn&amp;rsquo;t shout at me, it doesn&amp;rsquo;t wow me with animations and eye-candy. It allows me to get to the tools I need to get the job done and stay immersed in the task. It is at peace with itself enough to take a back seat and not demand attention. It is, conceptually, transparent.&lt;/p&gt;
&lt;p&gt;A lot of people like the gestural UI featured in &amp;lsquo;Minority Report&amp;rsquo;. I like the film, and the scene with Tom Cruise manipulating the UI is well produced and fun to watch. But as a UI it&amp;rsquo;s terrible! Hugely inefficient with all those big sweeping hand gestures, it&amp;rsquo;s not quick or practical. I don&amp;rsquo;t want to have to perform interpretive dance to use my computer (nor watch my computer doing little performances when I&amp;rsquo;m trying to get stuff done).&lt;/p&gt;
&lt;p&gt;I found similar sentiment in this &lt;a href = &#34;https://daringfireball.net/2024/01/the_vision_pro&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Daring Fireball article about the Apple Vision Pro&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;To me the Macintosh has always felt more like a place than a thing. Not a place I go physically, but a place my mind goes intellectually. When I’m working or playing and in the flow, it has always felt like MacOS is where I am. I’m in the Mac.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Interruptions — say, the doorbell or my phone ringing — are momentarily disorienting when I’m in the flow on the Mac, because I’m pulled out of that world and into the physical one.&amp;rdquo;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I am nearly exactly like this too, except I don&amp;rsquo;t want to feel like I&amp;rsquo;m &amp;ldquo;in the Linux&amp;rdquo; (and definitely not &amp;ldquo;in the Mac&amp;rdquo; or &amp;ldquo;in Windows&amp;rdquo;!). I don&amp;rsquo;t want to be aware of that layer of abstraction at all. I don&amp;rsquo;t mind feeling that I&amp;rsquo;m &amp;ldquo;in Vim&amp;rdquo;, but really I want to be &amp;ldquo;in the code&amp;rdquo; that I&amp;rsquo;m editing. I specifically don&amp;rsquo;t want to feel the manicured claw of a corporate behemoth like Apple or Microsoft on my shoulder&amp;hellip; but that&amp;rsquo;s just me.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;d rather forget that my OS(/window manager) exists. It&amp;rsquo;s a facilitator, not an end in itself.&lt;/p&gt;
&lt;h3 id=&#34;dwm-tiling-window-manager&#34;&gt;DWM: Tiling Window Manager&lt;/h3&gt;
&lt;p&gt;I used to prefer larger screens and multiple monitors. I knew about the concept of workspaces but they sounded annoying and fiddly. It took me a long time to give them a chance and it happened accidentally, as a side-effect of trying a tiling window manager.&lt;/p&gt;
&lt;p&gt;Very briefly, a tiling window manager organises your windows into tiles, meaning instead of having oddly-sized overlapping windows floating around making a confusing mess of your screen and using space inefficiently, your screen splits into fractions, each being filled by an app. If you have too many apps on the screen they can go onto other screens, or &amp;lsquo;workspaces&amp;rsquo;. Personally I tend to run most apps fullscreen most of the time, switching between them with keyboard shortcuts.&lt;/p&gt;
&lt;p&gt;I started with &lt;a href = &#34;https://i3wm.org/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;i3 Window Manager&lt;/a&gt;, which is a really nice piece of software. After a few years of using it though I realised I didn&amp;rsquo;t use most of its features, so landed on the very minimal &lt;a href = &#34;https://dwm.suckless.org/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Suckless Tools DWM&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With workspaces, each app can have its own screen and can be accessed instantly via a keyboard shortcut. With familiarity this becomes a chord in muscle memory, a hand-shape to mash at keyboard. I have habits for where I keep each app, so eg my terminal is in workspace 1 so &lt;code&gt;[Alt]+[1]&lt;/code&gt; puts me in the terminal. &lt;code&gt;[Alt]+[9]&lt;/code&gt; puts me in FireFox and so on.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve &lt;code&gt;[Alt]+[Tab]&lt;/code&gt;bed through apps in the past. Workspaces are similar except you know the keyboard chord will take you directly to the app you want, you don&amp;rsquo;t have to play &amp;lsquo;stop the magical app carousel at the right time&amp;rsquo;&amp;hellip; which may be a drawback for some I guess, as carousels can be fun.&lt;/p&gt;
&lt;p&gt;We can only focus on one thing at a time, that&amp;rsquo;s how attention works. I can see some uses for multiple screens eg if you have to monitor lots of things, like real-time charts or meters. In that case your peripheral vision is good at detecting change/motion so you can make use of all the space. But personally I&amp;rsquo;m completely over large/multiple displays. In my circumstances, they waste power, waste space, and are just not necessary.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Hardware</title>
      <link>https://mm-dev.rocks/posts/android-as-a-dev-environment/hardware/</link>
      <pubDate>Fri, 05 Apr 2024 11:44:40 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/android-as-a-dev-environment/hardware/</guid>
      <description>&lt;h2 id=&#34;hardware&#34;&gt;Hardware&lt;/h2&gt;
&lt;p&gt;My favourite and most commonly-used device is my Samsung Tab S8 Ultra:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;14.6&amp;quot; OLED display&lt;/li&gt;
&lt;li&gt;2960x1848 resolution&lt;/li&gt;
&lt;li&gt;16:10 aspect ratio&lt;/li&gt;
&lt;li&gt;8-core, 4nm processor&lt;/li&gt;
&lt;li&gt;8GB RAM&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The OLED (&lt;a href = &#34;https://mm-dev.rocks/posts/oled-and-eink-4-life/intro/&#34; title = &#34;OLED and E-Ink&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;my favourite display tech along side e-ink&lt;/a&gt;) screen is gorgeous. Black is really black and running everything in dark OLED (black) UI modes gets a little more out of the battery too.&lt;/p&gt;
&lt;p&gt;This tablet is roughly on par with average modern laptops in terms of power, but has some advantages for me.&lt;/p&gt;
&lt;h3 id=&#34;ergonomics&#34;&gt;Ergonomics&lt;/h3&gt;
&lt;p&gt;This is the main reason I generally prefer a tablet over a laptop. With a laptop
&lt;em&gt;the screen is attached to the keyboard&lt;/em&gt;, meaning:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The display is always too low, so&amp;hellip;&lt;/li&gt;
&lt;li&gt;you hunch over&amp;hellip;&lt;/li&gt;
&lt;li&gt;which is bad for your back, and&amp;hellip;&lt;/li&gt;
&lt;li&gt;&amp;hellip;affects your breathing, as&amp;hellip;
&lt;ul&gt;
&lt;li&gt;your shoulders turn inwards and compress your chest cavity, so&amp;hellip;&lt;/li&gt;
&lt;li&gt;your breaths will be shorter and more shallow&amp;hellip;&lt;/li&gt;
&lt;li&gt;increasing a tendency towards feeling stressed or anxious&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This may seem over-the-top, but we programmers spend a lot of time sitting at our machines. There&amp;rsquo;s no such thing as a good position to sit in all day, our bodies expect and require movement (I certainly need a lot more) &amp;mdash; but some positions are better than others.&lt;/p&gt;
&lt;p&gt;Another benefit of using portable/mobile devices for work is that you aren&amp;rsquo;t chained to a desk, so can move around to different seating positions throughout the day. As a self-contained unit a laptop is good for this too, but you&amp;rsquo;re still stuck with the screen and keyboard being attached to one another.&lt;/p&gt;
&lt;p&gt;I attach the tablet to a monitor arm so I can position it at a good height (ie with the top of the screen being just below eye level). But if I want to spend some time in a different position, I have a simple tablet stand which folds flat (so takes up very little storage space) and can easily be placed on top of books or boxes to elevate my tablet.
&lt;ul class=&#39;gallery&#39;&gt;&lt;li&gt;
      &lt;input type=&#39;checkbox&#39; id=&#39;item_ysCd_1&#39; /&gt;
      &lt;label for=&#39;item_ysCd_1&#39; aria-label=&#39;Expand image&#39; tabindex=&#39;0&#39;&gt;&lt;img src=&#39;https://mm-dev.rocks/images/working-env/tablet-arms.jpg&#39; alt=&#39;Tablet arms&#39; /&gt;
        &lt;span&gt;Tablet arms&lt;/span&gt;&lt;/label&gt;
    &lt;/li&gt;&lt;li&gt;
      &lt;input type=&#39;checkbox&#39; id=&#39;item_ysCd_2&#39; /&gt;
      &lt;label for=&#39;item_ysCd_2&#39; aria-label=&#39;Expand image&#39; tabindex=&#39;0&#39;&gt;&lt;img src=&#39;https://mm-dev.rocks/images/working-env/foldable-tablet-stand.jpg&#39; alt=&#39;Foldable tablet stand&#39; /&gt;
        &lt;span&gt;Foldable tablet stand&lt;/span&gt;&lt;/label&gt;
    &lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;
&lt;h3 id=&#34;choice-of-input-devices&#34;&gt;Choice of Input Devices&lt;/h3&gt;
&lt;p&gt;In the past I&amp;rsquo;ve preferred ThinkPads for their great keyboards and little red &lt;a href = &#34;https://en.wikipedia.org/wiki/Pointing_stick&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;TrackPoint&lt;/a&gt; pointing devices &amp;mdash; I have an old but lovely &lt;a href = &#34;https://www.thinkwiki.org/wiki/Category:X230&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;X230&lt;/a&gt; for when I do feel the need for a laptop.&lt;/p&gt;
&lt;p&gt;Nowadays though, my favourite combo is a mechanical keyboard and trackball (the &amp;lsquo;fingers on top&amp;rsquo; type of trackball suits me better than the &amp;rsquo;thumb at the side&amp;rsquo; type).&lt;/p&gt;
&lt;p&gt;Of course these devices can be attached to laptops too, but then the laptop&amp;rsquo;s own keyboard and pointing device are just sitting there doing nothing. Laptops are good for travelling but for me sitting at home they&amp;rsquo;re a waste.&lt;/p&gt;
&lt;p&gt;They used to make TVs with DVD players built-in, and common advice was that it wasn&amp;rsquo;t a wise buy, as if the DVD player stopped working you just had a wasted lump of electronics attached to your TV. I feel like this about laptops.&lt;/p&gt;
&lt;h4 id=&#34;ergodox-mechanical-keyboard&#34;&gt;Ergodox Mechanical Keyboard&lt;/h4&gt;
&lt;p&gt;I like to use an &lt;a href = &#34;https://www.ergodox.io/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Ergodox mechanical keyboard&lt;/a&gt; which I built myself from a kit and maintain (due to my terrible soldering joints regularly failing). This is a split keyboard, meaning it comes in 2 halves which can be positioned with a gap in the middle, allowing me to keep my arms a comfortable distance apart and avoid the hunching and bad posture. The keyboard is also programmable via the open source firmware &lt;a href = &#34;https://qmk.fm/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;QMK&lt;/a&gt; (great project btw).&lt;/p&gt;
&lt;p&gt;As time goes by I am gradually removing keys from my layout and moving towards a layers/chording method of typing, meaning you have fewer keys and use more key combos. I&amp;rsquo;m ultimately aiming for a 40% layout (which vaguely means 40% of the number of keys on a normal keyboard). Fewer keys means fewer hand contortions and stretching fingers to fewer awkward positions, plus it makes the hardware smaller. Once I&amp;rsquo;m comfortable with that smaller number of keys I&amp;rsquo;ll build myself a Bluetooth LE &lt;a href = &#34;https://github.com/pierrechevalier83/ferris&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Ferris keyboard&lt;/a&gt; or something similar.&lt;/p&gt;
&lt;p&gt;My Ergodox is a wired USB version but I use it over Bluetooth via a &lt;a href = &#34;http://handheldsci.com/kb/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;BT500 Bluetooth adapter&lt;/a&gt; which converts any USB keyboard/mouse into Bluetooth. The BT500 is quite expensive for what it is (about $40) but I doubt they sell huge numbers of them so probably don&amp;rsquo;t have the economies of scale to make them cheaper. I had to order from the USA and wait a while to get it, but it&amp;rsquo;s a pretty cool and useful device.&lt;/p&gt;
&lt;h4 id=&#34;deft-pro-trackball&#34;&gt;Deft PRO Trackball&lt;/h4&gt;
&lt;p&gt;My trackball is a &lt;a href = &#34;https://elecomusa.com/products/b07c9t4ttw&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;DEFT Pro&lt;/a&gt;. It works well for my purposes and feels comfortable enough. I try to use the keyboard instead of the pointer as much as possible but sometimes a mouse/trackball is needed, eg when editing images.&lt;/p&gt;
&lt;h3 id=&#34;power-management&#34;&gt;Power Management&lt;/h3&gt;
&lt;p&gt;Android/mobile devices treat this as an important feature whereas laptops don&amp;rsquo;t always take enough care over it, especially with Linux (where power management isn&amp;rsquo;t always the best, partly because device manufacturers don&amp;rsquo;t work as closely with Linux as they do Microsoft). This isn&amp;rsquo;t true for all laptops though, and things seem to be improving.&lt;/p&gt;
&lt;p&gt;Most Android devices use ARM CPUs, which give strong performance for relatively low power usage.&lt;/p&gt;
&lt;p&gt;I admit that Windows and MacOS tend to be better-tuned for power efficiency, but if I had to use those OSes I&amp;rsquo;d be wishing for my battery to die, just so I could stop. So, swings and roundabouts.&lt;/p&gt;
&lt;h3 id=&#34;adaptable-and-easy-to-store&#34;&gt;Adaptable and Easy to Store&lt;/h3&gt;
&lt;p&gt;I can be writing code one minute and very quickly change to watching a film or casual web browsing handheld mode the next.&lt;/p&gt;
&lt;p&gt;As I&amp;rsquo;m often relying entirely on solar power for my electricity, being able to minimise the number of devices I need to keep charged up is a real benefit for me.&lt;/p&gt;
&lt;p&gt;Also, living in a small space, tablets are flat and thin &amp;mdash; so very efficient in terms of storage. Several can be stacked up on top of each other and take up no more space than a large book.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Intro</title>
      <link>https://mm-dev.rocks/posts/android-as-a-dev-environment/intro/</link>
      <pubDate>Fri, 05 Apr 2024 11:44:38 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/android-as-a-dev-environment/intro/</guid>
      <description>&lt;p&gt;I get a lot of my development work done on Android devices. That usually means a large tablet, but it&amp;rsquo;s not impossible to get work done on smaller tablets or even phones (although the smaller you go, the harder it is to maintain ergonomics and practicality).&lt;/p&gt;
&lt;p&gt;With &lt;em&gt;Termux&lt;/em&gt;/&lt;em&gt;PRoot Distro&lt;/em&gt;/&lt;em&gt;Termux:X11&lt;/em&gt; (explained below) I can run all of my most-used Linux apps just like I was sitting at a desktop, silently (ie no fans) and efficiently.&lt;/p&gt;
&lt;p&gt;Performance on my S8 Ultra tablet is great &amp;mdash; not as fast as the latest most powerful laptops but perfectly comfortable for my usage patterns.&lt;/p&gt;
&lt;p&gt;A shortcut to a simple Termux script means I can tap an icon on my Android home screen and boot into the beautiful emptiness of an Ubuntu DWM session in about 5 seconds.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Android Bluetooth Keyboard Mapping</title>
      <link>https://mm-dev.rocks/posts/android-bluetooth-keyboard-mapping/</link>
      <pubDate>Thu, 08 Feb 2024 12:05:30 +0000</pubDate>
      <guid>https://mm-dev.rocks/posts/android-bluetooth-keyboard-mapping/</guid>
      <description>&lt;p&gt;I use Bluetooth keyboards with Android a lot, and often want to remap keys (eg swapping &lt;code&gt;CAPS_LOCK&lt;/code&gt; to &lt;code&gt;CTRL_LEFT&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Maybe it&amp;rsquo;s a failing in my search technique or I&amp;rsquo;m doing something that nobody else does nowadays, but whenever I search for info about this I find really old articles with out-of-date info, or just links to apps. To be fair &lt;a href = &#34;https://f-droid.org/packages/io.github.sds100.keymapper/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Key Mapper&lt;/a&gt; is good and I do use it, but sometimes I just want to be able to do it at a system level without requiring extra apps.&lt;/p&gt;
&lt;p&gt;To remap keys in Android, you need to edit a particular keylayout &lt;code&gt;*.kl&lt;/code&gt; file, specific to the device (eg Bluetooth keyboard) you want to re-map. The files have names like &lt;code&gt;Vendor_04e8.kl&lt;/code&gt;. The name is derived from various properties of the device, such as vendor ID, product ID and other things &lt;a href = &#34;https://source.android.com/docs/core/interaction/input/key-layout-files&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;as explained here in the Android docs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The sticking point for me, for &lt;em&gt;ages&lt;/em&gt;, was that I had trouble finding the vendor and product codes and, consequently, the correct file to edit. In Linux I&amp;rsquo;d use &lt;code&gt;lsusb&lt;/code&gt; or &lt;code&gt;bluetoothctl&lt;/code&gt; or something like that, but on Android even in the wonderful &lt;a href = &#34;https://termux.dev/en/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;Termux&lt;/a&gt;, these things don&amp;rsquo;t work properly for reasons I haven&amp;rsquo;t completely wrapped my head around, related to security and/or the way Android and its underlying Linux kernel inter-relate.&lt;/p&gt;
&lt;h2 id=&#34;problem-1-finding-which-keylayout-file-needs-to-be-edited&#34;&gt;Problem 1: Finding which keylayout file needs to be edited&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;In Termux or whichever shell/terminal you use, do &lt;code&gt;su&lt;/code&gt; to log in as superuser&lt;/li&gt;
&lt;li&gt;Do &lt;code&gt;dumpsys&lt;/code&gt; and wait for it to finish. It can take a while (couple of minutes on some of my devices)&amp;hellip;&lt;br&gt;
&lt;em&gt;If I don&amp;rsquo;t do this step, on some devices the next step doesn&amp;rsquo;t work&amp;hellip; I hate this kind of situation as I have no idea why this should work and it feels nonsensical, but all I know is it fixed the problem when I encountered it.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Do &lt;code&gt;dumpsys input&lt;/code&gt; to narrow the output&lt;br&gt;
&lt;em&gt;Even this input-specific command outputs quite a lot. I tend to just take my time and scroll through it, but you can make it easier by trying something like:&lt;/em&gt;&lt;br&gt;
&lt;code&gt;dumpsys input | grep -i -A12 bluetooth&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;-i&lt;/code&gt; means case-insensitive&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;-A12&lt;/code&gt; means &lt;em&gt;show the matching line plus the &lt;code&gt;12&lt;/code&gt; lines &lt;code&gt;A&lt;/code&gt;fter it&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;You may want to tweak the number but for me 12 was good&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In the output, look for a description for your device (mine is &lt;code&gt;Device 45: Bluetooth 3.0 Keyboard&lt;/code&gt;), and soon after that you&amp;rsquo;ll find a line like &lt;code&gt;KeyLayoutFile: /system/usr/keylayout/Vendor_04e8.kl&lt;/code&gt; &amp;mdash; that&amp;rsquo;s the &lt;code&gt;*.kl&lt;/code&gt; file you need to edit to remap your keyboard&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;problem-2-editing-system-files-on-modern-android&#34;&gt;Problem 2: Editing system files on modern Android&lt;/h2&gt;
&lt;p&gt;On modern versions of Android, even if you have root, it&amp;rsquo;s not possible to directly edit files in the &lt;code&gt;/system/&lt;/code&gt; directory (it is mounted as read-only).&lt;/p&gt;
&lt;p&gt;The way around this is to &lt;a href = &#34;https://topjohnwu.github.io/Magisk/guides.html#magisk-modules&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;make a Magisk module&lt;/a&gt;. This is simpler than it might sound. The basic idea is that you create a folder in &lt;code&gt;/data/adb/modules&lt;/code&gt;, (eg in my case I use &lt;code&gt;mm&lt;/code&gt;, so &lt;code&gt;/data/adb/modules/mm/&lt;/code&gt;). Inside that folder, you can create files and folders which Magisk will overlay onto the system at boot time, eg:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/data/adb/modules/mm/system/usr
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# becomes&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/system/usr
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/data/adb/modules/mm/system/usr/keylayout/Vendor_04e8.kl
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# becomes&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/system/usr/keylayout/Vendor_04e8.kl
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now you can edit the keylayout file to make your changes, eg to change &lt;code&gt;CAPS_LOCK&lt;/code&gt; to &lt;code&gt;CTRL_LEFT&lt;/code&gt; on my keyboard it&amp;rsquo;s:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# key 58    CAPS_LOCK&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;key &lt;span class=&#34;m&#34;&gt;58&lt;/span&gt;    CTRL_LEFT
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;other-apps-which-might-be-useful&#34;&gt;Other apps which might be useful&lt;/h2&gt;
&lt;p&gt;Depending on your Android device and software version, it can be difficult/confusing to find the right key codes. I find that one or another of the apps below usually gets me what I need:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href = &#34;https://apkpure.net/hardware-keyboard-check/com.darkoak.android.hardwarekeyboardcheck&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;HardwareKeyboardCheck by Mr. Greenheart&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href = &#34;https://apkpure.net/key-tester/com.flossga.android.whichbutton&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;WhichButton aka Key Tester by FLOSS AG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item>
      <title>BendyStraw (Android App)</title>
      <link>https://mm-dev.rocks/posts/bendystraw-android-app/</link>
      <pubDate>Tue, 10 Oct 2023 13:17:20 +0100</pubDate>
      <guid>https://mm-dev.rocks/posts/bendystraw-android-app/</guid>
      <description>&lt;p&gt;If you don&amp;rsquo;t already know, &lt;a href = &#34;https://newpipe.net/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;NewPipe&lt;/a&gt; is a privacy-friendly, ad-free Android app for accessing YouTube. It&amp;rsquo;s a great piece of software and I use it all the time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NewPipe&lt;/strong&gt; works without an account. You can subscribe to channels, save playlists and do other useful things, but everything is saved locally on your device (and I love that it works like this).&lt;/p&gt;
&lt;p&gt;I use &lt;strong&gt;NewPipe&lt;/strong&gt; on several Android devices. Over time I&amp;rsquo;ve ended up with different playlists and subscriptions on each device, and sometimes I can&amp;rsquo;t be sure which device I need to use to find a certain song or video. To help with this I made &lt;strong&gt;BendyStraw&lt;/strong&gt;.&lt;/p&gt;
&lt;ul class=&#39;gallery&#39;&gt;&lt;li&gt;
      &lt;input type=&#39;checkbox&#39; id=&#39;item_OIkr_1&#39; /&gt;
      &lt;label for=&#39;item_OIkr_1&#39; aria-label=&#39;Expand image&#39; tabindex=&#39;0&#39;&gt;&lt;img src=&#39;https://mm-dev.rocks/images/bendy-straw/bendystraw-grab-3.webp&#39; alt=&#39;Multiple databases in colour-coded tabs&#39; /&gt;
        &lt;span&gt;Multiple databases in colour-coded tabs&lt;/span&gt;&lt;/label&gt;
    &lt;/li&gt;&lt;li&gt;
      &lt;input type=&#39;checkbox&#39; id=&#39;item_OIkr_2&#39; /&gt;
      &lt;label for=&#39;item_OIkr_2&#39; aria-label=&#39;Expand image&#39; tabindex=&#39;0&#39;&gt;&lt;img src=&#39;https://mm-dev.rocks/images/bendy-straw/bendystraw-grab-1.webp&#39; alt=&#39;Copy streams from one playlist to another&#39; /&gt;
        &lt;span&gt;Copy streams from one playlist to another&lt;/span&gt;&lt;/label&gt;
    &lt;/li&gt;&lt;li&gt;
      &lt;input type=&#39;checkbox&#39; id=&#39;item_OIkr_3&#39; /&gt;
      &lt;label for=&#39;item_OIkr_3&#39; aria-label=&#39;Expand image&#39; tabindex=&#39;0&#39;&gt;&lt;img src=&#39;https://mm-dev.rocks/images/bendy-straw/bendystraw-grab-2.webp&#39; alt=&#39;Selecting streams to delete, copy or move&#39; /&gt;
        &lt;span&gt;Selecting streams to delete, copy or move&lt;/span&gt;&lt;/label&gt;
    &lt;/li&gt;&lt;li&gt;
      &lt;input type=&#39;checkbox&#39; id=&#39;item_OIkr_4&#39; /&gt;
      &lt;label for=&#39;item_OIkr_4&#39; aria-label=&#39;Expand image&#39; tabindex=&#39;0&#39;&gt;&lt;img src=&#39;https://mm-dev.rocks/images/bendy-straw/bendystraw-grab-5.webp&#39; alt=&#39;Create new playlists&#39; /&gt;
        &lt;span&gt;Create new playlists&lt;/span&gt;&lt;/label&gt;
    &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;BendyStraw&lt;/strong&gt; imports &lt;code&gt;NewPipeData-*.zip&lt;/code&gt; files and lets you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open multiple &lt;code&gt;zip&lt;/code&gt;s at the same time, so you can combine data from several devices&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Delete&lt;/code&gt; &lt;code&gt;Copy&lt;/code&gt; &lt;code&gt;Move&lt;/code&gt; &lt;code&gt;Rename&lt;/code&gt; your custom playlists&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Delete&lt;/code&gt; &lt;code&gt;Copy&lt;/code&gt; &lt;code&gt;Move&lt;/code&gt; streams from one playlist to another&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Delete&lt;/code&gt; &lt;code&gt;Copy&lt;/code&gt; &lt;code&gt;Move&lt;/code&gt; channel subscriptions between databases&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Delete&lt;/code&gt; &lt;code&gt;Copy&lt;/code&gt; &lt;code&gt;Move&lt;/code&gt; remote (bookmarked) playlists&lt;/li&gt;
&lt;li&gt;Re-order playlists, sorting the streams by &lt;code&gt;Title&lt;/code&gt;, &lt;code&gt;Channel&lt;/code&gt; or &lt;code&gt;Length&lt;/code&gt; (just tap the column headings in the tables)&lt;/li&gt;
&lt;li&gt;Streams (audio/video) can be opened directly from &lt;strong&gt;BendyStraw&lt;/strong&gt;, as the URLs are clickable
&lt;ul&gt;
&lt;li&gt;If you set video links (in your Android settings) to open in &lt;strong&gt;NewPipe&lt;/strong&gt; you can make a split-screen view and jump around your playlists&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Export playlist as raw text, for example to be used with &lt;a href = &#34;https://github.com/yt-dlp/yt-dlp&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;yt-dlp&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Dark/light themes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After editing simply export a new &lt;code&gt;zip&lt;/code&gt; file, then import it back into &lt;strong&gt;NewPipe&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id=&#34;installation&#34;&gt;Installation&lt;/h2&gt;
&lt;h3 id=&#34;f-droid&#34;&gt;F-Droid&lt;/h3&gt;
&lt;p&gt;Search for &amp;lsquo;bendystraw&amp;rsquo; (all one word) in the F-Droid app, or find it at &lt;a href = &#34;https://f-droid.org/en/packages/rocks.mm_dev.BendyStraw/&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;https://f-droid.org/en/packages/rocks.mm_dev.BendyStraw/&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;direct-download&#34;&gt;Direct download&lt;/h3&gt;
&lt;p&gt;The apks are also directly available on the Codeberg &lt;a href = &#34;https://codeberg.org/mm-dev/bendy-straw/releases&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;releases page&lt;/a&gt;.&lt;/p&gt;






&lt;div class=&#34;expand-all-toggle&#34;&gt;
    &lt;label for=&#34;expandAllCheckbox_1ZU7&#34;&gt;&lt;h2 id=&#34;how-to-use&#34;&gt;How to Use&lt;/h2&gt;
&lt;span&gt;Expand all&lt;/span&gt;
      &lt;input id=&#34;expandAllCheckbox_1ZU7&#34; type=&#34;checkbox&#34; onchange=&#34;setChildExpandedStates_1ZU7();&#34;/&gt;
    &lt;/label&gt;
  
  &lt;script&gt;
    function setChildExpandedStates_1ZU7() {
      var checkbox_el = document.getElementById(&#39;expandAllCheckbox_1ZU7&#39;);
      var all = checkbox_el.parentNode.parentNode.getElementsByTagName(&#39;details&#39;);
      for (i = 0; i &lt; all.length; i++) { 
        all[i].open = checkbox_el.checked;
      }
    }
    window.addEventListener(&#39;load&#39;, () =&gt; {
      document.getElementById(&#39;expandAllCheckbox_1ZU7&#39;).parentNode.parentNode.classList.add(&#39;js-visible&#39;);
      setChildExpandedStates_1ZU7();
    });
  &lt;/script&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;1-export-your-database-from-newpipe&#34;&gt;1. Export your database from &lt;strong&gt;NewPipe&lt;/strong&gt;&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;NewPipe&lt;/strong&gt; tap &lt;code&gt;Settings&lt;/code&gt; &lt;code&gt;Backup and restore&lt;/code&gt; &lt;code&gt;Export database&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;This will create a file on your device with a name like &lt;code&gt;NewPipeData-2023-09-01.zip&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;2-import-it-into-bendystraw&#34;&gt;2. Import it into &lt;strong&gt;BendyStraw&lt;/strong&gt;&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;BendyStraw&lt;/strong&gt;, tap the button with the add/plus icon, and select the file you just exported&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/details&gt;


&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;3-edit-with-bendystraw&#34;&gt;3. Edit with &lt;strong&gt;BendyStraw&lt;/strong&gt;&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;Custom playlists have icons at the top which you can click to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Delete the playlist&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Copy the playlist&lt;/strong&gt; to another &lt;code&gt;zip&lt;/code&gt; (you need more than one &lt;code&gt;zip&lt;/code&gt; added to do this)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Export the playlist&lt;/strong&gt; as a plain text file, which for example can be used with &lt;a href = &#34;https://github.com/yt-dlp/yt-dlp&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;yt-dlp&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Tap on a playlist name to edit&lt;/strong&gt; it, and tap outside (or press return on the keyboard) to finish.&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;4-export-from-bendystraw&#34;&gt;4. Export from &lt;strong&gt;BendyStraw&lt;/strong&gt;&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;BendyStraw&lt;/strong&gt; tap the export button (the arrow icon on the bottom-right of the screen)&lt;/li&gt;
&lt;li&gt;This will create a new file named like the original but with &lt;code&gt;-bendy-straw&lt;/code&gt; at the end, so &lt;code&gt;NewPipeData.zip&lt;/code&gt; is saved as &lt;code&gt;NewPipeData-bendy-straw.zip&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;5-import-it-back-into-newpipe&#34;&gt;5. Import it back into &lt;strong&gt;NewPipe&lt;/strong&gt;&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;NewPipe&lt;/strong&gt; tap &lt;code&gt;Settings&lt;/code&gt; &lt;code&gt;Backup and restore&lt;/code&gt; &lt;code&gt;Import database&lt;/code&gt; and select the file you just saved&lt;/li&gt;
&lt;li&gt;After importing the database, &lt;strong&gt;NewPipe&lt;/strong&gt; will ask if you also want to import settings, if you&amp;rsquo;re not sure what this means just tap &amp;lsquo;cancel&amp;rsquo;, your current &lt;strong&gt;NewPipe&lt;/strong&gt; settings will remain unchanged&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/details&gt;


&lt;/div&gt;

&lt;h2 id=&#34;json-playlist-import&#34;&gt;JSON Playlist Import&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;BendyStraw&lt;/strong&gt; can import playlists from a JSON file. This is a new and basic feature which has some requirements and limitations.&lt;/p&gt;
&lt;h3 id=&#34;show-the-json-import-button&#34;&gt;Show the JSON Import Button&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;The button is hidden by default&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to the preferences screen (hamburger menu in top-right corner)&lt;/li&gt;
&lt;li&gt;Tick the &amp;lsquo;Show JSON Import Button&amp;rsquo; box&lt;/li&gt;
&lt;li&gt;Open at least 1 database&lt;br&gt;
&lt;em&gt;The button only shows when there is a database open, as it imports the JSON into the currently-opened database&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;limitations&#34;&gt;Limitations&lt;/h3&gt;
&lt;p&gt;We assume that all playlist entries are &lt;strong&gt;YouTube&lt;/strong&gt; streams.&lt;br&gt;
&lt;em&gt;Although &lt;strong&gt;NewPipe&lt;/strong&gt; is able to handle streams from other services too, for now this import feature is just for &lt;strong&gt;YouTube&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The JSON import format has been designed to prefer simplicity over richness of data. This comes with some pros and cons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Several stream attributes (eg &amp;lsquo;uploader URL&amp;rsquo;, &amp;lsquo;duration&amp;rsquo;, &amp;lsquo;upload date&amp;rsquo;, &amp;lsquo;view count&amp;rsquo;, &amp;rsquo;thumbnail&amp;rsquo;) are omitted initially&lt;/li&gt;
&lt;li&gt;After import into &lt;strong&gt;NewPipe&lt;/strong&gt;, before the playlist has been played, the above details (attributes) will be missing (so eg the thumbnail will just be a grey blank)&lt;/li&gt;
&lt;li&gt;The first time each stream is started, &lt;strong&gt;NewPipe&lt;/strong&gt; will grab the missing details for the stream and fill in the database&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;requirements&#34;&gt;Requirements&lt;/h3&gt;
&lt;p&gt;JSON playlists will be imported into whichever database is currently open in &lt;strong&gt;BendyStraw&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The general (pseudocode) schema is:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;PLAYLIST_NAME&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;ARRAY_OF_STREAMS&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;PLAYLIST_NAME&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;ARRAY_OF_STREAMS&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;err&#34;&gt;etc...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&#34;playlist_name&#34;&gt;&lt;code&gt;PLAYLIST_NAME&lt;/code&gt;&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Is expected to be unique (if it isn&amp;rsquo;t, identically-named lists will be combined into 1 playlist)&lt;/li&gt;
&lt;li&gt;If a playlist with exactly the same name already exists in the target database, entries from the JSON will be appended to that existing database&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;array_of_streams&#34;&gt;&lt;code&gt;ARRAY_OF_STREAMS&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Each stream must be an object with named properties as follows:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I use comments in this explanation but remember comments are not valid JSON &amp;mdash; do not include comments in your JSON&lt;/p&gt;&lt;/blockquote&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c1&#34;&gt;// These are required
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;stream_type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;VIDEO_STREAM&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;// or &amp;#39;AUDIO_STREAM&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;title&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Seasonal Affective Disorder&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/watch?v=3RJ5GftYT2c&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Hidden Valley Bushcraft&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;// Uploader/channel name,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c1&#34;&gt;// These below are optional. NewPipe will update them when the stream is loaded, so they only have meaning on first import before the playlist has been played.
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;c1&#34;&gt;// It&amp;#39;s probably better to omit them but they are allowed if you want to use them.
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader_url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/channel/UCB7BPYlL4f5j5R1Y7HUgeVg&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;// Uploader/channel URL 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;duration&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;120&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;// Length of stream in seconds 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;view_count&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;1273621&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;// Number of times the stream has been viewed on YouTube --- simple number ie no commas, abbreviations etc 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&#34;complete-example-json&#34;&gt;Complete Example JSON&lt;/h4&gt;
&lt;p&gt;Below is some complete sample JSON. If this was imported into a database in &lt;strong&gt;BendyStraw&lt;/strong&gt; it would do one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create 2 new playlists (&amp;ldquo;Tech Things&amp;rdquo; and &amp;ldquo;Good Songs&amp;rdquo;)&lt;/li&gt;
&lt;li&gt;Or (if playlists with those names already existed) then the streams would be appended to those existing playlists&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;Tech Things&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;stream_type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;VIDEO_STREAM&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;title&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Free software, free society: Richard Stallman at TEDxGeneva 2014&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/watch?v=Ag1AKIl_2GM&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;TEDx Talks&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader_url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/channel/UCsT0YIqwnpJCM-mx7-gSA4Q&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;stream_type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;VIDEO_STREAM&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;title&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Shenzhen: The Silicon Valley of Hardware (Full Documentary) | Future Cities&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/watch?v=SGJ5cZnoodY&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Wired UK&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader_url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/@wireduk&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;Good Songs&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;stream_type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;VIDEO_STREAM&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;title&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Aztec Camera - Somewhere In My Heart (Official Music Video)&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/watch?v=2w1Q8ZkXZ1Q&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;RHINO&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader_url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/channel/UCWEtnEiVwUy7mwFeshyAWLA&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;stream_type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;VIDEO_STREAM&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;title&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Imagine Dragons - Thunder&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/watch?v=fKopy74weus&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;ImagineDragonsVEVO&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader_url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/channel/UCpx_k19S2vUutWUUM9qmXEg&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;stream_type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;VIDEO_STREAM&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;title&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;𝑰𝒕&amp;#39;𝒔 𝑨 𝑯𝒆𝒂𝒓𝒕𝒂𝒄𝒉𝒆 -Bonnie Tyler (Cover by Yhuan) #gutomversion #hitback #goodvibestambayan #yhuan&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/watch?v=AQCm7VWyg-U&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Yhuan Official&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;uploader_url&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://www.youtube.com/channel/UCDxVjSFhfiPGispcK9o0qzw&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class=&#34;expand-all-toggle&#34;&gt;
    &lt;label for=&#34;expandAllCheckbox_fJI7&#34;&gt;&lt;h2 id=&#34;faq&#34;&gt;FAQ&lt;/h2&gt;
&lt;span&gt;Expand all&lt;/span&gt;
      &lt;input id=&#34;expandAllCheckbox_fJI7&#34; type=&#34;checkbox&#34; onchange=&#34;setChildExpandedStates_fJI7();&#34;/&gt;
    &lt;/label&gt;
  
  &lt;script&gt;
    function setChildExpandedStates_fJI7() {
      var checkbox_el = document.getElementById(&#39;expandAllCheckbox_fJI7&#39;);
      var all = checkbox_el.parentNode.parentNode.getElementsByTagName(&#39;details&#39;);
      for (i = 0; i &lt; all.length; i++) { 
        all[i].open = checkbox_el.checked;
      }
    }
    window.addEventListener(&#39;load&#39;, () =&gt; {
      document.getElementById(&#39;expandAllCheckbox_fJI7&#39;).parentNode.parentNode.classList.add(&#39;js-visible&#39;);
      setChildExpandedStates_fJI7();
    });
  &lt;/script&gt;


&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;whats-in-the-zip-files&#34;&gt;What&amp;rsquo;s in the &lt;code&gt;zip&lt;/code&gt; files?&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;&lt;strong&gt;NewPipe&lt;/strong&gt; exports a &lt;code&gt;zip&lt;/code&gt; file, containing 2 files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;newpipe.db&lt;/code&gt;: A database which has all the info &lt;strong&gt;BendyStraw&lt;/strong&gt; uses, such as your playlists and channel subscriptions, plus other things like your watch history&lt;/li&gt;
&lt;li&gt;&lt;code&gt;newpipe.settings&lt;/code&gt;: Your &lt;strong&gt;NewPipe&lt;/strong&gt; settings and preferences&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For simplicity &lt;strong&gt;BendyStraw&lt;/strong&gt; sometimes refers to the &lt;code&gt;zip&lt;/code&gt; file as the database, because that&amp;rsquo;s the file &lt;strong&gt;NewPipe&lt;/strong&gt; works with for imports/exports.&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;is-my-data-private&#34;&gt;Is my data private?&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
Yes! This is important to me as a developer. &lt;strong&gt;BendyStraw&lt;/strong&gt; only works with the tables in the database which it requires to let you do your editing. It doesn&amp;rsquo;t look into other things like your settings or watch history and it doesn&amp;rsquo;t send your data to any servers or share it with anybody. There&amp;rsquo;s no tracking and no adverts or anything like that.&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;what-happens-to-my-newpipe-settings&#34;&gt;What happens to my &lt;strong&gt;NewPipe&lt;/strong&gt; settings?&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;&lt;strong&gt;BendyStraw&lt;/strong&gt; doesn&amp;rsquo;t look inside them or change them.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you edit &lt;code&gt;zip&lt;/code&gt;s from multiple devices, or old/archived &lt;code&gt;zip&lt;/code&gt;s, be aware that your new &lt;code&gt;zip&lt;/code&gt; will have the settings from whichever original file you opened. &lt;em&gt;So be careful not to overwrite settings with an old version.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;When you import your new &lt;code&gt;zip&lt;/code&gt; into &lt;strong&gt;NewPipe&lt;/strong&gt; the simplest thing to do is just tap &amp;lsquo;cancel&amp;rsquo; when it asks if you want to also import settings.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;ive-opened-multiple-databases-but-dont-see-enough-tabs&#34;&gt;I&amp;rsquo;ve opened multiple databases but don&amp;rsquo;t see enough tabs&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;The tabs can scroll off the edge of the screen, swipe left/right on the tab bar to see any tabs which have overflowed.&lt;/p&gt;
&lt;p&gt;You can also swipe left or right on any blank area to switch tabs.&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;how-do-i-use-an-exported-text-playlist&#34;&gt;How do I use an exported text playlist?&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;If you have &lt;a href = &#34;https://github.com/yt-dlp/yt-dlp&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;yt-dlp&lt;/a&gt; installed, you can batch download all of the files from the playlist like so:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;BendyStraw&lt;/strong&gt; locate the playlist and tap the &amp;rsquo;export&amp;rsquo; button&lt;/li&gt;
&lt;li&gt;Check the dialog to see where the text file will be saved&lt;/li&gt;
&lt;li&gt;In your terminal run &lt;code&gt;yt-dlp --batch-file [path_to_text_file.txt]&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more info check out &lt;a href = &#34;https://github.com/yt-dlp/yt-dlp&#34; target = &#34;_blank&#34; rel = &#34;nofollow noopener noreferrer&#34;&gt;the yt-dlp github&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;can-i-export-an-m3u-playlist&#34;&gt;Can I export an M3U playlist?&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;I originally did build this functionality, only to find that links to eg YouTube streams no longer work in &lt;code&gt;m3u&lt;/code&gt; playlists. This is true for the players I tested and to the best of my knowledge.&lt;/p&gt;
&lt;p&gt;If I&amp;rsquo;m wrong about this, you have some other relevant info, or would like to see some other export format, please let me know.&lt;em class=&#34;star&#34;&gt;*&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;d be happy to revisit this if it&amp;rsquo;s useful.&lt;/p&gt;
&lt;p&gt;&lt;em class=&#34;star&#34;&gt;*&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;big-button&#34; href=&#34;mailto:hello@mm-dev.rocks&#34;&gt;&lt;a &gt;hello@mm-dev.rocks&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;


&lt;details&gt;
&lt;summary&gt;&lt;span&gt;&lt;h4 id=&#34;why-do-i-need-to-grant-all-files-access-permission-in-android-13&#34;&gt;Why do I need to grant &amp;lsquo;all files access&amp;rsquo; permission in Android 13?&lt;/h4&gt;
&lt;/span&gt;&lt;/summary&gt;

&lt;div&gt;
&lt;p&gt;&lt;strong&gt;BendyStraw&lt;/strong&gt; needs to work with files from a different app (&lt;strong&gt;NewPipe&lt;/strong&gt;). The way permissions have changed in Android 13 makes this complicated, as document files (ie non-media files such as &lt;code&gt;.zip&lt;/code&gt;) can only be read from and written to the directory belonging to the app that created them. The only simple way to keep the app easy to use is to ask for these permissions.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BendyStraw&lt;/strong&gt; has no interest in doing anything unexpected to your filesystem. The code is open source, so any developer can check to make sure that it only does what it says it does.&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;


&lt;/div&gt;

</description>
    </item>
    
  </channel>
</rss>
