Skip to content

Android Wifi Manager interface#65

Merged
Frenzie merged 5 commits intokoreader:masterfrom
mwoz123:upsteam/android-wifi-interface
Oct 10, 2017
Merged

Android Wifi Manager interface#65
Frenzie merged 5 commits intokoreader:masterfrom
mwoz123:upsteam/android-wifi-interface

Conversation

@mwoz123
Copy link
Copy Markdown
Contributor

@mwoz123 mwoz123 commented Oct 9, 2017

Bridge/interface to enable,disable, check status Wifi on Android

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change the XML to self-close just like the rest?

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

import android.view.Window;
import android.util.DisplayMetrics;
import android.net.wifi.WifiManager;
import android.content.Context;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a particular reason it's here rather than grouped with the other android.content.*?

}

private WifiManager getWifiManager() {
return (WifiManager) this.getSystemService(Context.WIFI_SERVICE);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick and sorry I missed it before, but this should be 8 spaces, not a tab. :-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did I already wrote how stupid is replacing Tabs with 4 spaces?
Guys, come on, we're in 21 century ! :P

Copy link
Copy Markdown
Member

@Frenzie Frenzie Oct 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer tabs over spaces myself, but I should point out that even if we used tabs it should've been two instead of one. :-P

@Frenzie Frenzie merged commit a25e156 into koreader:master Oct 10, 2017
@Frenzie
Copy link
Copy Markdown
Member

Frenzie commented Oct 10, 2017

Thanks!

@mwoz123 mwoz123 deleted the upsteam/android-wifi-interface branch November 4, 2017 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants