lunes, 20 de septiembre de 2010

Comprobar media streams para iOs

Debido a que me rebotaron una app por no cumplir con los requisitos validos en el stream de video me puse a investigar el tema.

Si utilizamos HTTP Live Streaming, podemos descargar la tool mediastreamvalidator, para checkear su correcto funcionamiento...

Link con info la tool:

http://developer.apple.com/library/ios/#technotes/tn2010/tn2224.html#MEDIA_STREAM_VALIDATION

la tool se puede descargar desde:
http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/downloads

miércoles, 15 de septiembre de 2010

Resizear imagenes en Blackberry

Si tenemos un bitmap que queremos resizear tenemos que utilizar el siguiente metodo:

public EncodedImage scaleImage32(int scaleX,int scaleY)

 Lo que hay que saber es que es necesario pasar por parametros Fixed32 y no int comunes.
ejemplo:

EncodedImage  scaledIcon = icon.scaleImage32(Fixed32.toFP(2), Fixed32.toFP(2));

Con esto reducimos icon a la mitad de su medida original.

martes, 17 de agosto de 2010

Custom UIPageControl

En la web encontre una muy buena solución para customizar el diseño de los pages controls. Al codigo original, tube que agregarle un metodo mas para que funcione correctamente en iOS4.

SKPageControl.h



SKPageControl.m

viernes, 13 de agosto de 2010

jueves, 12 de agosto de 2010

Vendor and OS market share

Estos datos son a nivel mundial:


Worldwide Mobile Device Sales to End Users in 2Q10 (Thousands of Units)

Company
2Q10
 Units
2Q10 Market Share (%)
2Q09
 Units
2Q09 Market Share (%)
Nokia
111,473.8
34.2
105,413.4
36.8
Samsung
65,328.2
20.1
55,430.1
19.3
LG
29,366.7
9.0
30,497.0
10.7
Research In Motion
11,228.8
3.4
7,678.9
2.7
Sony Ericsson
11,008.5
3.4
13,574.3
4.7
Motorola
9,109.4
2.8
15,947.8
5.6
Apple
8,743.0
2.7
5,434.7
1.9
HTC
5,908.8
1.8
2,471.0
0.9
ZTE
5,545.8
1.7
3,697.9
1.3
G’Five
5,208.6
1.6
NA
NA
Others
62,635.2
19.30
45,977.2
16.1
Total
325,556.8
100.0
286,122.3
100.0
Source: Gartner (August 2010)


Worldwide Smartphone Sales to End Users by Operating System in 2Q10 (Thousands of Units)

Company
2Q10
 Units
2Q10 Market Share (%)
2Q09
 Units
2Q09 Market Share (%)
Symbian
25,386.8
41.2
20,880.8
51.0
Research In Motion
11,228.8
18.2
7,782.2
19.0
Android
10,606.1
17.2
755.9
1.8
iOS
8,743.0
14.2
5,325.0
13.0
Microsoft Windows Mobile
3,096.4
5.0
3,829.7
9.3
Linux
1,503.1
2.4
1,901.1
4.6
Other OSs
1,084.8
1.8
497.1
1.2
Total
61,649.1
100.0
40,971.8
100.0
Source: Gartner (August 2010)




www.gartner.com

viernes, 6 de agosto de 2010

Y Amazon? para cuando?

Los principio de año me registre a la beta del Kindle SDK, el primer y unico proyecto que pude hacer tuve que utilizar el user de otro developer...

Hoy Amazon me manda este mail:

The first Kindle active content titles are now available to Kindle customers. They are Shuffled Row and Every Word from Amazon Digital Services. We encourage you to download and try them athttp://www.amazon.com/shuffledrow or http://www.amazon.com/everyword.
We continue to work with limited-beta developers who have been given early access to the KDK and appreciate your patience while we work towards opening up the program to more developers. Stay tuned.
Regards,
The KDK Team

Así quieren impulsar una nueva plataforma de desarrollo?

miércoles, 14 de julio de 2010

Documentación en Android: NotificationManager

En las FAQs de la dev guide de Android, mas precisamente en el howto de las notificaciones, podemos ver el siguiente codigo:


static void setNewMessageIndicator(Context context, int messageCount){
   // Get the static global NotificationManager object.
   NotificationManager nm = NotificationManager.getDefault();

   // If we're being called because a new message has been received,    // then display an icon and a count. Otherwise, delete the persistent    // message.    if (messageCount > 0) {       nm.notifyWithText(myApp.NOTIFICATION_GUID,      // ID for this notification.                 messageCount + " new message" + messageCount > 1 ? "s":"", // Text to display.                 NotificationManager.LENGTH_SHORT); // Show it for a short time only.    } }


El gran problema es que el metodo NotificationManager.getDefault() no existe. El uso correcto de las notificaciones lo podemos ver aquí. Donde se observa que la manera de acceder al NotificationManager es:


String ns = Context.NOTIFICATION_SERVICE;
NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns);



Gracias al equipo de documentación de google!

martes, 13 de julio de 2010

“On Android, it’s fucking hell”

100% deacuerdo...

Designing views in the Android SDK is one of the areas that I can say without equivocation is worse than the iPhone in every single respect. Android’s approach to creating views has absolutely no redeeming value whatsoever. Designing your interface on the iPhone is easy. It’s fun. It’s intuitive. On Android, it’s fucking hell. It’s like working with the evil offspring of GridBagLayout and XML. It’s utterly horrid. But, Java has never done UI well and has never made it particularly fun so I can’t say I was surprised by this, though it did exceed my expectations by being even worse than I thought humanly possible. The whole process is counter-intuitive and time-consuming, and that’s just to make something that functions. It’s even more time-consuming and painful to make a UI that doesn’t look like ass.

Texto original