Skip to content

Commit dbf890b

Browse files
committed
initial commit
0 parents  commit dbf890b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1713
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties

.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

+117
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Android and Game Development Lab (ICT-606)
2+
All android lab code gathered in one project.
3+
4+
## How to run
5+
* Download the zip file from this [link](https://github.com/ICT-CoU/android-lab-code.git)
6+
* Extract the zip file
7+
* Run this file on android studio
8+
* Wait some time for gradle build
9+
* Then run the app and explore the code.
10+
11+
## Implemented
12+
* Button
13+
* ALert Dialog
14+
* Notification
15+
* SMS, Email and Phone Call
16+
* Picker(Date,Time)
17+
18+
## About
19+
Contribution will be welcomed.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
plugins {
2+
id 'com.android.application'
3+
}
4+
5+
android {
6+
namespace 'com.example.lab'
7+
compileSdk 32
8+
9+
defaultConfig {
10+
applicationId "com.example.lab"
11+
minSdk 21
12+
targetSdk 32
13+
versionCode 1
14+
versionName "1.0"
15+
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
}
18+
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
compileOptions {
26+
sourceCompatibility JavaVersion.VERSION_1_8
27+
targetCompatibility JavaVersion.VERSION_1_8
28+
}
29+
}
30+
31+
dependencies {
32+
33+
implementation 'androidx.appcompat:appcompat:1.4.1'
34+
implementation 'com.google.android.material:material:1.5.0'
35+
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
36+
testImplementation 'junit:junit:4.13.2'
37+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
38+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
39+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.example.lab;
2+
3+
import android.content.Context;
4+
5+
import androidx.test.platform.app.InstrumentationRegistry;
6+
import androidx.test.ext.junit.runners.AndroidJUnit4;
7+
8+
import org.junit.Test;
9+
import org.junit.runner.RunWith;
10+
11+
import static org.junit.Assert.*;
12+
13+
/**
14+
* Instrumented test, which will execute on an Android device.
15+
*
16+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
17+
*/
18+
@RunWith(AndroidJUnit4.class)
19+
public class ExampleInstrumentedTest {
20+
@Test
21+
public void useAppContext() {
22+
// Context of the app under test.
23+
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24+
assertEquals("com.example.lab", appContext.getPackageName());
25+
}
26+
}

app/src/main/AndroidManifest.xml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
4+
5+
<uses-permission android:name="android.permission.SEND_SMS" />
6+
<uses-permission android:name="android.permission.RECEIVE_SMS" />
7+
<uses-permission android:name="android.permission.CALL_PHONE" />
8+
9+
<application
10+
android:allowBackup="true"
11+
android:dataExtractionRules="@xml/data_extraction_rules"
12+
android:fullBackupContent="@xml/backup_rules"
13+
android:icon="@mipmap/ic_launcher"
14+
android:label="@string/app_name"
15+
android:roundIcon="@mipmap/ic_launcher_round"
16+
android:supportsRtl="true"
17+
android:theme="@style/Theme.Lab"
18+
tools:targetApi="31">
19+
<activity
20+
android:name=".Picker"
21+
android:exported="false">
22+
<meta-data
23+
android:name="android.app.lib_name"
24+
android:value="" />
25+
</activity>
26+
<activity
27+
android:name=".SmsEmailPhone"
28+
android:exported="false">
29+
<meta-data
30+
android:name="android.app.lib_name"
31+
android:value="" />
32+
</activity>
33+
<activity
34+
android:name=".SMS"
35+
android:exported="false">
36+
<meta-data
37+
android:name="android.app.lib_name"
38+
android:value="" />
39+
</activity>
40+
<activity
41+
android:name=".Notification"
42+
android:exported="false">
43+
<meta-data
44+
android:name="android.app.lib_name"
45+
android:value="" />
46+
</activity>
47+
<activity
48+
android:name=".Dialog"
49+
android:exported="false">
50+
<meta-data
51+
android:name="android.app.lib_name"
52+
android:value="" />
53+
</activity>
54+
<activity
55+
android:name=".Buttons"
56+
android:exported="false">
57+
<meta-data
58+
android:name="android.app.lib_name"
59+
android:value="" />
60+
</activity>
61+
<activity
62+
android:name=".MainActivity"
63+
android:exported="true">
64+
<intent-filter>
65+
<action android:name="android.intent.action.MAIN" />
66+
67+
<category android:name="android.intent.category.LAUNCHER" />
68+
</intent-filter>
69+
70+
<meta-data
71+
android:name="android.app.lib_name"
72+
android:value="" />
73+
</activity>
74+
</application>
75+
76+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.example.lab;
2+
3+
import androidx.appcompat.app.AppCompatActivity;
4+
5+
import android.content.Intent;
6+
import android.os.Bundle;
7+
import android.view.View;
8+
import android.widget.Button;
9+
10+
public class Buttons extends AppCompatActivity {
11+
@Override
12+
protected void onCreate(Bundle savedInstanceState) {
13+
super.onCreate(savedInstanceState);
14+
setContentView(R.layout.activity_buttons);
15+
16+
}
17+
}

0 commit comments

Comments
 (0)