Kill the running apps automatically - setting

Is it possible to kill the running apps (SMS, internet explorer, games ...) automatically by turn off the screen or in certain period of time?
My device is huawei and is not rooted
Thanks

Well, depending on how you wanna define your question yes, there are many.
Advanced Task Killer - Android Apps on Google Play
Task Killer Free - Android Apps on Google Play
Advanced Task Manager - Boost - Android Apps on Google
Hope it helped.

Related

How to implement cron jobs in react native?

I am new to react-native and implementing simple app where app will monitor the mobile's clock time and should set some flags so as to notify user to perform some task when he starts the app.
I want to continuously monitor mobile's clock time as a background job in the react native app such that, when user opens the app and if specific time has already passed, it should set some flag to take future decision.
After some research over blogs, I found that react-native-background-task and/or background-timers can be used. But I am finding difficulty in implementing it. Can anyone help me with the implementation example for the same.
Thank you in advance.
So, from your post I'm going to assume a few things. One being you'll develop on Android as well as iOS, you just want to use a plugin (not code a module yourself).
Unfortunately, unless I'm mistaken - there's no simple answer and I'll explain.
As Android and iOS go forward they are starting to limit usage of Apps in the background, specifically Android goes into 'Doze' mode and iOS works in a similar fashion.
For Android, you'll need to consider a few things and I'll concentrate on them, as you'll need to know this before actually creating a RN app.
Doze Mode
Starting from Android 6.0 (API level 23), Android introduces two
power-saving features that extend battery life for users by managing
how apps behave when a device is not connected to a power source. Doze
reduces battery consumption by deferring background CPU and network
activity for apps when the device is unused for long periods of time.
App Standby defers background network activity for apps with which the
user has not recently interacted.
While the device is in Doze, apps' access to certain battery-intensive
resources is deferred until maintenance windows. The specific
restrictions are listed in Power Management Restrictions.
Doze and App Standby manage the behavior of all apps running on
Android 6.0 or higher, regardless whether they are specifically
targeting API level 23. To ensure the best experience for users, test
your app in Doze and App Standby modes and make any necessary
adjustments to your code. The sections below provide details.
Cruically, you'll need to note:
The system does not allow sync adapters to run.
The system does not allow JobScheduler to run.
So firstly for android, you'll (probably) need to ensure your app is in a 'whitelist'. You can check the requirements of the list here:
https://developer.android.com/training/monitoring-device-state/doze-standby
Or, you can access the maintenance window with a plugin like here:
https://github.com/transistorsoft/react-native-background-fetch
Testing
Android give you some tools to do so, mainly running:
$ adb shell dumpsys battery unplug
$ adb shell am set-inactive <packageName> true
Headless JS
You can check out headless tasks, which could suit your situation:
https://facebook.github.io/react-native/docs/headless-js-android
Caveats:
Although Android state that the operating system itself acts like documented, devices themselves can have software built in which essentially kills background processes. Nokia is one of the worst. So be aware of this.

Do mobile operating systems access smartphone sensors?

Do iOS and Android collect any sensor data (e.g. accelerometer, microphone) from smartphones?
If yes, do they have to ask for user permission like third-party apps?
Yes, of course they do - those functions would not work otherwise - it's the OS that collects the data before passing it on to apps. In iOS for example, you can turn off location services system-wide, as well as per-app.
The OS also needs to ask for permission to do so, but that's usually done on a per-app basis, and may only be temporary. Generally this is much more transparent on iOS than Android - Google's own apps get very greedy before they will work, and there is a long history of privacy abuse in Android apps.

Android - All users have to install Google Play Services?

