Questions tagged [android-background]
370 questions
0
votes
1 answer
API 23 - camera2 - video recording on background and preview in the activity
I'am a beginner. I would like to write an app, which has many activities and one othe them is for setting video recording on background but within camera preview. So when I leave the activity the recording must continue.
I have a service started…

Häkka
- 1
- 2
0
votes
1 answer
Why does ELAPSED_REALTIME behave like ELAPSED_REALTIME_WAKEUP
Code:
Intent intent = new Intent(context.getApplicationContext(), UpdateWidgetService.class);
PendingIntent service = PendingIntent.getService(context,
MyCode,
intent,
…

Hong
- 17,643
- 21
- 81
- 142
0
votes
1 answer
Will the updated code work with the new changes in the background
I have an app installed which is not running in foreground, but has a BroadcastReceiver which will be receiving events. Now I am updating the app from Google Play.
After the update is installed, will the app work with the new updates(Let's say I…

Joshua
- 1,167
- 1
- 14
- 32
0
votes
1 answer
Open Activity from Notification click when app is killed?
I am implementing calling functionality in my application with Twilio SDK. I am showing notification as soon as call starts, so the user can hang up the call from the notification bar. The problem is if user kills my application forcefully, I am not…

sharma.mahesh369
- 985
- 11
- 28
0
votes
0 answers
Execute Webview in background without UI
In my app a use a WebView that displays a login screen. Once the user is logged in and the token expires, I reuse the Webview with the cached credentials in order to relogin. The thing is that I want to do this relogin action in the background,…

Fivos
- 558
- 8
- 19
0
votes
0 answers
Multiple TextEdits have state = focused
I'm working on an Android app and encountering issues with TextEdit states.
I have many TextEdits in a grid, all using one of the following background selectors depending on whether the input is correct, incorrect, or not checked…

user3273183
- 1
- 2
0
votes
1 answer
Layout background with SweepGradient
I need to create a multicolor background like in the picture. I know all colors and angles.
I try to do this with SweepGradient, but nothing change, I see only white background.
A piece of my layout

Delphian
- 1,650
- 3
- 15
- 31
0
votes
3 answers
how to operate on data recorded from edit text
I want to take the depth input by the user and mathematically operate on it to obtain cost and then display it to the user. How do I go about doing that?(If didn't notice already, I don't know Java). Thanks.
private void estimateCost(View view){
…

Ajay Bhargav
- 7
- 1
- 4
0
votes
2 answers
Android Studio, can I set a background color in Java class instead of its XML file?
In my MainActivity.java is where I coded for my preference settings screen to work.
Here's my activity_main.xml design:
In the activity_main.xml design and text, you can see background colors for AppBarLayout and TabLayout are purple.
Here's my…

iBEK
- 622
- 2
- 8
- 27
0
votes
1 answer
How to keep ble android application running in background?
I am working on the android application. In this application i have to connect to the ble device. I want the application connected to the ble device when the application is in background .
user8030518
0
votes
1 answer
How to get the background color of a dialog fragment or window?
Red text came out a little small. Here is what it says:
Need to get the background color of the dialog so I can set the background of the "more info" textview to that same color. Need to do this programmatically because color of the dialog is…

nicoqueijo
- 872
- 2
- 11
- 28
0
votes
1 answer
Destroyed fragment content remains on screen
I have fragments making API call via Retrofit + RxJava. I subscribe the Subscription in onActivityCreated and dispose at onDestroy. When I switch from FragmentA to FragmentB while FragmentA is still processing the API call, FragmentB appears below…

Eric V. Swann
- 3
- 3
0
votes
3 answers
how to set background of TextView to @android:drawable/dialog_holo_light_frame
i want to set the below xml code programmatically. i know about textView.setBackgroundResource(R.drawable...) but i am not able to set textView background to @android:drawable/dialog_holo_light_frame. Please suggest me suitable…

Sia Hindwar
- 11
- 6
0
votes
3 answers
How to perform actions on time basis in android?
In my application I want the user to auto log out after 10 PM and can login after 10 AM only .Now I am picking the current time but I don't know how to this for my scenario ,If the application is not in background then also it should work(I should…

Sidhartha
- 988
- 4
- 19
- 39