Android Notification LED sample

Note : You should lock(screen) the phone before run this project(via android IDE) , because notification LED will be highlighted only when screen is off

Source SVN:LEDNotification
Zipped Source:LEDNotification
 
  public class LEDNotification extends Activity {
 @Override
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  setContentView(R.layout.activity_main);

  NotificationManager notif = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

  for (int i = 0; i < 8; i++) {
   notif.cancel(1); // clear previous notification 
   final Notification notification = new Notification();
   if (i == 0){
    notification.ledARGB = Color.MAGENTA;
   }else if (i == 1){
    notification.ledARGB = Color.BLUE;
   }else if (i == 2){
    notification.ledARGB = Color.CYAN;
   }else if (i == 3){
    notification.ledARGB = Color.GRAY;
   }else if (i == 4){
    notification.ledARGB = Color.GREEN;
   }else if (i == 5){
    notification.ledARGB = Color.RED;
   }else if (i == 6){
    notification.ledARGB = Color.WHITE;
   }else if (i == 7){
    notification.ledARGB = Color.YELLOW;
   }
   notification.ledOnMS = 1000;
   notification.flags |= Notification.FLAG_SHOW_LIGHTS;
   notif.notify(1, notification);
   try {
    Thread.sleep(1000);
   } catch (InterruptedException e) {    
    e.printStackTrace();
   }
  }

 }

 

} 
No Special permission required for this project (LED Notification)

