mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-03-30 19:10:13 +02:00
adding Simple Clock to the default apps
This commit is contained in:
parent
cc3c953a3e
commit
cd93911673
@ -9,6 +9,7 @@ fun Resources.getLauncherDrawable(packageName: String): Drawable {
|
||||
"com.simplemobiletools.calculator" -> R.drawable.ic_launcher_calculator
|
||||
"com.simplemobiletools.calendar" -> R.drawable.ic_launcher_calendar
|
||||
"com.simplemobiletools.camera" -> R.drawable.ic_launcher_camera
|
||||
"com.simplemobiletools.clock" -> R.drawable.ic_launcher_clock
|
||||
"com.simplemobiletools.contacts" -> R.drawable.ic_launcher_contacts
|
||||
"com.simplemobiletools.draw" -> R.drawable.ic_launcher_draw
|
||||
"com.simplemobiletools.filemanager" -> R.drawable.ic_launcher_filemanager
|
||||
|
@ -4,6 +4,7 @@ val predefinedPackageNames = arrayListOf(
|
||||
"com.simplemobiletools.calculator",
|
||||
"com.simplemobiletools.calendar",
|
||||
"com.simplemobiletools.camera",
|
||||
"com.simplemobiletools.clock",
|
||||
"com.simplemobiletools.contacts",
|
||||
"com.simplemobiletools.draw",
|
||||
"com.simplemobiletools.filemanager",
|
||||
|
@ -24,13 +24,14 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
private val mDb = writableDatabase
|
||||
|
||||
companion object {
|
||||
private val DB_VERSION = 3
|
||||
private val DB_VERSION = 4
|
||||
val DB_NAME = "applaunchers.db"
|
||||
var dbInstance: DBHelper? = null
|
||||
|
||||
fun newInstance(context: Context): DBHelper {
|
||||
if (dbInstance == null)
|
||||
if (dbInstance == null) {
|
||||
dbInstance = DBHelper(context)
|
||||
}
|
||||
|
||||
return dbInstance!!
|
||||
}
|
||||
@ -46,6 +47,11 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
val contacts = AppLauncher(0, context.getString(R.string.contacts), "com.simplemobiletools.contacts")
|
||||
addAppLauncher(contacts, db)
|
||||
}
|
||||
|
||||
if (oldVersion < 4) {
|
||||
val clock = AppLauncher(0, context.getString(R.string.clock), "com.simplemobiletools.clock")
|
||||
addAppLauncher(clock, db)
|
||||
}
|
||||
}
|
||||
|
||||
private fun addInitialLaunchers(db: SQLiteDatabase) {
|
||||
@ -53,6 +59,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
R.string.calculator,
|
||||
R.string.calendar,
|
||||
R.string.camera,
|
||||
R.string.clock,
|
||||
R.string.contacts,
|
||||
R.string.draw,
|
||||
R.string.file_manager,
|
||||
|
BIN
app/src/main/res/drawable-hdpi/ic_launcher_clock.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_launcher_clock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_launcher_clock.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_launcher_clock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_launcher_clock.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_launcher_clock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_launcher_clock.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_launcher_clock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
@ -8,6 +8,7 @@
|
||||
<string name="calculator">الحاسبة</string>
|
||||
<string name="calendar">التقويم</string>
|
||||
<string name="camera">الكاميرا</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Contacts</string>
|
||||
<string name="draw">رسم</string>
|
||||
<string name="file_manager">مدير الملفات</string>
|
||||
@ -21,7 +22,7 @@
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
<string name="app_short_description">حافظة بسيطة لإختصارات لتطبيقاتك المفضلة</string>
|
||||
<string name="app_long_description">يمكنك و بسهولة إضافة أي اختصار لتشغيل التطبيق، لذلك لن تضطر مرة أخرى إلى السحب خلال تطبيقات عديمة الفائدة للعثور على التطبيق الذي تحتاج إليه. يمكنك أيضا إعادة تسمية الإختصارات كما يحلو لك. انها ليست واجهة كاملة لاستبدال الشاشة الرئيسية الحالية ، وانما هي مجرد درج للتطبيقات المفضلة لديك. لا يحتوي على إعلانات أو أذونات لا حاجة لها. وكذلك مفتوح المصدر ، ويوفر الألوان للتخصيص. هذا التطبيق هو مجرد قطعة واحدة من سلسلة أكبر من التطبيقات. يمكنك العثور على بقيتها هنا\n
|
||||
http://www.simplemobiletools.com</string>
|
||||
https://www.simplemobiletools.com</string>
|
||||
|
||||
<!--
|
||||
Haven't found some strings? There's more at
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Rechner</string>
|
||||
<string name="calendar">Kalender</string>
|
||||
<string name="camera">Kamera</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Kontakte</string>
|
||||
<string name="draw">Zeichenblock</string>
|
||||
<string name="file_manager">Dateimanager</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Beinhaltet keine Werbung oder unnötige Berechtigungen. Sie ist komplett Open Source, alle verwendeten Farben sind anpassbar.
|
||||
|
||||
Diese App ist nur eine aus einer größeren Serie von schlichten Apps. Der Rest davon findet sich auf http://www.simplemobiletools.com
|
||||
Diese App ist nur eine aus einer größeren Serie von schlichten Apps. Der Rest davon findet sich auf https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Αριθμομηχανή</string>
|
||||
<string name="calendar">Ημερολόγιο</string>
|
||||
<string name="camera">Κάμερα</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Επαφές</string>
|
||||
<string name="draw">Σχέδιο</string>
|
||||
<string name="file_manager">Αρχεία</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Δεν περιέχει διαφημίσεις ούτε ζητά περιττά δικαιώματα. Είναι εντελώς ανοιχτού κώδικα. Επιτρέπει προσαρμοσμένα χρώματα.
|
||||
|
||||
Αυτή η εφαρμογή είναι ένα κομμάτι από μία μεγαλύτερη σειρά εφαρμογών. Μπορείς να βρεις τις υπόλοιπες στο http://www.simplemobiletools.com
|
||||
Αυτή η εφαρμογή είναι ένα κομμάτι από μία μεγαλύτερη σειρά εφαρμογών. Μπορείς να βρεις τις υπόλοιπες στο https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Calculadora</string>
|
||||
<string name="calendar">Calendario</string>
|
||||
<string name="camera">Cámara</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Contacts</string>
|
||||
<string name="draw">Dibujo</string>
|
||||
<string name="file_manager">Administrador de archivos</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
No contiene publicidad ni permisos innecesarios. Es totalmente libre, proporciona colores personalizables.
|
||||
|
||||
Esta aplicación es solamente una pieza de una serie más grande de aplicaciones. Puede encontrar el resto en http://www.simplemobiletools.com
|
||||
Esta aplicación es solamente una pieza de una serie más grande de aplicaciones. Puede encontrar el resto en https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Calculatrice</string>
|
||||
<string name="calendar">Calendrier</string>
|
||||
<string name="camera">Caméra</string>
|
||||
<string name="clock">Horloge</string>
|
||||
<string name="contacts">Contacts</string>
|
||||
<string name="draw">Dessiner</string>
|
||||
<string name="file_manager">Gestionnaire de Fichiers</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Cette appli ne contient aucune publicité ou autorisation inutile. Elle est entièrement opensource, et propose une personnalisation des couleurs de l\'interface.
|
||||
|
||||
Cette application fait partie d\'une plus grande série d\'applications. Vous pouvez trouver les autres à l\'adresse http://www.simplemobiletools.com
|
||||
Cette application fait partie d\'une plus grande série d\'applications. Vous pouvez trouver les autres à l\'adresse https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Kalkulator</string>
|
||||
<string name="calendar">Kalendar</string>
|
||||
<string name="camera">Kamera</string>
|
||||
<string name="clock">Sat</string>
|
||||
<string name="contacts">Kontakti</string>
|
||||
<string name="draw">Crtaj</string>
|
||||
<string name="file_manager">Upravitelj datoteka</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Ne sadrži oglase ili nepotrebne dozvole. Aplikacije je otvorenog koda, pruža prilagodljive boje.
|
||||
|
||||
Ova je aplikacija samo dio većeg broja aplikacija. Možete pronaći ostatak na http://www.simplemobiletools.com
|
||||
Ova je aplikacija samo dio većeg broja aplikacija. Možete pronaći ostatak na https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">電卓</string>
|
||||
<string name="calendar">カレンダー</string>
|
||||
<string name="camera">カメラ</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Contacts</string>
|
||||
<string name="draw">ドロー</string>
|
||||
<string name="file_manager">ファイル マネージャー</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
広告や不要なアクセス許可は含まれていません。 完全にオープンソースで、ダークテーマも提供しています。
|
||||
|
||||
このアプリは、大きな一連のアプリの一つです。 他のアプリは http://www.simplemobiletools.com で見つけることができます
|
||||
このアプリは、大きな一連のアプリの一つです。 他のアプリは https://www.simplemobiletools.com で見つけることができます
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Skaičiuotuvas</string>
|
||||
<string name="calendar">Kalendorius</string>
|
||||
<string name="camera">Fotoaparatas</string>
|
||||
<string name="clock">Laikrodis</string>
|
||||
<string name="contacts">Kontaktai</string>
|
||||
<string name="draw">Piešimas</string>
|
||||
<string name="file_manager">Bylų tvarkyklė</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Neturi reklamų ar nereikalingų leidimų. Programėlė visiškai atviro kodo, yra galimybė keisti spalvas.
|
||||
|
||||
Ši programėle yra vienintelė iš keletos mūsų programėlių. Likusias Jūs galite rasti čia http://www.simplemobiletools.com
|
||||
Ši programėle yra vienintelė iš keletos mūsų programėlių. Likusias Jūs galite rasti čia https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Kalkulator</string>
|
||||
<string name="calendar">Kalendarz</string>
|
||||
<string name="camera">Aparat</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Contacts</string>
|
||||
<string name="draw">Szkicownik</string>
|
||||
<string name="file_manager">Menedżer Plików</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Nie zawiera żadnych żadnych reklam, nie potrzebuje masy uprawnień. Jest w pełni otwartoźródłowy. Kolory w aplikacji można dowolnie modyfikować.
|
||||
|
||||
Niniejsza aplikacja jest tylko częścią naszej kolekcji prostych narzędzi. Ta, jak i pozostałe, dostępne są na stronie http://www.simplemobiletools.com
|
||||
Niniejsza aplikacja jest tylko częścią naszej kolekcji prostych narzędzi. Ta, jak i pozostałe, dostępne są na stronie https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Calculadora</string>
|
||||
<string name="calendar">Calendário</string>
|
||||
<string name="camera">Câmara</string>
|
||||
<string name="clock">Relógio</string>
|
||||
<string name="contacts">Contactos</string>
|
||||
<string name="draw">Desenho</string>
|
||||
<string name="file_manager">Gestor de ficheiros</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Não contém anúncios nem permissões desnecessárias. Disponibiliza um tema escuro e é totalmente \'open source\'.
|
||||
|
||||
Esta aplicação é apenas parte de um conjunto mais vasto de aplicações. Saiba mais em http://www.simplemobiletools.com
|
||||
Esta aplicação é apenas parte de um conjunto mais vasto de aplicações. Saiba mais em https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Калькулятор</string>
|
||||
<string name="calendar">Календарь</string>
|
||||
<string name="camera">Камера</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Контакты</string>
|
||||
<string name="draw">Рисунки</string>
|
||||
<string name="file_manager">Файловый менеджер</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
|
||||
|
||||
This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com
|
||||
This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Kalkulačka</string>
|
||||
<string name="calendar">Kalendár</string>
|
||||
<string name="camera">Kamera</string>
|
||||
<string name="clock">Hodinky</string>
|
||||
<string name="contacts">Kontakty</string>
|
||||
<string name="draw">Kreslenie</string>
|
||||
<string name="file_manager">Správca súborov</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Neobsahuje žiadne reklamy a nepotrebné oprávnenia. Je opensource, poskytuje možnosť zmeny farieb.
|
||||
|
||||
Táto aplikácia je iba jednou zo skupiny aplikácií. Ostatné viete nájsť na http://www.simplemobiletools.com
|
||||
Táto aplikácia je iba jednou zo skupiny aplikácií. Ostatné viete nájsť na https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">計算機</string>
|
||||
<string name="calendar">行事曆</string>
|
||||
<string name="camera">相機</string>
|
||||
<string name="clock">簡易時鐘</string>
|
||||
<string name="contacts">通訊錄</string>
|
||||
<string name="draw">繪圖</string>
|
||||
<string name="file_manager">檔案管理器</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
不包含廣告及非必要的權限,而且完全開放原始碼,並提供自訂顏色。
|
||||
|
||||
這程式只是一系列眾多應用程式的其中一項,你可以在這發現更多 http://www.simplemobiletools.com
|
||||
這程式只是一系列眾多應用程式的其中一項,你可以在這發現更多 https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string name="calculator">Calculator</string>
|
||||
<string name="calendar">Calendar</string>
|
||||
<string name="camera">Camera</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="contacts">Contacts</string>
|
||||
<string name="draw">Draw</string>
|
||||
<string name="file_manager">File Manager</string>
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
|
||||
|
||||
This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com
|
||||
This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
|
||||
</string>
|
||||
|
||||
<!--
|
||||
|
@ -2,4 +2,4 @@ You can easily add any app launcher, so you won't ever again have to swipe throu
|
||||
|
||||
Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
|
||||
|
||||
This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com
|
||||
This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
|
||||
|
Loading…
x
Reference in New Issue
Block a user