Project Mirror: Library to synchronize data on Windows Phone. - Windows Phone 8 Development and Hacking

Hello fellow members!
First and foremost, here's the link to the project: http://github.com/akshay2000/ProjectMirror
In past, I have experienced the problem where I wanted to create an app and needed to synchronize data between multiple devices. Look at my to-do app for example. It is always pain to write and meddle with the synchronization logic individually. Why should developer be bothered about these things instead of being focused on his app? Datastore API tried to solve this problem. Unfortunately, the Dropbox people sort of denied the support for Windows Phone. So, I created a similar thing for Windows Phone using Windows Azure. I want this to reach as many developers as possible. Please, suggest this thread to be published as news item.
I have created a library to synchronize data between Windows Phone and Windows Azure. This library provides an API to synchronize data and is quite similar to the Datastore API provided by the Dropbox people. Developers can simply ask the API to store an item. The item will automatically be cached locally and synchronized to the cloud. Also, the data created and modified on the other devices can be synchronized back to the local storage.
The project uses SQL Server CE for storing data locally and Windows Azure Mobile Services for storing data in the cloud. The developer has full control over what goes where. Also, the authentication mechanisms provided by the WAMS are completely supported by this API.
The whole project is published at GitHub along with example. Here's the URL: http://bit.ly/ProjectMirror
Please, take a look and help me find and kill the bugs.

Related

Google Syncing

