Posts

Showing posts from 2025

More notes on React Native, Expo etc.

Note:  The main blog posts related to my previous learnings of React Native are: Dec. 2024: Notes on React Native and Expo, https://raviswdev.blogspot.com/2024/12/notes-on-react-native.html Feb. 2024: Notes on using React Native without Expo framework and Expo Go, https://raviswdev.blogspot.com/2025/02/notes-on-using-react-native-without.html --------------------------- 1st April 2025: After around 2 months, I am restarting my React Native learning. First step has been to refresh my knowledge about the various React Native project folders on my PC. Next step was to refresh my knowledge of the basic React Native tutorial:  https://reactnative.dev/docs/getting-started . In that context, I logged some info. which is given below: When I tried using the project folder I had for this tutorial (called AwesomeProject) with Expo Go, it did not work. Updated Expo go on phone and also am running 'npm update' on the project. npm update did not update Expo to 52 as the package.json entry ...

Very Simple one-touch/one-click Timestamp Recorder Android and Web apps

These super simple apps are useful to me to capture short break durations while I am doing commercial software development work at home, and also when I want to quickly just capture the current time like lunch/dinner end time as I have to take some medicines 1.5 to 2 hours after lunch/dinner. Thought of sharing them just in case it may be useful to some others. 1) Very Simple Launch and One-Touch-Add Timestamp Recorder Android App (APK file; has to be sideloaded): Blog post (has APK download link): https://raviswdev.blogspot.com/2025/02/very-simple-one-touch-timestamp-on.html , Source code repo: https://github.com/ravisiyer/LaunchTimestamp 2) Very Simple Launch and Refresh Timestamp Recorder Web App: Blog post: https://raviswdev.blogspot.com/2025/03/very-simple-launch-and-refresh.html , Source code repo:  https://github.com/ravisiyer/LaunchTimestampWebApp

Very Simple Launch and Refresh Timestamp Recorder Web App

Image
Quick Info Very simple launch/refresh timestamp recorder web app implemented as one single HTML file with JavaScript code in it. The HTML file can be picked up from the associated GitHub repo:  https://github.com/ravisiyer/LaunchTimestampWebApp  . [On PC desktop/laptop, to open pic in larger resolution (if available), right-click on pic followed by open link (NOT image) in new tab/window. In new tab/window you may have to click on pic to zoom in.] Details This is a very simple launch/refresh timestamp recorder web app implemented as one single HTML file with JavaScript code in it. 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 timestamps. It also has a button to clear the timestamps. I have added showing of duration between current timestamp and immediately previous timestamp.   This web app is useful on PC to quickly and easily record timestamps and also...

Restarted my commercial work career from payment received point of view, after a gap of 22 years

Last updated on 9 Mar. 2025 I recently received a commercial work payment from a friend for whom I have been doing a short-term software development assignment related to LinkedIn OAuth 2.0 with OpenID Connect login for a React frontend and AWS Java lambda backend app. I started that work as a two-week part-time free trial followed by a paid period. My last work related payment received was in early Sep. 2002. So my friend's payment has restarted my commercial work career from payment received point of view, after a gap of 22 years and around 6 months! I thanked my friend profusely for giving me the opportunity to do paid work for him and for being considerate about my limitations and providing a comfortable work relationship for this paid work. My thanks to friends and family for the encouragement and support they have provided me on this journey back to current technology software development paid work in a part-time, work-from-home mode with health limitations. A short overview ...

Misc dev notes: Mar 2025 (GitHub Actions; IONIC and Cordova; Capacitor)

Last updated on 14 Mar. 2025 14 Mar. 2025 From Next.js to Mobile: Unlock Platforms in Minutes with Capacitor, https://www.youtube.com/watch?v=S55BrlnLup8 , around 12 mins., Jul 15, 2023 Associated blog post: Master the 10-Minute, 10-Step Guide: Converting Your Next.js App to Mobile with Capacitor, https://blog.rahulbharati.dev/master-the-10-minute-10-step-guide-converting-your-next-js-app-to-mobile-with-capacitor-1269bde2f1b4 , Jul. 2023. ========================= 13 Mar. 2025 Learned that PHP apps being server-side apps cannot be (or cannot be easily) converted to mobile apps using automated tools/platforms like Cordova or Capacitor. These tools/platforms create mobile apps from HTML/CSS/JS apps including React, Angular etc. apps. So looks like, if I have understood it correctly, old PHP apps will have to be accessed via browser on mobile as against being run as Android/iOS app.  Turn website (php) into App; cordova or capacitor?,  https://forum.ionicframework.com/t/turn-we...

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...