1 Android BasicNetworking Sample 2 ============================== 3 4 This sample demonstrates how to use the ConnectivityManager to determine if you have 5 a network connection, and if so, what type of connection it is. 6 7 A "NetworkInfo" object is retrieved from the ConnectivityManager, which contains information 8 on the active connection, and then the connection type is printed to an on-screen console. 9 10 Pre-requisites 11 -------------- 12 13 - Android SDK v20 14 - Android Build Tools v20 15 - Android Support Repository 16 17 Getting Started 18 --------------- 19 20 This sample uses the Gradle build system. To build this project, use the 21 "gradlew build" command or use "Import Project" in Android Studio. 22 23 Support 24 ------- 25 26 - Google+ Community: https://plus.google.com/communities/105153134372062985968 27 - Stack Overflow: http://stackoverflow.com/questions/tagged/android 28 29 If you've found an error in this sample, please file an issue: 30 https://github.com/googlesamples/android-BasicNetworking 31 32 Patches are encouraged, and may be submitted by forking this project and 33 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details. 34 35 License 36 ------- 37 38 Copyright 2014 The Android Open Source Project, Inc. 39 40 Licensed to the Apache Software Foundation (ASF) under one or more contributor 41 license agreements. See the NOTICE file distributed with this work for 42 additional information regarding copyright ownership. The ASF licenses this 43 file to you under the Apache License, Version 2.0 (the "License"); you may not 44 use this file except in compliance with the License. You may obtain a copy of 45 the License at 46 47 http://www.apache.org/licenses/LICENSE-2.0 48 49 Unless required by applicable law or agreed to in writing, software 50 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 51 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 52 License for the specific language governing permissions and limitations under 53 the License. 54