Proof of concept android app to Lock notification bar on Android Orio (API 26)


I need a sample app (just one activity and service) that need to block notification bar by putting a overlay on top on notification bar. The app needs to able to do this without being a system app and on non rooted device.

This used to work till android 7 but on Android 8 (api level 26), android change the api and requires system permission for this to work. Below is the code that used to work not no longer works:

When app is started, it starts the service which executes following code to block notificaion bar

mLP = new [url removed, login to view](



// Allows the view to be on top of the StatusBar


// Keeps the button presses from going to the background

// window



// Enables the notification to recieve touch

// events



// Draws over status bar


[url removed, login to view]);

[url removed, login to view] = [url removed, login to view] | [url removed, login to view];

mWindowManager = (WindowManager) getSystemService(WINDOW_SERVICE);

[url removed, login to view](mView, mLP);

Here is the stack overflow link that explains the issue with Android 8.0 (api level 26)

[url removed, login to view]

I am OK of other way of blocking it. The goal is either user not able to drag the notification bar or as soon as they drag it, app detects is and blocks that action.

Taidot: Android, Java, Mobile App Development

Näytä lisää:, android app push notification, notification bar android, android o changes for developers, notification: use of stream types is deprecated for operations other than volume control, android o overlay apk, android o behavior changes, android o implicit broadcasts, android o api level, android o features for developers, android o background location, android, intent www freelancer com job intent scheme https package com freelancer android messenger s android intent extra referrer_name, android notification bar, https duniati com free line theme android download, https duniati com free line android theme download epi 7 2cpageid10 2c7259334951, https duniati com free line android theme download epi 7 2cpageid10 2c3513730965, https duniati com free line android theme download, android app with backend using google maps api, android app run exe file android

Tietoa työnantajasta:
( 33 arvostelua ) Tempe, United States

Projektin tunnus: #15656775

Myönnetty käyttäjälle:


Hi! My name is Igor, I have strong experience with Android and Java for 3+ years, I can develop this app for you Can we discuss details? Relevant Skills and Experience Androd, Java Proposed Milestones $122 USD - Fin Lisää

$30 USD 3 päivässä
(15 Arvostelua)

13 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

$155 USD 3 päivässä
(20 arvostelua)

[login to view URL] [login to view URL] Relevant Skills and Experience [login to view URL] Lisää

$277 USD 10 päivässä
(70 arvostelua)

Hi, As per your requirement in Mobile & Web development, I have relevant skills to provide you the best quality [login to view URL] you find me suitable for this work please ping me on chat for further details. Relevant Skills and Lisää

$200 USD 3 päivässä
(56 arvostelua)

hi! i have read your requirements and i'm sure i can do this job . i have extensive experience in developing all kind of android applications(similar to this one too). i can provide you a quality app Relevant Skills a Lisää

$155 USD 3 päivässä
(31 arvostelua)

Hi Mate, We have small team to develop android app in studio. we worked on social media,chatting,map,payment integration and social event app too, we build new and do changes in existing app as need. Relevant Skills Lisää

$222 USD 3 päivässä
(8 arvostelua)
$155 USD 3 päivässä
(6 arvostelua)

I am an IITK graduate and I have 11 years of experience in software development. I have 100% completion rate and I have finished all the projects with the highest level of customer satisfaction. Relevant Skills and Ex Lisää

$155 USD 3 päivässä
(20 arvostelua)

Hello Hiring Manager, Looking to Develop an App for your Business? We develop apps like (Uber/airbnb/upwork/kickstarter)
With 100% Customisable option according to your Business!! Relevant Skills and Experience Develo Lisää

$250 USD 15 päivässä
(16 arvostelua)

hello sir i understood your requirement for android app to Lock notification will provide you best and effective result to make my service better.i hpe you love to work Relevant Skills and Experience sir i'm applica Lisää

$277 USD 3 päivässä
(1 arvostelu)

Hi, I am trying to build such project this time. Is it okay if i build a apk with Unity with such functionality? Relevant Skills and Experience Android Proposed Milestones $155 USD - Will discuss later

$155 USD 1 päivässä
(1 arvostelu)

Dear Sir, I saw your job posting and i can do the project please chat with me in details of project. Relevant Skills and Experience Our skills sets : swift/android studio/xamrin/react j/native etc. PLEASE LOOK AT BEL Lisää

$1111 USD 3 päivässä
(1 arvostelu)
$147 USD 3 päivässä
(0 arvostelua)