Wednesday, September 21, 2022

Majha Rojgar - เคฎाเคा เคฐोเคœเค—ाเคฐ

MajhaRojgar (เคฎाเคा เคฐोเคœเค—ाเคฐ™)


เค•ाเคฏ เค†เคนे เคฎाเคा เคฐोเคœเค—ाเคฐ ? - What is Majha Rojgar Site


เคฎाเคा เคฐोเคœเค—ाเคฐ เคนे เคเค• เค‡ंเคŸเคฐเคจेเคŸ เคตเคฐ เค‰เคชเคฒเคฌ्เคง เคเค• เคธाเคˆเคŸ เค†เคนे เคœ्เคฏाเคš्เคฏा เคฎाเคง्เคฏเคฎाเคคूเคจ เค†เคชเคฒ्เคฏाเคฒा เคตिเคตीเคง Job's - เคฐोเคœเค—ाเคฐा เคธंเคฌंเคงीเคš्เคฏा Daily Update's เคฎिเคณเคคाเคค Notification เคชोเคธ्เคŸ เค†เคฃเค–ी เคฌเคฐेเคš เค•ाเคนी.เคœเคธे เคฎเคนाเคฐाเคท्เคŸ्เคฐ เคถाเคธเคจा เคคเคฐ्เคซे Maha-DBT Farmer's เคคเคธेเคš PoCRA เคš्เคฏा เคฎाเคง्เคฏเคฎाเคคुเคจ เคตिเคตिเคง เคฏोเคœเคจा เคฐाเคฌเคตिเคฒ्เคฏा เคœाเคคाเคค.

เคชเคฐंเคคु เค†เคชเคฒ्เคฏाเคฒ เคค्เคฏा เคฏोเคœเคจांเคฌเคฆ्เคฆเคฒ เคชुเคฐे เคชुเคฐ เคฎเคนिเคคी เคจเคธเคคे เค•िंเคต्เคนा เค†เคชเคฒ्เคฏा เคชเคฐीเคฏंเคค เคฏा เคฏोเคœเคจांเคฌเคฆ्เคฆเคฒ เคฎเคนिเคคी เคชोเคนोเคšเคค เคจाเคนी เคค्เคฏाเคฎुเคณे เคถाเคธเคจाเคš्เคฏा เคฏा เคฏोเคœเคจांเคšे เคฒाเคญ เคถेเคคเค•เคฐी เคฌांเคงเคตांเคจा เคฎिเคณเคค เคจाเคนीं.

เคฎ्เคนเคฃूเคจ เค†เคฎ्เคนी เคฏा เคธเคฎเคธ्เคฏेเคšा เค‰เคชाเคฏ เคฎ्เคนเคฃूเคจ เคถेเคคเค•เคฐी เคฎिเคค्เคฐांเคธाเค ी เคเค• เคฎोเคฌाเค‡เคฒ เฅฒเคช เค˜ेเคŠเคจ เค†เคฒो เค†เคนोเคค.
เคœ्เคฏाเคš्เคฏा เคฎाเคง्เคฏเคฎाเคคुเคจ เค†เคชเคฒ्เคฏाเคฒ เคฎเคนाเคฐाเคท्เคŸ्เคฐ เคถाเคธเคจा เคคเคฐ्เคซे เคฐाเคฌเคตिเคฒ्เคฏा เคœाเคฃाเคฑ्เคฏा เคตिเคตिเคง เคฏोเคœเคจां เคฌเคฆ्เคฆเคฒ เคชुเคฐे เคชूเคฐ เคฎเคนीเคฒी เคต เคฎเคนเคค्เคค्เคตाเคšे Updates เคฎिเคณเคคीเคฒ. เคœเคจेเค•เคฐूเคจ เค•ुเค เคฒाเคนी เคถेเคคเค•เคฐी เคฏा เคฏोเคœเคจांเคชाเคธूเคจ เคตंเคšीเคค เคฐाเคนू เคจเคฏे.

