Skip to content

Commit 53d143f

Browse files
Corrected the Splash Screen
1 parent 61cbf31 commit 53d143f

4 files changed

Lines changed: 29 additions & 47 deletions

File tree

app/src/main/java/com/example/androidtechies/majorproject/SplashScreen.java

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.annotation.SuppressLint;
44
import android.content.Intent;
5+
import android.os.Handler;
56
import android.support.v7.app.AppCompatActivity;
67
import android.os.Bundle;
78
import android.view.animation.Animation;
@@ -21,23 +22,13 @@ protected void onCreate(Bundle savedInstanceState) {
2122
Animation myanim = AnimationUtils.loadAnimation(this,R.anim.mytransition);
2223
textView.startAnimation(myanim);
2324
imageView.startAnimation(myanim);
24-
final Intent branch = new Intent(this,HomeScreen.class);
25-
Thread timer = new Thread(){
26-
public void run(){
27-
try {
28-
29-
sleep(1000);
30-
31-
} catch (InterruptedException e) {
32-
e.printStackTrace();
33-
}
34-
finally {
35-
startActivity(branch);
36-
finish();
37-
}
25+
Handler splash = new Handler();
26+
splash.postDelayed(new Runnable() {
27+
@Override
28+
public void run() {
29+
Intent branch = new Intent(SplashScreen.this,HomeScreen.class);
3830
}
39-
};
40-
timer.start();
31+
},1000);
4132
}
4233

4334
}

app/src/main/res/anim/mytransition.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/src/main/res/layout/description.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,11 @@
3636
</android.support.design.widget.CollapsingToolbarLayout>
3737

3838
</android.support.design.widget.AppBarLayout>
39-
<ScrollView
40-
android:layout_width="match_parent"
41-
android:layout_height="wrap_content"
42-
android:layout_below="@+id/appbar">
39+
4340
<android.support.v4.widget.NestedScrollView
4441
android:layout_width="match_parent"
4542
android:layout_height="match_parent"
46-
43+
android:layout_below="@+id/appbar"
4744
app:layout_behavior="@string/appbar_scrolling_view_behavior">
4845

4946
<LinearLayout
@@ -111,5 +108,4 @@
111108

112109
</android.support.v4.widget.NestedScrollView>
113110

114-
</ScrollView>
115111
</RelativeLayout>

app/src/main/res/values/strings.xml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@
8282
<!-- These are module details of string-->
8383
<string name="module_one_it">
8484
1. ResNet34 Training Module:-
85-
This module uses a ResNet34 architecture to train on the 68 point facial landmark detection dataset.
85+
This module uses a ResNet34 architecture to train on the 68 point facial landmark detection dataset.\n
8686
2. Data Generation Module:-
87-
This module is used to generate data from an incoming video file.
87+
This module is used to generate data from an incoming video file.\n
8888
3. Generator Network Module:-
89-
This module is used to make the generator neural network.
89+
This module is used to make the generator neural network.\n
9090
4. Discriminator Network Module:-
91-
This module is used to make the discriminator neural network.
91+
This module is used to make the discriminator neural network.\n
9292
5. Pix2pix Module:-
93-
This module intakes the different architectures and then combines them to form the pix2pix architecture.
93+
This module intakes the different architectures and then combines them to form the pix2pix architecture.\n
9494
6. API Views:-
95-
Module that contains API Backend views
95+
Module that contains API Backend views\n
9696
7. Static Files:-
97-
Module that contains static files of API (frontend)
97+
Module that contains static files of API (frontend)\n
9898
</string>
9999
<string name="module_two_it">
100100
1. site vs site: It allows you to analyse your business search engine competition to get the most on internet investment \n
@@ -108,19 +108,20 @@
108108
9. Multi-Language Support: Allows website to used in multiple language forms\n
109109
10. Indexed Page Checker: Checks how many pages are indexed in the search engine database\n</string>
110110
<string name="module_three_it">
111-
1. Motor Module: This module comprises of four motors along with four LEDs which indicate their ON/OFF status .One pair of motors is temperature-dependent while the other is time- dependent. The working of temperature dependent motors alternates on the basis of increasing temperatures measured using temperature sensors. While the load share of time dependent motors alternates between the main and auxiliary motor with time.
112-
2. Lighting Module: The second module comprises of three LDRs (Light Dependent Resistors: whose functioning depends on the incident light intensity) and eight LEDs. The LEDs adjust their brightness based on the intensity of the natural light coming from the window that is sensed by the LDRs so that the plant is always well lit and thus providing an increased efficiency.
113-
3. Secure Room Module: This module constitutes of a proximity sensor, servo motor, and a fingerprint sensor lock mechanism. The primary function of the module revolves around automatic door opening mechanism using the above mentioned devices. The proximity sensor helps to judge the presence of a person near the door while the fingerprint sensor uses the fingerprint pattern which is unique, to detect whether the person is authenticated to enter the premises of the secure room or not.
114-
4. Smoke Sensing Module and Website: There is also a smoke sensor which senses smoke in case of a fire and alerts the industry staff through piezoelectric buzzer and sending an SMS and a notification in the UI as well. The various modules of the project are interconnected via the BOLT cloud to a Web Application accessible only via OTP protected login page. A fully functional admin control panel gives the admin functionality of shifting from an automatic mode to manual mode and control each hardware part separately.
111+
1. Motor Module: This module comprises of four motors along with four LEDs which indicate their ON/OFF status .One pair of motors is temperature-dependent while the other is time- dependent. The working of temperature dependent motors alternates on the basis of increasing temperatures measured using temperature sensors. While the load share of time dependent motors alternates between the main and auxiliary motor with time.\n
112+
2. Lighting Module: The second module comprises of three LDRs (Light Dependent Resistors: whose functioning depends on the incident light intensity) and eight LEDs. The LEDs adjust their brightness based on the intensity of the natural light coming from the window that is sensed by the LDRs so that the plant is always well lit and thus providing an increased efficiency.\n
113+
3. Secure Room Module: This module constitutes of a proximity sensor, servo motor, and a fingerprint sensor lock mechanism. The primary function of the module revolves around automatic door opening mechanism using the above mentioned devices. The proximity sensor helps to judge the presence of a person near the door while the fingerprint sensor uses the fingerprint pattern which is unique, to detect whether the person is authenticated to enter the premises of the secure room or not.\n
114+
4. Smoke Sensing Module and Website: There is also a smoke sensor which senses smoke in case of a fire and alerts the industry staff through piezoelectric buzzer and sending an SMS and a notification in the UI as well. The various modules of the project are interconnected via the BOLT cloud to a Web Application accessible only via OTP protected login page. A fully functional admin control panel gives the admin functionality of shifting from an automatic mode to manual mode and control each hardware part separately.\n
115115
</string>
116-
<string name="module_four_it">• Email alert
117-
1. Login
118-
2. Logout
119-
3. Database connectivity
120-
4. Data Mining
121-
5. Data Analysis
122-
6. Data processing
123-
7. Data Tracking
116+
<string name="module_four_it">
117+
1. Email alert\n
118+
2. Login\n
119+
3. Logout\n
120+
4. Database connectivity\n
121+
5. Data Mining\n
122+
6. Data Analysis\n
123+
7. Data processing\n
124+
8. Data Tracking\n
124125
</string>
125126

126127
</resources>

0 commit comments

Comments
 (0)