For devleopment I have to do this:
If not installed yet, you have to install the following packages :
Extras / Google Play services
Extras / Google Repository
Android 6.0 (API 23) / Google APIs Intel x86 Atom System Image Rev. 19
Android SDK Build-tools 23.0.3
Is this for development only? Or do all my users of the app have to also download Google Play Services etc?
Yes I know this isn't really a question for stackoverflow, but where else can I ask this question? They are not letting me ask this in the github issues either.
I also can't test this, because react-native-maps isn't working for me, it keeps crashing. I wash hoping to learn if its worth the effort to fix the crash. If users have to install a bunch of stuff to use this, then its not worth.
If you are using services provided by Google Play Services like Maps, or push messages, location services or in-app payments then yes, your users must have it installed too. If you are not using Google Play Services, then it's not required.
But if required, they have to install Google Play Services app from Play Store, not development stuff like you listed:
https://play.google.com/store/apps/details?id=com.google.android.gms&hl=en
EDIT
How come Google doesnt defalt install this?
Google Play Services or apps like Calendar, GMail etc are NOT part of Android. These are Google applications and may or may not come preinstalled, depending on licenses phone/tablet manufacturer purchased from Google. As Android can perfectly live w/o these apps, some devices does not include it or come with alternatives (i.e. using other providers than Google).
I don't know even know where the proper place to tell them would be
Your app should check if Google Play Services exists usually on start before it start using it. See this documentation which discuss this.
Weird, I just clicked on "Google Maps" on my Android Simulator and it made my react-native-maps start working.
There was a licence agreement when I clicked Google Maps on the phone, so as soon as I accepted it, react-native-maps started working.

Text to Speech Metro App - requires 3rd Party library/plugins - where are they?

Has anybody yet looked at using Text to Speech in a Windows 8 Metro app. Functionality should be fine with a desktop app, but according to MS, metro apps require a 3rd party library/plugin.
http://social.msdn.microsoft.com/Forums/en-SG/winappswithcsharp/thread/553abb2c-19ef-41b0-b189-37b8f6b38713
I've looked, and looked and looked. Has anybody looked at this yet, or have any idea if there are currently third party libraries available or under development? If so, could you point me somewhere useful?
Bing is not useful to me - this needs to operate offline too.
You can use Bing Translator. It has both TTS and ASR but you have to access it via the network.
http://www.bing.com/translator
You can also look at Project Hawaii
http://research.microsoft.com/en-us/projects/hawaii/download.aspx
This supposedly works for windows phone not sure if you can use it with windows 8
http://ttsforwindowsphone7.codeplex.com/discussions
Trying to find a non-networked solution myself but so far everything's on the cloud

Is there a testing phase for iTunes and Android Market?

I have a small app I've made that I intend to make available on both iTunes and on Android Market (AM).
I have purchased the developer certifications for both, built my app with the Android SDK and the iOS Xcode SDK. So I think I'm most of the way along.
I'm a little fuzzy on the steps after this, though. When I launch my app, I'd like it to be available on each market on more or less the same time. I'd also like to do a little testing to try and download each app to different people's devices for a beta phase. Also, my understanding is that iTunes requires some sort of approval before it goes live (does Android require the same?).
So, what I'd like to do is be able to put my app on both AM and iTunes, but have it not be publicly available. A sort of private phase, where I can test it, have selected testers download it, make sure it is working fine, and maybe even get Apple (and Android) approval.
Then, when I'm ready to go live, then mark my apps as public.
Is there anything like that on either market? If I upload my app to either market, is it from that moment publicly available?
If there isn't any such "private" phase, what is the usual process for testing the app on different devices before making it available for sale?
The android developer site confirms that you can upload your app without publishing to allow for final testing. See more information here: Publishing on Android Market (under "Configuring options and uploading assets" header). When you actually publish the app it should be up within minutes. See this answer as well Just uploaded Android App: How long before app shows in Android Market search?
Apple has a different approval which can take hours or weeks depending on how lucky you are :) I personally have not submitted an app for approval though so I don't know if there's a way to get approval and then delay the release. I don't have a dev account with Apple so I can't log in to see their app approval guidelines apparently, but maybe this has some useful info: iOS App Store Approval Guidelines