This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Menifest | |
<uses-feature android:name="android.hardware.Sensor.proximity" | |
android:required="true"/> | |
//java | |
public class MainActivity extends AppCompatActivity { | |
Sensor proximitySensor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Json | |
Download from firebase and link | |
//Java................. | |
MyFirebaseInstanceIdService.java | |
public class MyFirebaseInstanceIdService extends FirebaseInstanceIdService { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Web extends AppCompatActivity { | |
private WebView webview; | |
private ProgressBar progressBar; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.web_view); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void sendMail() { | |
String recipientList = "admin@sikhismknowledge.com"; | |
String[] recipients = recipientList.split(","); | |
String subject = mEditTextSubject.getText().toString(); | |
String message = mEditTextMessage.getText().toString(); | |
Intent sendIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts( | |
"mailto","admin@sikhismknowledge.com", null)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class welcomeScreen extends AppCompatActivity { | |
private static int SPLASH_TIME_OUT = 1500; | |
@Override | |
protected void onCreate( Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.welcome_screen); | |
new Handler().postDelayed(new Runnable(){ | |
@Override |