• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

System doesn't unmute notifications

When I mute using the hot key in the tray, all options go to mute. However, when I deselect same button and return soind, media & calls return to same level as before however the notifications option stays mutted. It didn't always do this but it's been going on for at least a few months. I'm up to date on system updates. Android 9 Kernal 4.4.153 July 31.

Any known fixes?

Apps Is there possibility to "Auto-start" application when users become inactive?

Hi,
I have to create an app, which detects user inactivity, and then start activity which displays some videos with WebView, and then when displaying with WebView is finished, it has to play videos from SDCard. I've already handled part with WebView and SDCard (with JavaScriptInterface etc.)
This application has to work with API 19 all the way to the newest one.

The question is - Is there a possibility to detect if user is inactive and start my application, or keep the app running in background, and then start activity in the foreground after the user becomes inactive for certain time?

I'm not trying to play ads, when user is not looking at his screen. Application is for my client, who have stores with all kind of electrical equipments, including smartphones. The goal is to play video presentations with hardware details specific for each smartphone (informations about processor, ram, camera, screen etc.).

In short: I have to make an app which is similar to "Demo Apps" created for example by Samsung (playing some kind of presentations on screen).

So far I've read and tested things like:

1) BroadcastReceiver with combination of ACTION_SCREEN_OFF / ACTION_SCREEN_ON events.

Receiver works properly, I can detect this event and then start activity, but... The screen is already off so i can't see the displayed activity - it's visible running in the foreground after unlocking the phone. Is there a way to unlock the phone when the event is received?

That's my code so far.
EventReceiver Class:
Code:
class EventReceiver: BroadcastReceiver() {
   override fun onReceive(context: Context, intent: Intent) {
       StringBuilder().apply {
           append("Action: ${intent.action}\n")
           append("URI: ${intent.toUri(Intent.URI_INTENT_SCHEME)}\n")
           toString().also { log ->
               Log.d(TAG, log)
               Toast.makeText(context, log, Toast.LENGTH_LONG).show()
           }
       }

       if (intent.action == Intent.ACTION_SCREEN_OFF) {
           val i = Intent(context, MainActivity::class.java)
           context.startActivity(i)
       }
   }
}

MainActivity Class:
Code:
val br : BroadcastReceiver = EventReceiver()
val filter = IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION).apply {
   addAction(Intent.ACTION_SCREEN_OFF)
   addAction(Intent.ACTION_SCREEN_ON)
   addAction(Intent.ACTION_BOOT_COMPLETED)
}

2) Foreground Services - I read that this is a great way to make some asyc stuff in the background and show notifications to user. Is there a way to start the activity with it?

3) Job Scheduler

4) Daydream / Dream Service - it actually works great with almost every API and manufacturer, but.. there's no way to set the app as Screen Saver on Huawei/Honor smartphones, at least from phone settings, I've read that this is possible with ADB etc. but this is not an option that I can use here.

It seems that none of these fullfill my expectations.

Micro Launcher

I'm writing a new launcher. The smallest in size, memory use and quickest speed and navigation possible. Multiprocessor use everywhere possible. Completely different than other launchers. Here is an Alpha stage screenshot.

Attachments

  • Screenshot_20190908-174649.png
    Screenshot_20190908-174649.png
    144.9 KB · Views: 225

v40 Virus Issue

Try this: Go to Google Chrome (if that is your browser) tap it to open, scroll to settings, tap that and scroll to Site Settings, tap that and scroll down to Pop Ups and redirects and make sure that is toggled to Blocked. Then hit All Sites, and find the site you're having issues with, tap on it and hit either delete for stored data under Useage or Clear & Reset under Permissions. I've had success with this when having problems with pop up ads on various websites.

SD card not showing

Oops, it did it again. This time the Samsung battery fell out because I had the cover off for obvious reasons. The phone stopped working again. I put the Samsung battery in the "oldest" S5 and now IT'S apparently charging ok with the new, official Samsung charger. What the heck is going on here?

Aliens and Facebook

just saw a thing on msnbc saying that 2 million have rsvp for this event...........i think it set in 5 days. curious to see how that goes.
Last I [halfway] heard, it's not going to happen--at least not as planned. It now looks like some people are going to show up, but in a different, nearby location.

As noted, I wasn't paying full attention, so I may have gotten it wrong.

Ford Sync: Phonebook Problem

If you haven't figured out how to get your contacts to sync to your Ford Sync from your Moto Z2, or if anyone else is having this issue, I just figured something out.

My boss recently bought a '16 Ford F450 with MyFord Touch, and he has a Z2 Force also-- phonebook would not sync.

Tried SO many things. Here's a stupidly simple thing I did:
1. First off, export your contacts (.vcf, or vCard, file) in preparation for sharing in step 4
2. Connect your phone with your Ford's sync
3. Navigate to settings in your vehicle's sync system, scroll to 'Manage Phonebook', and select 'Add Contacts from Phone'
(these are steps in regards to the MyFord Touch sync system, may vary if using another system)
4. On your phone find the .vcf file you previously exported and share it via bluetooth to your Ford's sync, which should already be paired and connected to your phone

For some reason, while everything else regarding the phone syncs, the phonebook does not do it automatically with a Z2 Force. You have to manually add them.

Hope this helps!
Go-to Bluetooth settings find Sync
Go to settings check all the boxes
including "allow contact sharing"
That worked for me ,so simple
after trying different things.

Filter

Back
Top Bottom