Lab Assignment 2 - Nikii1118/Web-Programming- GitHub Wiki

Class ID-10 Nikita Goyal

Class ID-2 Maryam Alkhabiet

Introduction


This lab assignment introduces us to Android programming, how can we connect it to the database, firebase, and call API in java.

Objective


To become familiar with the concepts of Android programming, the following task has been assigned:

TASK-1


  1. We have to include the features such as login,social login and signup
  2. After login it should display the username,gender,university information and anything more.
  3. The application should have logout button.

Code


MainActivity.java

log6code

UserProfile.java

log7code

Display.java

log8code

For this, we have used a Facebook login.

Output


Login

log2

Welcome page

log3

Logout

log1

Social Login

log4

log5

1 png

TASK-2


We have to create an android application which includes:

  1. Services like Location or Sensors or Media or Microphone or Camera etc atleat two of them
  2. Any Social Media Related API
  3. One Grid Layout
  4. Good UI/UX.

Code


Register.java

registerPage

Home.java

homepagecode

Maps.java

mapspage

News.java

newspage

Storage.java

storagepage

We have used the BBC sports API and Google Maps API to show the location and news.

OUTPUT


User registration page

save7

Login Page

save2

Home Page

homepage

News list

save3

Maps Page

save4

Storage Page saving the file

save5

Opening the saved file

save6

Conclusion


This lab assignment taught us how to access firebase and various API in mobile programming.