I am developing an android application and one part of it is to check whether the wifi of the phone is enabled or not.
I am running the application directly on mobil
I guess you need the ACCESS_NETWORK_STATE in your manifest.
Need to check your main class(MainActivity) file is mentioned or not in 'Manifest.xml'.
<activity
android:label="@string/app_name"
android:name="com.androidexample.demo.MainActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>