How to use sqlite3 in Windows Phone 8 with cocos2d-x project - windows-8

I am starting to build a gaming application on windows phone 8.
I am using cocos2d-x game engine
I am developing an game which uses database.
Can anyone please tell me how to use sqlite in windows phone 8 game. and is there any other way to create DB in windows phone 8?
Thanks.

I don't have any experience with cocos2d-x but it shouldn't be really relevant if you're trying to use sqlite.
First you need to download SQLite VSIX package for Windows Phone 8. If I'm not mistaken, you already need to be using C++/CX because of cocos2d-x. This should make it easier to use SQLite.
If you need some guidance you could look at sqlite-net-wp8 and sqlite-net which implement a managed wrapper for it.

Related

Developing apps for Xbox One?

I've heard that Xbox One application development is quite similar to Windows 8, but I haven't found much to suggest why, or what differences there are.
Is there any documentation about creating Xbox One applications (not games, apps.. like Netflix, etc), or even how to apply to obtain such information?
I've been trying to find more details myself. It sounds like the ability to develop apps is coming:
http://arstechnica.com/gaming/2013/10/wait-can-the-xbox-one-really-run-generalized-windows-8-apps/
Nothing to announce today, but when I talk about that common core,
you're seeing that common core in action, being able to target other
devices over time that run the Windows 8 engine.
If you want to know about how to get a head start about thinking about
developing for Xbox One, the logical thing to do is [to] go build
Windows 8 applications.
There are some additions in WinRT designed to allow interaction with Kinect:
http://www.oxm.co.uk/59024/features/what-its-actually-like-to-develop-for-xbox-one-microsoft-explains/?page=2
The applications are very similar to Windows 8, like we brought a lot
of the Windows 8 namespace - WinRT can be used for building those
applications, the time it takes to port a Windows 8 application to the
new Xbox? It's super, super easy. There's some things we added to the
platform for handling gestures, for handling voice and handling ten
foot UI paradigms.
Right now it appears the most you can do is try out your app ideas in WinRT and wait until an Xbox One SDK appears.
I've worked on a few of the launch apps for Xbox One. Unfortunately, you cannot get an app on the platform unless you've been invited (at this point in time), however rumour has it that MS may open up the platform a bit more in the next year or two.
All documentation and information regarding the development itself is all under strict NDA, so it's highly unlikely that you'll find any in depth details.
If you're interested, you can always try contacting the Xbox team for more information.
Important update on this topic:
Every Xbox One is now capable of going into developer mode via the Xbox Dev Mode App. Games and more importantly apps can now be developed by anyone.
FAQ on this topic: http://support.xbox.com/en-US/xbox-one/apps/developer-mode-activation-app-faq
Microsoft currently does not have any official documentation for Xbox One Apps, however it seems that if you go here: http://www.xbox.com/en-us/Developers/id You can register to become a developer for the Xbox One and get the development kit so you can develop apps for it.
Main information about developing for the Xbox can be found at http://www.xbox.com/en-US/developers, which includes how to register for an Xbox One development Kit
and the different tools and middleware that can be used to create games/apps for the Xbox. More documentation for the Xbox One will most likely get published by the end of this year.
To add to what I said, I recommend creating apps for the windows phones as it will show Microsoft that you can successfully build apps for their products. If your app gets enough downloads they will probably allow you to create an app for the Xbox One because you already have a track history
You could use Unity because it can use cross-platforms like Xbox, iPad, iPhone, PS4 and more. Also you can create 3D and 2D apps for development and to upload it to the phone you can use Xcode to build and run the unity project on the phone. If you get stuck you can always go to https://unity3d.com.

Is there any big difference for developing for Windows 8 and Windows 8.1?

I am developing for Windows 8 since before the release of Windows 8.1. My project is targeting Windows 8 devices. As Windows 8.1 is about to hit the market, do I have to change the platform of my project? Can I continue to develop it as it is? How long do I have until I must change?
The short answer is yes, there are quite a few big differences in Windows 8.1 than Windows 8.
One of the biggest ones is the lack of a LayoutAwarePage. Your app will need to accommodate almost any screen sizes and widths, which will mean that you will likely need to do all of your layout using relative spacing instead of absolute spacing (which you should be anyway). There are quite a few other changes, but many of them are tools given to the developer to make things easier or better. You should read them though, as you'll need to make the move eventually
Links thanks to #Xyroid - Migration Windows Store App based on 8.1. does it has backward compatibility with 8?, Resources for Migrating to 8.1 & Upgrading Windows 8 Apps to Windows 8.1 - Channel 9.
The links he has provided are truly top notch. Definitely check out Resources for Migrating to Windows 8 (the second link). It is from Jerry Nixon's blog, and is a great set of resources. Also, the Channel 9 videos from Build 2013 are an amazing set of resources. They will also likely have subtitles in case English is not your preferred language (at least, many Channel 9 Build videos in the past have).
The main changes are also in this blog post http://blogs.windows.com/windows/b/appbuilder/archive/2013/07/24/windows-8-to-windows-8-1-preview-starting-with-the-xaml-templates.aspx

Can we use windows 8 store app in windows phone 8?

I have developed windows 8 store app with XAML and c# so can I use the same app in windows phone 8?
No, not directly. Windows 8 and Windows Phone 8 do share a bit of the underlying WinRT layer, but they are not interchangeable. There are ways to maximize reuse of your assets - Portable Class Libraries are a primary mechanism for that - but there are differences in the process lifecycle, storage options, notifications, XAML markup, etc. Of course, the device form factors are also different, so it's likely you'd want to modify the UI even if all of your code were 100% reusable.
Windows Phone and Windows 8 building together on the Windows Phone Dev Center is a good place to go to learn about the platform differences and how best to use your current code investment. Also, check out How to Leverage your Code across WP8 and Windows 8 from BUILD 2012.

New to Ipad, familiar with SQL, how to get started

I have been a SQL writer using MS Access some years ago and have been given an IPad upon my retirement. I want to create simple database driven apps using SQL. I have downloaded SQL Lite editor from the Apps Store but it seems to have a big chunk of something missing.
Question. Do I need to have an Apple computer as a workstation and then copy to the iPad, or can I use my Windows 7 PC as the authoring tool.
Where do I find the tools for creating the graphics to enhance database search results?
Do I need to use C or C++ to create the application, as I never got around to learning it.
Odd questions I know, but google searches seem to leave me totally in the dark on this topic, yet I geel that most app's seem to revolve around some database manipulation. Would be helpful if I could find a series fo links somehwere.
best regards
Kaela
Hi
In order to develop native applications to ios devices you need the XCode environment and knowledge in objective c, its a bit odd and there are examples.
for that you will need a mac or run the mac os on a virtual box.
You can also create a non native app such as webapp using HTML5 and js and then import it to the XCode using Phonegap.
By using this method you will be able to create apps for many devices such as android and more and all you will have to do is to import your HTML5 and js into the supporting environment.
Just to warn you about these kind of apps, app store allows only native apps and its better to make native app because it will pass every inspection they make.
Thanks
yes, to develop on Apple's engine, you have to had an Apple computer. However, you can mount a virtual machine running OS X, but it's illegal and very complicated (but doable).
The "bible" for mac developers is here : http://developer.apple.com/.
It's recommanded to write your application in Objective C.

How do you sync a Core-Data application between a Mac and a iPhone?

Just wondering what code I would need to do this?
There's no CoreData for the iPhone (yet), so there's no way to use the same code in your iPhone and Mac app. You could write your own wrapper around sqlite that will run on both. The Omni group has an open source version of this (under a modified MIT license) which would probably be a good starting point.
In addition, there's no built in way to sync data, so you'll have to come up with a way to do that as well. Many apps run a server on the phone/mac and sync via that server. It generally requires that your phone is connected to the same wifi network as the mac.
Core Data does not exist on the iPhone, so you'll need to use something else for the iPhone portion at least. In fact, if you want to share a significant amount of code between the iPhone and Mac apps, you'll probably want to avoid Core Data altogether.