เคต เคคเคถेเคš เคฏा เฅฒเคช เคฎเคงे เค†เคชเคฒ्เคฏाเคฒ เคตिเคตीเคง เคช्เคฐเค•ाเคฐเคšा เคธเคฐเค•ाเคฐी เคต เค–ाเคธเค—ी เคจोเค•เคฑ्เคฏा เคธंเคฌंเคงीเคšे เคธुเคฆ्เคงा Updates เคฎिเคณเคคीเคฒ เคœเคฃे เค•เคฐुเคฃ เค†เคชเคฒ्เคฏा เคฎुเคฒाเคฌाเคณांเคจा เคธुเคฆ्เคงा เคค्เคฏाเคšा เคฒाเคญ เคนोเคˆเคฒ.

Official Website :- https://www.majharojgar.in


เค†เคคाเคš เคกाเคŠเคฒोเคก เค•เคฐा Google PlayStore เคตเคฐ เคฎोเคซเคค เค‰เคชเคฒเคฌ्เคง

๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡



Majha Rojgar - เคฎाเคा เคฐोเคœเค—ाเคฐ เคฌเคฆ्เคฆเคฒ

Latest Government Job's in India

เค‡เคฅे เค†เคชเคฒ्เคฏाเคฒा เคฐोเคœเค—ाเคฐा เคธंเคฌंเคงिเคค เคธเคฐ्เคต เคช्เคฐเค•ाเคฐเคš्เคฏा เค–ाเคธเค—ी เคต เคธเคฐเค•ाเคฐी เคจोเค•เคฐी เคธंเคฌंเคงी Daily Update's เคฎिเคณเคคीเคฒ।


। เคช्เคฐเคตेเคถ เคชเคค्เคฐ। เคจिเค•ाเคฒ। เคฎเคนเคค्เคค्เคตाเคš्เคฏा เคญเคฐเคคी। เคตเคฐ्เคคเคฎाเคจ เคญเคฐเคคी।


Majha Rojgar (เคฎाเคा เคฐोเคœเค—ाเคฐ) เคšे เค•ाเคนी เคฎुเค–्เคฏ Topic's


Topic's


*๐Ÿ””เคตเคฐ्เคคเคฎाเคจ เคญเคฐเคคी


*๐Ÿ“ขเคฎेเค˜ा เคญเคฐเคคी


*๐Ÿ“เคชเคฐीเค•्เคทा


*๐Ÿ“เคช्เคฐเคตेเคถเคชเคค्เคฐ


*๐Ÿ“ขเคจिเค•ाเคฒ


*๐Ÿ“ขเคฎเคนเคค्เคค्เคตाเคšी เคญเคฐเคคी


*๐Ÿš†เคฐेเคฒ्เคตे เคญเคฐเคคी


*๐Ÿง‘‍๐Ÿ”งเค…เคช्เคฐेंเคŸीเคธ๐Ÿง‘‍๐Ÿ’ป เคญเคฐเคคी


*๐Ÿฆเคฌँเค• เคญเคฐเคคी


*๐Ÿ›ก️เคธंเคฐเค•्เคทเคฃ เคธेเคตा


*INDIAN ๐Ÿ‡ฎ๐Ÿ‡ณ ARMY


*๐Ÿ”ฅเค…เค—्เคจिเคชเคฅ เคฏोเคœเคจे เค…ंเคคเคฐ्เค—เคค เคญเคฐเคคी


*๐Ÿง‘‍✈️SSC


*๐Ÿ‘ฎเคชोเคฒिเคธ เคญเคฐเคคी


* ๐Ÿ‡ฎ๐Ÿ‡ณ เคธเคฐเค•ाเคฐी เคฏोเคœเคจा


* ๐ŸŒพเคถेเคคเค•เคฑ्เคฏा เคธाเค ीเคš्เคฏा เคฏोเคœเคจा๐ŸŒฑ


เคฎाเคा เคฐोเคœเค—ाเคฐ เคšे Android app เค†เคคा เค†เคชเคฒ्เคฏा เคธेเคตेเคฎเคง्เคฏे

Google Play Store เคตเคฐ เคฎोเคซเคค เค‰เคชเคฒเคฌ्เคง

