DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Using the ConnectionSettings Task for Windows Phone

Using the ConnectionSettings Task for Windows Phone

Dhananjay Kumar user avatar by
Dhananjay Kumar
·
Feb. 13, 12 · Mobile Zone · Interview
Like (0)
Save
Tweet
3.01K Views

Join the DZone community and get the full member experience.

Join For Free

connectionsettings task allows the user to set and adjust the device network settings. connectionsettings task is defined in microsoft.phone.tasks namespace as the following:

image


the user can set the device network setting to any of the following:

image


if you want to set the network connection setting to wifi , you can set it by doing this:

connectionsettingstask connectionsettingstask = new connectionsettingstask();
connectionsettingstask.connectionsettingstype = connectionsettingstype.wifi;
connectionsettingstask.show();

image


if you want to set network connection setting to bluetooth , you can set it like this:

connectionsettingstask connectionsettingstask = new connectionsettingstask();
connectionsettingstask.connectionsettingstype = connectionsettingstype.bluetooth;
connectionsettingstask.show();

image


if you want to set network connection setting to cellular , you can set it like this:

connectionsettingstask connectionsettingstask = new connectionsettingstask();
connectionsettingstask.connectionsettingstype = connectionsettingstype.cellular;
connectionsettingstask.show();

image


if you want to set network connection setting to airplane mode , you can set it like this:

connectionsettingstask connectionsettingstask = new connectionsettingstask();
connectionsettingstask.connectionsettingstype = connectionsettingstype.airplanemode;
connectionsettingstask.show();

image


in this way you can set the network setting of the device using the connectionsettings task. i hope this post is useful to you and thanks for reading!


source: http://debugmode.net/2012/01/18/how-to-use-the-connectionsettings-task-for-windows-phone/
Task (computing) Windows Phone

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • No Code Expectations vs Reality
  • Building a QR Code Generator with Azure Functions
  • 5 Ways to Optimize Your CQL Queries for Performance
  • When Disaster Strikes: Production Troubleshooting

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo