Questions tagged [android-background]
370 questions
0
votes
1 answer
How to cancel ProcessDialog from onPreExecute() method
I have no idea how to return from onPreExecute() when some condition happens.
for instance:
@Override
protected void onPreExecute() {
if(varCancel){
//Do not execute doInBackground() method
}
…

jose
- 25
- 3
0
votes
1 answer
Unable to set background image in android activity
I 'm trying to set background of my main activity in my application something like in this way:-

Midhun
- 744
- 2
- 15
- 31
0
votes
1 answer
How to create gradient at the top of the view
If you notice at the top of the View. There is a light gradient.
How should I go about creating this ?
e.g.
Insert a view with a gradient background ?
Use a top border of sorts ?
Any help would be great !

Prakash Raman
- 13,319
- 27
- 82
- 132
0
votes
1 answer
Scheduling background sync jobs in Android (API > 15)
We have a requirement to schedule periodic sync jobs for an Android Application. There is no hard schedule requirement but as long as the sync runs every 6-7 hours, it should be fine (provided there is network connectivity). We're using…

vivekjain10
- 1
- 1
0
votes
1 answer
what kind of background-service to use for background request and saving
i am currently trying to get code running as a background service.
what this code does is:
send request to server with current location of the user
receive response
parse response
save into model (singleton)
and this is set to happen in a 30 sec…

stephanlindauer
- 1,910
- 2
- 14
- 17
0
votes
2 answers
how to change the background color of android phone screen
I am new in learning Android and so far I have been focused on functionality, but now I am starting to work with layouts.
Issue:--
My app has a button and on its click, I send a sms to registered number.But as soon as the button is clicked I want…

indi mars
- 133
- 3
- 8
0
votes
1 answer
Creating a round ImageButton. Rounding a square image
Im trying to create a ImageButton with a image inside.
I need the ImageButtons image to have round edges.
But here comes the BUT... Instead of making the image smaller inside the button, to make it fit inside the element, I would like to have the…

Nabuska
- 443
- 9
- 17
0
votes
2 answers
What is the best way to make background like this in XML?
I wan't to make background like this welcome screen of nexus in XML. What is the best way to do?

Prathmesh Deshmukh
- 259
- 3
- 14
0
votes
3 answers
Android is killing my service?
with a BroadCastReceiver, I execute a service at the smartphone boot:
public class BootReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
Intent startServiceIntent = new Intent(context,…

helloimyourmind
- 994
- 4
- 14
- 30
0
votes
0 answers
Best way to set background into layout with the lowest memory
I am developing an Android app with many drawable resources so the heap memory is growing too much, maybe to >28MB. My app has 3 Activities switching each other when using, each of them has a different background and currently, I just simply set
…

NamNH
- 1,752
- 1
- 15
- 37
0
votes
0 answers
Create an image from part of an image in Android?
I'm a computer science student and a beginning Android developer, learning on the job. My boss, a small business owner, paid another programmer to create an iOS app. Now he's paying me to create the Android version. He sent me the image assets…

Timothy Steele
- 773
- 1
- 7
- 19
0
votes
0 answers
one Activity color is looking different,like yellowish shade In the whole app . Is there any idea why it looks like that?
Please give some suggestion . I don't know how to change this.
I have given white color background #FFFFFF. But it looks like yellowish shade,not a perfect white.
This is updated question check and let me give some suggestions. Thanks in advance. …

GuruPrasath S
- 93
- 12
0
votes
1 answer
Android: the bind value at index 1 is null error
I am developing an application in which i am running a background service as:
startService(new Intent(getApplicationContext(), ContactService.class));
In Menifest:
And the service code is as…

Manoj Fegde
- 4,786
- 15
- 50
- 95
0
votes
5 answers
String types not allowed (at 'background' with value )
I'm having trouble adding a image to my background, I saw a similar question earlier and none the answers helped me. Ive tried everything "@drawables/myimagename", "myimagename.png", and "myimagename" none of these things seem to work. I even tried…
user4625928
0
votes
1 answer
Using one style on several buttons with different background images
Hi I am trying to style several buttons in one menu with the same size and shadow,
I found code here How to provide shadow to Button to help me do this but I want each button to have a different background image but as I am already calling this…

Alan Mc
- 7
- 5