|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||
|
Invité de passage
![]() Inscription : janvier 2010 Messages : 9 ![]() |
Bonjour,
Dans l'optique de développer une application de contrôle parental : J'ai commencer sous les conseils avisés d'un développeur qui m'a dit : "What you need is a service that runs in a background and checks for current active package. If its not one that you approve, than display a notification and fire a new intent to display your activity. Hope this helps. " Donc sur ce j'ai créé une classe ServiceChecker avec dans le onStartCommand je créé une Code :
Intent myIntent = new Intent(getApplicationContext(),MainActivity.class); Problème mon activité n'apparait pas. un peu de code : dans MainActivity : Code :
|
||
|
|
00
|
Copyright © 2000-2013 - www.developpez.com