long awaited feature! Now you can select which apps to exclude!
11 |
12 | Version 2.4.2 (2014/07/06)
13 |
14 |
add German, Russian, Ukranian translations, Thanks to Paul L. Scholz, and Andrew
15 |
16 | Version 2.4 (2014/02/15)
17 |
18 |
Remove testing unlock feature
19 |
fix crashes on some devices
20 |
21 | Version 2.3 (2014/02/14)
22 |
23 |
Add Dutch translation: Thanks for Xander Stone\'s help
24 |
Improvement: Add Vibrate while turning off screen.
25 |
Improvement: make Uninstall action more visible on Actionbar. Don\'t mail me how to uninstall anymore...
26 |
Improvement: make time picker 24 hour format. Should be more useful.
27 |
28 | Version 2.2 (2013/12/02):
29 |
30 |
Improvement: Add swipe feature. You can set up in Timeout settings.
31 |
Improvement: Add Disable TurnOn or TurnOff feature. in Timeout settings too.
32 |
33 | Version 2.1.0 (2013/08/19)
34 |
Improvement: It\'s possible to hear cover close sound now
Add French translation: Thanks for Geoffrey Frogeye\' help
Version 2.0.10 (2013/08/04):
Improvement: Improves sensitivity of Landscape disabling
Add Vietnamese translation: Thanks for Hai Long Hoang\' help
Version 2.0.9 (2013/07/04):
Issue Fix: Turning on feature, and scroll settings, it will cause turn off feature (Google\'s issue)
Version 2.0.8 (2013/06/30):
Feature: Add Power Save Mode. ONLY Works on Some devices. If it makes screen on/off not working. Don\'t use it.
Issue Fix: Sleeping time not working, after rebooting the device.
Issue Fix: Auto turn on Screen (but turn off right away) should work normally on Samsung devices now. I hope so, since I don\'t have one to verify.
Version 2.0.7 (2013/06/20):
Add partial wakelock back
Version 2.0.6 (2013/06/19):
Reduce power consumption by removing partial wakelock
Version 2.0.5 (2013/06/15):
Issue fix: When sleep time is up, the function is not enabled again.
Version 2.0.4 (2013/06/13):
Issue fix: fix crash issue on android 2.x devices.
Version 2.0.3 (2013/06/11):
Fine tuning: fine tune sensor parameter in order to save more power.
Version 2.0.2 (2013/06/10):
Issue fix: some people may encounter notification not working issue. it\'s fixed in this version
Restart service after upgrading app.
Version 2.0.1 (2013/06/08):
Issue fix: if you are using Android 2.x devices, make sure you update this version, so that notification can work for you.
Move \"Uninstall App\" button to actionbar; make room for preferences.
Version 2.0 (2013/06/07):
Add notification: now you can toggle the feature more conveniently!
Version 1.9:
Largely shrink the app file size by removing unwanted libs
Add sleep time settings, to better reduce power consumption.
Change application logo icon
Issue fix: sometimes \"Enable while plugged\" can\'t function well.
Version 1.8:
works after rebooting the device. You don\'t have to manually turn on the function again.
A version changelog dialog is added. Every time a new version arrives, it\'s easier for you to know what\'s been added.
Timeout value can be correctly updated now!
35 |
36 | ]]>
37 |
38 | Potřebujete oprávnění pro vypnutí obrazovky
39 | "%s
40 | v%s"
41 | O aplikaci
42 | Opravdu chcete odinstalovat tuto aplikaci?
43 | Odinstalovat App
44 | Ahoj všichni!
45 | https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff
46 | Pokročilé
47 | Nastavení AutoScreen
48 | Přehrát zvuk, při automatickém vypnutí obrazovky
49 | Nastavení Napájení
50 | Nastavení Času Spánku (Beta)
51 | Obrazovka Zap/Vyp automaticky
52 | funguje pouze při nabíjení.
53 | Vhodné pro pořizování fotografií nebo sledování filmů v landscape módu (Na šířku).
54 | FUNGUJE POUZE na NĚKTERÝCH ZAŘÍZENÍCH. Na jiných zařízeních, funkce zapnutí/vypnutí nemusí fungovat správně. Zkuste sami.
55 | Rychlejší přepínání; také včetně obrazovky vyp
56 | z důvodu úspory energie(Stále buggy. Hlásit mě, jestli najdete chybu.)
57 | "Zpoždění než se Obrazovka Vypne.
58 |
59 | Aktuální nastavení:%s"
60 | "Zpoždění než se Obrazovka Zapne.
61 |
62 | Aktuální nastavení:%s"
63 | Povolit
64 | Pouze tehdy, když je připojen
65 | Dočasně zakázat v Landscape módu
66 | Úsporný Režim
67 | Přehrát Zvuk Vypnutí
68 | Zobrazit Oznámení v Panelu
69 | Vypnout při Spánku
70 | Časový limit Vypnutí Obrazovky
71 | Časový limit Zapnutí Obrazovky
72 | AutoScreenOnOff
73 | Spánek Čas Začátku
74 | Spánek Čas Ukončení
75 | AutoScreen je Zakázán.
76 | AutoScreen je Povolen.
77 | Nabíjení! AutoScreen je Povoleno.
78 | Okamžitě
79 | 0.5 sek
80 | 1 sek
81 | 2 sek
82 | 3 sek
83 | 10 sek
84 | Stejný Časový Limit jako Zámek
85 | O aplikaci
86 | "Co je nového"
87 | Jít na GitHub
88 | Ohodnoť mojí App!
89 | Vypnout AutoScreen VYP
90 | Zapnout AutoScreen ZAP
91 | Odinstalovat App
92 | AutoScreen OnOff
93 |
94 |
--------------------------------------------------------------------------------
/src/com/danielkao/autoscreenonoff/ui/AppMultiselectListPreference.java:
--------------------------------------------------------------------------------
1 | package com.danielkao.autoscreenonoff.ui;
2 |
3 | import android.app.AlertDialog.Builder;
4 | import android.content.Context;
5 | import android.content.DialogInterface;
6 | import android.content.DialogInterface.OnMultiChoiceClickListener;
7 | import android.content.Intent;
8 | import android.content.pm.PackageManager;
9 | import android.content.pm.ResolveInfo;
10 | import android.content.res.Resources;
11 | import android.preference.ListPreference;
12 | import android.util.AttributeSet;
13 | import android.util.Log;
14 | import com.danielkao.autoscreenonoff.util.CV;
15 |
16 | import java.util.*;
17 |
18 | /**
19 | * Created by plateau on 2014/07/19.
20 | */
21 | public class AppMultiselectListPreference extends ListPreference {
22 |
23 | private class AppInfo {
24 | public AppInfo(String name, String appPackageName) {
25 | this.appName = name;
26 | this.appPackageName = appPackageName;
27 | }
28 |
29 | public String appName;
30 | public String appPackageName;
31 | }
32 |
33 | private String separator;
34 | private static final String DEFAULT_SEPARATOR = "\u0001\u0007\u001D\u0007\u0001";
35 | private boolean[] entryChecked;
36 | private CharSequence[] entries;
37 | private CharSequence[] entryValues;
38 |
39 | public AppMultiselectListPreference(Context context, AttributeSet attributeSet) {
40 | super(context, attributeSet);
41 | separator = DEFAULT_SEPARATOR;
42 | setSummary(prepareSummary(null));
43 | }
44 |
45 | public AppMultiselectListPreference(Context context) {
46 | this(context, null);
47 | setSummary(prepareSummary(null));
48 | }
49 |
50 | @Override
51 | protected void onPrepareDialogBuilder(Builder builder) {
52 | List appList = getInstalledComponentList();
53 | entries = new CharSequence[appList.size()];
54 | entryValues = new CharSequence[appList.size()];
55 | for (int i = 0 ; i < appList.size(); i++) {
56 | entries[i] = appList.get(i).appName;
57 | }
58 | for (int i = 0 ; i < appList.size(); i++) {
59 | entryValues[i] = appList.get(i).appPackageName;
60 | }
61 |
62 | entryChecked = new boolean[appList.size()];
63 |
64 | restoreCheckedEntries();
65 |
66 | OnMultiChoiceClickListener listener = new DialogInterface.OnMultiChoiceClickListener() {
67 | public void onClick(DialogInterface dialog, int which, boolean val) {
68 | entryChecked[which] = val;
69 | Log.v("applist", entryValues[which].toString());
70 | }
71 | };
72 |
73 | builder.setMultiChoiceItems(entries, entryChecked, listener);
74 | }
75 |
76 | private CharSequence[] unpack(CharSequence val) {
77 | if (val == null || "".equals(val)) {
78 | return new CharSequence[0];
79 | } else {
80 | return ((String) val).split(separator);
81 | }
82 | }
83 | /**
84 | * Gets the entries values that are selected
85 | *
86 | * @return the selected entries values
87 | */
88 | public CharSequence[] getCheckedValues() {
89 | return unpack(getValue());
90 | }
91 |
92 | private List getInstalledComponentList(){
93 | final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
94 | Context context = getContext();
95 | mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
96 | List ril = context.getPackageManager().queryIntentActivities(mainIntent, 0);
97 | if(ril == null) return null;
98 |
99 | List componentList = new ArrayList();
100 | String name = null;
101 |
102 | for (ResolveInfo ri : ril) {
103 | if (ri.activityInfo != null) {
104 | try {
105 | Resources res = context.getPackageManager().getResourcesForApplication(ri.activityInfo.applicationInfo);
106 | if (ri.activityInfo.labelRes != 0) {
107 | name = res.getString(ri.activityInfo.labelRes);
108 | } else {
109 | name = ri.activityInfo.applicationInfo.loadLabel(
110 | context.getPackageManager()).toString();
111 | }
112 |
113 | Log.v("applist", name);
114 | componentList.add(new AppInfo(name, ri.activityInfo.processName));
115 | } catch (PackageManager.NameNotFoundException e) {
116 | e.printStackTrace();
117 | }
118 | }
119 | }
120 | Collections.sort(componentList, new Comparator() {
121 | @Override
122 | public int compare(AppInfo lhs, AppInfo rhs) {
123 | return lhs.appName.compareTo(rhs.appName);
124 | }
125 | });
126 | return componentList;
127 | }
128 |
129 | private void restoreCheckedEntries() {
130 | // Explode the string read in sharedpreferences
131 | CharSequence[] vals = unpack(getValue());
132 |
133 | if (vals != null) {
134 | List valuesList = Arrays.asList(vals);
135 | for (int i = 0; i < entryValues.length; i++) {
136 | CharSequence entry = entryValues[i];
137 | entryChecked[i] = valuesList.contains(entry);
138 | }
139 | }
140 | }
141 |
142 | @Override
143 | protected void onDialogClosed(boolean positiveResult) {
144 | List values = new ArrayList();
145 |
146 | if (positiveResult && entryValues != null) {
147 | for (int i = 0; i < entryValues.length; i++) {
148 | if (entryChecked[i] == true) {
149 | String val = (String) entryValues[i];
150 | values.add(val);
151 | }
152 | }
153 |
154 | String value = join(values, separator);
155 | String names = (String)prepareSummary(values);
156 | setSummary(names);
157 | /* set summary value to preference too */
158 | CV.setExcludeAppNameList(getContext(), names);
159 | /* */
160 | setValueAndEvent(value);
161 | }
162 | }
163 |
164 | private void setValueAndEvent(String value) {
165 | if (callChangeListener(unpack(value))) {
166 | setValue(value);
167 | }
168 | }
169 |
170 | private CharSequence prepareSummary(List joined) {
171 | List titles = new ArrayList();
172 | CharSequence[] entryTitle = entries;
173 | if (entries == null || entries.length == 0) {
174 | return CV.getExcludeAppNameList(getContext());
175 | }
176 |
177 | int ix = 0;
178 | for (CharSequence value : entryValues) {
179 | if (joined.contains(value)) {
180 | titles.add((String) entryTitle[ix]);
181 | }
182 | ix += 1;
183 | }
184 | return join(titles, ", ");
185 | }
186 |
187 | /*
188 | @Override
189 | protected Object onGetDefaultValue(TypedArray typedArray, int index) {
190 | return typedArray.getTextArray(index);
191 | }
192 | */
193 |
194 | /*
195 | @Override
196 | protected void onSetInitialValue(boolean restoreValue,
197 | Object rawDefaultValue) {
198 | setSummary(prepareSummary(null));
199 | }
200 | */
201 |
202 | /**
203 | * Joins array of object to single string by separator
204 | *
205 | * Credits to kurellajunior on this post
206 | * http://snippets.dzone.com/posts/show/91
207 | *
208 | * @param iterable
209 | * any kind of iterable ex.: ["a", "b", "c"]
210 | * @param separator
211 | * separetes entries ex.: ","
212 | * @return joined string ex.: "a,b,c"
213 | */
214 | protected static String join(Iterable> iterable, String separator) {
215 | Iterator> oIter;
216 | if (iterable == null || (!(oIter = iterable.iterator()).hasNext()))
217 | return "";
218 | StringBuilder oBuilder = new StringBuilder(String.valueOf(oIter.next()));
219 | while (oIter.hasNext())
220 | oBuilder.append(separator).append(oIter.next());
221 | return oBuilder.toString();
222 | }
223 |
224 | }
225 |
--------------------------------------------------------------------------------
/res/values-vi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Tự động tắt/mở màn hình
5 | Cài đặt màn hình tự động tắt/mở
6 | Cài đặt
7 | Xin chào!
8 |
9 | Mở tự động tắt/mở
10 | Tắt tự động tắt/mở
11 | Cần quyền này để tắt màn hình
12 | Tắt/mở màn hình
13 |
14 | Cài đặt màn hình tự động
15 | Cài đặt pin
16 | Nâng cao
17 |
18 | Chỉ chạy khi sạc.
19 | Chỉ khi cắm sạc
20 |
21 | Màn hình tắt/mở tự động
22 | Kích hoạt
23 | Gỡ ứng dụng
24 |
25 | Bầu chọn cho ứng dụng!
26 | vào GitHub
27 | Thông tin
28 | Có gì mới?
29 |
30 | Tiện khi màn hình xoay ngang để chụp ảnh hay xem phim.
31 | Tạm dừng khi màn hình xoay ngang
32 |
33 | Thông tin
34 | %s\nv%s
35 |
36 | Độ trễ khi Tắt màn hình có hiệu lực. \n\nCài đặt hiện tại:%s
37 | Thời gian chờ Tắt màn hình
38 |
39 | Độ trễ khi Mở màn hình có hiệu lực. \n\nCài đặt hiện tại:%s
40 | Thời gian chờ Mở màn hình
41 |
42 | CHỈ HOẠT ĐỘNG với MỘT SỐ thiết bị. Trên vài thiết bị khác, tính năng tắt/mở sẽ không hoạt động tốt. Bạn hãy tự trải nghiệm.
43 | Tiết kiệm pin
44 |
45 | Bằng thời lượng khóa màn hình
46 | Ngay lập tức
47 | 0.5 giây
48 | 1 giây
49 | 2 giây
50 | 3 giây
51 | 10 giây
52 |
53 | Gỡ ứng dụng
54 | Bạn thực sự muốn gỡ ứng dụng?
55 |
56 |
57 | Version 2.5 (2014/07/19)
59 |
60 |
long awaited feature! Now you can select which apps to exclude!
61 |
62 | Version 2.4.2 (2014/07/06)
63 |
64 |
add German, Russian, Ukranian translations, Thanks to Paul L. Scholz, and Andrew
65 |
66 | Version 2.4 (2014/02/15)
67 |
68 |
Remove testing unlock feature
69 |
fix crashes on some devices
70 |
71 | Version 2.3 (2014/02/14)
72 |
73 |
Add Dutch translation: Thanks for Xander Stone\'s help
74 |
Improvement: Add Vibrate while turning off screen.
75 |
Improvement: make Uninstall action more visible on Actionbar. Don\'t mail me how to uninstall anymore...
76 |
Improvement: make time picker 24 hour format. Should be more useful.
77 |
78 | Version 2.2 (2013/12/02):
79 |
80 |
Improvement: Add swipe feature. You can set up in Timeout settings.
81 |
Improvement: Add Disable TurnOn or TurnOff feature. in Timeout settings too.
82 |
83 | Version 2.0.10 (2013/08/04):
84 |
85 |
*Cải tiến: Tăng cường độ nhạy cho tính năng \"Tạm dừng khi màn hình xoay ngang\"
86 |
*Thêm ngôn ngữ tiếng Việt bởi Hoàng Hải Long
87 |
88 | Bản 2.0.9 (2013/07/04):
89 |
90 |
Sửa lỗi: Tính năng mở, và cuộn trong phần cài đặt, khiến tắt ứng dụng (vấn đề thuộc Google)
91 |
92 | Bản 2.0.8 (2013/06/30):
93 |
94 |
Tính năng: Thêm chế độ tiết kiệm pin. Chỉ chạy trên một số thiết bị. Nếu nó làm màn hình không tắt/mở. Thôi dùng nó.
95 |
Sửa lỗi: Thời gian ngủ không hoạt động, sau khi khởi chạy máy.
96 |
Sửa lỗi: Tự động mở màn hình (nhưng tắt ngay) hiện có thể chạy tốt trên các thiết bị Samsung. Mình hy vọng thế, Vì hiện mình không có máy để xác nhận.
97 |
98 | Bản 2.0.7 (2013/06/20):
99 |
100 |
Thêm trở lại phần tự khóa
101 |
102 | Bản 2.0.6 (2013/06/19):
103 |
104 |
Giảm tiêu hao điện năng bằng cách bỏ đi tính năng tự khóa
105 |
106 | Bản 2.0.5 (2013/06/15):
107 |
108 |
Sửa lỗi: Khi chỉnh tăng thời gian ngủ, tính năng không chạy lại.
109 |
110 | Bản 2.0.4 (2013/06/13):
111 |
112 |
Sửa lỗi: sửa lỗi treo ở các thiết bị chạy android 2.x.
113 |
114 | Bản 2.0.3 (2013/06/11):
115 |
116 |
Tinh chỉnh: tinh chỉnh các tham số ở cảm biến để thiết kiệm pin.
117 |
118 | Bản 2.0.2 (2013/06/10):
119 |
120 |
Sửa lỗi: vài người gặp phải vấn đề không hoạt động trên thanh thông báo. Bản này sẽ khắc phục nó.
121 |
Khởi động lại ứng dụng sau khi nâng cấp.
122 |
123 | Bản 2.0.1 (2013/06/08):
124 |
125 |
Sửa lỗi: nếu bạn đang dùng thiết bị chạy Android 2.x, hãy dùng bản này, mục thông báo có thể sẽ hoạt động.
126 |
Chuyển nút \"Gỡ ứng dụng\" lên thanh hoạt động; tạo không gian cho phần cài đặt.
127 |
128 | Bản 2.0 (2013/06/07):
129 |
130 |
Thêm mục thông báo: giờ bạn có thể truy cập các tính năng tiện hơn!
131 |
132 | Bản 1.9:
133 |
134 |
Thu gọn dung lượng ứng dụng đáng kể bằng cách bỏ các đoạn mã không cần thiết.
135 |
Thêm cài đặt thời gian ngủ, để tiết kiệm pin tốt hơn.
136 |
Đổi biểu tượng ứng dụng
137 |
Sửa lỗi: thi thoảng tính năng \"Chạy khi cắm sạc\" không chạy tốt.
138 |
139 | Bản 1.8:
140 |
141 |
hoạt động sau khi khởi động lại máy. Bạn không phải mở tính năng lại.
142 |
Thêm danh mục các thay đổi ở từng bản. Mỗi khi một bản mới có, bạn sẽ biết có gì mới dễ dàng hơn.
143 |
Thời lượng có thể được cập nhật chính xác hơn!
144 |
145 | ]]>
146 |
147 |
148 | Cài đặt khi ngủ (Beta)
149 | để giảm thiểu tiêu hao năng lượng.(Còn lỗi. Thông báo cho mình nếu bạn tìm thấy lỗi.)
150 | Dừng khi ngủ
151 | Thời điểm bắt đầu ngủ
152 | Thời điểm thức dậy
153 |
154 | Nút chuyển nhanh;gồm cả nút tắt màn hình
155 | Hiển thị trên thanh thông báo
156 | Đang sạc! Kích hoạt tự động tắt/mở màn hình.
157 | Đã kích hoạt màn hình tự động.
158 | Đã dừng màn hình tự động.
159 |
160 |
161 | https://github.com/plateaukao/PowerOff
162 | https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff
163 | Play sound while auto turning off screen
164 | Play Close Sound
165 |
166 |
167 |
--------------------------------------------------------------------------------
/res/values-sk/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AutoScreenOnOff
5 | Auto Screen nastavenia
6 | Nastavenia
7 | Hello world!
8 |
9 | AutoScreen ZAP
10 | AutoScreen VYP
11 | Je potrebné pre vypnutie obrazovky.
12 | Obrazovka ZAP/VYP
13 |
14 | Nastavenia Auto Screen
15 | Nastavenie napájania
16 | Pokročilé
17 |
18 | funguje iba pri nabíjaní.
19 | Iba ak je zariadenie pripojené
20 |
21 | vypínanie/zapínanie obrazovky automaticky
22 | Povoliť
23 | Odinštalovať aplikáciu
24 |
25 | Ohodnotiť aplikáciu!
26 | Ísť na GitHub
27 | O aplikácii
28 | Čo je nové
29 |
30 | Užitočné pri sledovaní videí, alebo pri fotení v režime na šírku.
31 | Pri režime na šírku dočasne neaktívne
32 |
33 | O aplikácii
34 | %s\nv%s
35 |
36 | Oneskorenie, kým sa obrazovka vypne. \n\nAktuálne nastavenie:%s
37 | Hodnota uzamknutia obrazovky
38 |
39 | Oneskorenie, kým sa obrazovka zapne. \n\nAktuálne nastavenie:%s
40 | Hodnota odomknutia obrazovky
41 |
42 | FUNGUJE IBA NA NIEKTORÝCH ZARIADENIACH. Na ostatných zariadeniach nebude funkcia ZAP/VYP fungovať správne. Skúste to.
43 | Úsporný režim
44 |
45 | Rovnaké ako hodnota zamknutia
46 | Okamžite
47 | 0.5 sek
48 | 1 sek
49 | 2 sek
50 | 3 sek
51 | 10 sek
52 |
53 | Odinštalovať aplikáciu
54 | Ste si istý, že chcete odinštalovať túto aplikáciu?
55 |
56 |
57 | Version 2.5 (2014/07/19)
59 |
60 |
long awaited feature! Now you can select which apps to exclude!
61 |
62 | Version 2.4.2 (2014/07/06)
63 |
64 |
add German, Russian, Ukranian translations, Thanks to Paul L. Scholz, and Andrew
65 |
66 | Version 2.4 (2014/02/15)
67 |
68 |
Remove testing unlock feature
69 |
fix crashes on some devices
70 |
71 | Version 2.3 (2014/02/14)
72 |
73 |
Add Dutch translation: Thanks for Xander Stone\'s help
74 |
Improvement: Add Vibrate while turning off screen.
75 |
Improvement: make Uninstall action more visible on Actionbar. Don\'t mail me how to uninstall anymore...
76 |
Improvement: make time picker 24 hour format. Should be more useful.
77 |
78 | Version 2.2 (2013/12/02):
79 |
80 |
Improvement: Add swipe feature. You can set up in Timeout settings.
81 |
Improvement: Add Disable TurnOn or TurnOff feature. in Timeout settings too.
82 |
83 | Version 2.1.0 (2013/08/19):
84 |
85 |
Improvement: It\'s possible to hear cover close sound now
86 |
Add French translation: Thanks for Geoffrey Frogeye\' help
87 |
88 | Version 2.0.10 (2013/08/04):
89 |
90 |
Improvement: Improves sensitivity of Landscape disabling
91 |
Add Vietnamese translation: Thanks for Hai Long Hoang\' help
92 |
93 | Version 2.0.9 (2013/07/04):
94 |
95 |
Issue Fix: Turning on feature, and scroll settings, it will cause turn off feature (Google\'s issue)
96 |
97 | Version 2.0.8 (2013/06/30):
98 |
99 |
Feature: Add Power Save Mode. ONLY Works on Some devices. If it makes screen on/off not working. Don\'t use it.
100 |
Issue Fix: Sleeping time not working, after rebooting the device.
101 |
Issue Fix: Auto turn on Screen (but turn off right away) should work normally on Samsung devices now. I hope so, since I don\'t have one to verify.
102 |
103 | Version 2.0.7 (2013/06/20):
104 |
105 |
Add partial wakelock back
106 |
107 | Version 2.0.6 (2013/06/19):
108 |
109 |
Reduce power consumption by removing partial wakelock
110 |
111 | Version 2.0.5 (2013/06/15):
112 |
113 |
Issue fix: When sleep time is up, the function is not enabled again.
114 |
115 | Version 2.0.4 (2013/06/13):
116 |
117 |
Issue fix: fix crash issue on android 2.x devices.
118 |
119 | Version 2.0.3 (2013/06/11):
120 |
121 |
Fine tuning: fine tune sensor parameter in order to save more power.
122 |
123 | Version 2.0.2 (2013/06/10):
124 |
125 |
Issue fix: some people may encounter notification not working issue. it\'s fixed in this version
126 |
Restart service after upgrading app.
127 |
128 | Version 2.0.1 (2013/06/08):
129 |
130 |
Issue fix: if you are using Android 2.x devices, make sure you update this version, so that notification can work for you.
131 |
Move \"Uninstall App\" button to actionbar; make room for preferences.
132 |
133 | Version 2.0 (2013/06/07):
134 |
135 |
Add notification: now you can toggle the feature more conveniently!
136 |
137 | Version 1.9:
138 |
139 |
Largely shrink the app file size by removing unwanted libs
140 |
Add sleep time settings, to better reduce power consumption.
141 |
Change application logo icon
142 |
Issue fix: sometimes \"Enable while plugged\" can\'t function well.
143 |
144 | Version 1.8:
145 |
146 |
works after rebooting the device. You don\'t have to manually turn on the function again.
147 |
A version changelog dialog is added. Every time a new version arrives, it\'s easier for you to know what\'s been added.
148 |
Timeout value can be correctly updated now!
149 |
150 | ]]>
151 |
152 |
153 | Nastavenia času spánku (Beta)
154 | pre zníženie spotreby.(Stále to má chybičky. Prosím nahláste mi ak sa nejaká vyskytne.)
155 | Deaktivovať počas spánku
156 | Začiatok spánku
157 | Koniec spánku
158 |
159 | Rýchlejšie prepínanie, taktiež obsahuje tlačítko pre vypnutie obrazovky.
160 | Zobraziť oznámenie
161 | Nabíjanie! AutoScreen nie je aktívny.
162 | AutoScreen je aktívny.
163 | AutoScreen nie je aktívny.
164 |
165 |
166 | https://github.com/plateaukao/PowerOff
167 | https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff
168 | Prehrá zvuk keď sa automaticky vypne obrazovka.
169 | Prehrať zvuk
170 |
171 |
172 |
--------------------------------------------------------------------------------
/res/values-fr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Extinction Auto
5 | Paramètres de l\'extinction auto
6 | Paramètres
7 | Hello world!
8 |
9 | Extinction automatique activé
10 | Extinction automatique desactivé
11 | Nécessite ce privilège pour pouvoir éteindre l\'écran
12 | Extinction automatique
13 |
14 | Paramètres de l\'extinction automatique
15 | Paramètres de l\'alimentation
16 | Avancé
17 |
18 | ne fonctionne que pendant le chargement
19 | Seulement quand branché
20 |
21 | Allume/Éteint l\'écran automatiquement
22 | Activer
23 | Désinstaller l\'application
24 |
25 | Évaluer l\'application !
26 | Voir sur GitHub
27 | À propos
28 | Quoi de neuf
29 |
30 | Pratique pour prendre des photos ou regarder des vidéos en mode paysage.
31 | Désactiver en mode paysage
32 |
33 | À propos
34 | %s\nv%s
35 |
36 | Laps de temps avant que l\'écran se désactive. \n\nParamètre actuel:%s
37 | Temps avant désactivation
38 |
39 | Laps de temps avant que l\'écran s\'active. \n\nParamètre actuel:%s
40 | Temps avant activation
41 |
42 | Fonctionne seulement sur QUELQUES appareils. Sur les autres, cette fonction ne marchera pas correctement. Essayez par vous-même.
43 | Mode économie d\'énergie
44 |
45 | Comme la désactivation
46 | Directement
47 | 0.5 secondes
48 | 1 secondes
49 | 2 secondes
50 | 3 secondes
51 | 10 secondes
52 |
53 | Désinstaller l\'application
54 | Voulez-vous vraiment désinstaller cette application ?
55 |
56 |
57 | Version 2.5 (2014/07/19)
59 |
60 |
long awaited feature! Now you can select which apps to exclude!
61 |
62 | Version 2.4.2 (2014/07/06)
63 |
64 |
add German, Russian, Ukranian translations, Thanks to Paul L. Scholz, and Andrew
65 |
66 | Version 2.4 (2014/02/15)
67 |
68 |
Remove testing unlock feature
69 |
fix crashes on some devices
70 |
71 | Version 2.3 (2014/02/14)
72 |
73 |
Add Dutch translation: Thanks for Xander Stone\'s help
74 |
Improvement: Add Vibrate while turning off screen.
75 |
Improvement: make Uninstall action more visible on Actionbar. Don\'t mail me how to uninstall anymore...
76 |
Improvement: make time picker 24 hour format. Should be more useful.
77 |
78 | Version 2.2 (2013/12/02):
79 |
80 |
Improvement: Add swipe feature. You can set up in Timeout settings.
81 |
Improvement: Add Disable TurnOn or TurnOff feature. in Timeout settings too.
82 |
83 | Version 2.1.0 (19/08/2013) :
84 |
85 |
Amelioration : Joue un son lors de l\'extinction automatique de l\'écran
86 |
Ajout d\'une traduction français. Merci de l\'aide de Geoffrey Frogeye\'
87 |
88 | Version 2.0.10 (04/08/2013) :
89 |
90 |
Amelioration : Ameliore la sensitivité de la désactivation en mode paysage
91 |
Ajout d\'une traduction vietnamienne. Merci de l\'aide de Hai Long Hoang\'
92 |
93 | Version 2.0.9 (04/07/2013) :
94 |
95 |
Bug résolu : Activer la fonction principale et descendre dans les paramètres désactivera la fonction (bug de Google)
96 |
97 | Version 2.0.8 (30/06/2013) :
98 |
99 |
Fonctionnalité : Ajout du mode économie d\'énergie. Ne fonctionne que sur QUELQUES appareils. Si cette option empêche le fonctionnement de la désactivation automatique de l\'écran, désactivez-la.
100 |
Bug résolu : Le temps de nuit ne fonctionne pas après avoir redémarré l\'appareil.
101 |
Bug résolu : La fonction d\'activation automatique de l\'écran devrait maintenant fonctionner normalement sur les appareils Samsung.
102 |
103 | Version 2.0.7 (20/06/2013) :
104 |
105 |
Retour du WaveLock partiel
106 |
107 | Version 2.0.6 (19/06/2013) :
108 |
109 |
Consommation de batterie réduite en enlevant le WaveLock partiel
110 |
111 | Version 2.0.5 (15/06/2013) :
112 |
113 |
Bug résolu : La fonction n\'est pas re-activée lors de la sortie du temps de nuit.
114 |
115 | Version 2.0.4 (13/06/2013) :
116 |
117 |
Bug résolu : Crash sur les appareils Android 2.x
118 |
119 | Version 2.0.3 (11/06/2013) :
120 |
121 |
Réglage précis : Ajuste les paramètres du capteur pour économiser plus d\'énergie
122 |
123 | Version 2.0.2 (10/06/2013) :
124 |
125 |
Bug résolu : Certaines personnes peuvent renconstrer une notification indiquant que la fonction ne marche pas
126 |
Redémarre le service après avoir fait la mise à jour
127 |
128 | Version 2.0.1 (08/06/2013) :
129 |
130 |
Bug résolu : Si vous utilisez un appareil Android 2.x, mettez à jour cette application pour que la notification fonctionne pour vous
131 |
Le boutton \"Désinstaller l\'application\" a été déplacé vers la barrer d\'action pour faire de la place dans les préférences
132 |
133 | Version 2.0 (07/06/2013) :
134 |
135 |
Ajout d\'une notification : vous pouvez maintenant activer ou désactiver l\'extinction automatique de l\'écran plus commodément !
136 |
137 | Version 1.9 :
138 |
139 |
Grandement réduit la taille de l\'application en enlevant les bibliothèques inutilisées
140 |
Ajout du temps de nuit, pour réduire la consommation de batterie
141 |
Logo de l\'application changé
142 |
Bug résolu : Parfois la fonction \"Activer quand branché\" ne fonctionne pas bien
143 |
144 | Version 1.8 :
145 |
146 |
Fonctionne maintenant après avoir redémarré l\'appareil. Plus besoin de réactiver la fonction manuellement.
147 |
Un journal des modifications a été ajouté. À chaque fois qu\'une nouvelle version arrive, il est plus facile de savoir ce qui a été ajouté.
148 |
Bug résolu : Les valeurs de laps de temps peuvent maintenant être correctement modifiées
149 |
150 | ]]>
151 |
152 |
153 | Mode nuit (Beta)
154 | pour réduire l\'usage de la batterie (encore un peu buggué, reportez les bugs si vous en trouvez)
155 | Désactiver pendant la nuit
156 | Heure de démarrage du mode nuit
157 | Heure d\'arrêt du mode nuit
158 |
159 | Inclut deux boutons pour activer ou non de l\'extinction automatique et pour éteindre l\'écran
160 | Activer la notification
161 | Chargement en cours. Extinction automatique activée
162 | Extinction automatique activée
163 | Extinction automatique désactivée
164 |
165 |
166 | https://github.com/plateaukao/PowerOff
167 | https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff
168 | Joue un son lors de l\'extinction automatique de l\'écran
169 | Écouter le son
170 |
171 |
172 |
--------------------------------------------------------------------------------
/res/values-de/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AutoScreenOnOff
5 | Auto Screen Einstellungen
6 | Einstelungen
7 | Hello world!
8 |
9 | Schalte AutoScreen AN
10 | Schalte AutoScreen AUS
11 | Diese Brechtigung ist erforderlich um den Bildschirm auszuschalten
12 | Screen OnOff
13 |
14 | Auto Screen Einstellungen
15 | Energie Einstellungen
16 | Fortgeschritten
17 |
18 | Funktioniert nur während Laden.
19 | Nur beim Laden
20 |
21 | Display An/Aus automatisch
22 | Aktivieren
23 | Deinstallieren
24 |
25 | Bewerte meine App!
26 | Gehe zu GitHub
27 | Über
28 | Was gibt es Neues?
29 |
30 | Nützlich um Fotos oder Videos im Querformat aufzunehmen/ anzuschauen.
31 | Im Querformat deaktivieren
32 |
33 | Über
34 | %s\nv%s
35 |
36 | Verzögerung bevor das Display aus geht. \n\nAktuelle Einstellung:%s
37 | Display aus Timeout Wert
38 |
39 | Verzögerung bevor das Display an geht. \n\nAktuelle Einstellung:%s
40 | Display an Timeout Wert
41 |
42 | Funktioniert nur auf EINIGEN Geräten. Probiere es selbst für dich aus.
43 | Engergiesparmodus
44 |
45 | Derselbe wie Sperr Timeout Wert
46 | Sofort
47 | 0.5 s
48 | 1 s
49 | 2 s
50 | 3 s
51 | 10 s
52 | 2 mal wischen
53 | Nie
54 |
55 | Deinstalliere App
56 | Möchtest du wirklich diese App deinstallieren?
57 |
58 |
59 | Version 2.5 (2014/07/19)
61 |
62 |
long awaited feature! Now you can select which apps to exclude!
63 |
64 | Version 2.4.2 (2014/07/06)
65 |
66 |
add German, Russian, Ukranian translations, Thanks to Paul L. Scholz, and Andrew
67 |
68 | Version 2.4.1 (2014/03/16)
69 |
70 |
fix crash on Android 2.2, 2.4
71 |
72 | Version 2.4 (2014/02/15)
73 |
74 |
Remove testing unlock feature
75 |
fix crashes on some devices
76 |
77 | Version 2.3 (2014/02/14)
78 |
79 |
Add Dutch translation: Thanks for Xander Stone\'s help
80 |
Improvement: Add Vibrate while turning off screen.
81 |
Improvement: make Uninstall action more visible on Actionbar. Don\'t mail me how to uninstall anymore...
82 |
Improvement: make time picker 24 hour format. Should be more useful.
83 |
84 | Version 2.2 (2013/12/02)
85 |
86 |
Improvement: Add swipe feature. You can set up in Timeout settings.
87 |
Improvement: Add Disable TurnOn or TurnOff feature. in Timeout settings too.
88 |
89 | Version 2.1.0 (2013/08/19):
90 |
91 |
Improvement: It\'s possible to hear cover close sound now
92 |
Add French translation: Thanks for Geoffrey Frogeye\' help
93 |
94 | Version 2.0.10 (2013/08/04):
95 |
96 |
Improvement: Improves sensitivity of Landscape disabling
97 |
Add Vietnamese translation: Thanks for Hai Long Hoang\' help
98 |
99 | Version 2.0.9 (2013/07/04):
100 |
101 |
Issue Fix: Turning on feature, and scroll settings, it will cause turn off feature (Google\'s issue)
102 |
103 | Version 2.0.8 (2013/06/30):
104 |
105 |
Feature: Add Power Save Mode. ONLY Works on Some devices. If it makes screen on/off not working. Don\'t use it.
106 |
Issue Fix: Sleeping time not working, after rebooting the device.
107 |
Issue Fix: Auto turn on Screen (but turn off right away) should work normally on Samsung devices now. I hope so, since I don\'t have one to verify.
108 |
109 | Version 2.0.7 (2013/06/20):
110 |
111 |
Add partial wakelock back
112 |
113 | Version 2.0.6 (2013/06/19):
114 |
115 |
Reduce power consumption by removing partial wakelock
116 |
117 | Version 2.0.5 (2013/06/15):
118 |
119 |
Issue fix: When sleep time is up, the function is not enabled again.
120 |
121 | Version 2.0.4 (2013/06/13):
122 |
123 |
Issue fix: fix crash issue on android 2.x devices.
124 |
125 | Version 2.0.3 (2013/06/11):
126 |
127 |
Fine tuning: fine tune sensor parameter in order to save more power.
128 |
129 | Version 2.0.2 (2013/06/10):
130 |
131 |
Issue fix: some people may encounter notification not working issue. it\'s fixed in this version
132 |
Restart service after upgrading app.
133 |
134 | Version 2.0.1 (2013/06/08):
135 |
136 |
Issue fix: if you are using Android 2.x devices, make sure you update this version, so that notification can work for you.
137 |
Move \"Uninstall App\" button to actionbar; make room for preferences.
138 |
139 | Version 2.0 (2013/06/07):
140 |
141 |
Add notification: now you can toggle the feature more conveniently!
142 |
143 | Version 1.9:
144 |
145 |
Largely shrink the app file size by removing unwanted libs
146 |
Add sleep time settings, to better reduce power consumption.
147 |
Change application logo icon
148 |
Issue fix: sometimes \"Enable while plugged\" can\'t function well.
149 |
150 | Version 1.8:
151 |
152 |
works after rebooting the device. You don\'t have to manually turn on the function again.
153 |
A version changelog dialog is added. Every time a new version arrives, it\'s easier for you to know what\'s been added.
154 |
Timeout value can be correctly updated now!
155 |
156 | ]]>
157 |
158 |
159 | Ruhemodus Einstellung (BETA)
160 | Um Akku zu sparen.(Enthält Fehler; bitte schreibe mir, wenn du welche findest.)
161 | Deaktiviere während Ruhemodus
162 | Ruhemodus Start Zeit
163 | Ruhemodus End Zeit
164 |
165 | Schnelleres Umschalten;Beinhaltet auch "Display Aus" Button
166 | Zeige Benachrichtigung
167 | Am Laden! AutoScreen ist aktiviert.
168 | AutoScreen ist aktiviert.
169 | AutoScreen ist deaktiviert.
170 |
171 |
172 | https://github.com/plateaukao/PowerOff
173 | https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff
174 |
175 | Spiele Ton beim Display ausschalten
176 | Spiele Ton während schließen
177 | Vibriere beim Display ausschalten
178 | Vibriere während schließen
179 |
180 |
181 | On/Off Bezogene Einstellungen
182 |
183 | Sende Feedback
184 | Es sind keine E-mail Programme installiert.
185 | Feedback zur AutoScreenOnOff App
186 | Paul L. Scholz
187 |
--------------------------------------------------------------------------------
/res/values-uk/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AutoScreenOnOff
5 | Налаштування Auto Screen
6 | Налаштування
7 | Hello world!
8 |
9 | Включити AutoScreen
10 | Вимкнути AutoScreen
11 | Цi права потрiбнi для вимикання екрану
12 | Вкл/Вим екрану
13 |
14 | Налаштування Auto Screen
15 | Power Settings
16 | Розширені налаштування
17 |
18 | Тiльки пiд час зарядки.
19 | Тiльки коли пiдключено зарядний пристрiй
20 |
21 | Автоматично ВКЛ/ВИМ екран
22 | Включено
23 | Uninstall
24 |
25 | Оцiнiть програму!
26 | Перехiд на GitHub
27 | Про програму
28 | Що нового
29 |
30 | Корисно для фотографування и перегляду фiльмiв y ландшафтномy режимi
31 | Тимчасово вимикати у ландшафтному режимi
32 |
33 | Про програму
34 | %s\nv%s
35 |
36 | Затримка перед ВИМкненням екрану \n\nНалаштовано:%s
37 | Таймаут вимкнення
38 |
39 | Затримка перед ВКЛюченням екрану \n\nНалаштовано:%s
40 | Таймаут включення
41 |
42 | Працює не на усiх пристроях. Будь ласка, перевiрте Ваш пристрiй самi.
43 | Режим eкономiï
44 |
45 | Так само, як при вiдключеннi
46 | Негайно
47 | 0,5 сек
48 | 1 сек
49 | 2 cек
50 | 3 cек
51 | 10 cек
52 | Подвiйний свайп
53 | Нiколи
54 |
55 | Видалити програму
56 | Ви дiйсно бажаєте видалити Auto Screen OnOff?
57 |
58 |
59 | Version 2.5 (2014/07/19)
61 |
62 |
long awaited feature! Now you can select which apps to exclude!
63 |
64 | Version 2.4.2 (2014/07/06)
65 |
66 |
add German, Russian, Ukranian translations, Thanks to Paul L. Scholz, and Andrew
67 |
68 | Version 2.4.1 (2014/03/16)
69 |
70 |
fix crash on Android 2.2, 2.4
71 |
72 | Version 2.4 (2014/02/15)
73 |
74 |
Remove testing unlock feature
75 |
fix crashes on some devices
76 |
77 | Version 2.3 (2014/02/14)
78 |
79 |
Add Dutch translation: Thanks for Xander Stone\'s help
80 |
Improvement: Add Vibrate while turning off screen.
81 |
Improvement: make Uninstall action more visible on Actionbar. Don\'t mail me how to uninstall anymore...
82 |
Improvement: make time picker 24 hour format. Should be more useful.
83 |
84 | Version 2.2 (2013/12/02)
85 |
86 |
Improvement: Add swipe feature. You can set up in Timeout settings.
87 |
Improvement: Add Disable TurnOn or TurnOff feature. in Timeout settings too.
88 |
89 | Version 2.1.0 (2013/08/19):
90 |
91 |
Improvement: It\'s possible to hear cover close sound now
92 |
Add French translation: Thanks for Geoffrey Frogeye\' help
93 |
94 | Version 2.0.10 (2013/08/04):
95 |
96 |
Improvement: Improves sensitivity of Landscape disabling
97 |
Add Vietnamese translation: Thanks for Hai Long Hoang\' help
98 |
99 | Version 2.0.9 (2013/07/04):
100 |
101 |
Issue Fix: Turning on feature, and scroll settings, it will cause turn off feature (Google\'s issue)
102 |
103 | Version 2.0.8 (2013/06/30):
104 |
105 |
Feature: Add Power Save Mode. ONLY Works on Some devices. If it makes screen on/off not working. Don\'t use it.
106 |
Issue Fix: Sleeping time not working, after rebooting the device.
107 |
Issue Fix: Auto turn on Screen (but turn off right away) should work normally on Samsung devices now. I hope so, since I don\'t have one to verify.
108 |
109 | Version 2.0.7 (2013/06/20):
110 |
111 |
Add partial wakelock back
112 |
113 | Version 2.0.6 (2013/06/19):
114 |
115 |
Reduce power consumption by removing partial wakelock
116 |
117 | Version 2.0.5 (2013/06/15):
118 |
119 |
Issue fix: When sleep time is up, the function is not enabled again.
120 |
121 | Version 2.0.4 (2013/06/13):
122 |
123 |
Issue fix: fix crash issue on android 2.x devices.
124 |
125 | Version 2.0.3 (2013/06/11):
126 |
127 |
Fine tuning: fine tune sensor parameter in order to save more power.
128 |
129 | Version 2.0.2 (2013/06/10):
130 |
131 |
Issue fix: some people may encounter notification not working issue. it\'s fixed in this version
132 |
Restart service after upgrading app.
133 |
134 | Version 2.0.1 (2013/06/08):
135 |
136 |
Issue fix: if you are using Android 2.x devices, make sure you update this version, so that notification can work for you.
137 |
Move \"Uninstall App\" button to actionbar; make room for preferences.
138 |
139 | Version 2.0 (2013/06/07):
140 |
141 |
Add notification: now you can toggle the feature more conveniently!
142 |
143 | Version 1.9:
144 |
145 |
Largely shrink the app file size by removing unwanted libs
146 |
Add sleep time settings, to better reduce power consumption.
147 |
Change application logo icon
148 |
Issue fix: sometimes \"Enable while plugged\" can\'t function well.
149 |
150 | Version 1.8:
151 |
152 |
works after rebooting the device. You don\'t have to manually turn on the function again.
153 |
A version changelog dialog is added. Every time a new version arrives, it\'s easier for you to know what\'s been added.
154 |
Timeout value can be correctly updated now!
155 |
156 | ]]>
157 |
158 |
159 | Налаштування термiну сна (Beta)
160 | Зменшує використання батареï. (Ще глючить :( Зв\'яжiться, якщо знайдете помилки.)
161 | Не активна пiд час сну
162 | Початок термiну сну
163 | Кiнець термiну сну
164 |
165 | Iконка в областi повiдомлень. Також кнопка вимкнення екрану
166 | Показувати повідомлення
167 | Зарядка! AutoScreen активовано
168 | AutoScreen активовано
169 | AutoScreen деактивовано
170 |
171 |
172 | https://github.com/plateaukao/PowerOff
173 | https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff
174 |
175 | Звук при автовимкненнi екрану
176 | Вiдтворювати звук при автовимиканнi
177 | Вибрацiя при автовимиканнi екрану
178 | Вібрувати при автовимиканнi екрану
179 |
180 | не діяти для застосунків
181 |
182 |
183 |
184 | Налаштування Вкл\Вим
185 |
186 | Вiдправити вiдгук
187 | Не знайдено поштового клієнта
188 | Вiдправити вiдгук на програму АutoScreenOnOff
189 |
190 |
--------------------------------------------------------------------------------
/res/values-ru/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AutoScreenOnOff
5 | Настройки Auto Screen
6 | Настройки
7 | Hello world!
8 |
9 | Включить AutoScreen
10 | Отключить Turn AutoScreen
11 | Эти права нужны для отключения экрана
12 | Вкл/Откл. экрана
13 |
14 | Настройка Auto Screen
15 | Power Settings
16 | Расширенные настройки
17 |
18 | только во время зарядки.
19 | Только когда подключено зарядное устройство
20 |
21 | Автоматически ВКЛ/ВЫКЛ экран
22 | Включено
23 | Uninstall
24 |
25 | Оцените программу!
26 | Переход на GitHub
27 | О программе
28 | Что нового
29 |
30 | Полезно для фотографирования и просмотра фильмов в ландшафтном режиме.
31 | Временно отключать в ландшафтном режиме
32 |
33 | О программе
34 | %s\nv%s
35 |
36 | Задержка перед ОТКЛючением экрана. \n\nCurrent setting:%s
37 | Таймаут отключения
38 |
39 | Задержка перед ВКЛючением экрана. \n\nCurrent setting:%s
40 | Таймаут включения
41 |
42 | Работает не на всех устройствах. Пожалуйста, проверьте Ваше устройство сами.
43 | Режим экономии
44 |
45 | Так же, как и при выключении.
46 | Немедленно
47 | 0,5 сек
48 | 1 сек
49 | 2 cек
50 | 3 cек
51 | 10 cек
52 | Двойной свайп
53 | Никогда
54 |
55 | Удалить программу
56 | Вы действительно хотите удалить Auto Screen OnOff?
57 |
58 |
59 | Version 2.5 (2014/07/19)
61 |
62 |
long awaited feature! Now you can select which apps to exclude!
63 |
64 | Version 2.4.2 (2014/07/06)
65 |
66 |
add German, Russian, Ukranian translations, Thanks to Paul L. Scholz, and Andrew
67 |
68 | Version 2.4.1 (2014/03/16)
69 |
70 |
fix crash on Android 2.2, 2.4
71 |
72 | Version 2.4 (2014/02/15)
73 |
74 |
Remove testing unlock feature
75 |
fix crashes on some devices
76 |
77 | Version 2.3 (2014/02/14)
78 |
79 |
Add Dutch translation: Thanks for Xander Stone\'s help
80 |
Improvement: Add Vibrate while turning off screen.
81 |
Improvement: make Uninstall action more visible on Actionbar. Don\'t mail me how to uninstall anymore...
82 |
Improvement: make time picker 24 hour format. Should be more useful.
83 |
84 | Version 2.2 (2013/12/02)
85 |
86 |
Improvement: Add swipe feature. You can set up in Timeout settings.
87 |
Improvement: Add Disable TurnOn or TurnOff feature. in Timeout settings too.
88 |
89 | Version 2.1.0 (2013/08/19):
90 |
91 |
Improvement: It\'s possible to hear cover close sound now
92 |
Add French translation: Thanks for Geoffrey Frogeye\' help
93 |
94 | Version 2.0.10 (2013/08/04):
95 |
96 |
Improvement: Improves sensitivity of Landscape disabling
97 |
Add Vietnamese translation: Thanks for Hai Long Hoang\' help
98 |
99 | Version 2.0.9 (2013/07/04):
100 |
101 |
Issue Fix: Turning on feature, and scroll settings, it will cause turn off feature (Google\'s issue)
102 |
103 | Version 2.0.8 (2013/06/30):
104 |
105 |
Feature: Add Power Save Mode. ONLY Works on Some devices. If it makes screen on/off not working. Don\'t use it.
106 |
Issue Fix: Sleeping time not working, after rebooting the device.
107 |
Issue Fix: Auto turn on Screen (but turn off right away) should work normally on Samsung devices now. I hope so, since I don\'t have one to verify.
108 |
109 | Version 2.0.7 (2013/06/20):
110 |
111 |
Add partial wakelock back
112 |
113 | Version 2.0.6 (2013/06/19):
114 |
115 |
Reduce power consumption by removing partial wakelock
116 |
117 | Version 2.0.5 (2013/06/15):
118 |
119 |
Issue fix: When sleep time is up, the function is not enabled again.
120 |
121 | Version 2.0.4 (2013/06/13):
122 |
123 |
Issue fix: fix crash issue on android 2.x devices.
124 |
125 | Version 2.0.3 (2013/06/11):
126 |
127 |
Fine tuning: fine tune sensor parameter in order to save more power.
128 |
129 | Version 2.0.2 (2013/06/10):
130 |
131 |
Issue fix: some people may encounter notification not working issue. it\'s fixed in this version
132 |
Restart service after upgrading app.
133 |
134 | Version 2.0.1 (2013/06/08):
135 |
136 |
Issue fix: if you are using Android 2.x devices, make sure you update this version, so that notification can work for you.
137 |
Move \"Uninstall App\" button to actionbar; make room for preferences.
138 |
139 | Version 2.0 (2013/06/07):
140 |
141 |
Add notification: now you can toggle the feature more conveniently!
142 |
143 | Version 1.9:
144 |
145 |
Largely shrink the app file size by removing unwanted libs
146 |
Add sleep time settings, to better reduce power consumption.
147 |
Change application logo icon
148 |
Issue fix: sometimes \"Enable while plugged\" can\'t function well.
149 |
150 | Version 1.8:
151 |
152 |
works after rebooting the device. You don\'t have to manually turn on the function again.
153 |
A version changelog dialog is added. Every time a new version arrives, it\'s easier for you to know what\'s been added.
154 |
Timeout value can be correctly updated now!
155 |
156 | ]]>
157 |
158 |
159 | Настройки времени сна (Beta)
160 | уменьшает потребление батареи. (Ещё глючит :( Свяжитесь, если найдете ошибки.)
161 | Не активна во время сна
162 | Начало времени сна
163 | Конец времени сна
164 |
165 | Иконка в области уведомлений. Также кнопка отключения экрана
166 | Показывать уведомления
167 | Зарядка! AutoScreen активирован
168 | AutoScreen активирован.
169 | AutoScreen деактивирован.
170 |
171 |
172 | https://github.com/plateaukao/PowerOff
173 | https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff
174 |
175 | Звук при автовыключении экрана
176 | Воспроизвродить звук при автовыключении
177 |
178 | Вибрация при автовыключении экрана
179 | Вибрировать при автовыключении экрана
180 |
181 |
182 | Настройки Вкл\Выкл
183 |
184 | Отправить отзыв
185 | Не найден почтовый клиент.
186 | Отправить отзыв на программу АutoScreenOnOff
187 |
188 |
--------------------------------------------------------------------------------
/src/com/danielkao/autoscreenonoff/util/CV.java:
--------------------------------------------------------------------------------
1 | package com.danielkao.autoscreenonoff.util;
2 |
3 | import android.annotation.TargetApi;
4 | import android.content.Context;
5 | import android.content.Intent;
6 | import android.content.IntentFilter;
7 | import android.content.SharedPreferences;
8 | import android.os.BatteryManager;
9 | import android.os.Build;
10 | import android.preference.PreferenceManager;
11 | import android.util.Log;
12 |
13 | import java.text.ParseException;
14 | import java.text.SimpleDateFormat;
15 | import java.util.Arrays;
16 | import java.util.Calendar;
17 | import java.util.Date;
18 |
19 | public final class CV {
20 | static final boolean debug = false;
21 |
22 | public static final String TAG = "SensorMonitor";
23 | public static final String PREF_CHARGING_ON = "prefChargingOn";
24 | public static final String PREF_AUTO_ON = "prefAutoOn";
25 | public static final String PREF_DISABLE_IN_LANDSCAPE= "prefDisableInLandscape";
26 | public static final String PREF_TIMEOUT_LOCK = "prefTimeout";
27 | public static final String PREF_TIMEOUT_UNLOCK = "prefTimeoutUnlock";
28 | public static final String PREF_VIEWED_VERSION_CODE = "prefViewedVersionCode";
29 | public static final String PREF_SLEEPING = "prefSleeping";
30 | public static final String PREF_SLEEP_START = "prefSleepStart";
31 | public static final String PREF_SLEEP_STOP = "prefSleepStop";
32 | public static final String PREF_SHOW_NOTIFICATION = "prefShowNotification";
33 | public static final String PREF_NO_PARTIAL_LOCK = "prefNoPartialLock";
34 | public static final String PREF_PLAY_CLOSE_SOUND = "prefPlayCloseSound";
35 | public static final String PREF_VIBRATE_WHILE_CLOSE = "prefVibrateWhileClose";
36 | public static final String PREF_STRATEGY_TURNON = "prefStrategyTurnOn";
37 | public static final String PREF_STRATEGY_TURNOFF = "prefStrategyTurnOff";
38 | public static final String PREF_EXCLUDE_APP_NAMES = "prefExcludeAppNames";
39 | public static final String PREF_EXCLUDE_PACKAGES = "prefExludePackages";
40 |
41 | //
42 | public static final String SERVICEACTION = "serviceaction";
43 | public static final int SERVICEACTION_TOGGLE = 0;
44 | public static final int SERVICEACTION_TURNON = 1;
45 | public static final int SERVICEACTION_TURNOFF = 2;
46 | public static final int SERVICEACTION_UPDATE_DISABLE_IN_LANDSCAPE = 4;
47 | public static final int SERVICEACTION_MODE_SLEEP = 5;
48 | public static final int SERVICEACTION_SCREENOFF = 6;
49 | public static final int SERVICEACTION_SHOW_NOTIFICATION = 7;
50 | public static final int SERVICEACTION_PARTIALLOCK_TOGGLE = 8;
51 | public static final int SERVICEACTION_SET_SCHEDULE = 9;
52 | public static final int SERVICEACTION_CANCEL_SCHEDULE = 10;
53 |
54 | public static String CLOSE_AFTER="close_after";
55 |
56 | public static String SLEEP_MODE_START = "sleep_mode_start";
57 | //
58 | //
59 | public static final String SERVICE_INTENT_ACTION = "com.danielkao.autoscreenonoff.serviceaction";
60 | public static final String UPDATE_WIDGET_ACTION = "com.danielkao.autoscreenonoff.updatewidget";
61 | //
62 | public static final String SERVICETYPE = "servicetype";
63 | public static final String SERVICETYPE_CHARGING = "charging";
64 | public static final String SERVICETYPE_SETTING = "setting";
65 | public static final String SERVICETYPE_WIDGET = "widget";
66 | public static final String SERVICETYPE_NOTIFICATION = "notification";
67 | // rotation threshold
68 | public static final int ROTATION_THRESHOLD = 45;
69 |
70 | @TargetApi(Build.VERSION_CODES.GINGERBREAD)
71 | public static void logv(Object...argv){
72 | if(!debug)
73 | return;
74 |
75 | if(argv.length == 1)
76 | Log.v(TAG, (String) argv[0]);
77 | else
78 | {
79 | Object [] slicedObj = Arrays.copyOfRange(argv, 1, argv.length);
80 | Log.v(TAG,String.format((String) argv[0], (Object[])slicedObj));
81 | }
82 | }
83 |
84 | public static void logi(Object...argv){
85 | if(!debug)
86 | return;
87 |
88 | if(argv.length == 1)
89 | Log.i(TAG, (String) argv[0]);
90 | else
91 | {
92 | Object [] slicedObj = Arrays.copyOfRange(argv, 1, argv.length);
93 | Log.i(TAG,String.format((String) argv[0], (Object[])slicedObj));
94 | }
95 | }
96 |
97 | public static boolean getPrefAutoOnoff(Context context) {
98 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
99 | return sp.getBoolean(PREF_AUTO_ON, false);
100 | }
101 |
102 | public static boolean getPrefChargingOn(Context context) {
103 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
104 | boolean isPrefChargingOn = sp.getBoolean(PREF_CHARGING_ON, false);
105 | CV.logv("prefchargingon: %b", isPrefChargingOn);
106 | return isPrefChargingOn;
107 | }
108 |
109 | public static boolean getPrefDisableInLandscape(Context context) {
110 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
111 | boolean isPrefDisableInLandscape = sp.getBoolean(PREF_DISABLE_IN_LANDSCAPE, false);
112 | CV.logv("prefdisableinlandscape: %b", isPrefDisableInLandscape);
113 | return isPrefDisableInLandscape;
114 | }
115 |
116 | public static boolean getPrefSleeping(Context context) {
117 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
118 | boolean i = sp.getBoolean(PREF_SLEEPING, false);
119 | CV.logv("prefSleeping: %b", i);
120 | return i;
121 | }
122 |
123 | public static String getPrefSleepStart(Context context){
124 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
125 | String s = sp.getString(PREF_SLEEP_START, "22:00");
126 | CV.logv("prefSleepStart: %s", s);
127 | return s;
128 | }
129 |
130 | public static String getPrefSleepStop(Context context){
131 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
132 | String s = sp.getString(PREF_SLEEP_STOP, "22:00");
133 | CV.logv("prefSleepStop: %s", s);
134 | return s;
135 | }
136 |
137 | public static boolean getPrefShowNotification(Context context){
138 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
139 | boolean b = sp.getBoolean(PREF_SHOW_NOTIFICATION, false);
140 | CV.logv("prefShowNotification: %b", b);
141 | return b;
142 | }
143 |
144 | public static boolean getPrefNoPartialLock(Context context){
145 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
146 | boolean b = sp.getBoolean(PREF_NO_PARTIAL_LOCK, false);
147 | CV.logv("prefShowNotification: %b", b);
148 | return b;
149 | }
150 |
151 | public static boolean getPrefPlayCloseSound(Context context){
152 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
153 | boolean b = sp.getBoolean(PREF_PLAY_CLOSE_SOUND, false);
154 | CV.logv("prefPlayCloseSound: %b", b);
155 | return b;
156 | }
157 |
158 | public static boolean getVibrateWhileClose(Context context){
159 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
160 | boolean b = sp.getBoolean(PREF_VIBRATE_WHILE_CLOSE, false);
161 | CV.logv("prefVibrateWhileClose: %b", b);
162 | return b;
163 | }
164 |
165 | //return milliseconds
166 | public static int getPrefTimeoutLock(Context context) {
167 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
168 | int i = Integer.parseInt(sp.getString(PREF_TIMEOUT_LOCK, "0"));
169 | CV.logv("prefTimeout lock: %d", i);
170 | return i;
171 | }
172 |
173 | public static int getPrefTimeoutUnlock(Context context) {
174 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
175 | int i = Integer.parseInt(sp.getString(PREF_TIMEOUT_UNLOCK, "-1"));
176 | CV.logv("prefTimeout unlock: %d", i);
177 |
178 | // if the value is -1, means user want it to be the same as lock timeout value
179 | if(i==-1)
180 | {
181 | i = getPrefTimeoutLock(context);
182 | }
183 | return i;
184 | }
185 |
186 | public static String getExcludeAppNameList(Context context) {
187 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
188 | String names = sp.getString(PREF_EXCLUDE_APP_NAMES, "");
189 | CV.logv("prefExcludeAppNames: %s", names);
190 |
191 | return names;
192 | }
193 |
194 | public static void setExcludeAppNameList(Context context, String names) {
195 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
196 | SharedPreferences.Editor editor = sp.edit();
197 | editor.putString(PREF_EXCLUDE_APP_NAMES, names);
198 | editor.commit();
199 | }
200 |
201 | public static String getExcludeAppPackageNames(Context context) {
202 | SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
203 | String packagenames = sp.getString(PREF_EXCLUDE_PACKAGES, null);
204 | return packagenames;
205 | }
206 |
207 | public static boolean isPlugged(Context context){
208 | Intent intentBat = context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
209 | return (intentBat.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) > 0);
210 | }
211 |
212 | public static boolean isInSleepTime(Context context){
213 | String pattern = "HH:mm";
214 | SimpleDateFormat sdf = new SimpleDateFormat(pattern);
215 | try{
216 | Date timeStart = sdf.parse(getPrefSleepStart(context));
217 | Date timeStop = sdf.parse(getPrefSleepStop(context));
218 | Calendar now = Calendar.getInstance();
219 | Date timeNow = sdf.parse(now.get(Calendar.HOUR_OF_DAY)+":"+now.get(Calendar.MINUTE));
220 |
221 | // start < stop
222 | if(timeStart.compareTo(timeStop)<0){
223 | if(timeStart.before(timeNow) && timeStop.after(timeNow))
224 | return true;
225 | else
226 | return false;
227 |
228 | }else{
229 | if(timeStop.before(timeNow) && timeStart.after(timeNow))
230 | return false;
231 | else
232 | return true;
233 | }
234 |
235 | } catch (ParseException e){
236 | e.printStackTrace();
237 | }
238 |
239 | return false;
240 | }
241 | }
242 |
--------------------------------------------------------------------------------
/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AutoScreenOnOff
5 | Settings
6 | Settings
7 | Hello world!
8 |
9 | Turn AutoScreen ON
10 | Turn AutoScreen OFF
11 | Need this privilege to turn off the screen
12 | Screen OnOff
13 |
14 | Auto Screen Settings
15 | Power Settings
16 | Advanced
17 |
18 | only works during charging.
19 | Only when plugged
20 |
21 | Screen On/Off automatically
22 | Enable
23 | Uninstall
24 |
25 | Rank my App!
26 | goto GitHub
27 | About
28 | What\'s New
29 |
30 | Useful for taking photos or watching movies in landscape.
31 | Temporarily Disable in Landscape
32 |
33 | About
34 | %s\nv%s
35 |
36 | Delay how long before Screen Off take effects. \n\nCurrent setting:%s
37 | Screen Off Timeout Value
38 |
39 | Delay how long before Screen On take effects. \n\nCurrent setting:%s
40 | Screen On Timeout Value
41 |
42 | ONLY WORKS on SOME devices. On other devices, the on/off function will not work well. Try by yourself.
43 | Power Save Mode
44 |
45 | Same as Lock Timeout Value
46 | Right Away
47 | 0.5 sec
48 | 1 sec
49 | 2 sec
50 | 3 sec
51 | 10 sec
52 | Swipe Twice
53 | Never
54 |
55 |
56 | @string/timeout_0
57 | @string/timeout_05
58 | @string/timeout_1
59 | @string/timeout_2
60 | @string/timeout_3
61 | @string/timeout_10
62 | @string/timeout_4
63 | @string/timeout_5
64 |
65 |
66 |
67 |
68 | 0
69 | 500
70 | 1000
71 | 2000
72 | 3000
73 | 10000
74 |
75 | 2
76 |
77 | 10
78 |
79 |
80 |
81 | @string/timeout_same
82 | @string/timeout_0
83 | @string/timeout_05
84 | @string/timeout_1
85 | @string/timeout_2
86 | @string/timeout_3
87 | @string/timeout_10
88 | @string/timeout_4
89 | @string/timeout_5
90 |
91 |
92 |
93 |
94 | -1
95 | 0
96 | 500
97 | 1000
98 | 2000
99 | 3000
100 | 10000
101 |
102 | 2
103 |
104 | 10
105 |
106 |
107 | Uninstall App
108 | Do you really want to uninstall this app?
109 |
110 |
111 | Version 2.7 (2015/02/06)
113 |