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

Suoritettu Julkaistu 6 vuotta sitten Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

Hi,

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 [login to view URL](

WindowManager.LayoutParams.MATCH_PARENT,

height,

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

WindowManager.LayoutParams.TYPE_SYSTEM_ERROR,

// Keeps the button presses from going to the background

// window

WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE

|

// Enables the notification to recieve touch

// events

WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL

|

// Draws over status bar

WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,

[login to view URL]);

[login to view URL] = [login to view URL] | [login to view URL];

mWindowManager = (WindowManager) getSystemService(WINDOW_SERVICE);

[login to view URL](mView, mLP);

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

[login to view URL]

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.

Android Java Mobile App Development

Projektin tunnus: #15656775

Tietoa projektista

12 ehdotusta Etäprojekti Aktiivinen 6 vuotta sitten

Myönnetty käyttäjälle:

lazermann

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ä
(28 Arvostelua)
6.1

12 freelanceria on tarjonnut keskimäärin $182 tähän työhön

mmdnow

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ä
(19 arvostelua)
5.9
shahzain93

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ä
(34 arvostelua)
5.4
anuragiitk

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ä
(24 arvostelua)
5.6
myappsdevelopers

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ä
(17 arvostelua)
4.3
marthakprashant

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ä
(2 arvostelua)
3.7
appsgallery

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ä
(2 arvostelua)
0.5