Questions tagged [android-background]
370 questions
0
votes
1 answer
How to solve : Binary XML file line #8: Error inflating class
My app consist on moving a picture when the user speaks. I have done this, but I have a problem while I try to set a image as background for my app. I am trying to do this using the xml file but I get the Error inflating class. Can anyone help me,…

user2804038
- 1,093
- 3
- 15
- 17
0
votes
1 answer
Set an image as background android, using canvas
My app consist on moving a picture when the user speaks. I have done this, but what I want to do now is that I want to set a image as background for my app. I am working with canvas, as you can see in the class I have included below. So how can I…

user2804038
- 1,093
- 3
- 15
- 17
0
votes
2 answers
FInish write to disk task before the app quits in android
In my app I am using XML to store images drawn by user on canvas. After each figure is drawn I write the points to an xml file and store it in disk. The xml is fairly large. So it take a while before the write is finished. This is the code I am…

Zach
- 9,989
- 19
- 70
- 107
0
votes
1 answer
Use SharedPreference to define drawable resources
I have a few drawables:
R.drawable.pres01
R.drawable.pres02
R.drawable.pres03
I want to use SharedPreference to display the proper drawable:
private SharedPreferences prefs;
private SharedPreferences.Editor editor;
String someId;
ImageView…

Si8
- 9,141
- 22
- 109
- 221
0
votes
1 answer
Create a background using some logic (not just an animated background)?
I'm planning to make a Android Widget with some countdown based on current date, but would be perfect if I could do that as a Background instead.
I googled a little and didn't found any information on this matter.
Thanks!

Marcelo Assis
- 5,136
- 3
- 33
- 54
0
votes
5 answers
On Click of of a ImageView Change the Background of the Layout Android
On click of the ImageView i want to change the background of the layout .How can i do this i have created the selector that is

Developer
- 6,292
- 19
- 55
- 115
-1
votes
1 answer
Button background color is not getting change in android studio
Hey I have changed the button background to white color but it is not reflected in the design of app. instead of white color the design is showing it as purple.
-1
votes
1 answer
How to debug android apps running in background and Foreground
When we remove an app from foreground logcat gets full of other stuff.

Amresh Kumar
- 43
- 5
-1
votes
1 answer
How is the line under the text of an EditText created?
By default android.widget.EditText has a line under its text. How exactly is that technically done? I checked the source code of the EditText class, but couldn't find where this is done?
I think to know that the line is technically a background, but…

stefan.at.kotlin
- 15,347
- 38
- 147
- 270
-1
votes
1 answer
Perform an Action when the app comes to foreground
I am developing an app which has to perform some background work. For that reason, I am using a Service. Now what I want to achieve suppose the user start the background work and while the work is loading then the user has an option to either…

Rahulrr2602
- 701
- 1
- 13
- 34
-1
votes
2 answers
How to run an application forever after installing?
I want to run my android application in background after installing. I tried just running the application in the background. But I have to start the app by myself after rebooting the device. What I need is I need to work my app as FACEBOOK,whatsapp…

Tharindu Rasanga
- 27
- 9
-1
votes
1 answer
Sync with Server every 30 minutes in android?
I want the android app to sync with the server every 30 (or any interval) minutes and notify user if there is any change.
I have already tried [JobScheduler][1]. It seems like [JobScheduler][1] runs the event at optimized interval not at exact…
-1
votes
2 answers
can't resolve drawable resource put into drawable-xhdpi
Ok this is very stupid but i can't find a way out.
As a brief test I put bg.png into drawable/drawable-xhdpi but when i reference it

MaX
- 489
- 7
- 18
-1
votes
5 answers
how to send values from one activity to another extended activity in android?
I am developing an application in which I have a common activity, i.e. BaseActivity, I am extending it to all other activities in my application.
I run few AsyncTask in BaseActivity to reflect in all other activities. My query is I need to pass…

Anish Kumar
- 478
- 4
- 12
- 27
-1
votes
4 answers
How to restrict Android application from changin its landascape mode?
I am in trouble with Portrait and Landscape modes of my android application. So, I want to know how to restrict my application in anyone mode only. Thanks in advance to any reply with suitable answer and problem solving solution.

John Kiran
- 79
- 1
- 14