เคจौเค•เคฐी เคถोเคงเคค เค†เคนाเคค। เคฎिเคณเคค เคจाเคนी เค†เคนेเคค ।
เค†เคนो เคฎเค— เคตाเคŸ เค•เคธเคฒी เคฌเค˜เคค เค†เคนाเคค। เค†เคคเคš เคกाเค‰เคจเคฒोเคก เค•เคฐा เคฎाเคा เคฐोเคœเค—ाเคฐ เคšे Official App เค†เคคा เค†เคชเคฒ्เคฏा เคธेเคตे เคฎเคง्เคฏे.

เคฎाเคा เคฐोเคœเค—ाเคฐ เคšे Android app เค†เคคा เค†เคชเคฒ्เคฏा เคธेเคตेเคฎเคง्เคฏे


*เคฎिเคณเคตा เคฎเคนเคค्เคตाเคš्เคฏा เคจोเค•เคฐीเคšे ๐Ÿ”” Notification เค†เคคा เค†เคชเคฒ्เคฏा เคฎोเคฌाเคˆเคฒ เคตเคฐเคš

*เคธเคฐ्เคต เคช्เคฐเค•ाเคฐเคš्เคฏा เคธเคฐเค•ाเคฐी เคต เค–ाเคธเค—ी เคจौเค•เคฐी เคตिเคทเคฏ เคฎเคฐाเค ि เคคुเคจ เคฎाเคนिเคคी เคฆेเคจाเคฐे เคฆेเคถाเคคीเคฒ เคเค• เคฎेเคต App

*เค†เคคा เค†เคชเคฒ्เคฏा เคธेเคต เคฎเคงे Google Play Store เคตเคฐ เคฎोเคซเคค เค‰เคชเคฒเคฌ्เคง


Download App





Official Website :- https://www.majharojgar.in


App CODE in Android Studio


1) MainActivity.java

package com.apnajob.majharojgar;


import android.app.AlertDialog;

import android.content.Context;

import android.content.DialogInterface;

import android.graphics.Bitmap;

import android.net.ConnectivityManager;

import android.net.NetworkInfo;

import android.os.Bundle;

import android.util.Log;

import android.view.View;

import android.webkit.WebChromeClient;

import android.webkit.WebView;

import android.webkit.WebViewClient;

import android.widget.ProgressBar;


import androidx.appcompat.app.AppCompatActivity;

import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;


import com.onesignal.OneSignal;


public class MainActivity extends AppCompatActivity {


    String websiteURL = "https://www.majharojgar.in/"; // sets web url

    private WebView webview;

    SwipeRefreshLayout mySwipeRefreshLayout;

    private ProgressBar progressBar;


