<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pooja Nagude on Medium]]></title>
        <description><![CDATA[Stories by Pooja Nagude on Medium]]></description>
        <link>https://medium.com/@poojanagude?source=rss-501fd86f23ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dxXvXogsWF1R5fwXAZtEWA.png</url>
            <title>Stories by Pooja Nagude on Medium</title>
            <link>https://medium.com/@poojanagude?source=rss-501fd86f23ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:46:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@poojanagude/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Topic : Interfaces, Abstract Classes]]></title>
            <link>https://medium.com/@poojanagude/topic-interfaces-abstract-classes-acdfe4f22d20?source=rss-501fd86f23ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/acdfe4f22d20</guid>
            <dc:creator><![CDATA[Pooja Nagude]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 11:26:03 GMT</pubDate>
            <atom:updated>2026-03-15T11:26:03.149Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>1.how android uses interfaces (eg. click listeners)</em></strong></p><p><strong><em>2.Intents</em></strong></p><p><strong><em>3. Menus</em></strong></p><h4><strong>Introduction</strong></h4><p>Android application development relies heavily on object-oriented programming principles such as <strong>interfaces</strong> and <strong>abstract classes</strong>. These concepts help developers build flexible, reusable, and maintainable applications.</p><p>For first-year MSc Computer Science students starting Android programming, understanding how these concepts work in real applications is very important. Android uses interfaces to manage user interactions and abstract classes to define reusable structures for components.</p><p>In this blog, we will explore:</p><ul><li>How <strong>interfaces</strong> work in Android using <strong>click listeners</strong></li><li>The concept of <strong>intents</strong> and how Android components communicate</li><li>The role of <strong>menus</strong> in Android applications</li><li>Practical <strong>code examples</strong> for each concept</li></ul><p>By the end of this post, you will understand how these concepts are applied in real Android applications.</p><p><strong>1. Interfaces and Abstract Classes in Android</strong></p><h4><strong>What is an Interface?</strong></h4><p>An <strong>interface</strong> in Java defines a set of methods that a class must implement. It does not provide method implementation itself.</p><p>Interfaces are commonly used in Android to handle <strong>event-driven programming</strong>, such as button clicks.</p><p><strong>Example</strong></p><p>Android provides an interface called:</p><p>View.OnClickListener</p><p>This interface contains one method:</p><p>void onClick(View v);</p><p>Any class implementing this interface must provide the onClick() method.</p><h4><strong>What is an Abstract Class?</strong></h4><p>An <strong>abstract class</strong> is a class that cannot be instantiated directly. It can contain both:</p><ul><li>Abstract methods (without implementation)</li><li>Concrete methods (with implementation)</li></ul><p>Many Android core components are abstract classes.</p><p>Example:</p><p>AppCompatActivity is an abstract class used to build Android activities.</p><p>public class MainActivity extends AppCompatActivity {</p><p>}</p><p>This allows developers to inherit common activity behavior without rewriting core functionality.</p><h4><strong>2. Interfaces in Android: Handling Click Events</strong></h4><p>One of the most common uses of interfaces in Android is <strong>handling user interactions</strong>, such as button clicks.</p><p>Android uses the OnClickListener interface to respond to user actions.</p><p><strong>Example: Button Click Listener</strong></p><p><strong>Step 1: Create a Button in XML</strong></p><p>&lt;Button</p><p>android:id=”@+id/btnSubmit”</p><p>android:layout_width=”wrap_content”</p><p>android:layout_height=”wrap_content”</p><p>android:text=”Submit”/&gt;</p><p><strong>Step 2: Implement Click Listener in Java</strong></p><p>import android.os.Bundle;</p><p>import android.view.View;</p><p>import android.widget.Button;</p><p>import android.widget.Toast;</p><p>import androidx.appcompat.app.AppCompatActivity;</p><p>public class MainActivity extends AppCompatActivity {</p><p>Button btnSubmit;</p><p>@Override</p><p>protected void onCreate(Bundle savedInstanceState) {</p><p>super.onCreate(savedInstanceState);</p><p>setContentView(R.layout.activity_main);</p><p>btnSubmit = findViewById(R.id.btnSubmit);</p><p>btnSubmit.setOnClickListener(new View.OnClickListener() {</p><p>@Override</p><p>public void onClick(View v) {</p><p>Toast.makeText(MainActivity.this,</p><p>“Button Clicked!”, Toast.LENGTH_SHORT).show();</p><p>}</p><p>});</p><p>}</p><p>}</p><h4><strong>Explanation</strong></h4><ul><li>setOnClickListener() connects the button with the interface.</li><li>The onClick() method executes when the button is pressed.</li></ul><p>This is a classic example of <strong>interface-based event handling</strong> in Android.</p><p><strong>Screenshot Placeholder</strong></p><p><strong>Screenshot 1:</strong> Android Studio showing the OnClickListener implementation in MainActivity.java.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_KhCeynvaOsXf1ohVHdX1w.png" /></figure><p><strong>Screenshot 2:</strong> Running application displaying the <strong>Submit button</strong> and showing a <strong>Toast message when clicked</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*8EsyYVku97_LRhr7cb2fxA.png" /></figure><p><strong>3. Understanding Intents in Android</strong></p><p>Android applications consist of different components such as:</p><ul><li>Activities</li><li>Services</li><li>Broadcast Receivers</li><li>Content Providers</li></ul><p>To allow communication between these components, Android uses <strong>Intents</strong>.</p><p><strong>What is an Intent?</strong></p><p>An <strong>Intent</strong> is a messaging object used to request an action from another app component.</p><p>Example actions include:</p><ul><li>Opening another activity</li><li>Sending data between screens</li><li>Launching a browser</li><li>Dialling a phone number</li></ul><p><strong>Types of Intents</strong></p><p><strong>1. Explicit Intent</strong></p><p>An <strong>explicit intent</strong> specifies the exact component to start.</p><p>Example: Opening another activity inside the same application.</p><p><strong>Example Code</strong></p><p>Intent intent = new Intent(MainActivity.this, SecondActivity.class);</p><p>startActivity(intent);</p><p><strong>Explanation</strong></p><ul><li>MainActivity sends a request</li><li>SecondActivity is opened</li></ul><p><strong>Screenshot Placeholder</strong></p><p><strong>Screenshot 3:</strong> Android Studio showing code for Intent creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*m4SvFbAQjZStzcE8hgwRBg.png" /></figure><p><strong>Screenshot 4:</strong> Application transitioning from <strong>MainActivity to SecondActivity</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*Irpcz4AhrMvMmmDTpgHctw.png" /></figure><p><strong>2. Implicit Intent</strong></p><p>An <strong>implicit intent</strong> does not specify a target component. Instead, Android finds an application that can handle the requested action.</p><p><strong>Example: Open a Website</strong></p><p>Intent intent = new Intent(Intent.ACTION_VIEW);</p><p>intent.setData(Uri.parse(“https://www.google.com&quot;));</p><p>startActivity(intent);</p><p><strong>Explanation</strong></p><ul><li>Android searches for apps capable of opening URLs</li><li>Usually opens the default browser</li></ul><p><strong>4. Menus in Android Applications</strong></p><p>Menus provide users with additional actions and navigation options in an Android app.</p><p>Android supports different types of menus:</p><ol><li><strong>Options Menu</strong></li><li><strong>Context Menu</strong></li><li><strong>Popup Menu</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*jUOjVL9pPfVTdZNLVq_PDg.png" /></figure><p>Here we will focus on the two most common types.</p><p><strong>4.1 Options Menu</strong></p><p>The <strong>Options Menu</strong> appears in the app bar or toolbar and provides global actions.</p><p><strong>Step 1: Create Menu Resource File</strong></p><p>res/menu/menu_main.xml</p><p>&lt;menu xmlns:android=”http://schemas.android.com/apk/res/android&quot;&gt;</p><p>&lt;item</p><p>android:id=”@+id/menu_settings”</p><p>android:title=”Settings”/&gt;</p><p>&lt;item</p><p>android:id=”@+id/menu_help”</p><p>android:title=”Help”/&gt;</p><p>&lt;/menu&gt;</p><p><strong>Step 2: Inflate Menu in Activity</strong></p><p>@Override</p><p>public boolean onCreateOptionsMenu(Menu menu) {</p><p>getMenuInflater().inflate(R.menu.menu_main, menu);</p><p>return true;</p><p>}</p><p><strong>Step 3: Handle Menu Clicks</strong></p><p>@Override</p><p>public boolean onOptionsItemSelected(MenuItem item) {</p><p>switch(item.getItemId()) {</p><p>case R.id.menu_settings:</p><p>Toast.makeText(this, “Settings Clicked”, Toast.LENGTH_SHORT).show();</p><p>return true;</p><p>case R.id.menu_help:</p><p>Toast.makeText(this, “Help Clicked”, Toast.LENGTH_SHORT).show();</p><p>return true;</p><p>default:</p><p>return super.onOptionsItemSelected(item);</p><p>}</p><p>}</p><p><strong>Screenshot</strong></p><p><strong>Screenshot 6:</strong> Running application displaying <strong>Settings and Help menu in the app bar</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*_rk-iqNECUt17bUIAxnZJA.png" /></figure><p><strong>4.2 Context Menu</strong></p><p>A <strong>Context Menu</strong> appears when the user <strong>long presses</strong> on a UI element.</p><p>Example: Long pressing on a list item to edit or delete it.</p><p><strong>Register View for Context Menu</strong></p><p>registerForContextMenu(textView);</p><p><strong>Create Context Menu</strong></p><p>@Override</p><p>public void onCreateContextMenu(ContextMenu menu, View v,</p><p>ContextMenu.ContextMenuInfo menuInfo) {</p><p>super.onCreateContextMenu(menu, v, menuInfo);</p><p>getMenuInflater().inflate(R.menu.context_menu, menu);</p><p>}</p><p><strong>Handle Context Menu Click</strong></p><p>@Override</p><p>public boolean onContextItemSelected(MenuItem item) {</p><p>switch(item.getItemId()) {</p><p>case R.id.edit:</p><p>Toast.makeText(this, “Edit Selected”, Toast.LENGTH_SHORT).show();</p><p>return true;</p><p>case R.id.delete:</p><p>Toast.makeText(this, “Delete Selected”, Toast.LENGTH_SHORT).show();</p><p>return true;</p><p>default:</p><p>return super.onContextItemSelected(item);</p><p>}</p><p>}</p><p><strong>Screenshot</strong></p><p><strong>Screenshot 7:</strong> Long-press menu appearing on a TextView.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*kZZXsHeNjMTGgtfTcNJBtw.png" /></figure><p><strong>Conclusion</strong></p><p>Android development combines <strong>object-oriented programming concepts</strong> with practical mobile application design.</p><p>In this blog, we explored several key concepts:</p><ul><li><strong>Interfaces</strong> enable event-driven programming and are widely used for handling user interactions like button clicks.</li><li><strong>Abstract classes</strong> provide reusable functionality for Android components such as activities.</li><li><strong>Intents</strong> allow communication between application components and support both explicit and implicit actions.</li><li><strong>Menus</strong> improve user interaction by providing accessible options such as settings, help, edit, and delete.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acdfe4f22d20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation with NoSQL Databases]]></title>
            <link>https://medium.com/@poojanagude/implementation-with-nosql-databases-5e01109f40c4?source=rss-501fd86f23ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e01109f40c4</guid>
            <dc:creator><![CDATA[Pooja Nagude]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 17:26:58 GMT</pubDate>
            <atom:updated>2025-09-25T18:22:15.005Z</atom:updated>
            <content:encoded><![CDATA[<p>Data plays a central role in driving decision-making, innovation, and technology growth. Every application, whether it’s a social media platform, an online shopping site, a financial service, or a healthcare system, generates massive volumes of data. Managing this data efficiently is one of the biggest challenges in computer science.</p><p>Traditional databases, called relational database management systems (RDBMS), store information in tables with rows and columns. These are highly reliable when dealing with structured data and relationships that do not change frequently. However, as the demand for big data, real-time processing, cloud applications, and flexible storage grows, relational databases face scalability and flexibility limitations.</p><p>This is where NoSQL (Not Only SQL) databases come into play.</p><p><strong>What is NoSQL?</strong></p><p>NoSQL (“Not Only SQL”) is a group of database systems that organize data differently from the traditional table-based structure found in relational databases. Instead of storing everything in rows and columns, NoSQL systems use alternative models like key-value pairs, documents, wide columns (column families), or graphs to store and retrieve data more flexibly and at scale.</p><p>NoSQL databases are popular for handling large amounts of unstructured or semi-structured data and for scaling across many servers.</p><p>In this blog, we will explore different types of NoSQL databases—key-value, document, column-family, and graph databases—along with their implementation, examples, advantages, limitations, and use cases.</p><ol><li><strong><em>Key-Value Databases: Riak</em></strong></li></ol><p>A key-value data model or database is also referred to as a key-value store. It is a non-relational type of database. In this, an associative array is used as a basic database in which an individual key is linked with just one value in a collection. For the values, keys are special identifiers. Any kind of entity can be valued. The collection of key-value pairs stored on separate records is called key-value databases, and they do not have an already defined structure.</p><p><strong>Overview</strong></p><p>Eg: Riak</p><p>It is a distributed key-value NoSQL database developed by Basho Technologies. It is inspired by Amazon’s Dynamo system. In Riak, data is stored as simple key-value pairs.</p><p><strong>For example:</strong></p><pre>user101 -&gt; {&quot;name&quot;: &quot;Pooja&quot;, &quot;age&quot;: 21, &quot;city&quot;: &quot;Pune&quot;}</pre><p>Here, user101 is the key, and the JSON object is the value.</p><p><strong>How Riak Works</strong></p><ul><li>Uses a masterless architecture -&gt; all nodes are equal.</li><li>Data is automatically replicated across multiple nodes.</li></ul><p>Supports horizontal scaling -&gt; servers can be added or removed easily.</p><p><strong>Features of Riak</strong></p><p>Fault Tolerance -&gt; If one or more nodes fail, the system continues working.</p><p>High Availability -&gt; Always accessible even in failures.</p><p>Language Support -&gt; Works with Java, Python, Ruby, etc.</p><p><strong><em>2) Document Databases: MongoDB</em></strong></p><p><strong>Overview</strong></p><p>MongoDB is one of the most widely used document-oriented NoSQL databases. Instead of storing data in rows and columns, MongoDB stores data in JSON-like documents (BSON format).</p><p>It is a popular NoSQL database that offers a flexible, scalable, and high-performance way to store data. In MongoDB, databases, collections, and documents are the important building blocks for data storage and management. </p><ul><li>Multiple Databases: MongoDB allows you to create multiple databases on a single server. Each database is logically isolated from others.</li><li>Default Databases: When you start MongoDB, three default databases are created: admin, local, and config. These are used for internal purposes. </li><li>Database Creation: Databases are created when you insert data into them.</li></ul><p><strong>Example document:</strong></p><pre>{ <br>&quot;name&quot;: &quot;Rahul&quot;, <br>&quot;age&quot;: 23, <br>&quot;skills&quot;: [&quot;Python&quot;, &quot;AI&quot;, &quot;Machine Learning&quot;] <br>}</pre><p><strong>How MongoDB Works</strong></p><ul><li>Schema-less -&gt; You can add new fields anytime.</li><li>Supports indexing for fast search.</li><li>Uses replication and sharding for distribution.</li><li>Has a cloud-based service called MongoDB Atlas</li></ul><p><strong>Features of MongoDB</strong></p><ul><li>Flexibility: Developers can easily change structure.</li><li>ACID Transactions (from v4.0) -&gt; multi-document safe transactions.</li><li>Scalability: Can handle large-scale data.</li></ul><p><strong>Use Cases of MongoDB</strong></p><ul><li>Content management systems.</li><li>Real-time analytics.</li><li>E-commerce product catalogs.</li><li>Web and mobile applications.</li></ul><p><strong><em>3) Column-Family Databases: Cassandra</em></strong></p><p>A Cassandra column family is a key aspect of the Apache Cassandra data model. Cassandra runs a distributed data store across several machines within a cluster. their outermost container. Keyspace is the outermost Cassandra data container. A keyspace is a container for one or more column families, and each column family can contain one or more rows (each of which contains one or more ordered columns). The replication factor determines the total number of copies of keyspace data stored in the cluster.</p><p>A Cassandra column family is schema-free, and since it doesn’t follow any schema, depending on your needs, you can add any column to any column family freely at any time. A Cassandra column family also has a comparator, whose value indicates how to order and sort columns when they are returned in a query.</p><p>In Cassandra, data is stored in a hierarchy:Key space -&gt; Tables (Column Families) -&gt; Rows -&gt; Columns. Each row can have different columns.</p><p><strong>How Does Cassandra Works</strong></p><p>Designed for write-heavy workloads.</p><p>The storage system uses Commit Log -&gt; Memtable -&gt; SSTables.</p><p>Provides tunable consistency, allowing balance between performance and accuracy.</p><p><strong>Features of Cassandra</strong></p><p>1) High Write Speed: Suitable for applications with heavy writes.</p><p>2) Fault Tolerant -&gt; No single point of failure.</p><p>3) Scalable—used by companies like Netflix and Instagram.</p><p><strong><em>4) Graph Databases: Neo4j</em></strong></p><p><strong>What is a graph database?</strong></p><p>A graph is a pictorial representation of a set of objects where some pairs of objects are connected by links. It is composed of two elements—nodes (vertices) and relationships (edges).</p><p>A graph database is a database used to model the data in the form of a graph. In here, the nodes of a graph depict the entities, while the relationships depict the association of these nodes.</p><p><strong>Overview</strong></p><p>Neo4j is the world’s leading open-source graph database, which is developed using Java technology. It is highly scalable and schema-free (NoSQL).</p><p><strong>Example:</strong></p><p>(Alice) -[:FRIEND]-&gt; (Bob)</p><p>(Bob) -[:FRIEND]-&gt; (Charlie)</p><p><strong>How Neo4j Works</strong></p><ul><li>Uses the property graph model. </li><li>Both nodes and edges can store properties.</li></ul><p><strong>Features of Neo4j</strong></p><ul><li>Efficient Graph Traversal: Very fast for connected data.</li><li>Visualization: Easy to represent relationships.</li><li>best for connected data analysis.</li></ul><p><strong>Use Cases of Neo4j </strong></p><ul><li>Social network analysis. </li><li>Fraud detection. </li><li>Recommendation engines. </li><li>Knowledge graphs.</li></ul><p><strong><em>Comparison of NoSQL Database Types</em></strong></p><p>Each NoSQL database type has unique strengths and is suited for different use cases:</p><ul><li>Key-Value: Fast and simple, best for caching and sessions.</li><li>Document: Flexible schema, best for web and mobile apps.</li><li>Column-Family: Scalable for analytics and time-series data.</li><li>Graph: Best for connected data like social networks and fraud detection.</li></ul><p><strong>Comparison</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1R__Y0ojoQBO3x9_-oAVQ.jpeg" /></figure><p><strong>Summary</strong></p><ul><li>Each NoSQL model fits different needs:</li><li>Riak works well when you need a really simple and fault-tolerant store.</li><li>MongoDB is great when your data needs flexibility and richer queries, especially useful in apps with evolving data structures.</li><li>Cassandra is built for scale and fast writes across many servers—ideal for huge datasets and high throughput.</li><li>Neo4j shines when data is naturally connected and traversals (path or relationship queries) are frequent.</li></ul><p><strong><em>Conclusion</em></strong></p><p>NoSQL databases have become essential in big data and real-time applications. Each type of NoSQL database has unique strengths and is designed for specific use cases: </p><ul><li>Riak is simple and reliable for key-value storage. </li><li>MongoDB is flexible and widely used for document-oriented storage. </li><li>Cassandra is powerful for large-scale, high-write workloads. </li><li>Neo4j is the best choice for connected data and graph-based applications.</li></ul><p><strong><em>References</em></strong></p><ol><li>MongoDB Official Website: <a href="https://www.mongodb.com/">https://www.mongodb.com/</a></li><li>Document Databases: MongoDB: <a href="https://www.geeksforgeeks.org/mongodb/mongodb-database-collection-and-document/">https://www.geeksforgeeks.org/mongodb/mongodb-database-collection-and-document/</a></li><li>Cassandra—Wikipedia: <a href="https://share.google/KAKu46irPeUKSb5eM">https://share.google/KAKu46irPeUKSb5eM</a></li><li>Column-Family Databases: Cassandra: https://www.scylladb.com/glossary/cassandra-column-family/#:~:text=A%20Cassandra%20column%20family 20%20schema%2Dfree%2C%20and% 20% since it, are% 20% returned 20in%20a% 20 queries</li><li>Neo4j Graph Database: <a href="https://neo4j.com/">https://neo4j.com/</a></li><li>Neo4j Graph Database: <a href="https://www.tutorialspoint.com/neo4j/neo4j_overview.htm">https://www.tutorialspoint.com/neo4j/neo4j_overview.htm</a></li></ol><p>7. Riak Database: <a href="https://en.wikipedia.org/wiki/Riak">https://en.wikipedia.org/wiki/Riak</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e01109f40c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>