Developers use Android Studio to create applications for Android devices. However, if a source code management system like github is not used, then the source code or code of these apps under development has to be backed up. To do this, there are two ways, one from Android Studio and the other from the command … Continue reading How to backup Android apps source code from Android Studio or command line
Category: Programming
How to install Oracle SQL developer data modeler on Linux Mint 21 or Ubuntu Linux
One of the best tools for database design is the Oracle SQL Developer Data Modeler and it's free. As a developer who designs databases this tool is indispensable due to the features it has. The tool can be downloaded from https://www.oracle.com/database/sqldeveloper/technologies/sql-data-modeler/. Note that you need to have an account with Oracle. The only issue is … Continue reading How to install Oracle SQL developer data modeler on Linux Mint 21 or Ubuntu Linux
Must have applications on Linux Mint or Ubuntu Linux
The below list of applications is a must-have for any Linux system. Not just for convenience, but additional capabilities too. The below list of applications is a must-have for any Linux system. Not just for convenience, but additional capabilities too. Download From internet Firefox Thunderbird Android Studio VirtualBox Google Chrome Mega InsyncHQ Spotify Vivaldi Browser … Continue reading Must have applications on Linux Mint or Ubuntu Linux
How to improve speed of Android Studio on a legacy computer
Android Studio is one of the best IDEs for Android apps development, but with legacy computers, it is very slow. To run it on a Dell Vostro 3546, here's what I had to do. Upgrade hardware Minimum RAM required is 8 gb. The laptop came with 4 gb DDR3 1600 Mhz RAM which was slow, … Continue reading How to improve speed of Android Studio on a legacy computer
How to use addTextChangedListener to change values of other TextViews
At times, the value of one TextView is to be replicated into others as a user types the text. Below illustrates how that can be done. In class MainActivity, variable has been declared for the class as below: TextInputEditText[] array_yourinterest_rate = new TextInputEditText[12]; Within the onCreate method of MainActivity, addTextChangedListener was added to change the … Continue reading How to use addTextChangedListener to change values of other TextViews
How to include other layout xml files in a layout file in Android
Sometimes some layout files can contain too many views making it difficult to manage the layout file later. To overcome this, Android has an <include> tag that allows the inclusion of other layout files into the main layout file (in below illustration, the activity_main.xml file). <include android:id="@+id/b_layout" layout="@layout/activity_main_part_b" /> The above include statement will add … Continue reading How to include other layout xml files in a layout file in Android
Replace FindViewByID with ViewBinding in Java on Android
In the gradle.build file for the module, add following code and Sync: buildFeatures { viewBinding true } Above automatically generates binding objects for every layout when the plugin is synced. For activity_main.xml, it will generate ActivityMainBinding class. In MainActivity.java, use inflate method on ActivityMainBinding in onCreate method as shown below: ActivityMainBinding bindMain; bindMain = ActivityMainBinding.inflate(getLayoutInflater()); … Continue reading Replace FindViewByID with ViewBinding in Java on Android
Great resources for coders or developers
All things developers and development articles can be found at https://dev.to. Best site for coders and developers https://www.freecodecamp.org. Here's a great article on one resume that was exceptional https://cloudirregular.substack.com/p/the-greatest-resume-ive-ever-seen?s=r. Learn to code for free with Google's Grasshopper app https://grasshopper.app. Get it from the Google Play Store.
How to fix message in Android Studio 4.2 to remove jcenter() and migrate to mavenCentral()
Android Studio 4.2 displays below message.Please remove usages of jcenter() Maven repository from your build scripts and migrate your build to other Maven repositories. This repository is deprecated and it will be shut down in the future. To fix it, open the gradle file at the project level, search and and replace jcenter() with mavenCentral(). … Continue reading How to fix message in Android Studio 4.2 to remove jcenter() and migrate to mavenCentral()
Email: [Firebase] Client access to your Cloud Firestore database expiring in X day(s)
The easiest way to overcome this expiry is to change the date in the rules after logging into the account:match /{document=**} {// from previous date 2020, 11, 11 to new date 2021, 12, 11allow read, write: if request.time < timestamp.date(2021, 12, 11);} However, do note that it is important to drop access using this method … Continue reading Email: [Firebase] Client access to your Cloud Firestore database expiring in X day(s)