    private static final String ONESIGNAL_APP_ID = "0f68de21-6c4d-44f0-b5f0-8caafda93a3d";


    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);


        // Enable verbose OneSignal logging to debug issues if needed.

        OneSignal.setLogLevel(OneSignal.LOG_LEVEL.VERBOSE, OneSignal.LOG_LEVEL.NONE);


        // OneSignal Initialization

        OneSignal.initWithContext(this);

        OneSignal.setAppId(ONESIGNAL_APP_ID);


        // promptForPushNotifications will show the native Android notification permission prompt.

        // We recommend removing the following code and instead using an In-App Message to prompt for notification permission (See step 7)

        OneSignal.promptForPushNotifications();


        if( ! CheckNetwork.isInternetAvailable(this)) //returns true if internet available

        {

            //if there is no internet do this

            setContentView(R.layout.activity_main);

            //Toast.makeText(this,"No Internet Connection, Chris",Toast.LENGTH_LONG).show();


            new AlertDialog.Builder(this) //alert the person knowing they are about to close

                    .setTitle("No internet connection available")

                    .setMessage("Please Check you're Mobile data or Wifi network.")

                    .setPositiveButton("Ok", new DialogInterface.OnClickListener() {

                        @Override

                        public void onClick(DialogInterface dialog, int which) {

                            finish();

                        }

                    })

                    //.setNegativeButton("No", null)

                    .show();


        }

        else

        {

            //Webview stuff

            webview = findViewById(R.id.webView);

            webview.getSettings().setJavaScriptEnabled(true);

            webview.getSettings().setDomStorageEnabled(true);

            webview.setOverScrollMode(WebView.OVER_SCROLL_NEVER);

            webview.loadUrl(websiteURL);

            webview.setWebViewClient(new WebViewClientDemo());

            webview.setWebChromeClient(new WebChromeClientDemo());


        }


        //Swipe to refresh functionality

        mySwipeRefreshLayout = (SwipeRefreshLayout)this.findViewById(R.id.swipeContainer);


        mySwipeRefreshLayout.setOnRefreshListener(

                new SwipeRefreshLayout.OnRefreshListener() {

                    @Override

                    public void onRefresh() {

                        webview.reload();

                    }

                }

        );


        //Progress bar

        progressBar = (ProgressBar) findViewById(R.id.progressBar);

        progressBar.setMax(100);

    }



    private class WebViewClientDemo extends WebViewClient {

        @Override

        public boolean shouldOverrideUrlLoading(WebView view, String url) {

            view.loadUrl(url);

            return true;

        }

        @Override

        public void onPageFinished(WebView view, String url) {

            super.onPageFinished(view, url);

            progressBar.setVisibility(View.GONE);

            progressBar.setProgress(100);

            mySwipeRefreshLayout.setRefreshing(false);

        }

        @Override

        public void onPageStarted(WebView view, String url, Bitmap favicon) {

            super.onPageStarted(view, url, favicon);

            progressBar.setVisibility(View.VISIBLE);

            progressBar.setProgress(0);

        }


    }

    private class WebChromeClientDemo extends WebChromeClient {

        public void onProgressChanged(WebView view, int progress) {

            progressBar.setProgress(progress);

        }

    }


    //set back button functionality

    @Override

    public void onBackPressed() { //if user presses the back button do this

        if (webview.isFocused() && webview.canGoBack()) { //check if in webview and the user can go back

            webview.goBack(); //go back in webview

        } else { //do this if the webview cannot go back any further


            new AlertDialog.Builder(this) //alert the person knowing they are about to close

                    .setTitle("EXIT")

                    .setMessage("Are you sure. You want to Exit ?")

                    .setPositiveButton("Yes", new DialogInterface.OnClickListener() {

                        @Override

                        public void onClick(DialogInterface dialog, int which) {

                            finish();

                        }

                    })

                    .setNegativeButton("No", null)

                    .show();

        }

    }



}


class CheckNetwork {


    private static final String TAG = CheckNetwork.class.getSimpleName();


    public static boolean isInternetAvailable(Context context)

    {

        NetworkInfo info = (NetworkInfo) ((ConnectivityManager)

                context.getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo();


        if (info == null)

        {

            Log.d(TAG,"no internet connection");

            return false;

        }

        else

        {

            if(info.isConnected())

            {

                Log.d(TAG," internet connection available...");

                return true;

            }

            else

            {

                Log.d(TAG," internet connection");

                return true;

            }


        }

    }

}


2) activity_main.xml


<?xml version="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout 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">


    <androidx.swiperefreshlayout.widget.SwipeRefreshLayout

        android:id="@+id/swipeContainer"

        android:layout_width="match_parent"

        android:layout_height="match_parent">


        <WebView

            android:layout_width="fill_parent"

            android:layout_height="fill_parent"

            android:id="@+id/webView"

            android:layout_alignParentTop="true"

            android:layout_alignParentLeft="true"

            android:layout_alignParentStart="true"

            android:layout_alignParentBottom="true"

            android:layout_alignParentRight="true"

            android:layout_alignParentEnd="true"

            tools:ignore="MissingConstraints" />


    </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>


    <ProgressBar

        android:id="@+id/progressBar"

        android:layout_width="55dp"

        android:layout_height="55dp"

        android:indeterminate="false"

        android:max="100"

        android:progress="20"

        android:progressTint="@color/colorAccent"

        app:layout_constraintBottom_toBottomOf="parent"

        app:layout_constraintEnd_toEndOf="parent"

        app:layout_constraintStart_toStartOf="parent"

        app:layout_constraintTop_toTopOf="parent" />


</androidx.constraintlayout.widget.ConstraintLayout>


3) AndroidMainifest.xml


<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:tools="http://schemas.android.com/tools"

    package="com.apnajob.majharojgar">


    <uses-permission android:name="android.permission.INTERNET" />

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


    <application

        android:allowBackup="true"

        android:dataExtractionRules="@xml/data_extraction_rules"

        android:fullBackupContent="@xml/backup_rules"

        android:icon="@mipmap/ic_launcher"

        android:label="@string/app_name"

        android:roundIcon="@mipmap/ic_launcher_round"

        android:supportsRtl="true"

        android:theme="@style/Theme.MajhaRojgar"

        tools:targetApi="31">

        <activity

            android:name=".MainActivity"

            android:exported="false" />

        <activity

            android:name=".SplashActivity"

            android:exported="true">

            <intent-filter>

                <action android:name="android.intent.action.MAIN" />


                <category android:name="android.intent.category.LAUNCHER" />

            </intent-filter>

        </activity>

    </application>


</manifest>


4) SplashActivity.java


package com.apnajob.majharojgar;


import androidx.appcompat.app.AppCompatActivity;



import android.content.Intent;


import android.os.Bundle;


import android.view.Window;


import android.view.WindowManager;



public class SplashActivity extends AppCompatActivity {



    @Override


    protected void onCreate(Bundle savedInstanceState) {


        super.onCreate(savedInstanceState);



        Window window = getWindow() ;



        window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);


        setContentView(R.layout.activity_splash);





        Thread splashTread = new Thread(){



            @Override


            public void run() {


                try {


                    sleep(3000);


                    startActivity(new Intent(getApplicationContext(),MainActivity.class));


                    finish();


                } catch (InterruptedException e) {


                    e.printStackTrace();


                }



                super.run();


            }


        };



        splashTread.start();






    }



}


5) activity_splash.xml


<?xml version="1.0" encoding="utf-8"?>


<LinearLayout 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"


    android:orientation="vertical"


    tools:context=".SplashActivity">



    <ImageView


        android:layout_width="match_parent"


        android:layout_height="300dp"


        android:src="@drawable/logo"


        android:scaleType="centerCrop"


        android:padding="50dp"


        android:layout_marginTop="220dp"/>


    <ProgressBar


        android:layout_width="220dp"


        android:layout_height="10dp"


        android:layout_gravity="center_horizontal"


        style="?android:attr/progressBarStyleHorizontal"


        android:max="100"


        android:indeterminate="true"


        android:progress="0"


        android:layout_marginTop="100dp"



        />




</LinearLayout>


6) Gradle Scripts


build.gradle(app)

CODE :-


plugins {

    id 'com.android.application'

    id 'com.google.gms.google-services'

    id 'com.onesignal.androidsdk.onesignal-gradle-plugin'

}


android {

    compileSdk 32


    defaultConfig {

        applicationId "com.apnajob.majharojgar"

        minSdk 21

        targetSdk 32

        versionCode 2

        versionName "2.2"


        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

    }


    buildTypes {

        release {

            minifyEnabled false

            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

        }

    }

    compileOptions {

        sourceCompatibility JavaVersion.VERSION_1_8

        targetCompatibility JavaVersion.VERSION_1_8

    }

}


dependencies {


    implementation 'androidx.appcompat:appcompat:1.5.0'

    implementation 'com.google.android.material:material:1.6.1'

    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

    implementation 'com.google.firebase:firebase-messaging:23.0.7'

    testImplementation 'junit:junit:4.13.2'

    androidTestImplementation 'androidx.test.ext:junit:1.1.3'

    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'


    implementation 'com.onesignal:OneSignal:[4.0.0, 4.99.99]'

}



7) settings.gradle(Majha Rojgar)


pluginManagement {

    repositories {

        gradlePluginPortal()

        google()

        mavenCentral()

        jcenter()

    }

}

dependencyResolutionManagement {

    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

    repositories {

        google()

        mavenCentral()

        jcenter()

    }

}

rootProject.name = "Majha Rojgar"

include ':app'



No comments:

Post a Comment