Showing posts with label Mobile. Show all posts
Showing posts with label Mobile. Show all posts

Enfin Google Reader disponible partout et offline

Il est connu que Google est ton ami quand tu cherches de l'information.  Il est également connu qu’un des meilleurs lecteurs de fil RSS (RSS feeds), en ligne est Google Reader.  Cependant en mode déconnecté, ce dernier n’est pas du tout de la partie.  Voici comment remédier à cette situation.

Via PC

Mon lecteur préféré (voir: Recherche du parfait lecteur de flux RSS ) FeedDemon offre maintenant la possibilité de synchroniser avec Google Reader.  La nouvelle version 3 (toujours en bêta) permet via les options de faire la synchronisation.  Le lecteur NewsGator qui était la version online ne sera plus maintenu à compter du 31 août 2009 et sera remplacé par Google Reader.

Via Mobile (téléphone intelligent Windows Mobile)

Depuis quelques jours la compagnie SBSH a lancé son nouveau lecteur: NewsGo Touch.  Cette application permet de lire les fils RSS, les comptes twitter et surtout de synchroniser avec notre compte de Google Reader.

Ce n'est pas tout, NewsGo Touch permet de lire le billet (posts) avec les images et tout ça en mode déconnecté! Même Google Reader et son Google Gears ne fait pas ça...
Cependant, j’ai remarqué quelques problèmes de performance lors de la synchronisation…  L’application est jeune et l’équipe de support est au courant de ce problème et travaille à y remédier.

Un peu plus

J'ai également découvert l'application Google Synch qui permet de synchroniser: courriel, contact, tâches et calendrier de notre compte Google avec notre mobile! 
J'ai donc tout partout, ça c'est la belle vie!

Références:

~ Franky

Le nouveau guide d'architecture Mobile de poche

Le 14 janvier dernier, le guide d'architecture Mobile de poche (traduction libre de:The Mobile Architecture Pocket Guide) a été redistribuer dans sa nouvelle version 1.1.

Le guide d'architecture Mobile de poche  fournit une vue d'ensemble et des conseils normatifs pour concevoir des applications Mobiles sur la plate-forme de .NET.  

Ce guide fait parti  des Microsoft Best patterns & practices et  est maintenu dans le projet p&p: Application Architecture Guide 2.0 Knowledge Base.

Vous pouvez télécharger ce guide ici

Les changements principaux de cette mise à jour sont:

  • Mieux adapter le guide pour la réalité du Mobile.
  • Amélioré la figure de l'application Mobile canonique.
  • Élaboré sur le "pourquoi" et raisonnement de certaines décisions.
  • Élaboration sur manipuler les connections.

~ Franky

Références:

Revu des MSDN Webcast sur Windows Mobile pour l’année 2008

image L’année 2008 a été fructueuse pour la technologie mobile.  Le nombre d’article et de vidéo disponible sur internet ont grandement augmenté.  Entre autres, Constanze Roman (Windows Mobile Community PM), Maarten Struys (MVP) et Jim Wilson ont fait de très belles et instructives vidéos qui sont toujours disponibles sur demande. 

Voici donc la liste (en espérant que je n’en oublie pas):

Windows Mobile Webcast Series – Getting Ready for Tech Ed

24 Hours of Windows Mobile Application Development

À ne pas manquer en janvier 2009

Bon visionnement et à l’année prochaine!

~ Franky

Références:

Line of Business Accelerator 2008 – Part 1

 

Manage store procedure with SQL Compact 3.5

This article is the first of a series were I will explain in small chunk the best practices use in Microsoft Line of Business Accelerator 2008.

Prerequisites

To be able to do it you will need:

  • Visual studio 2008 – with SQL compact 3.5

  • Line of Business Accelerator 2008

  • SDK Mobile 6.0 Standard (smartphone, no touch screen)

  • Microsoft Active Sync 4.5

Create the Project

Open Visual studio and create a new Mobile 6 project. You can pick any platform for this demo but a select the framework 3.5 standard.

  1. On the main Form Add a DataGrid and name it grdProduct.

  2. In the Main Menu:  

    • Add a Menu Item Close (mnuClose). Double-click and add the following code to close the application.
         1: private void mnuClose_Click(object sender, EventArgs e)


         2: {


         3:     this.close();


         4: }





    • Add a menuItem Fill mnuFill and double click on it to add the handler.





Now you should have something like this.





Add the Database


Now we need a database. I use the Northwind database. You will found it in the SDK folder (\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile - Northwind.sdf). Right-click on the project and add existing item.



When the dataset dialogue will prompt select the in the Product table the column: [Product ID], [Product Name] and [Unit Price].





Fill the datagrid with the “normal” method


Before we add the code in the mnuTest click Handler we need to know the connectionstrng of our database. In NetCF this is the full path and name of the database. The relative path seem not be supported. So in our case we put the database in the same folder that the application, so we could hard coded or use something more generic (and reusable like:





   1: "margin-bottom: 0cm">


   2:  


   3: string runAppFolder = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);


   4:  


   5: "margin-bottom: 0cm">




 



So now we can use it in the click function. Everything else now is like any “regular” .Net application. But instead of using SQL object were using SqlCe.



1: [code:c#;ln=on]



2: private void mnuTest1_Click(object sender, EventArgs e)



3: {



4: try



5:     {



6:         SqlCeDataAdapter oAdap = new SqlCeDataAdapter();



7:         SqlCeConnection oConn = new SqlCeConnection(@"Data Source = " + runAppFolder + @"\Northwind.sdf");



8:         SqlCeCommand GetProduct = new SqlCeCommand(“SELECT [Product ID], [ProductName], [Unit Price] FROM Products”);



9:



10:         oAdap.SelectCommand= GetProduct;



11:         oAdap.Fill(tblProduct);



12:         grdProduct.DataSource= tblProduct;



13:      }



14: catch(Exception ex)



15:     {



16:         MessageBox.Show(ex.Message);



17:     }



18: }



19: [/code]



Now everything is in place the application should works. So Select youre emulator and run it.



Use the manage store procedure


Now it's time to use the “new” that the NetCF Team call:Manage Store Procedure. In fact this is not realty a new, because it was available in VS2005.



Add a Resource call StoreProc to the project.



Add a file to the project ProductGet.sql.



From the resource add an existing text file... select the ProductGet.sql. You should have something like this:





Double-click on the ProductGet icon, the file will open with the SQL syntax hi-lighter. So now we will move the SQL query there in the file you should have:



To use this we will get back in the code where we were building the sqlcqcommand and replace the string by the ProguctGet. So the new code will be



1: [code:c#;ln=on]



2:



3:



4: ...



5:



6:



7: SqlCeCommand GetProduct = new



8: SqlCeCommand(StoreProc.ProductGet,oConn);



9:



10:



11: oAdap.SelectCommand =



12: GetProduct;



13:



14:



15: oAdap.Fill(tblProduct);



16:



17:



"margin-bottom: 0cm">



18: ...



19:



20:



"margin-bottom: 0cm">



21: [/code]



Conclusion


Now you can test again the application. It's works like before but this time you can edit the sql code without re-compiling.





To add some parameter just add some ? in you re query and add the parameter(s) to the SqlCeCommand, like usual.



I hope this simple tutorial help you, feel free to ask any question or let me know you're comment.



Thanks



Franky