Quotation by Martin Luther King Jr.
Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity.
Android Poised For Dominance In China, With Global Implications
Yet, counter to China’s apparent ambitions to kill Android and Google, officially sanctioned versions of Android are flourishing, starting with last year’s Ophone OS from state-owned China Mobile. With the help of Lenovo, China’s tech darling, Ophone devices are moving full steam ahead with more Chinese integrated services like an app store, where China Mobile takes 50% of sales revenue. Meanwhile, Motorola is developing a line of Chinese flavors for Android with Baidu as its default search engine in cooperation with the other state-owned mobile operator, China Unicom.
Good moves.
As Moore’s law applies itself to mobile devices, and sub-$100 Chinese-flavored Android 2.2+ phones are released, the over-$600 gray market iPhone will only occupy a niche of the market in China.
Same is true in Brazil and other emerging markets.
How to Trigger Notifications in BlackBerry API 3.6+
Application
package br.eti.fernandoribeiro.sample.ui;
import net.rim.device.api.i18n.ResourceBundle;
import net.rim.device.api.notification.NotificationsConstants;
import net.rim.device.api.notification.NotificationsManager;
import net.rim.device.api.ui.UiApplication;
import br.eti.fernandoribeiro.sample.notifications.SampleConsequence;
import br.eti.fernandoribeiro.sample.util.Constants;
import br.eti.fernandoribeiro.sample.util.SampleResource;
public final class SampleApplication extends UiApplication {
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle(SampleResource.BUNDLE_ID, SampleResource.BUNDLE_NAME);
public static void main(final String[] args) {
NotificationsManager.registerSource(Constants.SOURCE_SAMPLE, BUNDLE.getString(SampleResource.APPLICATION_TITLE), NotificationsConstants.DEFAULT_LEVEL);
NotificationsManager.registerConsequence(Constants.CONSEQUENCE_SAMPLE, new SampleConsequence());
...
NotificationsManager.triggerImmediateEvent(Constants.SOURCE_SAMPLE, Constants.EVENT_SAMPLE, null, null); // May be anywhere in the app
...
}
...
}
Consequence
package br.eti.fernandoribeiro.notifications;
import net.rim.device.api.notification.Consequence;
import net.rim.device.api.synchronization.SyncConverter;
import net.rim.device.api.synchronization.SyncObject;
import net.rim.device.api.system.LED;
import net.rim.device.api.util.DataBuffer;
import br.eti.fernandoribeiro.util.Constants;
public final class SampleConsequence implements Consequence, SyncConverter {
public SyncObject convert(final DataBuffer arg0, final int arg1, final int arg2) {
return null;
}
public boolean convert(final SyncObject arg0, final DataBuffer arg1, final int arg2) {
return false;
}
public Object newConfiguration(final long consequenceID, final long sourceID, final byte profileIndex, final int level, final Object context) {
return new Object(); // Can't be null
}
public void startNotification(final long consequenceID, final long sourceID, final long eventID, final Object configuration, final Object context) {
if ((Constants.CONSEQUENCE_SAMPLE == consequenceID) && (Constants.SOURCE_SAMPLE == sourceID) && (Constants.EVENT_SAMPLE == eventID))
LED.setState(LED.STATE_BLINKING);
}
public void stopNotification(final long consequenceID, final long sourceID, final long eventID, final Object configuration, final Object context) {
if ((Constants.CONSEQUENCE_SAMPLE == consequenceID) && (Constants.SOURCE_SAMPLE == sourceID) && (Constants.EVENT_SAMPLE == eventID))
LED.setState(LED.STATE_OFF);
}
}
Constants (Recommended)
package br.eti.fernandoribeiro.sample.util;
public interface Constants {
long CONSEQUENCE_SAMPLE = 0xcdb9b62f62f4dccdL; // Global
long EVENT_SAMPLE = 0x35b82a6314580fffL; // Global
long SOURCE_SAMPLE = 0L; // Application-specific
}
http://c2.com/ppr/wiki/JavaIdioms/InterfacesForDefiningConstants.html
Android cresce 439% em 2010
De acordo com o relatório, o iOS, sistema operacional da Apple para o iPhone e iPad, lidera o mercado com 56% da preferência dos usuários. Em seguida, vem o RIM OS, da RIM, usado nos aparelhos BlackBerrys, com 17% do mercado. Na terceira posição, aparece o Android, do Google, com 11% de participação.
Parece certo.
Apple iPhone, BlackBerry Curve, Samsung Freeform (SCH-R350), Samsung Messager II (R560), e Motorola Droid (A855) são os cinco celulares mais vendidos, segundo Mobile Mix.
Nunca vi uma lista dessas para o Brasil.
http://info.abril.com.br/noticias/tecnologia-pessoal/android-cresce-439-em-2010-16072010-14.shl

