├── resources ├── icon.psd ├── star.psd └── sortby.psd ├── .gitignore ├── res ├── drawable │ ├── ical.png │ ├── icon.png │ └── wake.png ├── drawable-hdpi │ ├── btn_star_big_off.png │ ├── btn_star_big_on.png │ ├── ic_menu_preferences.png │ ├── ic_menu_info_details.png │ └── ic_menu_sort_alphabetically.png ├── drawable-ldpi │ ├── btn_star_big_off.png │ ├── btn_star_big_on.png │ ├── ic_menu_preferences.png │ ├── ic_menu_info_details.png │ └── ic_menu_sort_alphabetically.png ├── drawable-mdpi │ ├── btn_star_big_off.png │ ├── btn_star_big_on.png │ ├── ic_menu_preferences.png │ ├── ic_menu_info_details.png │ └── ic_menu_sort_alphabetically.png ├── drawable-xhdpi │ ├── btn_star_big_on.png │ ├── btn_star_big_off.png │ ├── ic_menu_info_details.png │ ├── ic_menu_preferences.png │ └── ic_menu_sort_alphabetically.png ├── values │ ├── dimens.xml │ ├── styles.xml │ └── strings.xml ├── values-xlarge-mdpi │ ├── dimens.xml │ └── styles.xml ├── layout │ ├── widget_configure.xml │ ├── history_list.xml │ ├── widget.xml │ ├── history_row.xml │ └── main.xml ├── xml │ └── widget_info.xml ├── menu │ ├── history_menu.xml │ └── main_menu.xml ├── xml-v12 │ └── widget_info.xml └── layout-xlarge-mdpi │ └── main.xml ├── releases ├── WakeOnLan-1.0.apk ├── WakeOnLan-1.1.apk ├── WakeOnLan-1.0.1.apk ├── WakeOnLan-1.0.2.apk ├── WakeOnLan-1.0.3.apk ├── WakeOnLan-1.0.4.apk ├── WakeOnLan-1.1.1.apk ├── WakeOnLan-1.2.0.apk ├── WakeOnLan-1.3.0.apk ├── WakeOnLan-1.4.0.apk ├── WakeOnLan-1.4.2.apk └── WakeOnLan-1.5.0.apk ├── project.properties ├── proguard-project.txt ├── README.md ├── LICENSE ├── AndroidManifest.xml ├── src └── net │ └── mafro │ └── android │ ├── wakeonlan │ ├── HistoryListClickListener.java │ ├── HistoryItem.java │ ├── History.java │ ├── WidgetConfigure.java │ ├── HistoryAdapter.java │ ├── MagicPacket.java │ ├── HistoryListHandler.java │ ├── WidgetProvider.java │ ├── HistoryProvider.java │ └── WakeOnLanActivity.java │ └── widget │ └── StarButton.java └── CHANGELOG /resources/icon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/resources/icon.psd -------------------------------------------------------------------------------- /resources/star.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/resources/star.psd -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin/* 2 | gen/* 3 | libs/* 4 | lib/* 5 | local.properties 6 | R.java 7 | build.xml 8 | -------------------------------------------------------------------------------- /res/drawable/ical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable/ical.png -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable/icon.png -------------------------------------------------------------------------------- /res/drawable/wake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable/wake.png -------------------------------------------------------------------------------- /resources/sortby.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/resources/sortby.psd -------------------------------------------------------------------------------- /releases/WakeOnLan-1.0.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.0.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.1.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.1.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.0.1.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.0.1.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.0.2.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.0.2.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.0.3.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.0.3.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.0.4.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.0.4.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.1.1.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.1.1.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.2.0.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.2.0.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.3.0.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.3.0.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.4.0.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.4.0.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.4.2.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.4.2.apk -------------------------------------------------------------------------------- /releases/WakeOnLan-1.5.0.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/releases/WakeOnLan-1.5.0.apk -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_star_big_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-hdpi/btn_star_big_off.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_star_big_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-hdpi/btn_star_big_on.png -------------------------------------------------------------------------------- /res/drawable-ldpi/btn_star_big_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-ldpi/btn_star_big_off.png -------------------------------------------------------------------------------- /res/drawable-ldpi/btn_star_big_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-ldpi/btn_star_big_on.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_star_big_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-mdpi/btn_star_big_off.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_star_big_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-mdpi/btn_star_big_on.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/btn_star_big_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-xhdpi/btn_star_big_on.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-hdpi/ic_menu_preferences.png -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_menu_preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-ldpi/ic_menu_preferences.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_menu_preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-mdpi/ic_menu_preferences.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/btn_star_big_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-xhdpi/btn_star_big_off.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_info_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-hdpi/ic_menu_info_details.png -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_menu_info_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-ldpi/ic_menu_info_details.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_menu_info_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-mdpi/ic_menu_info_details.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_menu_info_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-xhdpi/ic_menu_info_details.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_menu_preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-xhdpi/ic_menu_preferences.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_sort_alphabetically.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-hdpi/ic_menu_sort_alphabetically.png -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_menu_sort_alphabetically.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-ldpi/ic_menu_sort_alphabetically.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_menu_sort_alphabetically.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-mdpi/ic_menu_sort_alphabetically.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_menu_sort_alphabetically.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mafrosis/Wake-On-Lan/HEAD/res/drawable-xhdpi/ic_menu_sort_alphabetically.png -------------------------------------------------------------------------------- /res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14sp 4 | 66dp 5 | 6 | -------------------------------------------------------------------------------- /res/values-xlarge-mdpi/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16sp 4 | 74dp 5 | 6 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /res/layout/widget_configure.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /res/values-xlarge-mdpi/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /res/xml/widget_info.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /res/menu/history_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /res/xml-v12/widget_info.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /res/layout/history_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | -------------------------------------------------------------------------------- /res/menu/main_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 9 | 10 | 12 | 14 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /res/layout/widget.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 20 | 21 | -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Wake On Lan 2 | =========== 3 | 4 | A simple Wake On Lan application. Stores history of sent packets to save you remembering MAC addresses. 5 | 6 | You will need to configure your computer to enable Wake On Lan first. 7 | 8 | 9 | ### Wake On Lan Help 10 | 11 | Please refer to the following links to help you get started with Wake On Lan. 12 | 13 | 14 | **A mini-tutorial for Windows/Debian:** 15 | 16 | [`http://android.mafro.net/wol_tutorial.htm`](http://android.mafro.net/wol_tutorial.htm) 17 | 18 | 19 | **One of the original resources for Wake On Lan:** 20 | 21 | [`http://www.depicus.com/wake-on-lan/what-is-wake-on-lan.aspx`](http://www.depicus.com/wake-on-lan/what-is-wake-on-lan.aspx) 22 | 23 | 24 | **The wiki article on Wake On Lan (for the technically minded):** 25 | 26 | [`http://en.wikipedia.org/wiki/Wake_on_lan`](http://en.wikipedia.org/wiki/Wake_on_lan) 27 | 28 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Wake On Lan 4 | A simple Wake On Lan application. Stores history of sent packets to save remembering MAC addresses. 5 | Send Wake Packet 6 | Save & End Editing 7 | Clear Form 8 | Cancel Edit 9 | History 10 | Wake 11 | History 12 | Wake 13 | Reference 14 | MAC Address 15 | Host Name / IP Address 16 | Port 17 | Send Wake Packet 18 | Edit 19 | Remove 20 | Sort By 21 | Recent 22 | Frequent 23 | Created 24 | Invalid MAC Address 25 | Sending Failed 26 | Magic Packet sent 27 | 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2008-2012 Matt Black. 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright notice, 10 | this list of conditions and the following disclaimer in the documentation 11 | and/or other materials provided with the distribution. 12 | * Neither the name of the author nor the names of its contributors may be used 13 | to endorse or promote products derived from this software without specific 14 | prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 17 | 18 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 37 | 38 | 39 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/net/mafro/android/wakeonlan/HistoryListClickListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2013-2014 Yohan Pereira, Matt Black 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | * Neither the name of the author nor the names of its contributors may be used 14 | to endorse or promote products derived from this software without specific 15 | prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 21 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | */ 28 | 29 | package net.mafro.android.wakeonlan; 30 | 31 | /** 32 | * @desc HistoryListClickListener defines the interface for an object that 33 | * listens to onClick events on the HistoryList 34 | */ 35 | interface HistoryListClickListener { 36 | 37 | void onClick(HistoryItem item); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- 1 | v 1.5 2 | introduced new icons and support for several screen densities 3 | font size adjustments and list height across different android resolutions 4 | tablet support 5 | convert mixed case MAC addresses to lower 6 | auto-insert colons into MAC address fixes #6 (thanks to John Gorena) 7 | always trim whitespace on form fixes #7 (thanks to Wei Zhang) 8 | fixed bad ref in StarButton 9 | refactored app, added comments & general cleanup 10 | completely removed custom update-checker; superseded by the Android market 11 | 12 | v 1.4.2 13 | fixed bug in MagicPacket where always used port 9.. 14 | fixed exception when parsing non-integer port number 15 | 16 | v 1.4 17 | 18 | implemented settings activity to disable update check. added option to main menu 19 | implemented sorting for history list, with three options: frequency of use, creation date, most recently used 20 | added a Google style star button to each list item which pushes it to the top of the list 21 | fixed bug in HistoryProvider setting invalid default values on an insert 22 | fixed crash when port not set 23 | 24 | v 1.3 25 | 26 | history items now unique on MAC, IP and port 27 | vastly improved the editing process 28 | persist form data until saved/sent 29 | added cancel button for edit mode, clear button for send mode 30 | added inline MAC address validation 31 | display item title in sent notification 32 | clear errors when resetting form 33 | improved MAC address validation via regexp 34 | 35 | v 1.2 36 | 37 | change display text to Host Name / IP Address 38 | updated project for SDK 1.5r1 39 | changed history item padding for android 1.5 40 | changed Delete for Remove, minor debug change in Updater 41 | single click for send packet 42 | further implemented edit, now removes old item 43 | 44 | v 1.1.1 45 | 46 | fixed layout bug, released 1.1.1 47 | fixed bug in Updater when GET fails 48 | 49 | v 1.1.0 50 | 51 | implemented edit 52 | accepts MACs without separators 53 | smart mac address formatting 54 | improved version checking 55 | check for updates once a week 56 | 57 | v 1.0.1 58 | 59 | added ScrollView for wake form 60 | 61 | -------------------------------------------------------------------------------- /src/net/mafro/android/wakeonlan/HistoryItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2008-2012 Matt Black. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | * Neither the name of the author nor the names of its contributors may be used 14 | to endorse or promote products derived from this software without specific 15 | prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 21 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | */ 28 | 29 | package net.mafro.android.wakeonlan; 30 | 31 | import android.database.Cursor; 32 | 33 | 34 | /** 35 | * @desc Convenience class for passing history entries around the application 36 | */ 37 | public class HistoryItem 38 | { 39 | public int id; 40 | public String title; 41 | public String mac; 42 | public String ip; 43 | public int port; 44 | 45 | public HistoryItem(int id, String title, String mac, String ip, int port) 46 | { 47 | this.id = id; 48 | this.title = title; 49 | this.mac = mac; 50 | this.ip = ip; 51 | this.port = port; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /res/layout/history_row.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 17 | 18 | 23 | 24 | 31 | 32 | 38 | 39 | 45 | 53 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /src/net/mafro/android/wakeonlan/History.java: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2008-2012 Matt Black. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | * Neither the name of the author nor the names of its contributors may be used 14 | to endorse or promote products derived from this software without specific 15 | prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 21 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | */ 28 | 29 | package net.mafro.android.wakeonlan; 30 | 31 | import android.net.Uri; 32 | import android.provider.BaseColumns; 33 | 34 | 35 | /** 36 | * @desc convenience definitions for HistoryProvider 37 | */ 38 | public final class History { 39 | public static final String AUTHORITY = "net.mafro.android.wakeonlan.historyprovider"; 40 | 41 | private History() {} 42 | 43 | public static final class Items implements BaseColumns { 44 | private Items() {} 45 | 46 | public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/history"); 47 | 48 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.mafro.wakeonlan.history"; 49 | public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.mafro.wakeonlan.history"; 50 | 51 | public static final String DEFAULT_SORT_ORDER = "last_used DESC"; 52 | 53 | public static final String TITLE = "title"; 54 | public static final String MAC = "mac"; 55 | public static final String IP = "ip"; 56 | public static final String PORT = "port"; 57 | public static final String CREATED_DATE = "created"; 58 | public static final String LAST_USED_DATE = "last_used"; 59 | public static final String USED_COUNT = "used_count"; 60 | public static final String IS_STARRED = "is_starred"; 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 16 | 20 | 21 | 22 | 23 | 27 | 28 | 32 | 33 | 37 | 41 | 42 | 46 | 50 | 51 | 55 | 59 | 60 | 64 | 68 | 69 | 74 | 75 |