last day (18 days later) » 

7:19 PM
1
A: Close status bar when opened: Android

portfoliobuilderI have found answer to my question. First, I was missing the following permission <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> With that permission, the following code now works really well. @Override public void onWindowFocusChanged(boolean hasFocus) { Log.i(TA...

 
What exactly does this accomplish? If I understood correctly then with this code, as soon as the user tries to access the status bar, it will immediately collapse?
 
Yes, this is exactly what it does. Now I can create background service with this collapse code and hopefully status bar will collapse even if user is using 3rd party app. Remember my app is a launcher app (operating system). This will be a big piece of the puzzle for creating a closed system where user cannot go to places they shouldn't be allowed to.
 
I am also working on a closed kiosk and I was going to go a much longer route. My app is also a launcher. Does this close the status bar quick enough so that the user can't be nifty and quickly press settings or something? This will be really helpful to me also and I will probably incorporate this in my app if it is this easy. Are you using this code in a service?
 
Yep, it is quick enough. I have been trying the past 5 mins (because I just figured this out), and I have not successfully been able to click anything. And yes, I set this up in a service. So far things are working. I did make some alterations though. Let me post my improvement logic.
 
Could you please provide me the code for this service? Atleast the barebones to incorporate into my application so that I don't have to go through the same struggle as you? I can ask a question if you like and mark your answer as correct?
 
7:19 PM
Ok, send me the post link.
 
heres the link
0
Q: How to make a service to automatically shut the status bar when user tries to access it

Qazi AhmedI am making a Kiosk application which is also a launcher and I need to user to not go to places like settings from status bar. Please provide a solution for this. I know that I can root or go some really long routes but if there is a short and easy route I would really appreciate that.

thanks in advance
 
How did you setup chat? There has been many times I wanted to message someone on stackoverflow
I can better answer you in email. When I complete this class I can send you the .java file. Can we exchange emails? Mine is portfoliobuilder@hotmail.com. Email me, and tonight after work I can help you out with creating the service.
Conflict is that I am at work atm, and have to continue progressing to make deadlines. Tonight will be better, or tomorrow morning before I go back to work depending on how late I have to stay. Just email me.
 
7:46 PM
mines is musab.ahmed@gmail.com
 

  last day (18 days later) »