Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to Hotspot in Android 5.0 and above #11

Closed
Harishy opened this issue May 24, 2016 · 11 comments
Closed

Unable to connect to Hotspot in Android 5.0 and above #11

Harishy opened this issue May 24, 2016 · 11 comments

Comments

@Harishy
Copy link

Harishy commented May 24, 2016

Hi Droid,

I tried it is working fine in below Android5.0 versions. But when i tried to run it in the Android 5.0 and above it is not switching the device from Wifi to Hotspot.

Thanks
Harish

@nickrussler
Copy link
Owner

nickrussler commented May 31, 2016

I will test it with my Android 5.0.2 phone.

@Harishy
Copy link
Author

Harishy commented Jun 1, 2016

If you find any solution, Please let me know.

@GT500R
Copy link

GT500R commented Jun 2, 2016

I found a solution to fix this issue. Please take a look at #12.

@Harishy
Copy link
Author

Harishy commented Jun 7, 2016

Thanks Nick. Working fine checked in couple of device with Version 5.0 and 5.0.2.
Thankyou .

@nickrussler
Copy link
Owner

Thanks go out to @GT500R :-)

@Harishy
Copy link
Author

Harishy commented Jun 7, 2016

what is @GT500R..

On Tue, Jun 7, 2016 at 4:45 PM, Nick Russler notifications@github.com
wrote:

Thanks go out to @GT500R https://github.com/GT500R :-)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AICQBY0p7dEwhyLITFoU28WplMucspUbks5qJVLjgaJpZM4IlTjY
.

@GT500R
Copy link

GT500R commented Jun 7, 2016

I'm now working on Android Marshmallow and set the targetSdkVersion to 23. Things get even trickier because of the new permissions. In addition WRITE_SETTINGS is also needed and you have to grant this permission in system settings on API 23+.
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
This can not be done like other permissions eg. camera, location because it is different from any other permission. Have a look at https://developer.android.com/reference/android/Manifest.permission.html#WRITE_SETTINGS and http://stackoverflow.com/questions/32083410/cant-get-write-settings-permission/32083622#32083622

@Harishy
Copy link
Author

Harishy commented Jun 7, 2016

Thanks for sharing information.Currently i don't have Android 6.0 OS
device.. will try to find the device and test. It seems you are yet to add
this in the repository.

Regards
Harish

On Tue, Jun 7, 2016 at 6:44 PM, GT500R notifications@github.com wrote:

I'm now working on Android Marshmallow and set the targetSdkVersion to 23.
Things get even trickier because of the new permissions. In addition
WRITE_SETTINGS is also needed and you have to grant this permission in
system settings on API 23+.

This can not be done like other permissions eg. camera, location because
it is different from any other permission.
Have a look at
https://developer.android.com/reference/android/Manifest.permission.html#WRITE_SETTINGS
and
http://stackoverflow.com/questions/32083410/cant-get-write-settings-permission/32083622#32083622


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AICQBfoOTysTmjMyJbxq92g4YhIY0xYkks5qJW7AgaJpZM4IlTjY
.

@nickrussler
Copy link
Owner

http://stackoverflow.com/a/32083622
and
http://stackoverflow.com/a/35285034
seem to be good starting points.

@Harishy
Copy link
Author

Harishy commented Jun 22, 2016

Hi Nick,

I have some doubts could you please help me on those.Those are related to
the Wifi And Hotspot related.
Is it right ti ask here or can you provide other mail id if you don't mine.

Thanks
Harish

On Tue, Jun 7, 2016 at 7:56 PM, Nick Russler notifications@github.com
wrote:

http://stackoverflow.com/a/32083622
and
http://stackoverflow.com/a/35285034
seem to be good starting points.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AICQBR7o2YTcIW0E9r2j0zwR5RbNLuejks5qJX-GgaJpZM4IlTjY
.

@nickrussler
Copy link
Owner

You can find my email here: https://www.whitebyte.info/about

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

No branches or pull requests

3 participants