Hello all. I think Microsoft needs to be punished for its lack of vision. I think its time we stepped away from the idea of activesync and treated our PocketPCs as actual PCs, not as surrogate devices that require specialist synicng. I use google as a central point to store email, calendar and contacts. With that i can get at my contacts anywhere and on any machine i have which supports CSV import. Clearly, Microsoft never even considered any kind of syncing with the exception of their exchange server. No good to me when i use a mac and two linux boxes.
Im wondering, does anyone have any thoughts at to how we can manage all the personal information we have? At one level something that managed to Diff CSV files would be acceptable. Since Google can import and export these, that migh work reasonably well. Of course, we'd probably need some kind of scripting langauage on our PocketPCs. Has anyone seen anything like that?
I was wondering about the same thing. It might work, to make a simple program, that can read the contacts database, and save them as vCard and/or CSV. Then on your normal PC you can use a similar program, that can manage this data...
well, not to defeind microsoft, but couldn't google have made some kind of activesync plugin to do this?, i mean, i couldn't agree more that the platform should have been more open, but microsoft couldn't possibly cover every third party PIM system out there. surely, google could have (and probably still could) create some kind of extension that would allow these pocket PCs to sync with their PIM platform. if anything, it would help promote their product and i for one would be more inclined to switch over.
as an example, yahoo calendar allows syncing with Palm and Outlook. it looks like it's up to google to choose whether they want to support us.
If MS allowed PPC users to sync with other services they would loose a lot of money as no one would buy exchange or outlook [afaik each cd included with ppc's have outlook 2002 so the oem pay for it naturally]. So it doesn't make good business sense to open up syncing. Anyway I hope you find your solution.

[Q] Android PC Contact Management

Hello (please excuse my English),
I am a vb.net developer with an android phone. I like to write a windows application that will manage the phone's contacts with no sync (the application will read and write the contacts directly on the phone via usb).
I like to make this because I really need a convenient way to manage my >480 contacts with groups, links between them, photos etc.
But I don't know what is the best method to connect to the phone. I have download various open-source projects that use abd.exe but I can not figure it out there is not documentation about this.
Anyway are there any suggestions on this or maybe any how to?
Thank You
No help from me, but lots of encouragement though ... I hate my messy contact list, especially because of multiple gmail accounts... Searched like hell, spend quite some time on failing apps... So good luck with programming!
Thank you for your encouragement. I finally ended that the best solution is to write an android client application that will offer contact records to the pc application. I installed all the android development tools and I am ready to go. This is gona take some time because it will be my first android application so stay tuned...
Ok I have done some progress on the device side, but I really need some help. These are my questions:
1. In the Android Emulator there is no contacts groups. Any idea why or how can I add them?
2. I need some android code guidelines on how to communicate via wi-fi and usb. I am trying to implement some kind of tcp/ip protocol for communicate with the pc application and I need this to be available with the usb cable also (if that is possible)
Thank you all...
MyPhoneExplorer you will love it
I love it allready I am using MyPhoneExplorer since my first SE phone. But it does not supports contacts groups which is very critical for me. This was one of the reasons that I decided to create my own contact manager for android...
Ok, some status update:
I finished my research about tcp connectivity on android and I downloaded all the neading sources and documentation. So I am ready to go with the device side development.
But I really need the contacts groups on the emulator. I 'm stuck here!!!
Come on guys don't leave me alone...
Thank you all
Trying to solve it myself...
First I thought that Contacts application in my phone (Samsung Galaxy 3) was a samsung application, so I downloaded the phones source-code but no Contacts application in there.
Now I found in source.android.com the contacts application for eclair and I downloaded it. It seems (from the source code) that it is the same application which is in my device's firmware.
I create a project in eclipse from this source and right now I am downloading Google APIs to make it run on the emulator. If it runs on the emulator I will start development for the device...
chrishohl said:
I love it allready I am using MyPhoneExplorer since my first SE phone. But it does not supports contacts groups which is very critical for me. This was one of the reasons that I decided to create my own contact manager for android...
Click to expand...
Click to collapse
omg i realy thought, it was posible, whit MyPhoneExplorer, my mistake.
great to hear about your little progress
what's up Chris ?
Some news ?
Status Update:
I finaly managed to get contacts groups in the emulator (via 3rd party app) but I still can not export contacts with group information from my device. Anyway this is not very important.
The important thing is that I started developing in android and the results are pretty well.
Right now the device application which I call "MyUnit Android Server" is a multi threaded tcp socket application that communicates with the pc via the usb cable.
I have managed to get through the basic problems with tcp, threads and sockets in android (and java) and it works very stable.
So now it is time to implement some kind of a protocoll for the communication between the device and the computer (any ideas about that are welcome). I have allready implement two functions. One retrieves the group count and the other the groups list. I think that this is very huge progress because this is my first app in java (and android of course).
Maybe in some days (about 10 - 15 because my son's birthday 4yo are in monday so the whole weekend goes to him ) I will be ready to release an alpha test version...
Thats great news, congrat whit your son, I know whats that like.
I would love to beta test, and help out

[Q] Booking system app for Android

Hey guys
I'm an entrepreneur from Brisbane, Australia. I'm looking into introducing a new product and am wondering if you guys would be able to help me clarify a few questions. I have to add I have no idea what so ever about programming languages or whats possible or not. I just going to post my vision of the application I will need and hope some of you guys can tell me what of that will be possible, what not and how much effort / money it would take to realise.
Firstly of all and most importantly I need the the Phone application to work with several other systems which would be at the moment : - Iphone, Windows Mobile, Blackberry Android, a Website interface, Windows Vista / 7 and Mac OS. I need this to work in two ways. One for the user to sync their data on different apps and secondly for the admin to receive and send data from the main system (that would be working on Windows or Mac)
On first interface the user would have to log in with a username and password, high security would be welcome, after the log in the general interface should be offering the user a booking request form with the ability to use a saved lists of items which have been previously use / prepared but also a interface for add one or editing
It also should offer a open bookings lists and the ability to edit this lists. This should also be able to be synced to the other systems. A third interface showing a history and updates should be also available.
If possible it should offer different accounts and groups where admins can edit the bookings of other users. If this is possible it also should offer a control for the admins which shows bookings and history of other group users.
I would like this obviously to be a professional looking app which offers a good service and is secure and bug free. If anyone has an idea if this is realisable or what parts of it would be difficult or have to be changed please do me the favour and comment.
Thank you for your help in advance.
JPM
Hello,
If you're looking for developers for your project, please contact [email protected]
Example of similar (ok, a bit different but technical approach is the same) web app and mobile clients for several smartphone platforms is in my signature.

Best approach for loading website data into android app (without webview)?

Hi,
I am wondering what possible ways would be for loading a simple website into my app. My first thought is using a WebView, but I would like a dynamic app, while webview takes some time when loading between pages and links.
Is a common solution to load the html resources locally, from let say the assets folder? Than I could use AsyncTask to keep the files up to date and whenever the app starts it would load and work much quickly.
Or should I use HTTP Requests and parse the external Html document?
What would be the most situable solution for this kind of app?
Thanks,
Ved
vedtam said:
Hi,
I am wondering what possible ways would be for loading a simple website into my app. My first thought is using a WebView, but I would like a dynamic app, while webview takes some time when loading between pages and links.
Is a common solution to load the html resources locally, from let say the assets folder? Than I could use AsyncTask to keep the files up to date and whenever the app starts it would load and work much quickly.
Or should I use HTTP Requests and parse the external Html document?
What would be the most situable solution for this kind of app?
Thanks,
Ved
Click to expand...
Click to collapse
I think it's probably a decision best made by yourself. You have not said what type of data ? Cause really you should be wanting the minimal amount required. My app uses lots of data from my server for things like themes, but these come direct from SQL Database
deanwray said:
I think it's probably a decision best made by yourself. You have not said what type of data ? Cause really you should be wanting the minimal amount required. My app uses lots of data from my server for things like themes, but these come direct from SQL Database
Click to expand...
Click to collapse
Hi deanwray,
Thanks for your reply. I made some more researching and I have realised that my best bet is SQL, as you said.
Do you request data in your app directly from the online mySql database generally? I have read about a technique on downloading the data from the online database and converting it to SQLite (which is the local database on android) inside the application. This would be really cool, would really boost performance.
ved.
vedtam said:
Hi deanwray,
Thanks for your reply. I made some more researching and I have realised that my best bet is SQL, as you said.
Do you request data in your app directly from the online mySql database generally? I have read about a technique on downloading the data from the online database and converting it to SQLite (which is the local database on android) inside the application. This would be really cool, would really boost performance.
ved.
Click to expand...
Click to collapse
well my app uses a hosted database for
Online Theme Data (thumbnails store in just web space)
Settings Overrides (settings that I may have to force on the app)
Announcements ( Messages that trigger dialogs, adverts, html boxes)
Purchase info
other stuff that I forget
Any database that I access online I cache data local in cache sqlite database
So lets say the most complex things is the purchase list... a rough flow is as follows :
Get idents from online purchasable list
get descriptions and titles from idents
store local database
Simultaneous query of google IAP data from play to get locale info and pricing (along with IAP ident)
Store that in same local db
Display to user at, initial data, updated data and price additions
The database online is accessed via php (not a fan of that but hey ho, not really a programmer so there ya go) and given to the app as encoded JSON
I'm currently considering an ORM system like greenDAO or something like that...but not looked too much into it currently.
The themes database is quite good as it hold descriptions of views, shading, dimensions etc, these too are never displayed to the user from the server, but are cached local, cause failure of internet and failure of sync should not prevent any vital parts of what appears to be an offline app from working (e.g. my Smart SMS app)
Hope that helps, I could pass you the php although tis quite simple, there are security issues to look out for though
deanwray said:
well my app uses a hosted database for
Online Theme Data (thumbnails store in just web space)
Settings Overrides (settings that I may have to force on the app)
Announcements ( Messages that trigger dialogs, adverts, html boxes)
Purchase info
other stuff that I forget
Any database that I access online I cache data local in cache sqlite database
So lets say the most complex things is the purchase list... a rough flow is as follows :
Get idents from online purchasable list
get descriptions and titles from idents
store local database
Simultaneous query of google IAP data from play to get locale info and pricing (along with IAP ident)
Store that in same local db
Display to user at, initial data, updated data and price additions
The database online is accessed via php (not a fan of that but hey ho, not really a programmer so there ya go) and given to the app as encoded JSON
I'm currently considering an ORM system like greenDAO or something like that...but not looked too much into it currently.
The themes database is quite good as it hold descriptions of views, shading, dimensions etc, these too are never displayed to the user from the server, but are cached local, cause failure of internet and failure of sync should not prevent any vital parts of what appears to be an offline app from working (e.g. my Smart SMS app)
Hope that helps, I could pass you the php although tis quite simple, there are security issues to look out for though
Click to expand...
Click to collapse
Thanks for the details! It was really useful to see your workflow, I was not sure about the direction I should choose for my app development, but now is much clearer.
Thanks!
ved
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
vedtam said:
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
Click to expand...
Click to collapse
If you want do operate online database server then generally php is used.there is a tutorial on androidhive check it . you will get the answer
Sent from my GT-S5570 using XDA Premium 4 mobile app
vedtam said:
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
Click to expand...
Click to collapse
if you need a real time chat hit me up on hangouts https://plus.google.com/+DeanWray/

Whatsapp - any way to backup to HTML?

Hi, is there a way to (batch) convert all conversations on whatsapp to HTML and csv files? Most 3rd party apps online seems to use some way to install an 'old' version of whatsapp to do this and that gets me banned temporarily from Whatsapp.
I basically want to uninstall Whatsapp and not use it anymore. But I have years of important conversations (many of which I may need to refer to for work etc), and I want to keep them all on my computer in a searchable format. HTML is optimum as it would presumably preserve the look and feel of the chats. CSV could also be good in terms of efficiency of searching.
Thanks!
I am having the same issue and it drives me insane! Ideally, I would like my messages and my attachments to be accessible in a convenient format for the future.
All I found is backuptrans, but I haven't tried it. People (on here) say it is legit in terms of "getting the job done" but I am generally suspicious of companies that hide their whois record behind a shell corporation and don't provide business contact details.
Cheers, JD
Try this, you can read messages in a GUI:
GitHub - andreas-mausch/whatsapp-viewer: Small tool to display chats from the Android msgstore.db database (crypt12)
Small tool to display chats from the Android msgstore.db database (crypt12) - GitHub - andreas-mausch/whatsapp-viewer: Small tool to display chats from the Android msgstore.db database (crypt12)
github.com

Categories

Resources