Questions tagged [android-background]
370 questions
0
votes
2 answers
Why would giving a widget a background color cause it to disappear?
This XML:

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
Change values of Bundle parameters of addPeriodicSync()
I am using a SyncAdapter in my application in which the frequency of Periodic Sync is increased when user enters a particular activity.
I wanted to know if there is a way in which I can let the application know which activity has called the…

Roadblock
- 2,041
- 2
- 24
- 38
0
votes
1 answer
Make a service which execute 4 PM EST every day in Android
In my project need to updated web service only ones a day ,4 pm est every day.
But I don't Have any Idea how can create a back ground service , which execute 4 PM EST every DAy
Please Help me how i can fix this issue
Thanks In Advance

Kuldeep
- 367
- 2
- 7
- 19
0
votes
2 answers
Service to service communication in android
I am new to android development.I am going to create one android service(parent service), which it will be started on boot time.Once that service is getting started ,i will start the new service(i.e child service of parent service).I want to make…

Sivasailanathan
- 135
- 2
- 11
0
votes
1 answer
How to send notification even if app is killed
I am working on an Android project that has a part which dose this:
1) the user enter a data from a data field and save it in a text file
2) the app should send notification even if the application is killed by the os, at that date, the one wrote by…

Iosif
- 166
- 1
- 15
0
votes
1 answer
GridView background style in android
I want to create a similar layout like the image. ListView is on left side and its respective GridView is shown on right. I have to create similar layout to this but I am unable to create a GridView background similar to the image. Can anyone help…

Aj_31
- 187
- 2
- 6
0
votes
1 answer
Android Service unexpectedly stopping
For the android application i'm making, I want there to be a service that is checking the a database for an attack even when the app isnt running (kinda like how facebook will notify something even if it's closed) and so i made the class below, yet…

user3293629
- 119
- 1
- 8
0
votes
3 answers
how drawable folder to use to fit background images
i am using API 16 (Jellybean), 4.0 WVGA (480x800: hdpi)
and i am trying to set a 480x800 image in background
i put a image in "drawable-hdpi" but this image is not fitting in background, why this is not fitting in background when i am using 4.0…

user3441251
- 27
- 2
- 7
0
votes
1 answer
Android - programmatically set background selector state
I have a linear layout containing an EditText and an ImageView. I've given the EditText a @null background and have given the LinearLayout a background of:
?android:attr/editTextBackground
to make it look like the whole thing is one widget. When…

Gyroscope
- 3,121
- 4
- 26
- 33
0
votes
1 answer
Kitkat not picking up android:background from Layout XML file, Jelly is OK
The same XML looks different in Android 4.3 vs 4.4. Problem is that Kitkat (4.4) is not picking up this line: "android:background="@drawable/darkgray" (darkgray.jpg is an img)
Why Kitkat is behaving differently?

user1406716
- 9,565
- 22
- 96
- 151
0
votes
0 answers
How to avoid black background when recycle background drawable during changing activities?
This troubled me for a long time...
I have a login screen with a background image to be setup. For avoid memory leak, I use the guide and code from google: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html
And when it comes…

Arthur Wang
- 3,118
- 4
- 21
- 29
0
votes
2 answers
How to placed my images(such as background) placed in my android project?
Is it enough to create a drawable folder and put them all images only there? I have to scale all images and put them all according to their size? (to drawable-xhdpi, drawable-xxhdpi, drawable-mdpi, drawable-hhdpi). Thanks

Utku Soytaş
- 1,475
- 2
- 19
- 30
0
votes
1 answer
how to display quotes from .txt file to the activity
I am just a beginner for android. My application consists of number of images displaying quotes(having same background) . Now what i am doing is i have saved the quotes in the .txt file and placed in /res/raw folder . I am trying to display these…

bhanu kaushik
- 391
- 1
- 7
- 30
0
votes
1 answer
How to retrieve multiple images from Res/draw using BitmapFactory.decodeResource
I need to resize images according to the device screen size.I can do it for single images one at a time,Currently I am dealing with 18 images.The code will be too clumsy and difficult to work out with. Most importantly in my code I need to create a…

Sham
- 414
- 2
- 6
- 14
0
votes
2 answers
Resource not found exception at setDropDownBackgroundColor
I'm trying to set a DropDown Background Color for a autocompleteTextView, because the standart Values seem to be different during different Android Versions. For example, everything works fine starting with android 3.2, but previous Versions seem to…

user2177234
- 23
- 6