how to change image background via any file explorer - android

I am trying to understand how to change background image of an application (not via eclipse) using any file explorer in android(phone) and picking any file.png which will be saved as a background image in the app

Following the comments above:
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.
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 Theme.Wallpaper as the default application Theme, then it will be changed, according to the background image you've set to the device.
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 Theme.Wallpaper set, which will use the device's background
To put this with code, here's a sample extraction from the AndroidManifest:
<activity android:name="MainActivity" android:theme="#style/Theme.Translucent">
</activity>
This could be applied to any activity. Here's the link for reference.
Cheers

Related

Android - How to change Default Loading Screen(Screenshot)? [duplicate]

The app itself works completely fine. My question is that on the launching of the app itself, the screen is the Unity default blue for a quick second or so before changing to the black of my first scene.
How do I change this color to be black on startup?
You can change this by going to File --> Build Settings --> Player Settings --> Splash Image --> Background --> Background Color.
From there you can change the background color. You can also change the image, animation type and overlay opacity from there.
Note that there are things you may not be able to change there unless you have Pro license.
EDIT:
Updated to be more detailed of where to change stuff
First change the Splash Image:
There are more options for iOS platform but this settings can still be found in the menu I mentioned above.
If iOS, select iOS as your platform and you can change your Background Color from there:
You should then change the Lunch Screen type from there. Set it to None if you want it to be gone.
If the color does not still change, you can create a Texture with a color of your choice and add it to the Mobile Splash Screen slot:
I believe the OP was looking for the Background Color of the Launch Screens as indicated in these screenshots.
This is taken from an iOS build setting panel. We've observed odd behavior with no textures at all (even though that is what we want), so we use single-pixel, solid-color images as well as a background color to match.
These fields are not made available in the PC/Android build windows, so not 100% sure what the equivalent would be - beyond using flat-colored images. Either way, it is these elements that are used prior to loading your scenes.
I think you are talking about the camera background color. You can set it up in your main camera to black. You can find the camera documentation here.

In Android how can i create a folder in system launcher and put apps in it?

I am creating an app that requires creating a folder in launcher . I tried to make it but it didn't work .In Android how can i create a folder in system launcher and put apps in it ?
Ah ok, that's easy.
Just make your launcher icon look like a folder with other icons inside.
And when someone launches your app, launch an activity dialog, or a simple transparent activity, that looks like a folder but that is transparent, so it gives the illusion that you're still within the launcher.
It will also be super important how you make your activity transparent to make sure there is no glitch at the beginning of its launch otherwise the illusion won't hold.

how can i set the application icon programmatically android

I know that we can set it through manifest file using android:icon attribute.But how can we set it in java code?
It doesn't make sense to set it programmatically, the launcher has to display the application icon when the application isn't active.
If you take a look at How to change an application icon programmatically in Android?, you will find a comment, which links to this sample code in the Android developer API demos: LaucherShortcuts.
It seams that the Activity can create a LauncherShortcut, which can have a different icon (see function setupShortcut()). If you want the user to select the Icon, you have to display a list of icons when creating the shortcut. But again, it is a shortcut. In the list of application the original icon appears.
I dont think the launcher icon can be set programatically.

How to Change the default Application image in android?

How to Change the default Application image in android??we want to distinguish our application to other android application.so we i want to change the default android application image to sepate image.
how this can be done?anyone pls help me?
Put an image in your project and reference it in your androidmanifest.xml file with
android:icon="#drawable/icon"
in the <application> part
Random reference with a tiny bit more detail: http://www.connorgarvey.com/blog/?p=97
(a bit offtopic, but this is a great page from the dev-guide for making icons: http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html )

How to change default picture application to my own picture?

When I run my application, it's automatically create a droid-bot picture on surface of application. So, I want to change a picture, what should I do?
(1) create a PNG image (say icon.png) and save it in the folder:
res/drawable
(2) Then, in AndroidManifest.xml of your application add the icon tag in your application:
android:icon=”#drawable/icon”
e.g.
<application android:name ="yourAppMgr" android:icon="#drawable/icon"
//... >
AFAIK you can't change the icon of installed application with some completely custom one, but you can add application shortcut with custom image to the home screen from your application.

Categories

Resources