Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7625699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:13:34+00:00 2026-05-31T05:13:34+00:00

I am new with WIFI connectivity with android. I want to create the application

  • 0

I am new with WIFI connectivity with android. I want to create the application to send the messages to WIFI devices with my android devices so for this i want to ask how to connect our android device to WIFI devices to send the messages.

thanks and regards
Amit

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:13:35+00:00Added an answer on May 31, 2026 at 5:13 am
     WifiManager wifiManager;
     wifiManager = (WifiManager)      
     MyWifiActivity.this.getSystemService(Context.WIFI_SERVICE);
     DisplayWifiState();
        BroadcastReceiver myWifiReceiver = new BroadcastReceiver()
         {
    
          @Override
          public void onReceive(Context arg0, Intent arg1) {
           // TODO Auto-generated method stub
            NetworkInfo networkInfo = (NetworkInfo)               
                     arg1.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
           if(networkInfo.getType() == ConnectivityManager.TYPE_WIFI){
            DisplayWifiState();
           }
          }};
        this.registerReceiver(myWifiReceiver,new    
         IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));    
    
    
    }
    
    
    public void DisplayWifiState() 
    {
        // TODO Auto-generated method stub
        AlertDialog.Builder alertbox = new AlertDialog.Builder(MyWifiActivity.this);
    
    
       if(!wifiManager.isWifiEnabled())
        { 
                Log.i("wifi", "wifi is in disabled mode");
                alertbox.setPositiveButton("Ok", new 
                                                DialogInterface.OnClickListener() 
                {
    
                @Override
                public void onClick(DialogInterface dialog, int which) 
                {
                    // TODO Auto-generated method stub
    
                }
            });
                alertbox.setMessage("Wifi is disabled ! Please check Wifi 
                                                                         connection");
                alertbox.show();
        //if wifi is already in enabled
        if(wifiManager.isWifiEnabled())
        {
            Toast.makeText(MyWifiActivity.this,"Already on", Toast.LENGTH_LONG).show();
            Log.i("wifi", "wifi in on mode");
          }
      }
    }
    @Override
    protected void onResume() {
        // TODO Auto-generated method stub
        super.onResume();
         BroadcastReceiver myWifiReceiver = new BroadcastReceiver()
         {
    
          @Override
          public void onReceive(Context arg0, Intent arg1) {
           // TODO Auto-generated method stub
           NetworkInfo networkInfo = (NetworkInfo) 
                    arg1.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
           if(networkInfo.getType() == ConnectivityManager.TYPE_WIFI){
            DisplayWifiState();
           }
          }};
    }
    
    @Override
    protected void onStart() {
        // TODO Auto-generated method stub
        super.onStart();
         BroadcastReceiver myWifiReceiver = new BroadcastReceiver()
         {
    
          @Override
          public void onReceive(Context arg0, Intent arg1) {
           // TODO Auto-generated method stub
           NetworkInfo networkInfo = (NetworkInfo) 
                    arg1.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
           if(networkInfo.getType() == ConnectivityManager.TYPE_WIFI){
            DisplayWifiState();
           }
          }};
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to print file using wifi printing in my android application.I have scanned
I am using following code to create new wifi access point and to connect
I'm new to Android development and working on an Android application that requires the
My application has to connect to PC via WiFi.I need to scan and display
I'm trying to scan available wifi network through my Android device. Here's the chunk
Does Android provide a notification of being in vicinity of a new Wifi Network?
I am developing one android application which select wifi access point from list of
I want to be able to open Android's stock Wifi Settings screen from my
I need to create an application which should send some information to the PC
I am currently trying to set up a WiFi Scan in my Android application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.