create an activity for setting a wallpaper
This commit is contained in:
parent
8aa93491f2
commit
1a7c0861c3
|
@ -41,11 +41,6 @@
|
|||
<data android:mimeType="vnd.android.cursor.dir/image"/>
|
||||
<data android:mimeType="vnd.android.cursor.dir/video"/>
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SET_WALLPAPER"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
|
@ -125,5 +120,23 @@
|
|||
<data android:mimeType="image/*"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".activities.SetWallpaperActivity"
|
||||
android:label="@string/wallpaper">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.ATTACH_DATA"/>
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
|
||||
<data android:mimeType="image/*"/>
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SET_WALLPAPER"/>
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package com.simplemobiletools.gallery.activities
|
||||
|
||||
import android.os.Bundle
|
||||
import com.simplemobiletools.gallery.R
|
||||
|
||||
class SetWallpaperActivity : SimpleActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_set_wallpaper)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/coordinator_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/black">
|
||||
|
||||
</RelativeLayout>
|
|
@ -30,8 +30,6 @@
|
|||
<string name="descending">Absteigend</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Abbrechen</string>
|
||||
<string name="set_as_wallpaper">Als Hintergrundbild setzen</string>
|
||||
<string name="set_as_wallpaper_failed">Setzen des Hintergrundbildes fehlgeschlagen</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 Ordner gelöscht</item>
|
||||
|
@ -56,6 +54,9 @@
|
|||
<string name="error_saving_file">Could not overwrite the source file</string>
|
||||
|
||||
<!-- Set wallpaper -->
|
||||
<string name="wallpaper">Wallpaper</string>
|
||||
<string name="set_as_wallpaper">Als Hintergrundbild setzen</string>
|
||||
<string name="set_as_wallpaper_failed">Setzen des Hintergrundbildes fehlgeschlagen</string>
|
||||
<string name="set_as_wallpaper_with">Set as wallpaper with:</string>
|
||||
<string name="no_wallpaper_setter_found">No app capable of it has been found</string>
|
||||
<string name="wallpaper_changed_successfully">Wallpaper changed successfully</string>
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
<string name="descending">Descendente</string>
|
||||
<string name="ok">Aceptar</string>
|
||||
<string name="cancel">Cancelar</string>
|
||||
<string name="set_as_wallpaper">Establecer como fondo de pantalla</string>
|
||||
<string name="set_as_wallpaper_failed">Error al establecer fondo de pantalla</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 carpeta eliminada</item>
|
||||
|
@ -56,6 +54,9 @@
|
|||
<string name="error_saving_file">Could not overwrite the source file</string>
|
||||
|
||||
<!-- Set wallpaper -->
|
||||
<string name="wallpaper">Wallpaper</string>
|
||||
<string name="set_as_wallpaper">Establecer como fondo de pantalla</string>
|
||||
<string name="set_as_wallpaper_failed">Error al establecer fondo de pantalla</string>
|
||||
<string name="set_as_wallpaper_with">Set as wallpaper with:</string>
|
||||
<string name="no_wallpaper_setter_found">No app capable of it has been found</string>
|
||||
<string name="wallpaper_changed_successfully">Wallpaper changed successfully</string>
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
<string name="descending">Descending</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 cartella eliminata</item>
|
||||
|
@ -56,6 +54,9 @@
|
|||
<string name="error_saving_file">Could not overwrite the source file</string>
|
||||
|
||||
<!-- Set wallpaper -->
|
||||
<string name="wallpaper">Wallpaper</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
<string name="set_as_wallpaper_with">Set as wallpaper with:</string>
|
||||
<string name="no_wallpaper_setter_found">No app capable of it has been found</string>
|
||||
<string name="wallpaper_changed_successfully">Wallpaper changed successfully</string>
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
<string name="descending">Descending</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 フォルダーを削除しました</item>
|
||||
|
@ -56,6 +54,9 @@
|
|||
<string name="error_saving_file">Could not overwrite the source file</string>
|
||||
|
||||
<!-- Set wallpaper -->
|
||||
<string name="wallpaper">Wallpaper</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
<string name="set_as_wallpaper_with">Set as wallpaper with:</string>
|
||||
<string name="no_wallpaper_setter_found">No app capable of it has been found</string>
|
||||
<string name="wallpaper_changed_successfully">Wallpaper changed successfully</string>
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
<string name="descending">Descendente</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Cancelar</string>
|
||||
<string name="set_as_wallpaper">Definir como fundo de ecrã</string>
|
||||
<string name="set_as_wallpaper_failed">Falha ao definir como fundo de ecrã</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 pasta eliminada</item>
|
||||
|
@ -56,6 +54,9 @@
|
|||
<string name="error_saving_file">Could not overwrite the source file</string>
|
||||
|
||||
<!-- Set wallpaper -->
|
||||
<string name="wallpaper">Wallpaper</string>
|
||||
<string name="set_as_wallpaper">Definir como fundo de ecrã</string>
|
||||
<string name="set_as_wallpaper_failed">Falha ao definir como fundo de ecrã</string>
|
||||
<string name="set_as_wallpaper_with">Set as wallpaper with:</string>
|
||||
<string name="no_wallpaper_setter_found">No app capable of it has been found</string>
|
||||
<string name="wallpaper_changed_successfully">Wallpaper changed successfully</string>
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
<string name="descending">Descending</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 mapp borttagen</item>
|
||||
|
@ -56,6 +54,9 @@
|
|||
<string name="error_saving_file">Could not overwrite the source file</string>
|
||||
|
||||
<!-- Set wallpaper -->
|
||||
<string name="wallpaper">Wallpaper</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
<string name="set_as_wallpaper_with">Set as wallpaper with:</string>
|
||||
<string name="no_wallpaper_setter_found">No app capable of it has been found</string>
|
||||
<string name="wallpaper_changed_successfully">Wallpaper changed successfully</string>
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
<string name="descending">Descending</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 folder deleted</item>
|
||||
|
@ -56,6 +54,9 @@
|
|||
<string name="error_saving_file">Could not overwrite the source file</string>
|
||||
|
||||
<!-- Set wallpaper -->
|
||||
<string name="wallpaper">Wallpaper</string>
|
||||
<string name="set_as_wallpaper">Set as Wallpaper</string>
|
||||
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
|
||||
<string name="set_as_wallpaper_with">Set as wallpaper with:</string>
|
||||
<string name="no_wallpaper_setter_found">No app capable of it has been found</string>
|
||||
<string name="wallpaper_changed_successfully">Wallpaper changed successfully</string>
|
||||
|
|
Loading…
Reference in New Issue