Posts

Showing posts from February, 2025

MERN stack (and short Android) dev notes: Feb to Mar 2025 (includes Powershell scripts for copying and listing swdev project source code)

Last updated on 24 Mar. 2025 Quick note The (Windows) Powershell scripts I use mainly for copying and listing software development project source code folders and files are available on my public GitHub repo:  https://github.com/ravisiyer/PS-Scripts  . Detailed notes 26 Mar. 2025 To create a directory/folder hierarchy: New-Item -Path VSCode\HTML-CSS-JS\ -ItemType Directory -Force If they don't exist, creates VSCode folder and HTML-CSS-JS folder within it. ================= IDEA IntelliJ Increase font size: Alt + Shift + period ------------ Android related How to save and retrieve Date in SharedPreferences, https://stackoverflow.com/questions/12343014/how-to-save-and-retrieve-date-in-sharedpreferences https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#currentTimeMillis-- https://developer.android.com/reference/android/content/SharedPreferences#getLong(java.lang.String,%20long) Based on above: long nowInMillis = System.currentTimeMillis() Date nowAsDate = new Date(n...

Very Simple Launch and One-Touch-Add Timestamp Recorder Android App

Image
Last updated on 26 Mar. 2025 Quick-Info This is a very simple launch/redraw and one-touch-add timestamp recorder Android app. It will automatically create a timestamp (with no text associated with it) when the app is launched. The app will display a hardcoded maximum number of previous launch timestamps. It also has button to clear the timestamps, add a timestamp and to show app info. Duration from last timestamp has been added. This app is useful to quickly and easily record timestamps and also to capture typically small break duration or even small task duration. Screenshot of Android app (possibly older version but with similar screen as current version) running on my Samsung M21 phone: [Chrome browser: To open pic in larger resolution, on PC right-click on pic followed by open link (NOT image) in new tab/window and on mobile, press pic and choose Open in new tab. Then switch to new tab/window and on PC you may have to click on pic to zoom in.] APK file download link: [If you do...

Notes on creating debug and release APKs using Android Studio and running them on phone/device

Last updated on 1 Mar. 2025 My post: Notes on using React Native without Expo framework and Expo Go,  https://raviswdev.blogspot.com/2025/02/notes-on-using-react-native-without.html covers how to create APKs for React Native projects not using Expo framework, and installing and running these APKs on my Samsung M21 Android phone. That led me to explore creating APKs using Android Studio and installing and running these on my Samsung M21 phone. Notes related to this work are given below. I think the notes are of 5 Feb. 2025 or perhaps from a day or two earlier. The tutorial app code I used with minor variation:  https://developer.android.com/codelabs/basic-android-kotlin-compose-first-app#6 Build your app for release to users, https://developer.android.com/build/build-for-release : If the build variant you've selected is a debug build type, then the APK is signed with a debug key and it's ready to install. If you've selected a release variant, then, by default, the APK is u...

Windows 11 Operation Tips and Issues Log; Dark mode (including Chrome on Android)

Last updated on  24 Mar. 2025 Chronological Order 5th Feb. 2025 Today (which perhaps was there yesterday too but I am not sure), I started facing a problem of slow PC operation on Windows 11. Saw that the disk activity light was almost constantly on. Task Manager showed "windows modules installer worker" as the CPU hog. Net browsing indicated that it could be related to Windows Update. I recalled that I had a partially done optional update which I later realized I don't need. To fix that, I followed general instructions on Troubleshoot Windows Update in this video (around 1st half of video, IFIRC): How to Fix the Windows Modules Installer 100% Disk Issue [Guide], https://www.youtube.com/watch?v=nony1q7F5oQ , around 4 mins, Jun. 2024. Key action that seems to have fixed the issue for me: As admin, search Troubleshoot -> Choose Troubleshoot Settings -> Other troubleshooters -> Click on Run button for Windows Update. That brought up another 'Get Help' windo...

Notes on using React Native without Expo framework and Expo Go

Last updated on 5 Feb. 2025 Related post: Notes on React Native and Expo,  https://raviswdev.blogspot.com/2024/12/notes-on-react-native.html . The APK created using React Native and Expo using default settings was 168 MB in size. See above mentioned post for more info. on it. I wanted to check out the possibility of using React Native without Expo and see the APK size (with default settings) it creates. This post covers notes related to that. 4th Feb. 2025: Using React Native without Expo framework and Expo Go https://reactnative.dev/docs/set-up-your-environment covers setup to use Android Studio to build React Native app. Publishing to Google Play Store, https://reactnative.dev/docs/signed-apk-android ... Can be used to only create APK files w/o publishing to Google Play Store as per video: Build apk file from React Native Application, https://www.youtube.com/watch?v=2yHI0e4MzUE , 5 min. 45 secs, Aug. 2023. Get Started Without a Framework, https://reactnative.dev/docs/gett...