A apresentação está carregando. Por favor, espere

A apresentação está carregando. Por favor, espere

Marlon Novas ferramentas da Nokia para a plataforma S40 1.

Apresentações semelhantes


Apresentação em tema: "Marlon Novas ferramentas da Nokia para a plataforma S40 1."— Transcrição da apresentação:

1 Marlon Luz ext-marlon.luz@nokia.com @marlonluz Novas ferramentas da Nokia para a plataforma S40 1

2 100k+ apps, 13m downloads/dia Brasil : 125m downloads (total), 48m 2012, 400k por/dia, 55% em S40, 73% das compras são aplicativos Java ME 2 Nokia Store, S40 e Java ME 339 milhões de aparelhos vendidos em 2011

3 Série 40 – Mudança de paradigma - II Nokia X3 -02 Touch screen Wi-Fi Aplicativos Câmera de 5mpx E-mail Java ME MIDP 2.1 3

4 On-Device Debugging for Series 40 4

5 5 Acrescenta a habilidade de depurar aplicações diretamente no telefone Funciona em dispositivos com a versão Série 40 6th Edition e 6th Edition FP1 Funciona com Eclipse e NetBeans

6 On-Device Debugging for Series 40 6 Depurador completo, incluindo breakpoints e valor de variáveis Suporte de monitoramento a nível de usuário Aplicações anexadas ao depurador remotamente Sobre conexão IP ou Bluetooth Debug em apenas um click na IDE

7 Demo On-Device Debugging for Series 40 7

8 Mapas no Série 40 8

9 Nokia Maps API para Java ME 9 Fornece acesso ao poderoso servidor Nokia Maps Funcionalidades incluídas: –Mapping –Searching –Routing

10 Nokia Maps API para Java ME 10

11 Mostrando um Mapa 11 import com.nokia.maps.map.MapCanvas; public class MapMIDlet extends MIDlet { protected void startApp() throws MIDletStateChangeException { Display display = Display.getDisplay(this); MapCanvas mapCanvas = new MapCanvas( display ); display.setCurrent(mapCanvas); } protected void destroyApp(boolean unconditional) throws MIDletStateChangeException { } protected void pauseApp() { } }

12 Mostrando Objetos em um Mapa 12 // mapFactory comes from MapCanvas MapFactory mapFactory = mapCanvas.getMapFactory(); GeoCoordinate coord = new GeoCoordinate( 10, 10, 0 ); MapStandardMarker marker = mapFactory.createStandardMarker(coord, 10, null ); map.addMapObject( marker );

13 Fazendo uma Busca 13 // mapFactory comes from MapCanvas SearchManager searchManager = SearchManager.getInstance(); searchManager.geocode("Germany,Berlin", null ); Location[] locations = searchManager.getLocations(); //loop through locations[] showing them on a map MapFactory mapFactory = mapCanvas.getMapFactory(); for(int i=0; i < locations.length; i++) { MapStandardMarker marker = mapFactory.createStandardMarker(locations[i].getDisplayP osition(), 10, null ); map.addMapObject( marker ); }

14 Criando Rotas 14 // mapFactory comes from MapCanvas SearchManager searchManager = SearchManager.getInstance(); searchManager.geocode("Germany, Berlin", null ); Location[] locations = searchManager.getLocations(); MapFactory mapFactory = mapCanvas.getMapFactory(); WaypointParameterList waypoints = new WaypointParameterList(); waypoints.addLocation(locations[0]); waypoints.addLocation(locations[1]); RouteManager rm = RouteManager.getInstance(); RoutingMode[] modes = { new RoutingMode() }; rm.calculateRoute(waypoints, modes);

15 Demo Mapas no Série 40 15

16 Gestures API 16

17 Gestures API 17 Gestos Single Tap Long Press Long Press Repeated Drag Drop Flick

18 Suporte a touch com Java ME 18 Métodos de Canvas boolean Canvas.hasPointerMotionEvents() void pointerPressed(int x, int y) void pointerDragged(int x, int y) void pointerReleased(int x, int y)

19 Como usar a Gesture API – Passo 1 19 Crie uma GestureInteractiveZone // Create a GestureInteractiveZone for all Gesture Types GestureInteractiveZone giz = new GestureInteractiveZone( GestureInteractiveZone.GESTURE_ALL ); // set bounding rectangle of zone. giz.setRectangle( x, y, width, height);

20 Como usar a Gesture API – Passo 2 20 Crie uma GestureListener // Define a GestureListener Class GestureCanvas extends Canvas implements GestureListener { protected void paint(Graphics g) { … } public void gestureAction( Object container, GestureInteractiveZone zone, GestureEvent event) {... }

21 GestureAction em mais detalhes 21 public void gestureAction( Object container, GestureInteractiveZone zone, GestureEvent event) { switch( event.getType() ) { case GestureInteractiveZone.GESTURE_TAP:...; break; case GestureInteractiveZone.GESTURE_LONG_PRESS: case GestureInteractiveZone.GESTURE_LONG_PRESS_REPEATED: case GestureInteractiveZone.GESTURE_DRAG: case GestureInteractiveZone.GESTURE_DROP: case GestureInteractiveZone.GESTURE_FLICK: }

22 Demo Gestures API 22

23 23 INTERAÇÃO Nokia Developer http://www.developer.nokia.com Twitter: @nokiadev_brasil Grupo Devs S40 Brasil no Nokia Developer NokiaDev_S40_Brasil http://www.developer.nokia.com/Commu nity/Discussion/group.php?groupid=114

24 Marlon Luz ext-marlon.luz@nokia.com @marlonluz Obrigado!


Carregar ppt "Marlon Novas ferramentas da Nokia para a plataforma S40 1."

Apresentações semelhantes


Anúncios Google