Part 23: Testing and Submitting to the Store

Sign in to queue

The Discussion

  • User profile image
    Aazarus

    Thanks for the series so far, has really got me motivated to get some apps going. Especially the ones I've been thinking about for awhile but haven't known where to begin so again big thanks for this.

  • User profile image
    ChrisDunphy

    This is ridiculously fun.  Thank you so much for creating this awesome course!  I have already ordered my copy of Windows Phone 8 Development Internals to go even deeper.

  • User profile image
    BobTabor

    @Aazarus: @ChrisDunphy: Awesome.  Glad you guys like them.  Smiley

  • User profile image
    Jamie

    Awesome series. The series that covered Windows Phone 7 got me hooked on design and development for Windows Phone.

    I can't remember which video you, Bob, mentioned about adding functionality to the app, but I think it was in the context of the SoundBoard app.
    I've followed your videos for an app of my own as it has similar workings. I'm now at a road block trying to delete, or edit, the selected item from the LongListSelector. My MVVM is pretty much identical to yours. I've posted the same question on the dev centre (or center) but haven't had a working answer yet.

  • User profile image
    BobTabor

    @Jamie: Hi, I would probably need to see some code.  Sorry you're running into some trouble.  Hope you got it ironed out (it's been a few days ... sorry ... death in my family). - Bob

  • User profile image
    rfreytag

    @Bob - sorry about the sad news.  Best wishes to your family. 

  • User profile image
    HonraoPrasad

    @Jamie - I have implemented delete functionality successfully. Source code is uploaded on GitHub at https://github.com/PrasadHonrao/WindowsPhone8/tree/master/SoundJabber

    @Bob - Sorry to hear that. My best wishes with you and your family. 

     

  • User profile image
    HonraoPrasad

    Can someone pls explain how to pin individual sound tile on start screen? I'm able to pin the tile on start screen using StandardTileData class, however whenever I tap on the tile on start screen, rather than playing the audio, control jumps to first pivot item in the application. Appreciate if someone can help me to solve this puzzle.

  • User profile image
    Clint

    @HonraoPrasad: Hey, we love that you're extending the application in new ways.  However, we're trying to have the comments stick to what is covered in the video. 

    http://dotnet.dzone.com/articles/using-secondary-shell-tiles talks about it, basically use an extra parameter and use NavigationContext.QueryString

  • User profile image
    rfreytag

    @Bob, @Clint, @anyone-else -

    I have had no problem debugging using the WVGA 512K and Device settings.  However, when I try to debug using WVGA (plain), WXGA, or 720p I get an error I am having a lot of trouble sorting out (Bing/Google/MSDN have nothing).  The error is...

     

    The Windows Phone Emulator was able to set some properties on the virtual machine.

    Couldn't change Memory of the virtual machine: 'Emulator WVGA.richard freytag' failed to modify device 'Memory'.  (Virtual Machine ID <GUID of VM - I'm leaving it out>)

    Invalid startup memory assigned for emulator 'Emulator WVGA.richard freytag'.  The maximum amount of memory you can assign to a virtual machine is '990 MB'.  (Virtual Machine ID <GUID of VM - again - I'm leaving it out>)

     

    ...Looks like a Hyper-V problem with a 990 MB limit.  Anyone seen this while doing the course?  If not I'll post this to Stackoverflow or MSDN.  Thanks.

  • User profile image
    BobTabor

    @rfreytag: I don't know the answer, but here's where I would start if I were in your shoes ... First, how much physical memory do you have in the machine?  Second, pop open Task Manager (right-click on the Windows Task bar and select Task Manager).  Go to the Performance tab.  How much of your memory is utilized:

    a) When in Visual Studio in Design time

    b) When you F5 Run Debug the WVGA 512K

    c) When you F5 Run Debug everything else

    Perhaps the message isn't intended to be understood that Hyper-V is capped out ... maybe it's the other way around ... maybe Hyper-V *wants* to give more to the VMs, but your physical memory is capped out.  So, are you running out of memory?  You might look at other processes that are hogging memory while you're attempting to do this?

  • User profile image
    Clint

    @rfreytag: how much RAM does your computer have?  My gut says you're running out and the VM can't allocate enough to run.

    General rule however is if your app runs in 512MB, you should be golden.

  • User profile image
    rfreytag

    @Clint, @Bob - oddly just as I pushed 'enter' on my question I thought perhaps I was running out of memory.  Same as it ever was - right?

    Well, you were both right - I was running out of RAM.  I didn't realize that I needed to shut down a previously-started emulator/VM before trying to start a Phone Emulator at a different size. 

    ...and I decided to bump my RAM to 4 GB (I develop in a VM - turtles all the way down).

    Thank you both! 

  • User profile image
    BobTabor

    @rfreytag: Ha! Turtles all the way down, indeed.  Big Smile  It's just a matter of time before we're running VMs inside of VMs inside of VMs ... VM Inception.  Glad you got it figured out.

  • User profile image
    HonraoPrasad

    @Clint:Thanks for the response and the link. The reason I put the comment coz Bob mentioned about extending different features like secondary tiles, deleting sound in this video. So I thought its better to raise my query here. Your link definitely resolved my query so thanks again.

    My next question is once I pin a specific sound tile on start screen and if user taps on it, I would like to play the actual sound rather than navigating back to the application. Can you please provide some help to do it. Thanks.

  • User profile image
    BobTabor

    @HonraoPrasad: I'll be the first to admit I'm wrong, but I don't think that is possible.  Not a single app on my phone does that sort of thing ... they all launch the app.

  • User profile image
    Clint

    @HonraoPrasad: Actually, you can do this, just well past a "beginner" topic.  It does launch the application but quickly bails out so an end user wouldn't really notice.  On your pin, set a query string on it, use NavigationContext.QueryString to detect the key and param and use the protected override void OnNavigatedTo(NavigationEventArgs e) {} to launch it to a background audio task.

    Something like

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        // Get a dictionary of query string keys and values.
        var queryStrings = NavigationContext.QueryString;
                
        if (queryStrings.ContainsKey(Constants.AudioTarget))
        {
            var target = queryStrings[Constants.AudioTarget];
            var track = new AudioTrack(
                new Uri(target, UriKind.Relative),
                target,
                "Windows Phone Demo",
                "Windows Phone Demo",
                new Uri("msftLogo.png", UriKind.Relative));
    
            BackgroundAudioPlayer.Instance.Track = track;
            BackgroundAudioPlayer.Instance.Play();
    
            NavigationService.GoBack();
        }
    }

     

     

     

     

     

     

     

  • User profile image
    HonraoPrasad

    @BobTabor:I agree Bob. Don't think its possible to just play the sound from phone start screen. It will always launch the app. Just to make it a bit user friendly, I am navigating to specific pivot on tile tap [tap on Cat goes to Animal pivot etc]. So far I have implemented tile pinning, custom sound deletion, exception handling [storage space check, duplicate sound name etc]. Yet to implement few more ideas.

    Code is available at https://github.com/PrasadHonrao/WindowsPhone8/tree/master/SoundJabber.

    As always very useful series. Thanks a ton.

  • User profile image
    HonraoPrasad

    @Clint:Believe me I have implemented exactly same code but I am getting exception at NavigationService.GoBack() call with message "Cannot go back when CanGoBack is false". I need to look into NavigationService in detail. Any quick win you can suggest? Smiley

  • User profile image
    Clint

    @HonraoPrasad: this question is way off the video.  Sorry but have to keep q's to the topic of the video.

    I have an app I wrote for someone that does this.  It does launch the app for a split second.  You need the background audio task to do it.  I suggest asking the question over at www.StackOverflow.com or dev.windowsphone.com's forums.

  • User profile image
    rfreytag

    Thanks guys - I wrote my own simple app and submitted it to the app store successfully because of this video.  I'd like to give back with a suggestion...

    If you need beta tester feedback and are willing to return the favor and test others' apps post your email address as a 'REPLY' (text to upper right) to this comment.  Email must be one registered with MS (e.g. Live or Hotmail) to be a beta-tester! 8-).

    @Bob, @Clint - Please delete this comment if I missed some negative issue with this suggestion.

  • User profile image
    rfreytag

    @rfreytag:

    • betatesters (((at))) freytag (((dot))) ORG -

     

     If this list gets long please pick new email addresses from the bottom of the 'Reply' list. 

  • User profile image
    BobTabor

    @rfreytag: I think that's a cool idea personally.  Smiley

  • User profile image
    VishalRai

    Thanks BoB and Microsoft Team for this great tutorial.

    I actually build this app successfully but still I am finding it difficult to make this again on my own.

    I watched your C# for absolute beginners series two times but still I had seen many codes in this series which are not covered in C# series. Right now I am messed up Crying with many of C# codes in this series. Although XAML is pretty easy Smiley .

    My question is there any free material to learn C# enough for building Windows Phone application. I am aware that C# is not easy to master soon, it took years to master, but still right now I want to learn C# code that are possibly enough for Windows Phone application development.

  • User profile image
    Clint
    @VishalRai: we jumped from basic syntax in the c# fundamental series to an actual application. What things are you having issues with? Channel 9 has tons of content, so does nokia's dev site and dev.windowsphone.com Part of programming is investigating stuff. Trust me, I look stuff up and build little test apps all the time. I stand behind building an application YOU want to make. Figure stuff out and make it something you are proud of.
  • User profile image
    devlife3

    Wow this was a great conclusion to building our first WP8 app.  

  • User profile image
    Stucker

    Dear bob,

       Thanks for this videos, there are a great contribution for me. I am from argentina and my English is poor, but you explanation are very clear and i can follow you with this solution.

     

    I have put one image per Tile where can upload my code to share with the community?

  • User profile image
    BobTabor

    @Stucker: Where to put your code?  You could put it in CodePlex or Github or some place like that and just use key words that would let people know (or post a link here) that ties your work to our work so people could find it easily.  Outside of that, not sure.  Glad to hear this series was helpful for you!

  • User profile image
    ajp31972

    Thanks to Bob Tabor and Clint Rutkas for this fantastic resource.

    My question is about the completed application. Everything works as it should. The only thing is that if I click on the same custom tile more than once (in succession), the application crashes:

    Error:
    IsolatedStorageException  on MainPage.xaml.

    Code: (line 63 on the Codeplex sourcecode)
    using (var stream = new IsolatedStorageFileStream(data.FilePath, FileMode.Open, storageFolder))

    I verified the issue by testing your completed code from codeplex.

    Am I the only one getting this error? Or maybe it's something on my end.

    My second question is that IF it is a slight bug, then is the fix easy to figure out or difficult?

    I haven't spent any time over it because I want to know if it's just my machine or not


    THANKS AGAIN Smiley

    AJ.

    Edit: Sorry for spelling your surname incorrectly Clint. I corrected it Smiley

  • User profile image
    Clint

    @ajp31972: what is the full exception error?

  • User profile image
    ajp31972

    Hi Clint !

    The title and subititle of that debugging pop up box are written below:


    IsolatedStorageException was unhandled by user code

    'System.IO.IsolatedStorage.IsolatedStorageException' occurred in mscorlib.ni.dll but was not handled in user coded by user code

    Thanks for being super-fast !
    AJ.

    P.S. If you need a screenshot of it, let me know.

  • User profile image
    Clint

    @ajp31972: IsolatedStorageException is the type of exception, there typically is additional detail that comes with that in the Message property of the exception. See this sample image, you'll see that the additional detail of "unable to determine the application identity of the caller", that tells you a lot more of what is going on and what is failing

    All I know is something happened with Isolated storage right now which could be a lot of things.

    %MCEPASTEBIN%

  • User profile image
    ajp31972

    @Clint

    Thank You for the reply.

    It's very refreshing to experience this kind of support that you are supplying in these comment sections. You are a rare breed indeed. Smiley 

    I urge everyone to read the comments of all the tutorials, there's much to learn there Smiley

    Thanks Bob and Clint !

  • User profile image
    samantha

    Can I use MS Access for creating database for these apps??? Can you please suggest which database I can use for developing simple WP8 apps?? Thank you!!

  • User profile image
    BobTabor
  • User profile image
    samantha

    Thanks Bob!! :D

  • User profile image
    haris khalique

    Hi when I upload xap file store certification test result fails.
    When the user deactivates the application, the application does not reactivate when the user presses the device Back button immediately or after waiting for ten seconds.
    Steps to Reproduce:
    1. Launch the application.
    2. Deactivate the application by pressing the Start button, Bing button, or Power button.
    3. Press the device Back button immediately or after waiting for ten seconds to reactivate the application. 4. Observe the application does not reactivate.

    How I can achieve this?

    Please I need you guidelines to resolve this issue

    thanks

  • User profile image
    Clint

    @haris khalique: means something in you application isn't resuming due to chances are tombstoning.  The steps sound pretty easy to recreate here.

  • User profile image
    isamubr

    Hi, i saw that the application scale correcty in alll resoltion used in the screenshot. Do you why this happen if you hard code all the height and width size in pixel ?

     

  • User profile image
    Giovanni Davidson

    I don't know if you explain how to fix it in previous video comments but there is an error whenever a sound is played, then the record audio page is opened then exited by pressing the back button on the device the last sound played will automatically play again.

  • User profile image
    rajeshkomat​lapalli

    Hi Mr Bob Tabor,

    You had given a wonder full tutorial on Windows Phone 8 Apps Development.

    can u please post a tutorial on how to use SQLite for data binding to a grid / list / panaroma /pivot & getting data from Database (i.e SQLite) and inserting data to SQLIte Database...

    Mail Id : rajesh.komatlapalli@hotmail.com / gmail.com

  • User profile image
    Jimmy

    Hi Bob,
    I want to know if there any testing libaries for the windows phone?
    I mean the UI automation test libs. For example, in the Window Desktop, there is the UIAutomationclient to perform the ui automationtest. So how about it in the windows phone?

  • User profile image
    Xuan Tai

    Why don't I have Store Test Kit in my Visual Studio 2013 update 2? Please help me!

  • User profile image
    stevewp8dev

    I'm about to submit my Windows Phone 8.1 app in a week or two.

    The only language I'm supporting at this time, is English, but I still have a question.

    There are like 15 different Engilsh'es !!  English Hong Kong, English UK, english US, etc..

    Can I just click all of them ?

     

  • User profile image
    BobTabor

    @stevewp8dev: Hmm... yeah, if you don't have any colloquialisms that differ by region regardless of language, I guess you can just click them all.

Add Your 2 Cents