Android
De WikiDeveloppez.
(Différences entre les versions)
(→Filtrer un intent broadcasté entre les applications) |
Version actuelle (28 juin 2010 à 16:11) (voir la source) (→Activer/Desactiver des components) |
||
Malheureusement, la doc ne spécifie pas le mode de broadcast des intents système. | Malheureusement, la doc ne spécifie pas le mode de broadcast des intents système. | ||
+ | |||
+ | == Customiser une progress bar == | ||
+ | http://stackoverflow.com/questions/2020882/how-to-change-progress-bars-progress-color-in-android | ||
+ | |||
+ | ==Documentation non officiel des drawables xml == | ||
+ | http://idunnolol.com/android/drawables.html | ||
+ | |||
+ | == Activer/Desactiver des components == | ||
+ | [http://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName,%20int,%20int) public abstract void setComponentEnabledSetting (ComponentName componentName, int newState, int flags)] | ||
+ | |||
+ | desactiver un receiver | ||
+ | <pre> | ||
+ | PackageManager pm = getPackageManager (); | ||
+ | pm.setComponentEnabledSetting | ||
+ | ( | ||
+ | new ComponentName(this, monReceiver.class), | ||
+ | PackageManager.COMPONENT_ENABLED_STATE_DISABLED, | ||
+ | PackageManager.DONT_KILL_APP | ||
+ | ); | ||
+ | </pre> | ||
+ | |||
+ | activer un receiver | ||
+ | <pre> | ||
+ | PackageManager pm = getPackageManager (); | ||
+ | pm.setComponentEnabledSetting | ||
+ | ( | ||
+ | new ComponentName(this, monReceiver.class), | ||
+ | PackageManager.COMPONENT_ENABLED_STATE_ENABLED, | ||
+ | PackageManager.DONT_KILL_APP | ||
+ | ); | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | == Eviter la copie des repertoire svn dan sle repertoire bin == | ||
+ | aller dans le menu windows->preference => java -> compiler -> building -> output folder | ||
+ | |||
+ | ajouter '''.svn/''' dans le textEdit Filtered Ressources |