Loading packages/CaptivePortalLogin/Android.mk 0 → 100644 +11 −0 Original line number Diff line number Diff line LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := CaptivePortalLogin LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) packages/CaptivePortalLogin/AndroidManifest.xml 0 → 100644 +36 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- /* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.captiveportallogin" > <uses-permission android:name="android.permission.INTERNET" /> <application android:label="@string/app_name" > <activity android:name="com.android.captiveportallogin.CaptivePortalLoginActivity" android:label="@string/action_bar_label" android:theme="@android:style/Theme.Holo" > <intent-filter> <action android:name="android.intent.action.ACTION_SEND"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="text/plain"/> </intent-filter> </activity> </application> </manifest> packages/CaptivePortalLogin/res/layout/activity_captive_portal_login.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.android.captiveportallogin.CaptivePortalLoginActivity" tools:ignore="MergeRootFrame"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" > <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="false" android:layout_alignParentRight="false" /> </RelativeLayout> </FrameLayout> packages/CaptivePortalLogin/res/menu/captive_portal_login.xml 0 → 100644 +15 −0 Original line number Diff line number Diff line <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context="com.android.captiveportallogin.CaptivePortalLoginActivity" > <item android:id="@+id/action_do_not_use_network" android:orderInCategory="100" android:showAsAction="never" android:title="@string/action_do_not_use_network"/> <item android:id="@+id/action_use_network" android:orderInCategory="200" android:showAsAction="never" android:title="@string/action_use_network"/> </menu> packages/CaptivePortalLogin/res/values/dimens.xml 0 → 100644 +7 −0 Original line number Diff line number Diff line <resources> <!-- Default screen margins, per the Android Design guidelines. --> <dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen> </resources> Loading
packages/CaptivePortalLogin/Android.mk 0 → 100644 +11 −0 Original line number Diff line number Diff line LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := CaptivePortalLogin LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE)
packages/CaptivePortalLogin/AndroidManifest.xml 0 → 100644 +36 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- /* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.captiveportallogin" > <uses-permission android:name="android.permission.INTERNET" /> <application android:label="@string/app_name" > <activity android:name="com.android.captiveportallogin.CaptivePortalLoginActivity" android:label="@string/action_bar_label" android:theme="@android:style/Theme.Holo" > <intent-filter> <action android:name="android.intent.action.ACTION_SEND"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="text/plain"/> </intent-filter> </activity> </application> </manifest>
packages/CaptivePortalLogin/res/layout/activity_captive_portal_login.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.android.captiveportallogin.CaptivePortalLoginActivity" tools:ignore="MergeRootFrame"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" > <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="false" android:layout_alignParentRight="false" /> </RelativeLayout> </FrameLayout>
packages/CaptivePortalLogin/res/menu/captive_portal_login.xml 0 → 100644 +15 −0 Original line number Diff line number Diff line <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context="com.android.captiveportallogin.CaptivePortalLoginActivity" > <item android:id="@+id/action_do_not_use_network" android:orderInCategory="100" android:showAsAction="never" android:title="@string/action_do_not_use_network"/> <item android:id="@+id/action_use_network" android:orderInCategory="200" android:showAsAction="never" android:title="@string/action_use_network"/> </menu>
packages/CaptivePortalLogin/res/values/dimens.xml 0 → 100644 +7 −0 Original line number Diff line number Diff line <resources> <!-- Default screen margins, per the Android Design guidelines. --> <dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen> </resources>