Team Updates

ABSTRACT

The application is aimed at helping the tourist to know everything about Egypt without the minour details, which would be sometimes bad in this case. The main idea of the application is collecting information about each governorate in Egypt which contain lots of categories to help the person (tourist) to know more about Egypt and its ancient treatures over ages. The main mechanism of the application is using JAVA programing language to make the application by using the tool of Android studio to manage the application processes ,themes ,sensors and tools. The main advantage of the application is the easiness in use , applicable to make it at any country and updated by the modern technologies.

----------------------------------------------------------------------------------------------------------------------------------------

INTRODUCTION (Related to the challenge)

The application is connected with open source which makes internship and partnership with the website of NASA and other websites which connected to NASA applications and navigators and others determines the climate of the earth. The application supplies a brief history about the governorate and also includes a brief abstract for the climate around the year, transportation, tourists attractions, economy of its divisions and traditions of their people this little navigators creates extra easiness for Egyptians to discover more about their county and is giving a sufficient knowledge for tourists also may it be useful for scientist and geologists as we support our project with some data about the climate changes in every single governorate. Generally our app is a simple way to visualize you an area from our globe and we are aiming to develop our app to be a sufficient picture for our world in the same simplicity as we are using the data shown in a beautiful pdf.

----------------------------------------------------------------------------------------------------------------------------------------

EFFORTS

Android studio was installed. Then setting up SDK and API files. By using Emulator for Android test that test the code if there is any mistake. The next step is making the CLASS 1 blank text code page as a relative screen. After that adding list view and edit its themes then making a title with white "blank" back ground. Then open code page Java for class 1 which identify the string of the shown value in class 1 in the list view. Now we added PDF files in a resource file and made class 2, then connected it with PDF viewer from github library. Finally type the code for PDF viewer and make if () function to open the PDF file in class 2.

----------------------------------------------------------------------------------------------------------------------------------------

The scientific methods

We choose the challenge which is show the world the data. This challenge should improve a digital globe web-app that explain the earth science data. So that we decided to make an application acts as a guide of Egypt for people. The application contain the whole information for every governorate in Egypt.

These information including:
The location of the governorate, The land, its climate, the main cities, its population, the agriculture, the industry, the education and the attraction places for the tourist. These information will help people to know more information about Egypt and its ancient places.

----------------------------------------------------------------------------------------------------------------------------------------

CODES

CLASS1 CODE

package com.e.project01;


import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;



import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;



import java.time.Instant;



public class MainActivity extends AppCompatActivity {



ListView pdfListView;



@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
pdfListView = (ListView) findViewById(R.id.myPDFfiles);



String[] pdfFiles = {
"Ismailia", "Matrouh", "North-Sinai",
"South-Sinai", "Port-Said", "Assiut", "Aswan", "Fayoum",
"Luxor", "New-Valley", "Qena", "Red-Sea", "AL-Beheira",
"AL-Suez", "Alexandria",
"AL-Sharkia", "Beni-Suef", "Cairo", "Giza",
"Dakahlia", "Damietta","Kafr-AL-Shaikh",
"Menofia", "Qalyubia"
};



ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, pdfFiles) {



@NonNull
@Override
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {



View view = super.getView(position, convertView, parent);
TextView myText = (TextView) view.findViewById(android.R.id.text1);
return view;
}
};



pdfListView.setAdapter(adapter);



pdfListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long id) {
String item = pdfListView.getItemAtPosition(i).toString();



Intent start = new Intent(getApplicationContext(), PDFOpener.class);
start.putExtra("pdfFileName", item);
startActivity(start);
}




});



}
}

----------------------------------------------------------------------------------------------------------------------------------------

CLASS2 CODE (PDF VIWER)

package com.e.project01;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.github.barteksc.pdfviewer.PDFView;

public class PDFOpener extends AppCompatActivity {

PDFView myPDFViewer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pdfopener);

myPDFViewer = (PDFView) findViewById(R.id.pdfViwer);
String getItem = getIntent().getStringExtra("pdfFileName");

if (getItem.equals("Ismailia")) {
myPDFViewer.fromAsset("A.pdf").load();
}
if (getItem.equals("Matrouh")) {
myPDFViewer.fromAsset("B.pdf").load();
}
if (getItem.equals("North-Sinai")) {
myPDFViewer.fromAsset("C.pdf").load();
}
if (getItem.equals("South-Sinai")) {
myPDFViewer.fromAsset("D.pdf").load();
}
if (getItem.equals("Port-Said")) {
myPDFViewer.fromAsset("E.pdf").load();
}
if (getItem.equals("Assiut")) {
myPDFViewer.fromAsset("F.pdf").load();
}
if (getItem.equals("Aswan")) {
myPDFViewer.fromAsset("G.pdf").load();
}
if (getItem.equals("Fayoum")) {
myPDFViewer.fromAsset("H.pdf").load();
}
if (getItem.equals("Luxor")) {
myPDFViewer.fromAsset("I.pdf").load();
}
if (getItem.equals("New-Valley")) {
myPDFViewer.fromAsset("j.pdf").load();
}
if (getItem.equals("Qena")) {
myPDFViewer.fromAsset("K.pdf").load();
}
if (getItem.equals("Red-Sea")) {
myPDFViewer.fromAsset("L.pdf").load();
}
if (getItem.equals("Al-Beheira")) {
myPDFViewer.fromAsset("M.pdf").load();
}
if (getItem.equals("Al-Suez")) {
myPDFViewer.fromAsset("N.pdf").load();
}
if (getItem.equals("Alexanderaia")) {
myPDFViewer.fromAsset("O.pdf").load();
}
if (getItem.equals("AL-Sarkia")) {
myPDFViewer.fromAsset("P.pdf").load();
}
if (getItem.equals("Beni-Suef")) {
myPDFViewer.fromAsset("Q.pdf").load();
}
if (getItem.equals("Cairo")) {
myPDFViewer.fromAsset("R.pdf").load();
}
if (getItem.equals("Giza")) {
myPDFViewer.fromAsset("S.pdf").load();
}
if (getItem.equals("Dakahlia")) {
myPDFViewer.fromAsset("T.pdf").load();
}
if (getItem.equals("Damietta")) {
myPDFViewer.fromAsset("U.pdf").load();
}
if (getItem.equals("Kafr-AL-Shaikh")) {
myPDFViewer.fromAsset("W.pdf").load();
}
if (getItem.equals("Menofia")) {
myPDFViewer.fromAsset("X.pdf").load();
}
if (getItem.equals("Qalyubia")) {
myPDFViewer.fromAsset("Y.pdf").load();
}


}

}

----------------------------------------------------------------------------------------------------------------------------------------

XML CODE

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<ListView
android:id="@+id/myPDFfiles"
style="@style/Widget.AppCompat.Light.ListView.DropDown"
android:layout_width="match_parent"
android:layout_height="641dp"
android:layout_alignParentTop="true"
android:layout_marginTop="90dp"
android:divider="@android:drawable/button_onoff_indicator_on"
android:paddingStart="4dp">

</ListView>

<TextView
android:id="@+id/textView"
android:layout_width="400dp"
android:layout_height="92dp"
android:gravity="center"
android:text="Unlimited"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textColor="#96D64C"
android:textColorHighlight="#00EB1414"
android:textSize="49dp"
android:textStyle="bold"
android:visibility="visible" />

</RelativeLayout>

RESOURCES

These sites have a partnership with NASA :

Assiut :

https://www.britannica.com/

https://www.britannica.com/place/Asyut-Egypt

Sohag :

https://archive.is/20121216142816/http://www.world-gazetteer.com/wg.php?x=&men=gpro&lng=en&des=wg&geo=-69&srt=npan&col=abcdefghinoq&msz=1500&pt=c&va=&geo=419601169

Menia :

https://web.archive.org/web/20130516131832/http://www.ons.dz/collections/w47_p1.pdf

https://web.archive.org/

Beni suef :

https://www.britannica.com/place/Bani-Suwayf-governorate-Egypt

https://www.britannica.com/

cairo:

https://books.google.com.eg/books?id=INsmT6zjAl8C&redir_esc=y&hl=en

https://books.google.com.eg/books?id=tdLALt9AbQQC&printsec=frontcover&redir_esc=y&hl=en#v=onepage&q&f=false

marsa matrouh :

https://en.climate-data.org/africa/egypt/matrouh-governorate/marsa-matruh-3680/

https://www.weather2travel.com/climate-guides/egypt/marsa-matruh.php

Alex :

https://www.ancient.eu/alexandria/

https://web.archive.org/web/20110101183354/http://www.climate-charts.com/Locations/u/UB62318.php

FROM NASA SITE:

https://earthobservatory.nasa.gov/images/5988/lake...

https://earthobservatory.nasa.gov/images/2813/cair...

https://www.jpl.nasa.gov/spaceimages/details.php?id=PIA23060...

https://earthobservatory.nasa.gov/images/event/159...

mezzo.m.2030moataz ewis
CLASS 1 MAIN ACTIVITY !!
CLASS 1 MAIN ACTIVITY !!
mezzo.m.2030moataz ewis
OUR APP IN EMULATOR !!!
OUR APP IN EMULATOR !!!
mezzo.m.2030moataz ewis