Developing a game as a universal app: where to start?
Hi,
I am a Flash programmer and I'm taking my first steps to learning C#. I've downloaded Visual Studio Community Edition to familiarize myself with this new language. Coming from AS3, C# is quite easy to pick up.
What I would like to do now is create a game that is a universal app that will run on both phones as tablets or laptops. It would be a simple 2D game. What has me confused is where to begin. Do I start with a blank universal app project? Or do I need to
use XNA and if so is it universal?
Thx
Hi 2wicky,
Welcome to Windows Forms.
The link below might be useful to you:
#Your First Game - XNA Game Studio in 2D
https://msdn.microsoft.com/en-us/library/bb203893.aspx?f=255&MSPPError=-2147217396
In addition, since this forum is discussing about the windows forms designer and the winform controls, and if you have any issue about xna or XBOX, I would recommend you go to the link below for help.
http://xboxforums.create.msdn.com/forums/
Thanks for your understanding.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Similar Messages
-
I need the steps to publish my game to the Mac App Store.
Hi
I am working on a project using Unity3d game engine, it started as a free game but i thought that i could create something that sell so i need all the steps to be mac developer to be able to distribute my finished game at the Mac App Store!
Please notice that i am not from the USA, and there is no app store for my country, is that gonna be a problem regarding me getting paid?Hi Imacyh, and welcome to the Dev Forum!
imacyh.com wrote:
... i need all the steps to be mac developer to be able to distribute my finished game at the Mac App Store!
Start at the [Mac Dev Center|http://developer.apple.com/devcenter/mac/index.action]. Everything you need is there.
Please notice that i am not from the USA, and there is no app store for my country, is that gonna be a problem regarding me getting paid?
No. When you join the Mac Developer Program you'll get instructions on how to set up your bank account and how to place your app in the correct stores.
\- Ray -
C# Universal App Unity bad card game render
Hello,
I am working on a card game designed in Unity and I am getting some blurry rendering.
I thought perhaps someone here may know why.
I only get strange rendering when building for Windows Store and Window Phone.
Building for Desktop does not have rendering issues.
Below are links to the rendered output.
Desktop:
http://1drv.ms/1GzQ7Qh
Windows Store:
http://1drv.ms/186ocZK
Windows Phone:
http://1drv.ms/186oi3A
Why is the Windows Store build blurry?
Notice that the Windows Phone render has even more problems.
There appears to be what I think is an antialiasing problem on the right and top edges of the images.
Notice that the empty hand with the no score disk, has noticeable streaks up and to the right.
Also notice that the cards have a black rectangle to the right of them.
I believe this is happening because I do not have a completely transparent border around the png file.
All images are textures on a Unity plane object.
The Windows Store and Windows Phone build were created as C# Universal App solution.Hi Takimchu,
If you are asking unity render problem, I would recommend you post your question on unity community forum. This forum is to discuss questions about windows store app.
http://forum.unity3d.com/.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Where can i complaint about a Developer imposture for a third party app that i have already purchased?
I'm not sure what you mean by a "developer imposture", but if you are having a problem with an app that the app's developer cannot or will not assist with, go here:
http://www.apple.com/support/itunes/contact/
and follow the instructions to report the issue to the iTunes Store.
Regards. -
Desktop apps developing: where to start
Hi!
I wanna develop some nifty little helpers doing common daily stuff, like checking the up time of the internet connection and displaying it anywhere on the desktop or in the gnome-panel. that's just an example. a lot of this tasks can be done with cronjobs and bash-scripts, but for graphical stuff there's somethin' else needed.
The question: Where to start? I know, a forum search and googling brings up a lot of tutorials, but I even don't have a point where to start, which programming language is best for apps like this.
And no, I'm not looking for general programming tutorials.
Thanks in advice!Well there's plethora of ways you can do build desktop apps. The language is mostly irrelevant nowadays, choose whichever you prefer, C, C++, C#, python, perl, tcl. You may start with deciding on language and possibly toolkint you would wish to use. Some hints, using C you have GTK as your primary toolking, then goes GNUstep thing, Xlib as an option if you need sort of hackish feeling, Motif if you have access to libraries and some ancient Unix system. If you would prefer C++, there's Qt (excellent documentation on http://doc.trolltech.com) and GTKmm. I personally prefer Qt since it's easy, intuitive and is a base of KDE.
You may end up using python which, surprisingly, seems to be preferred by most of people on the forums. If so then pygtk or pyqt is a must.
I would discourage from using horrid toolkits like wxWidgets, no fun at all.
Other thing for desktop apps would be inter-app communication and sharing common functionality, which is handled by Kparts & DCOP for KDE3, and (correct me if I'm wrong) bonobo - a CORBA-like thing for gnome (?).
For KDE these will be useful:
http://developer.kde.org/documentation/
API reference
http://developer.kde.org/documentation/library/
Both Qt and GTKmm have nice tutorial which help you get started quite easily.
However if you would like to write conky like stuff, then unfortunately Xlib is the way:
http://www.tronche.com/gui/x/
Some common desktop standards (system tray, iccm window manager etc.) are provided here:
http://standards.freedesktop.org/ -
How to disable webview cache for Windows Phone 8.1 Runtime universal app?
Is it possible to disable cache for the Webview control for a Windows Phone 8.1 runtime universal app? My App seems to be remembering the information it received the first time. My app logs me into a service and when I go back to rerun app in the emulator
(without completing shutting down the emulator) it logs me in automatically rather than giving me the prompt. This behavior is in the NavigationCompleted handler if that helps explain a bit more on where I am hitting this issue.
If I were to shut off the emulator completely and then restart it then I am prompted for the login name and password again. I have gotten over this cache issue, when I was using the HttpClient in other part of my app, by sending the no-cache in the header
as:
client.DefaultRequestHeaders.Add("Cache-Control", "no-cache");
Can I do something similar for the webview control?
thanks
mujnoHi mujno,
As I know currently there is no programmatically way to clean cache for WebView, see Matt's blog:How to clear the WebView cache
However if you are developing an enterprise app, you should be able to invoke some scripts to clean for you, see this for more information:Brokered
Windows Runtime Components for side-loaded Windows Store apps
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Problem with SQLite in Universal App (Windows Phone part)
Hello,
I am using Universal Apps project because I want to move myself from Silverlight.
In Silverlight type of Windows Phone project, it is very easy to work with SQLite either on 8.0 or 8.1.
But I can't find a way to work with SQLite in Universal project. There is no IsolatedStorage to check if database exist, and if it does not exist, Application will put it in the IsolatedStorage.
I always get message "No such table: kategorije" where "kategorije" is the name of one table in my database.
I guess that Application can't find the database.
Is there any tutorial (I have tried to find it) on how to use SQLite in Universal Apps with custom written querys?
Development Technician, Microsoft Certified ProfessionalHere's a link you can refer to : Using SQLite as local database with Universal Apps
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8 -
Best way to develop flash games for desktop + mobile, today
Hi
It has been a nice run of about 7 or 8 years now that we have developed Flash browser based games for the web exclusively. Of course with the ubiquity of mobile devices, things have changed. Clients are starting to demand, almost assume, that games will work in the browser - on the desktop and on their tablets.
Putting aside the whole discussion of using an HTML5/JS solution instead, we're sticking with Flash for the next project and need to figure out the best way to get it to run on the desktop browser and on the iPad, while maximizing code re-use.
Given the current state of technologies today, what is the best path? This game will be a 2D side-scroller type game, and development will be done mainly with bitmap graphics (as opposed to vector) and spritesheets :
Option 1: Develop the game targeting the 'standard' flash player for web, then port to an iOS AIR 3.2 app, doing appropriate optimizations.
Option 2: Use Starling/Stage3D for desktop, and then port to an iPad app. Just wondering if starling is ready for primetime making production quality games for mobile + desktop. Does Stage3D still work well enough in software mode on older machines?
Option 3: The new feature in CS6 that lets us publish to HTML5. Is this even close to mature enough to publish a full game? The benefit of this solution is that it could run in the browser on the iPad instead of being a separate app.
Thianks so much for any guidance.. I'm also wondering about pitfalls, and optimization techniques involved in any of these.
-richWell I don't know if I can give you 'guidance' without knowing the details of you and your project and all that, but here's my personal opinions:
Option 1: I would go for developing for iOS and Android first and then "in-brower" over the other way around. But I would actually develop for all targets at once so that I know I am not using a solution that breaks another platform/formactor that has to be redone later. iOS has allot more guidelines and things you have to consider than the the 'browser' where there is no approval proccess. So if you can get it approved on iOS then it should be able to go to Android and the browser without so much trouble, but the other way around you could really create allot of stuff that needs to be redone -- Apple is very strict on making sure that the users are not stuck with bad UI or a bad user experience(as is defined by their user interface guidelines). I have some projects that were made for in-browser flash first, and it has been hell porting them over to iOS/Android. The whole way they interact with the user has to be rethought for mobile/small screens/touch screens. If I had made them originally with mobile in mind, then it may not have been as much of an ordeal.
Option 2: I am not familiar with 'starling' or Stage3D, so I can't be helpful here.
Option 3: I was under the impression that the 'publish to HTML5' feature was just for animations, not ActionScript -- Maybe someone else can answer this for sure. Even if it could do ActionScript, there still may be no way to access some of the stuff an app could (saving levels/data/whatever to the device hard-drive, etc).
Anyhow, curious why you would want to avoid vectors? With so many screen resolutions, and the potential that they may get higher in the future (like they did with retina display on iOS), vector would make your project better suited to work on future devices without having to redo things and add higher resolution bitmaps later. If you have something that absolutely demands insane perfomance, then the bitmap/spritesheet stuff might be needed I guess... (or if it is some '8-bit retro' type of thing) -
Will Universal Apps Support Visual Basic?
Hi, I'm excited about the new Windows Universal Apps and I've been trying to find out an answer to this simple question: Will Universal Apps support the Visual Basic Language? I'm a self-taught programmer and as such I've only ever had experience with VB,
C# & C++ are very intimidating languages to me and I'm not entirely sure how to even start on those languages. So, is there any information on VB Universal Apps? Is it a feature
you think is likely? I feel it's the best thing MS could do to encourage more app developers and new-comers like myself to create new apps on the Windows 10 platform.
I should note, I am a Windows Insider and I have all the software (Win 10, Dev License & Visual Studio 15) to get started, but I don't want to start trying to get my head around C# only for VB to be supported tomorrow. Sorry if this is in the wrong category,
I tried my best to categorize my question.
A huge thank you to anyone that replies.I strongly prefer VB.NET, and it is where almost all my Windows & Windows Phone app development is, but I do know enough about C# to have the examples usually help me, so I strongly support the idea of language equality. But here are some sites that
you may like:
For creating VB.NET Universal Apps:
http://blogs.msdn.com/b/vbteam/archive/2014/06/15/vb-universal-app-part-1-getting-started.aspx
For help converting between VB.NET & C#:
http://www.harding.edu/fmccown/vbnet_csharp_comparison.html
http://www.developerfusion.com/tools/convert/csharp-to-vb/
Hopefully you find these useful, and it's good to know there are other people that still use VB.NET!
Nathan Sokalski [email protected] http://www.nathansokalski.com/ -
Universal App: no Application Insights for Windows Phone 8.1 project
I just created an universal app and installed the Application Insights Tools for Visual Studio extension. It was easy to add AI for the Windows 8.1 project. Unfortunately there is no "Add Application Insights Telemetry to project..." command for
the Windows Phone 8.1 project. Am I missing something? What might be wrong?
Thanks
Hans-PeterOfficially yes, but you should be able to get it to work:
• Add Microsoft.ApplicationInsights.WindowsPhone package to the “Phone” project.
• Add Microsoft.ApplicationInsights.WindowsStore package to the “Store” project.
• Add <InstrumentationKey/> element to the ApplicationInsights.config files in both Phone and Store projects with the actual instrumentation key of your app. You need to decide whether you want to use single key for both windows and phone apps or separate
keys.
• Create a new instance of the TelemetryContext class in the App class in the Shared project and store it in a public static variable for use by the rest of the code in the universal project.
Jakub Oleksy | Developer | Visual Studio Online -
How Can I Learn To Develop Flash Games For Under $50.00 USD?
I am completely new to anything Flash. I have never written a
single line of Actionscript. I don't know the difference between
Flash and Flex. I don't know in what forums Flash developers hang
out. I don't even know what kind of coffee they drink, or if they
drink tea instead.
However, I have developed games and have been thinking about
developing some casual games and have heard rumors that Adobe is
"pushing" causal game development with Actionscript 3 and their
latest releases. So I went to adobe.com expecting to see a link for
something like "learn how to develop games in flash" or some such.
I poked around the developer related pages and didn't find anything
I thought useful.
What I did find were plenty of stuff for *existing* flash
developers. Links to articles and HowTos for specific topics and
information about products that cost a minimum of several hundred
dollars. I can't learn how to develop games and create a prototype
with a 30-day trial, and I am not going to buy a $1000 pro-grade
tool when I am an indie developer without a budget or a pre-funded
project that would justify such expenditures.
I have seen some open source stuff, but don't know if it can
do anything more than build some annoying shaking banner ads.
So let me introduce myself as a possible use-case for Adobe
Marketing and the Flash (Game) Developer community.
I am an educated experience software developer who has a day
job doing "enterprise" software stuff. I want to *play* in my free
time (evenings and weekends) with "Flash Stuff" and learn enough to
be able to build a simple game that I can put on my personal
website and have my friends download. I am not a student, so I
can't get student discounts. The money I have goes toward
toys^H^H^H^H tools for my other coding habits^H^H^H^H^H projects. I
am not interested in 30-day trials, as I may go 45-days or more
between the first and second weekends I get to play with this. I
know OOP so I want to start out learning how to do the "advanced"
stuff from day one and not have to start with dragging and dropping
PNGs w/o any coding and then "relearn" how to do it in code so I
can do anything beyond having the image appear and rotate.
I *am* willing to put time into this endeavor, but only after
I have a few things spoon-fed to me by "advocates" who's job is to
get me "hooked" and willing to invest my time to go beyond Hello
World. At the same time I am download and playing with GarageGames,
TGE/TGB, Game Maker, Dark Basic, Blitz Basic, etc. and many
complete development environments that are full-featured and
completely free if I limit myself to releasing only freeware games,
or cost me less than $50 for the "professional" version with all
the bells and whistles.
I have heard rumors and rumblings about some open source
tools being available and Adobe maybe open sourcing some of their
previously pay-to-play tools, but also understand that Adobe can
probably provide a better "comprehensive" package of tools,
documentation, tutorials, and support, *if I can find the right
place to ask/start.*
And, most of all, I don't know where to start my search as I
have no personal contacts to bug about stuff like this.
So, where can I find the big red button to push and get
everything I want handed to me on a silver-platter.
[please understand I have written this with some attempt at
self-mocking humor and am not some clueless n00b]
Thank you for taking the time to read my lengthy posting. I
hope to find some helpful replies and start down an interesting
learning path.
--ChaimJust saw your post. Better late than never. You may want to
consider GameBrix.com, where you can create Flash based, casual
games using your web browser. No downloads are required. You can
create a game from scratch using a library of images, sounds and
game mechanics. You can also upload your own. The online script
editor will allow you to view and edit the ActionScripts associated
with each game mechanic. In short, a great way to ramp up on game
design and build your own game without investing a lot of $
upfront.
BTW I am associated with GameBrix so any feedback is
appreciated. -
i have a App.xaml.cs file in Windows Phone 8.0 , amd i want to use the code in that file to make work with App.xaml.cs file in Windows Phone 8.1 Universal Apps
My Windows Phone 8 App.xaml.cs file is like as below
namespace OnlineVideos
public partial class App : Application
#region Initialization
public static dynamic group = default(dynamic);
public static dynamic grouptelugu = default(dynamic);
public static ShowList webinfo = default(ShowList);
public static WebInformation webinfotable = new WebInformation();
AppInitialize objCustomSetting;
IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
DispatcherTimer timer;
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
public static bool AdStatus = false;
public App()
UnhandledException += Application_UnhandledException;
if (System.Diagnostics.Debugger.IsAttached)
Application.Current.Host.Settings.EnableFrameRateCounter = true;
//RootFrame.UriMapper = Resources["UriMapper"] as UriMapper;
AppSettings.NavigationID = false;
objCustomSetting = new AppInitialize();
timer = new DispatcherTimer();
Constants.DownloadTimer = timer;
InitializeComponent();
InitializePhoneApplication();
#endregion
#region "Private Methods"
void StartDownloadingShows()
timer.Interval = TimeSpan.FromSeconds(10);
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
void timer_Tick(object sender, EventArgs e)
try
BackgroundWorker worker = new BackgroundWorker();
worker.DoWork += new DoWorkEventHandler(StartBackgroundDownload);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
worker.RunWorkerAsync();
catch (Exception)
void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
if (AppSettings.StopTimer == "True")
timer.Stop();
AppSettings.StopTimer = "False";
async void StartBackgroundDownload(object sender, DoWorkEventArgs e)
switch (AppSettings.BackgroundAgentStatus)
case SyncAgentStatus.DownloadFavourites:
if (AppSettings.DownloadFavCompleted == false && AppSettings.SkyDriveLogin == true)
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
ReStoreFavourites reStoreFav = new ReStoreFavourites();
await reStoreFav.RestorefavFolder(ResourceHelper.ProjectName);
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadFavourites;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadFavourites;
break;
case SyncAgentStatus.UploadFavourites:
bool result = Task.Run(async () => await Storage.FavouriteFileExists("Favourites.xml")).Result;
if (AppSettings.SkyDriveLogin == true && result)
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
UploadFavourites upLoad = new UploadFavourites();
await upLoad.CreateFolderForFav(ResourceHelper.ProjectName);
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadParentalControlPreferences;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadParentalControlPreferences;
break;
case SyncAgentStatus.RestoreStory:
if (AppSettings.DownloadStoryCompleted == false && AppSettings.SkyDriveLogin == true && (ResourceHelper.ProjectName == "Story Time" || ResourceHelper.ProjectName == "Vedic Library"))
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
RestoreStory restore = new RestoreStory();
//if (ResourceHelper.ProjectName == "Story Time")
await restore.RestoreFolder("StoryRecordings");
//else
// await restore.RestoreFolder("VedicRecordings");
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadStory;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadStory;
break;
case SyncAgentStatus.UploadStory:
if (AppSettings.SkyDriveLogin == true && (ResourceHelper.ProjectName == "Story Time" || ResourceHelper.ProjectName == "Vedic Library"))
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
UploadStory st = new UploadStory();
//if (ResourceHelper.ProjectName == "Story Time")
await st.CreateFolder("StoryRecordings");
//else
// await st.CreateFolder("VedicRecordings");
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadFavourites;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadFavourites;
break;
default:
ShowDownloader.StartBackgroundDownload(timer);
break;
#endregion
#region "Application Events"
private void pop_Opened_1(object sender, EventArgs e)
DispatcherTimer timer1 = new DispatcherTimer();
timer1.Interval = TimeSpan.FromSeconds(5);
timer1.Tick += timer1_Tick;
timer1.Start();
void timer1_Tick(object sender, EventArgs e)
(sender as DispatcherTimer).Stop();
Border frameBorder = (Border)VisualTreeHelper.GetChild(Application.Current.RootVisual, 0);
Popup Adc = frameBorder.FindName("pop") as Popup;
Adc.IsOpen = false;
private void Application_Launching(object sender, LaunchingEventArgs e)
SQLite.SQLiteAsyncConnection conn = new SQLite.SQLiteAsyncConnection(Constants.DataBaseConnectionstringForSqlite);
Constants.connection = conn;
AppSettings.AppStatus = ApplicationStatus.Launching;
AppSettings.StopTimer = "False";
objCustomSetting.CheckElementSection();
SyncButton.Login();
if (AppSettings.IsNewVersion == true)
AppSettings.RatingUserName = AppResources.RatingUserName;
AppSettings.RatingPassword = AppResources.RatingPassword;
AppSettings.ShowsRatingBlogUrl = AppResources.ShowsRatingBlogUrl;
if (ResourceHelper.AppName == Apps.Online_Education.ToString() || ResourceHelper.AppName == Apps.DrivingTest.ToString())
AppSettings.QuizRatingBlogUrl = AppResources.QuizRatingBlogUrl;
AppSettings.LinksRatingBlogUrl = AppResources.LinksRatingBlogUrl;
AppSettings.ShowsRatingBlogName = AppResources.ShowsRatingBlogName;
AppSettings.LinksRatingBlogName = AppResources.LinksRatingBlogName;
if (ResourceHelper.AppName == Apps.Online_Education.ToString() || ResourceHelper.AppName == Apps.DrivingTest.ToString())
AppSettings.QuizLinksRatingBlogName = AppResources.QuizLinksRatingBlogName;
Constants.UIThread = true;
group=OnlineShow.GetTopRatedShows().Items;
grouptelugu = OnlineShow.GetRecentlyAddedShows().Items;
Constants.UIThread = false;
StartDownloadingShows();
private void Application_Activated(object sender, ActivatedEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Active;
if (ResourceHelper.AppName == Apps.Kids_TV_Pro.ToString())
AppSettings.ShowAdControl = false;
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Deactive;
AppState.RingtoneStatus = "TombStoned";
private void Application_Closing(object sender, ClosingEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Closing;
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
FlurryWP8SDK.Api.LogError("Error at Application_UnhandledException in App.xaml.cs", e.ExceptionObject.InnerException);
if (System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Break();
else
Exceptions.SaveOrSendExceptions("Exception in Application_UnhandledException Method In App.xaml.cs file.", e.ExceptionObject);
e.Handled = true;
return;
#endregion
#region Phone application initialization
public PhoneApplicationFrame RootFrame { get; private set; }
// Avoid double-initialization
private bool phoneApplicationInitialized = false;
// Do not add any additional code to this method
private void InitializePhoneApplication()
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
RootFrame = new PhoneApplicationFrame();
if (App.Current.Resources["AdVisible"] as string == "True")
RootFrame.Style = App.Current.Resources["RootFrameStyle"] as Style;
RootFrame.ApplyTemplate();
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Handle navigation failures
RootFrame.NavigationFailed += RootFrame_NavigationFailed;
// Ensure we don't initialize again
phoneApplicationInitialized = true;
//NonLinearNavigationService.Instance.Initialize(RootFrame);
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
if (System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Break();
else
Exceptions.SaveOrSendExceptions("Exception in RootFrame_NavigationFailed Method In App.xaml.cs file.", e.Exception);
e.Handled = true;
return;
// Do not add any additional code to this method
private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
// Set the root visual to allow the application to render
if (RootVisual != RootFrame)
RootVisual = RootFrame;
// Remove this handler since it is no longer needed
RootFrame.Navigated -= CompleteInitializePhoneApplication;
#endregion
Mohan Rajesh KomatlapalliBasically you are asking as how to port silverlight to Xaml (RT). Go one by one converting each API from silverlight to XAML, like IsolatedStorage isn't there in RT, so look for its alternative etc.
See here the namespace/class mappings : Windows Phone Silverlight to Windows Runtime namespace and class mappings
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8 -
Need to revert a universal app to iphone in iTunes connect
The question is can we replace a Universal App with and Iphone app in iTunes connect and what are the steps. In this case the iPhone app is the app the Universal app replaced in the first place.
Our client claims you cannot replace a Universal app with an iPhone app but we cannot tell if that is a message they got from trying to do it in the store or hearsay.
Background:
Our client had another developer (actually a few even before that) deliver an IOS universal app that was upgrade from the iPhone app already in the store. It was built starting witht the code base for that original iPhone app in the store.
Unfortunately the developer had serious bugs in the iPhone version of the universal app that were missed by the client.
More unfortunate is that the client replaced the iPhone app in the store with the Uuniversal app without QA and so with the improperly functioning iPhone part.
They since took the universal app out of the store.
We have the source for the original iPhone version and thought we could simply build that and replace the broken universal app.UPDATE: Ignore this is from 2010 and pre-dates Universal app type.
Although the original poster has not replied back this is a hackish tease for a solution:
Want to downgrade from an Universal app to just an ipad app..
http://stackoverflow.com/questions/3277945/want-to-downgrade-from-an-universal-a pp-to-just-an-ipad-app
First make sure you change that setting both for the project and your target, if it is still unchanged just manually edit project.pbxproj in the xcode project bundle changing all occurences of TARGETED_DEVICE_FAMILY = "1,2" to TARGETED_DEVICE_FAMILY = "1"
also Minimum OS Requirements is determined by the deployment sdk setting (IPHONEOS_DEPLOYMENT_TARGET in the aforementioned file) , not affected by LSMinimumSystemVersion -
all my games show that: This app is no longer published. How to solve it . My account seems blocked
my accout:
[email protected]best is to contact support from your dev center
Microsoft Certified Solutions Developer - Windows Store Apps Using C# -
Universal app on Windows Phone 10 black screen
Hello,
I received strange feedback that my application has some problems on Windows Phone 10. I can't test this because I don't have any Win10 devices. Can anyone check this app:
https://www.windowsphone.com/en-us/store/app/instabullet/28cffcfa-4568-45e5-820d-fb761b408bdd?signin=true
I have no idea where is the problem. After application starts it loads WebView with login page and on Win10 it is only black screen - at least one user has this problem with Lumia 635. Anyone had similiar problems? It is said that Universal app should work
on Win10 if they work on Win 8.1.It's a simple page with WebView, frameworks used are Unity, MVVM light.
XAML:
<Page
x:Class="PushBulletClient.Views.WebAuthView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:PushBulletClient"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:utils="using:PushBulletClient.Utils"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
DataContext="{Binding WebAuthViewModel, Source={StaticResource Locator}}"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:controls="using:PushBulletClient.Controls"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:core="using:Microsoft.Xaml.Interactions.Core">
<Grid x:Name="LayoutRoot" Background="{StaticResource BackgroundColor}">
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Title Panel -->
<controls:HeaderControl Header="Login" IconSource="{StaticResource LogoImage}"/>
<!--TODO: Content should be placed within the following grid-->
<Grid Grid.Row="1" x:Name="ContentRoot" Margin="19,9.5,19,0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid x:Name="GridLoading" Visibility="{Binding State,
Converter={StaticResource StateIsEqualConverter},ConverterParameter=Loading}"
Grid.Row="0" >
<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Center">
<ProgressBar HorizontalAlignment="Stretch" Background="{StaticResource BackgroundColor}" IsIndeterminate="True" />
<TextBlock HorizontalAlignment="Center" Text="Loading..." />
</StackPanel>
</Grid>
<Grid x:Name="GridDeclined" Visibility="{Binding State,
Converter={StaticResource StateIsEqualConverter},ConverterParameter=Declined}"
Grid.Row="0" >
<StackPanel Orientation="Vertical">
<TextBlock Margin="0,0,0,20" Style="{StaticResource SubheaderTextBlockStyle}" Text="Declined"/>
<TextBlock TextWrapping="Wrap" Text="You must allow access to use Instabullet."/>
<Button Margin="0,10,0,0" Content="Back" Click="ButtonBack_OnClick"/>
</StackPanel>
</Grid>
<WebView Grid.Row="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
x:Name="Navigator"
NavigationStarting="Navigator_OnNavigationStarting"
Visibility="{Binding IsBrowserVisible, Converter={StaticResource BoolToVisibilityConverter}}"
>
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="NavigationStarting">
<core:InvokeCommandAction Command="{Binding NavigationStartingCommand}"
InputConverter="{StaticResource StartingArgsToWebNavigationResultConverter}" />
</core:EventTriggerBehavior>
<core:EventTriggerBehavior EventName="NavigationCompleted">
<core:InvokeCommandAction Command="{Binding NavigationCompletedCommand}"
InputConverter="{StaticResource CompletedArgsToWebNavigationResultConverter}" />
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</WebView>
</Grid>
</Grid>
</Page>
CS
using System;
using Windows.Foundation;
using Windows.Phone.UI.Input;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using GalaSoft.MvvmLight;
using PushBulletClient.Common;
// The Basic Page item template is documented at http://go.microsoft.com/fwlink/?LinkID=390556
using PushBulletClient.Contracts.ViewModels;
using PushBulletClient.Contracts.Views;
using PushBulletClient.Models;
using PushBulletClient.Utils;
using PushBulletClient.ViewModels;
namespace PushBulletClient.Views
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class WebAuthView : Page, IView
private NavigationHelper navigationHelper;
private ObservableDictionary defaultViewModel = new ObservableDictionary();
public WebAuthView()
this.InitializeComponent();
this.navigationHelper = new NavigationHelper(this);
this.navigationHelper.LoadState += NavigationHelper_LoadState;
this.navigationHelper.SaveState += NavigationHelper_SaveState;
this.Unloaded += WebAuthView_Unloaded;
HardwareButtons.BackPressed += HardwareButtons_BackPressed;
Navigator.Navigate(new Uri(Consts.AppUri));
void WebAuthView_Unloaded(object sender, RoutedEventArgs e)
HardwareButtons.BackPressed -= HardwareButtons_BackPressed;
/// <summary>
/// Gets the <see cref="NavigationHelper"/> associated with this <see cref="Page"/>.
/// </summary>
public NavigationHelper NavigationHelper
get { return this.navigationHelper; }
/// <summary>
/// Gets the view model for this <see cref="Page"/>.
/// This can be changed to a strongly typed view model.
/// </summary>
public ObservableDictionary DefaultViewModel
get { return this.defaultViewModel; }
/// <summary>
/// Populates the page with content passed during navigation. Any saved state is also
/// provided when recreating a page from a prior session.
/// </summary>
/// <param name="sender">
/// The source of the event; typically <see cref="NavigationHelper"/>
/// </param>
/// <param name="e">Event data that provides both the navigation parameter passed to
/// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
/// a dictionary of state preserved by this page during an earlier
/// session. The state will be null the first time a page is visited.</param>
private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
/// <summary>
/// Preserves state associated with this page in case the application is suspended or the
/// page is discarded from the navigation cache. Values must conform to the serialization
/// requirements of <see cref="SuspensionManager.SessionState"/>.
/// </summary>
/// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param>
/// <param name="e">Event data that provides an empty dictionary to be populated with
/// serializable state.</param>
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e)
#region NavigationHelper registration
/// <summary>
/// The methods provided in this section are simply used to allow
/// NavigationHelper to respond to the page's navigation methods.
/// <para>
/// Page specific logic should be placed in event handlers for the
/// <see cref="NavigationHelper.LoadState"/>
/// and <see cref="NavigationHelper.SaveState"/>.
/// The navigation parameter is available in the LoadState method
/// in addition to page state preserved during an earlier session.
/// </para>
/// </summary>
/// <param name="e">Provides data for navigation methods and event
/// handlers that cannot cancel the navigation request.</param>
protected override void OnNavigatedTo(NavigationEventArgs e)
Navigator.Refresh();
this.navigationHelper.OnNavigatedTo(e);
protected override void OnNavigatedFrom(NavigationEventArgs e)
this.navigationHelper.OnNavigatedFrom(e);
#endregion
public ViewModelBase ViewModel
get { return this.DataContext as ViewModelBase; }
private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
if (Navigator.CanGoBack)
Navigator.GoBack();
e.Handled = true;
private void Navigator_OnNavigationStarting(WebView sender, WebViewNavigationStartingEventArgs args)
if (args.Uri.AbsolutePath.Contains("blank"))
Navigator.Navigate(new Uri(Consts.AppUri));
private void ButtonBack_OnClick(object sender, RoutedEventArgs e)
Navigator.Navigate(new Uri(Consts.AppUri));
There is also logic in ViewModel which doesn't contain any specific logic.
Maybe you are looking for
-
Performing multiple updates through a grid
I'm pretty green as far as Dynpro goes so please forgive me if this is an easy one. Basically I have a table (grid) which allows a user to view and edit pricing information. The data is retrieved and updated through .NET web services. The pricing val
-
BADI is not getting executed in Portal (Front end)
Hello Portal Gurus We have developed a new enhancement recently and it is not getting executed in Portal...what will be reason...? Can someone please help me out in this...
-
Airport express repeater limitation
Good day, I have an Airport Express (AE) configured as base station with two airport express units acting as repeaters. All AE's are first generation with latest software updates installed. Configuration: Airport Express 1 creating wireless network 2
-
I have a MacBook Air with OS X Yosemite 10.10.2. The "cut" function is available in "Edit" but not active upon any file selection. What to do to have it active?
-
I bought this last year - early summer. It worked great at first. Sometime during the winter it stopped working with a constantly flashing red Sys light. I have tried many times to start it up, same issue even when leaving it powered up for hours. Wh