get list of all users connected using wifi tethering in android

I am trying to get list of all connected users in wifi tethering. I know that i have to read dnsmasq.leases but the question is, where can I get this file from my mobile?

If i look at source code of wifi tethering open source app

  • Get resource ID from value
  • Generating iOS and Android icons in Cordova / PhoneGap
  • How do task killers work?
  • Are the “GONE” views inflated?
  • Android: “Path for project must have only one segment”
  • How to upload file using Volley library in android?
  • i get the file path in here


    I might not be using this app for wifi tethering. So then how can i get the file location to read all connected users?

    Related posts:

    Xamarin Shared Projects vs Portable class libraries
    C2DM implementation PHP code
    Creating project in Android 5.0 Lollipop using Eclipse Juno
    Android Eclipse - Could not find *.apk
    I'm getting “Error: No resource found that matches the given name (at value with ...
    How to set both lines of a ListView using simple_list_item_2?
  • ListView whose id attribute is '' Error when I have the ListView id set correctly
  • Android - Proguard with httpcore and httpmime using Android Studio and Gradle
  • Which Intent for Settings - Data usage
  • Failed to export android application (Eclipse)
  • Honeycomb ActionBar Title Shadow
  • How to Store Hashmap to android so that it will be reuse when application restart using shared preferences?
  • 2 Solutions collect form web for “get list of all users connected using wifi tethering in android”

    Do not create a dependency of your app on some external app data.

    See this link to know how to get the list of connected WiFi devices.

    You can use Zero-conf bonjour protocol to discover other devices.

    Android application Wi-Fi device – AP connectivity

    Why don’t you make a new file, and catch usernames as they enter the wifi, writing to the file. Then remove names when they leave the wifi, instead of constantly checking names. Maybe check once every 10 seconds? +1 if this helps, -1 if it doesn’t.

    Sorry for lack of formatting, but I’m on my phone.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.