Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Following the comments above:</p> <p>Well, the only thing I can think of (if I understand this correctly, you want to change the background of an application, via another application - right?) is to set the background to Theme.Wallpaper. Then in that other application, you can set the background differently and in the base application, the BG will be changed accordingly.</p> <p>Asuming - pick the file explorer, navigate to the .jpg, .png etc. file and you set it to be your device's background. If your application uses <code>Theme.Wallpaper</code> as the default application Theme, then it will be changed, according to the background image you've set to the device.</p> <p>In simpler terms: 1. Problem - You want to change the background of your application (YApp for short), but you want to achieve this by choosing a picture from another application (let's say a Gallery). 2. Solution - the only thing I can think of is to set this desired image as a background to the device itself. Then in YApp you'll have <code>Theme.Wallpaper</code> set, which will use the device's background</p> <p>To put this with code, here's a sample extraction from the <code>AndroidManifest</code>:</p> <p><code>&lt;activity android:name="MainActivity" android:theme="@style/Theme.Translucent"&gt; &lt;/activity&gt;</code></p> <p>This could be applied to any activity. <a href="http://developer.android.com/guide/topics/ui/themes.html" rel="nofollow">Here's</a> the link for reference.</p> <p>Cheers</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload