background-service

How to restart Background service getting killed on redmi phone For MIUM 8

血红的双手。 提交于 2019-12-01 14:50:43
I am using sticky service for background operations and its working fine in all phones even when app is closed by swiping from stack(then service is restart) but in RedMi Note 3w When app is closed by swiping from stack , service is not restarting .I test Whats App and its working fine on Note 3 so it means WhatsApp is able to manage this so how can we restart Background service getting killed on redmi phone? Note : please don't give me solution for MIUM 7 in MIUI 8 in setting >Permissions>Autostart you can allow your app to Auto Start and Facebook and WhatsApp are already allowed because MIUI

how to run my service once in 30 minutes?

心已入冬 提交于 2019-12-01 14:02:54
Can any body say me a simple way to run an service once in half an hour? this is not atall working can any body say how to run it once in half an hour pls. i use this for start my app on system boot even that is not working..? i am doing this : autostart.java public class autostart extends BroadcastReceiver { public void onReceive(Context arg0, Intent arg1) { Intent intent = new Intent(arg0,back_process.class); arg0.startService(intent); Log.i("Autostart", "started"); } } Back_Process.java public class gps_back_process extends Service { private static final String TAG = "MyService"; @Override

Android Silent Push

冷暖自知 提交于 2019-12-01 13:46:02
问题 I am new to android and I'm playing around trying some features here and there. I wanted to know what is the way to use silent push - meaning get a push notification on the device without any alarm, notification or vibration - i.e. without the user to be aware of it. If someone have a tutorial he can refer me to I'll be more than gratefull. 回答1: The default push in Android (Google Cloud Messaging for Android) is a silent push. You actually have to write code in order for the push notification

how to run my service once in 30 minutes?

房东的猫 提交于 2019-12-01 12:14:54
问题 Can any body say me a simple way to run an service once in half an hour? this is not atall working can any body say how to run it once in half an hour pls. i use this for start my app on system boot even that is not working..? i am doing this : autostart.java public class autostart extends BroadcastReceiver { public void onReceive(Context arg0, Intent arg1) { Intent intent = new Intent(arg0,back_process.class); arg0.startService(intent); Log.i("Autostart", "started"); } } Back_Process.java

Continuous location updates in background

为君一笑 提交于 2019-11-30 22:34:26
i am developing a application which will send location updates continuously from a background service. i tried following code. public class LocationService extends Service implements LocationListener, GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener { LocationRequest mLocationRequest; LocationClient mLocationClient; @Override public void onCreate() { //creating log file in mobile appendLog(DateFormat.getDateTimeInstance().format(new Date()) + ": Service created:", com.example.locationservice.Constants.LOG_FILE); mLocationRequest =

Continuous location updates in background

这一生的挚爱 提交于 2019-11-30 18:15:02
问题 i am developing a application which will send location updates continuously from a background service. i tried following code. public class LocationService extends Service implements LocationListener, GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener { LocationRequest mLocationRequest; LocationClient mLocationClient; @Override public void onCreate() { //creating log file in mobile appendLog(DateFormat.getDateTimeInstance().format(new Date()) + "

iOS iBeacon / Bluetooth connectivity when app is dead and gone

元气小坏坏 提交于 2019-11-30 09:05:55
问题 What I need: A predictable, solid and reliable way of launching iBeacon delegate methods such as didDetermineState , didRangeBeacons , didEnterRegion or didExitRegion when the app is dead and the device is plugged in and nearby. The Current Situation I am making an app for parents to use for their kids to help them shut down their phones during important times. The app is in Objective-C and it needs to maintain a persistent connection to a bluetooth device even after the life of the

Get location in Ionic/Cordova app when in background

给你一囗甜甜゛ 提交于 2019-11-30 06:26:09
问题 Is it possible to run a background service if I close my Ionic/Cordova app (both for iOS and Android) ? For the purpose I picked that pluging https://github.com/katzer/cordova-plugin-background-mode So far I have that code: $ionicPlatform.ready(function () { cordova.plugins.backgroundMode.isEnabled(); cordova.plugins.backgroundMode.configure({ silent: true }) ............ ///do some task )} It works fine if the app goes to the foreground but as soon as I close the application the task I am

Voice Recognition as a background service

允我心安 提交于 2019-11-29 23:13:18
Is it possible to implement an activity as a service? My activity is a voice recognition activity. I want to have the activity running in the background of the app constantly checking for voice and when the user says a command it will recognize it and then perform the action. My question is...is it possible to do this and if so how can the background service notify the current activity or application? There was a previous post on this which had no clear answer...Thanks for any input or help. Here is the voice activity...taken from another StackOverflow post: import android.app.Activity; import

iOS iBeacon / Bluetooth connectivity when app is dead and gone

雨燕双飞 提交于 2019-11-29 11:45:12
What I need: A predictable, solid and reliable way of launching iBeacon delegate methods such as didDetermineState , didRangeBeacons , didEnterRegion or didExitRegion when the app is dead and the device is plugged in and nearby. The Current Situation I am making an app for parents to use for their kids to help them shut down their phones during important times. The app is in Objective-C and it needs to maintain a persistent connection to a bluetooth device even after the life of the application. I have been trying for a long time to get this to work and I have had help from a lot of S.O.