• Skip to primary navigation
  • Skip to main content

Ravi Shankar

Lifelong Learner

  • About
  • Portfolio

Android

Add path variable in MacOS for flutter

By Ravi Shankar

Flutter commands can be executed from macOS terminal app after adding the path variable to installation of flutter directory on the local machine. You can set Path variable temporarily by executing the following command in the Terminal app or within the Terminal window inside Visual Studio Code

export PATH="$PATH:`pwd`[FLUTTER_INSTALLATION_DIRECTORY]/bin"

where FLUTTER_INSTALLATION_DIRECTORY represents the installtion of flutter SDK on your local macOS

Setting PATH variable permanently

Mac users having Catlina OS and above can follow the below mentioned steps for setting the PATH variable permanently.

  1. Launch Terminal App.
  2. type touch ~/.zshrc and press enter
  3. type vi ~/.zshrc
  4. add export PATH = $PATH[FLUTTER_INSTALLATION_DIRECTORY]/bin
  5. save the changes.
  6. Reload the changes by typing ~/.zshrc

Now you should be able to run all flutter commands using terminal app.

Moto G5 Plus – How to use OTG (USB On The Go)

By Ravi Shankar Leave a Comment

Moto G5 Plus comes with a OTG support, where you can copy the files from your pen drive (and vice versa) by connecting it to your phone via the OTG cable. There are lot of OTG cable available in the market based on the brands. Some of the pen drive nowadays comes with the OTG support where you can attach the pen drive directly to the phone.

Here are few steps on how to use the feature. Once you plug in your pen drive via the OTG cable you get the notification on your phone. You can either explore or eject the device which is connected.

Screenshot_20170422-145304.png

Click on Explore, where it shows the contents of the pen drive. Try copy some files from your phone and then tap the menu icon from the top left corner and select the pen drive and move it. The same can be done by copying the files from the pen drive to your phone as well. Once you are done with the copying from the notification area, tap Eject to remove the pen drive safely.

Clear browsing history in Android

By Ravi Shankar Leave a Comment

Listed below are the steps clear the browsing history of Google Chrome in a Android Device such as Nexus or Samsung tab.

Solution 1: History screen

Step 1: Click the Menu option in Google Chrome (right hand side)

Menu Option in Google Chrome Android

Step 2: Select History from the drop down list.

Clear History in Android

Step 3: In the History screen, click the Clear Browsing Data option available at bottom of the screen.

Clear Browsing Data in Android

Step 4: Select the required option under Clear browsing data and click Clear button. Apart from browsing history, you can clear Cache, Cookies and Site data, Saved passwords and autofill data

Clear History in Android

Solution 2 : Advanced Option

Step 1: Click the menu option and select Settings from the list.

Setting screen in Google Chrome browser in Android

Step 2: Click Privacy option under Advanced section.

Google Chrome Privacy in Android

Step 3: In the Privacy screen, click the Clear Browsing Data button to launch screen. Then the Clear button to delete all the browsing history.

Clear Browsing Data under Privacy in Android

Copyright 2023 © rshankar.com

Terms and Conditions - Privacy Policy