Skip to content

Commit 18431bf

Browse files
author
Amv Labs
committed
Add Phone Contact Directly
1 parent f4629d4 commit 18431bf

54 files changed

Lines changed: 2005 additions & 30 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
0 Bytes
Binary file not shown.

BroadCast/.idea/compiler.xml

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

BroadCast/.idea/copyright/profiles_settings.xml

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

BroadCast/.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BroadCast/.idea/misc.xml

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BroadCast/app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@
3232
android:enabled="true"
3333
android:exported="true">
3434
<intent-filter>
35-
<action android:name="android.provider.Telephony.SMS_RECEIVED"/>
35+
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
3636
</intent-filter>
3737
</receiver>
38+
<receiver
39+
android:name=".OTPReceiver"
40+
android:enabled="true"
41+
android:exported="true"></receiver>
3842
</application>
3943

4044
</manifest>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.broadcast.softgen.broadcast;
2+
3+
import android.content.Context;
4+
import android.database.sqlite.SQLiteDatabase;
5+
import android.database.sqlite.SQLiteOpenHelper;
6+
7+
public class DAB extends SQLiteOpenHelper {
8+
public DAB(Context context) {
9+
super(context, "sdf", null, 1);
10+
}
11+
12+
@Override
13+
public void onCreate(SQLiteDatabase db) {
14+
15+
}
16+
17+
@Override
18+
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
19+
20+
}
21+
}

BroadCast/app/src/main/java/com/broadcast/softgen/broadcast/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class MainActivity extends AppCompatActivity {
3939
protected void onCreate(Bundle savedInstanceState) {
4040
super.onCreate(savedInstanceState);
4141
setContentView(R.layout.activity_main);
42+
4243
getPermissions(this, REQUEST_CODE_READ_PHONE_STATE);
4344
recyclerView = (RecyclerView) findViewById(R.id.listRecycle);
4445
alertText = (TextView) findViewById(R.id.alertText);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.broadcast.softgen.broadcast;
2+
3+
import android.content.BroadcastReceiver;
4+
import android.content.Context;
5+
import android.content.Intent;
6+
7+
public class OTPReceiver extends BroadcastReceiver {
8+
9+
@Override
10+
public void onReceive(Context context, Intent intent) {
11+
// TODO: This method is called when the BroadcastReceiver is receiving
12+
// an Intent broadcast.
13+
throw new UnsupportedOperationException("Not yet implemented");
14+
}
15+
}

ContactsReading/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/libraries
5+
/.idea/modules.xml
6+
/.idea/workspace.xml
7+
.DS_Store
8+
/build
9+
/captures
10+
.externalNativeBuild

0 commit comments

Comments
 (0)