How can I avoid the change in background image for an application while it runs in emulator/device?

When I run my applictaion in an emulator/device, automatically one drawable image other than default image I used, comes for my application as background. How can I avoid it?


Asked by: Leonardo403 | Posted: 25-01-2022






Answer 1

It is unclear what you are asking.

But if you want to set a custom background for your application, you can use an Android theme to set a Drawable for every screen in your app.

AndroidManifest.xml:

<application ... android:theme="@style/MyAppTheme" />

res/values/themes.xml:

<resources>
  <style name="MyAppTheme" parent="android:Theme">
    <item name="android:windowBackground">@drawable/custom_background</item>
  </style>
</resources>

Answered by: Luke890 | Posted: 26-02-2022



Similar questions

Cannot run Android application on emulator/device - activity doesn't exist?

When trying to run my application on the emulator I get an error from the activitymanager: ActivityManager: Error type 3 My activity exists, is listed in the manifest (in fact, its the MAIN launcher activity). Anyone know what this error means?


android - How to patch an application in emulator/device similar to how Google Play is doing with "Smart app updates"?

Is it possible to achieve locally (using adb or other ways) what Google Play is doing in "Smart app updates" ? What I want to do is to create a binary diff on the PC (using some command line tools) and then deploy the diff to simulator/device using Android tools (adb, shell, etc). I am aware of


Cannot run Android application on emulator/device - activity doesn't exist?

When trying to run my application on the emulator I get an error from the activitymanager: ActivityManager: Error type 3 My activity exists, is listed in the manifest (in fact, its the MAIN launcher activity). Anyone know what this error means?


Is there any frameworks for integration testing of Android apps which can drive emulator/device beyond one app

I found couple of difference frameworks which can test Android apps, but all of them are limited on testing of just one app (because mainly they use Instrumentation) My app contains a service which could be called by other apps and I want to automate testing of this too. So, I would like to be able to write some tests which automate UI in other apps. Have you seen anything, except MonkeyRunner? I looked at ...


android - Facebook Connect works different on emulator/device, but not on Google Play

I'm getting a weird facebook connect behavior in my app. If I use it in emulator, the calls for facebook.request (to retrieve user data) and facebook.dialog (to post on wall) are made at facebook.authorize > onComplete. But if I use a device for debugging, these calls need to be at onActivityResult() to work. And I've uploaded the device-tested apk into google play, but it doesn't works! The SAME code, if installed...


eclipse - apps not running on android emulator/device

I've asked this already but none of the 2 answers fixed this problem, Now i even tried installing eclipse indigo and install 64 bit jdk, but i just can't get the apps to run! The emulator boots up fast No errors , nothing on console. Even the device chooser wont show up(showed up ONCE). This is the 3rd day im trying this to run. 08-04 02:47:12.460: I/Choreographer(395): Skipped 48 frames! The application m...


android - How to by pass entering the user credentials in a Twitter app once the user has entered his credentials in Twitter on the emulator/device?

I have installed Twitter on my device and entered my user credentials(ie; I've already logged into Twitter). I would like to create an app which asks me my credentials only if I have not logged into Twitter on my device/emulator. If I have logged in already it should by pass asking me my user credentials. I would like to know if there is any way in which this can be done. Could you please help me in this aspect? Th...


Not able to run android apk file on emulator/device using calabash android setup

I am attempting calabash-android run file.apk. I get the following output error msg Could not list certificates in keystore. Probably because the password was incorrect. (RuntimeError) I also tried running this command calabash-android resign file.apk then also receiving same error. I have also set proper path of android-home and ...


eclipse - Appium is unable to find Android Emulator/device, unable to run code

Unable to run code on emulator/device. No devices are found by Appium but cmd lists the devices. The node.js console gives: info: Welcome to Appium v0.12.0 (REV a9d21807874190ae6d19f8251375cfe4da7b2ae5) info: Appium REST http interface listener started on 127.0.0.1:4723 info - socket.io started debug: Appium request initiated at /wd/hub/session debug: Request received with params: {"desiredC...


facebook graph api - Domain names added in windows hosts file is not accessible from android emulator/device

I am testing facebook app from android mobile/emulator. For this I added a domain like, 127.0.0.1 mysite.web in the \etc\hosts file. But when i enter this url, http://mysite.web:8080/fb_post_log.html in the webview, it is not loading and DDMS log says that, "Reason : The URL could not be found."


parse platform - APK error: Android app runs perfectly fine on emulator/device but when I download from the PlayStore the app always crashes on startup

My app works perfectly fine on my emulator and when I run it through the usb on my phone. However when i download it from PlayStore, it crashes on start up Here is the Log: java.lang.AbstractMethodError: abstract method "void android.app.Application$ActivityLifecycleCallbacks.onActivityCreated(android.app.Activity, android.os.Bundle)" at android.app.Application.dispatchActivityCreated(Application.java:190)...


android - Javascript of apk built by cordova CLI doesn't work on emulator/device

I have started to learn PhoneGap/Cordova to create app for mobile devices. I created test app (cordova create) and added javascript file with simple function. file test1.js: function doalert() { alert("Test1 alert!"); } Then I put button into generaten index.html + included mentioned js script file: &lt;!DOCTYPE html&gt; &l...






Still can't find your answer? Check out these communities...



Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android



top