Professional Documents
Culture Documents
1. Acknowledgement 4
2. Abstract 5
3. Introduction 6
5. Program Code 8
6. Output 16
7. Conclusion 17
8. References 18
The SQLite is the default database that is in-built in android which made us
easier to connect with it and performs operations with it. SQLite is a C-language
featured, SQL database engine. SQLite is the most used database engine in the
world.
SIGNIFICANCE OF PROJECT –
The main significance of this micro-project is to understand how an android
application is built, perform operations in the database, use Recycler View to
show list of items and use Alarm Manager and Broadcast Receiver to show
reminder notifications.
HARDWARE REQUIREMENTS –
1. Laptop or PC with minimum 8GB RAM and i5/i7 8th Gen processor
SOFTWARE REQUIREMENTS –
1. Operating System - Windows 11
2. Android Studio Electric Eel 2022.1.1
3. Android Emulator – UpsideDownCake (Android 14)
<EditText
android:id="@+id/etCity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:ems="10" android:hint="Enter
City Name"
<EditText android:id="@+id/etCountry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:ems="10" android:hint="Enter
Country Code (Optional)"
android:inputType="textPersonName"
android:minHeight="48dp" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/btnGet"
android:layout_marginBottom="10dp"
android:background="#0070c7"
android:textColor="@android:color/white"
android:onClick="getWeatherDetails"
android:text="Get"
app:backgroundTint="@null" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="150dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tvResult" />
</ScrollView> <View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
</View>
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adViewMain"
android:layout_width="wrap_content"
android:layout_height="wrap_content" ads:adSize="SMART_BANNER"
ads:adUnitId="@string/banner_adunit_id">
</com.google.android.gms.ads.AdView>
</LinearLayout>
</LinearLayout>
import android.graphics.Color;
import android.os.Bundle; import
android.view.View; import
android.widget.EditText; import
android.widget.TextView; import
android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import java.text.DecimalFormat;
mAdView = findViewById(R.id.adViewMain);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
etCity = findViewById(R.id.etCity);
etCountry = findViewById(R.id.etCountry);
tvResult = findViewById(R.id.tvResult);
}
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(getApplicationContext(), error.toString().trim(),
Toast.LENGTH_SHORT).show();
}
});
RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
requestQueue.add(stringRequest);
}
}