Posts

Website vs Web Application

Image
📌 Websites and web apps are both web-based platforms that can be accessed through a web browser, but they serve different purposes and have distinct characteristics. 1. Websites: Websites are primarily used to provide information and content to users. They are often static or only have minimal interactivity. Built with a minimal no. of tools and need only static  HTML files, CSS styles,  &  possibly JavaScript. Website navigation is generally straightforward, with links and menus guiding users through different pages or sections. Websites are typically informational in nature, such as blogs, news sites, company homepages, or online brochures. Examples  of websites include  Wikipedia , a  personal blog , or a  restaurant’s menu page. 2. Web Applications: Web apps are built to serve specific functions or solve particular problems. Web applications, except frontend, require complex backend, which is built using various technologies. Web apps often re...
Image
  What is UI & UX?   UI (User Interface)  and  UX (User Experience)  design are two closely related but distinct disciplines that play a crucial role in creating digital products and services. They focus on different aspects of the user’s interaction with a product, but they work in tandem to provide a seamless and satisfying user experience. ⭕ Difference between UI & UX 📌  User Interface (UI): UI, which stands for User Interface, primarily deals with the visual and Intractive elements of a product. It focuses on the presentation and aesthetics of the product, making it visually appealing and ensuring that users can interact with it effectively. Key aspects of UI design include: Visual Design:  This includes the use of  colors, typography, icons, images,  and other  graphical elements  to create an   attractive and consistent look for the product. Layout and Organization:  How information and elements are arranges...
Image
    Here are some basic cmd commands you should know.  1 .  Create a New Folder /> mkdir [folderName] 2. Change Directory /> cd [folderName] 3. Up one Directory /> cd.. 4. Change Drive /> cd: 5. List Files /> dir 6. Copy Files /> copy[file] [destination] 7. Rename /> ren [folder] [newFolderName] 8. Delete File />del [file] 9. Displays the IP Configuration />ipconfig 10. Currently running programs />tasklist

Broadcast receivers in android best practices

  Broadcast receivers in Android are components that can receive and respond to broadcast messages from the Android system or other apps.  According to  android development, there are two types of broadcasts: Normal broadcasts: These are asynchronous and can be received by multiple receivers in any order. Ordered broadcasts: These are synchronous and can be received by only one receiver at a time, in an order determined by the priority of each receiver. Some of the best practices for using broadcast receivers are: Use explicit intents for local broadcasts within your app. Avoid using sticky broadcasts as they can leak sensitive data. Register receivers dynamically when possible and unregister them when not needed. Use a wake lock if you need to keep the device awake while handling a broadcast. https://youtu.be/XqjWq7kuBHI

The content provider (Implement content provider)

Image
A content provider is a component that manages access to a central repository of data. A content provider can use different ways to store its data, such as a database, files, or even over a network. To implement a content provider in Android, you need to follow some steps, such as: Define a contract class that defines constants for your content provider's URI, table name, column names, and MIME types. Extend the Content Provider class and implement its abstract methods: on Create (), query (), insert (), update (), delete (), and get Type () Register your content provider using the <provider> element in the Android manifest file. Test your content provider using a client app or the adb shell. How to define a contract class in android A contract class is a class that defines constants that help applications work with the content URIs, column names, intent actions, and other features of a content provider.  A contract class is not included automatically with a provider, but you...