81 comments :

  1. Replies
    1. Big data is a term that describes the large volume of data – both structured and unstructured – that inundates a business on a day-to-day basis. big data projects for students But it’s not the amount of data that’s important.Project Center in Chennai

      Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Corporate TRaining Spring Framework the authors explore the idea of using Java in Big Data platforms.

      Spring Training in Chennai

      The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. It's interesting that many of the bloggers your tips helped to clarify a few things for me as well as giving... very specific nice content.Android Training institute in chennai with placement | Android Training in chennai |Android Training in Velachery | android development course fees in chennai

    ReplyDelete
  4. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.

    Android Training in chennai | Android Training|Android Training in chennai with placement | Android Training in velachery

    ReplyDelete
  5. Good and nice one, thanks for your valuable information and time, it is very useful for me to learn and study.
    Android Training in chennai|Android Training institute in chennai

    ReplyDelete
  6. exception in -> notif.notify(1, notification);

    ReplyDelete
  7. I and my friends were going through the nice, helpful tips from the blog then the sudden came up with an awful suspicion I never expressed respect to the website owner for those secrets.
    health and safety courses in chennai

    ReplyDelete
  8. myTectra Placement Portal is a Web based portal brings Potentials Employers and myTectra Candidates on a common platform for placement assistance

    ReplyDelete
  9. This is such a good post. One of the best posts that I\'ve read in my whole life. I am so happy that you chose this day to give me this. Please, continue to give me such valuable posts. Cheers!
    python training in chennai | python training in chennai | python training in bangalore

    ReplyDelete
  10. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 

    Online DevOps Certification Course - Gangboard

    ReplyDelete
  11. Hi Thanks for sharing this amazing post. It's really Informative and very helpful. and your writing style is so awesome it's really nice and easy to understand. i appreciate for this blog post.

    https://www.excelptp.com/professional-training-programs/android-training.html

    ReplyDelete
  12. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information.

    rpa training in chennai
    rpa training in bangalore
    rpa course in bangalore
    best rpa training in bangalore
    rpa online training

    ReplyDelete
  13. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    python course institute in bangalore
    python Course in bangalore
    python training institute in bangalore

    ReplyDelete
  14. Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…

    Best Devops training in sholinganallur
    Devops training in velachery
    Devops training in annanagar
    Devops training in tambaram

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Advanced AWS Interview Questions And Answers, Top 250+AWS Interviews Questions and Answers 2018
    Advanced AWS Interview questions and answers | Top 110 AWS Interview Question and Answers
    Advanced AWS Training in Bangalore | Best Amazon Web Services Training in Bangalore

    ReplyDelete
  17. Thanks for such a great article here. I was searching for something like this for quite a long time and at last, I’ve found it on your blog. It was definitely interesting for me to read about their market situation nowadays. Well written article Thank You for Sharing with Us pmp training in chennai | pmp training class in chennai | pmp training near me | pmp training courses online | pmp training fee | project management training certification | project management training in chennai | project management certification online |

    ReplyDelete
  18. Hey, Really amazing..!
    I've bookmarked your post for reference and will love to follow you.
    Please keep it up good work for us.
    We provide a solution to use WhatsApp in your business communications and send invoices though tally.
    Tally WhatsApp API Integration
    Tally WhatsApp API

    Send Tally Invoices to WhatsApp

    ReplyDelete
  19. Sometime few educational blogs become very helpful while getting relevant and new information related to your targeted area. As I found this blog and appreciate the information delivered to my database.
    โคม ไฟ ถนน led

    ReplyDelete
  20. Di Situs IDN ini anda bukan hanya bisa bermain 1 macam permainan kartu saja. Tetapi anda bisa bermain berbagai macam kartu yang tersedia untuk anda. Seperti anda bisa bermain Ceme
    asikqq
    http://dewaqqq.club/
    http://sumoqq.today/
    interqq
    pionpoker
    bandar ceme terpercaya
    freebet tanpa deposit
    paito warna
    syair sgp

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete
  22. I Got Job in my dream company with decent 12 Lacks Per Annum Salary, I have learned this world most demanding course out there in the current IT Market from the Data Science Course in Bangalore Providers who helped me a lot to achieve my dreams comes true. Really worth trying.

    ReplyDelete
  23. Nice Blog It is very informative to all. If you are required technical Support in Quickbooks. You can easily contacting us, on Quickbooks Payroll Support Phone Number 1800-986-4607. We provide the best support service to the user because our team members are highly enthusiastic who puts their whole effort in resolving issues.

    ReplyDelete
  24. Your articles really impressed for me,because of all information so nice.angular 7 training in bangalore

    ReplyDelete
  25. These provided information was really so nice,thanks for giving that post and the more skills to develop after refer that post.sap s4 hana simple finance training in bangalore

    ReplyDelete
  26. I gathered a lot of information through this article.Every example is easy to undestandable and explaining the logic easily.javascript training in bangalore

    ReplyDelete
  27. Very useful and information content has been shared out here, Thanks for sharing it.sap hr training in bangalore

    ReplyDelete
  28. This is really an awesome post, thanks for it. Keep adding more information to this.html training in bangalore

    ReplyDelete
  29. thank you so much for this nice information Article, Digitahanks for sharing your post with us.Real Time Experts training center bangalore

    ReplyDelete
  30. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful . student review for Realtime Experts marathahalli bangalore

    ReplyDelete
  31. Really very happy to say, your post is very interesting to read. I never stop myself to say something about it. You’re doing a great job. Keep it up…

    Upgrade your career Learn Oracle Training from industry experts gets complete hands on Training, Interview preparation, and Job Assistance at My Training Bangalore.

    ReplyDelete
  32. Such a great information for blogger iam a professional blogger thanks…

    Learn DevOps Training from the Industry Experts we bridge the gap between the need of the industry. Softgen Infotech provide the Best DevOps Training in Bangalore with 100% Placement Assistance. Book a Free Demo Today.

    ReplyDelete
  33. Hello, i am glad to read the whole content of this blog and am very excited and happy to say that the webmaster has done a very good job here to put all the information content and information at one place. More info please visit :-
    Top IT Company in Delhi NCR
    Mobile App Development Delhi NCR
    Android Development Delhi NCR
    IOS Apps development Delhi NCR
    Cross Platform Apps Development Delhi NCR

    ReplyDelete
  34. Hello, i am glad to read the whole content of this blog and am very excited and happy to say that the webmaster has done a very good job here to put all the information content and information at one place. More info please visit :-
    Top IT Company in Delhi NCR
    Mobile App Development Delhi NCR
    Android Development Delhi NCR
    IOS Apps development Delhi NCR
    Cross Platform Apps Development Delhi NCR

    ReplyDelete
  35. I absolutely love that it looks so beautiful on you This is a great post it was very informative. I look forward in reading more of your work. Also I made sure to bookmark your website. I enjoyed every moment of reading it. More info please visit :-
    Mobile Apps Development Company in Gurgaon
    IOS Apps Development Company in Gurgaon
    Android Apps Development Company in Gurgaon
    Software Company in Gurgaon
    Web Development Company Gurgaon
    Web Design and Development company in Gurgaon
    Web Designing Company in Gurgaon

    ReplyDelete
  36. I absolutely love that it looks so beautiful on you This is a great post it was very informative. I look forward in reading more of your work. Also I made sure to bookmark your website. I enjoyed every moment of reading it. More info please visit :-
    Mobile Apps Development Company in Gurgaon
    IOS Apps Development Company in Gurgaon
    Android Apps Development Company in Gurgaon
    Software Company in Gurgaon
    Web Development Company Gurgaon
    Web Design and Development company in Gurgaon
    Web Designing Company in Gurgaon

    ReplyDelete
  37. I think you did an awesome job explaining it. Sure beats having to research it on my own. Thanks
    BCOM 1st, 2nd & 3rd Year Time Table 2020

    ReplyDelete
  38. This blog is a pool of information. The readers are quite impressed after reading this impressive blog. This impressive blog certainly encourages to choose Live Classes Solution.

    ReplyDelete
  39. Grab the deal and buy the best fitness band under 2000 get the best fitness tracker now and best tracker in India. best fitness tracker under 2000

    ReplyDelete
  40. If you are look for models, actors, dancers, singers have a look at artists on Kala. Browse through portfolio and hire perfect artist in India. acting auditions

    ReplyDelete
  41. Don't miss the offer on gifts. Buy gifts for sister, gifts for brother , gifts for parents, gifts for grandma and grandpa. gifts for parents

    ReplyDelete
  42. Consider these for the best grill microwave oven of best brand along with convection and
    solo Under 5000, 10000, 15000 in India. best microwave convection oven

    ReplyDelete
  43. Know what the trending news is going on all across. Know what is trending on social media and on other social media platforms. trending india

    ReplyDelete
  44. Feeling good to read such a informative blog, mostly i eagerly search for this kind of blog. I really found your blog informative and unique, waiting for your new blog to read.
    Digital marketing Service in Delhi
    SMM Services
    PPC Services in Delhi
    Website Design & Development Packages
    SEO Services Packages
    Local SEO services
    E-mail marketing services
    YouTube plans

    ReplyDelete
  45. hair transplantation methods If you are look for models, actors, dancers, singers have a look at artists on Kala.

    ReplyDelete
  46. Nice Blog...
    Thanks For sharing with us.
    by cognex is the AWS Training in Chennai. Offering both online and offline classes.
    click here to know more

    ReplyDelete
  47. Find the best good morning quotes, friendship, life inspirational, good night, attitude, love quotes in hindi. Also get motivational quotes in hindi. motivational quotes in hindi

    ReplyDelete
  48. Get the best budget fitness band in India and track each and every moment of your body Under 2000, 3000 to 5000. best fitness band in india under

    ReplyDelete
  49. This site helps to clear your all query.
    This is really worth reading. nice informative article.
    ba exam time table
    bsc 3rd year time table

    ReplyDelete
  50. Very nice blog and articles. I am really happy to visit your blog. Now I am found which I actually want. SEE HERE I check your blog everyday and try to learn something from your blog. Thank you and waiting for your new post.

    ReplyDelete
  51. Purchase the best convection microwave oven in India under 10000, 15000 and enjoy! best convection microwave oven

    ReplyDelete
  52. Sex stories which are not only sexy and hot but also very hot and amazing. Best sex
    stories of all time. Amazing fuck story and sexy Indian sex stories which are simply wow. Got my dick hard best sex stories. hindi sex stories

    ReplyDelete
  53. Learn Amazon Web Services for excellent job opportunities from Infycle Technologies, the Excellent AWS Training in Chennai. Infycle Technologies gives the most trustworthy AWS course in Chennai, with full hands-on practical training from professional trainers in the field. Along with that, the placement interviews will be arranged for the candidates, so that, they can meet the job interviews without missing them. To transform your career to the next level, call 7502633633 to Infycle Technologies and grab a free demo to know more

    ReplyDelete
  54. What’s Happening i’m new to this, I stumbled upon this I’ve discovered It positively helpful and it has helped me out loads.

    BCA Time Table - B.C.A I II III Ka Exam Routine 2022
    Cusat University Time Table 2022
    Datta Meghe University Time Table 2022
    JRRSU Exam Time Table 2022

    ReplyDelete
  55. Best AWS Training provided by Vepsun in Bangalore for the last 12 years. Our Trainer has more than 20+ Years
    of IT Experience in teaching Virtualization and Cloud topics.. we are very delighted to say that Vepsun is
    the Top AWS cloud training Provider in Bangalore. We provide the best atmosphere for our students to learn.
    Our Trainers have great experience and are highly skilled in IT Professionals. AWS is an evolving cloud
    computing platform provided by Amazon with a combination of IT services. It includes a mixture of
    infrastructure as service and packaged software as service offerings and also automation. We have trained
    more than 10000 students in AWS cloud and our trainer Sameer has been awarded as the best Citrix and Cloud
    trainer in india.

    ReplyDelete