Archiv der Kategorie: Englisch

Zune Timer – zZz Timer


Unfortunately my last update did not make it through the Microsoft certification process.
They notified my that I have to change the name because I have no permition to use the Microsoft trademark „Zune“.
I decided to rename it „zZz Timer“ for the time being.
I will resubmit the update today or tomorrow.

Advertisements

Zune Timer – Update 0.7 released

I just got an Email from Microsoft, the Update has been released. It will be available shortly.

  • Songcounter build in, now it is possible to stop music playback after a specified count of songs
  • More buttons (Shuffle and Repeat)
  • Time and Date of calculated end of timer are shown
  • The currently playing song will be displayed

The following hasn’t made it in this update, but will be included in the next:

  • Directlink to musichub. (I don’t know if this is possible, i’ll look for a solution
  • music hub integration(like youtube and last.fm)
  • Setting a Time and Date to stop or start songs and calculating timer out of this input
  • Playback of a standardsong if no song is in music playback queue
  • new layout, timer input in popup, better use of available space

 

Zune Timer – Update 0.7

Yesterday the first update was send to Microsoft containing the following changes

  • Songcounter build in, now it is possible to stop music playback after a specified count of songs
  • More buttons (Shuffle and Repeat)
  • Time and Date of calculated end of timer are shown
  • The currently playing song will be displayed

The following hasn’t made it in this update, but will be included in the next:

  • Directlink to musichub. (I don’t know if this is possible, i’ll look for a solution
  • music hub integration(like youtube and last.fm)
  • Setting a Time and Date to stop or start songs and calculating timer out of this input
  • Playback of a standardsong if no song is in music playback queue
  • new layout, timer input in popup, better use of available space

Tip of the day – ApplicationBar like Buttons

ApplicationBar like Buttons
Lese diesen Beitrag auf deutsch
I wanted to have buttons like you get in the applicationbar but could figure out how. At the end I found a perfect solution with buttonstyles:

<Style x:Key="IconButton" TargetType="Button">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
            <Setter Property="Padding" Value="10,3,10,5"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="50" Margin="{StaticResource PhoneTouchTargetOverhang}">
                                <Grid x:Name="ContentContainer" OpacityMask="{TemplateBinding Content}" Background="{TemplateBinding Foreground}"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

You just have to insert this style in the page resource or appresource:

<phone:PhoneApplicationPage.Resources>
<!--Style hier hin-->
</phone:PhoneApplicationPage.Resources>

Now you just have to set the style of a button to the style above and set a ImageBrush as content:

<Button Height="75" Width="75" Name="play" Style="{StaticResource IconButton}">

     <ImageBrush x:Name="PlayImage" ImageSource="ButtonIcons/appbar.transport.play.rest.png" Stretch="None"/>

</Button>

As ImageSource, you use your own link to the icon you want. Now only one thing remains making sure the Build Action and Copy to Output Directory of the icon are set correctly:

And this is how it will look like:

Probleme bei Appupdates / Problems with Appupdates

Deutsche Version weiter unten.

I got an user report, saying he has to deinstall and reinstall my app everytime an update is published. I was able to reproduce the following:

The marketplace shows an update. When the updateprocess is started, it directly jumps to installing the update, skipping the download. After about 2 seconds the update disappears from the download list. When you go back, the marketplace still shows an update because nothing happend. The only way to install the update is to deinstall and reinstall the app.

This problem is a bug from the marketplace. The developer can’t change this behavior!

This problem has been seen most often on Trial-Apps. But there are some reports saying it also happens on bought apps.

More infos can be found here:

————————————————————-

Ich habe einen Userbericht bekommen, der sagte, dass es Probleme beim updaten gebe. Folgendes konnte ich reproduzieren:

Im Marketplace wird ein Update angezeigt, man startet das Update. Das Update wird nicht heruntergeladen, sondern springt direkt zum Installieren. Nach ca. 2 Sekunden wird verschindet es aus der Downloadliste. Geht man zurück, wird immer noch ein Update im Marketplace angezeigt. Die einzige Möglichkeit das Update zu installieren ist, die App zu deinstallieren und wieder zu installieren.

Dieses Problem ist ein Bug vom Marketplace. Der Programmierer der App kann nichts daran ändern!

Es tritt wohl häufiger, wenn nicht sogar immer, bei Trial-Apps auf.

Wer mehr Infos will, der kann mal hier nachlesen:

Grund für / Reason for: XAP file is invalid

For german version see below.

Today my last update for my App Bahn Connector was rejected. Reason was: „XAP file is invalid“. I could understand why. I was about to send in my new version but decided to check this one first. So I started the „Application Deployment“ tool which is included in the Phone SDK. I thought that it had to work because everthing worked with Visual Studio but to my suprise the Status showed „XAP file is invalid“. I searched for 2 hours befor I figured out what the problem was.

As it turned out the XAP-file format doesn’t support all file names. 2 of 26 txt files I added to the XAP had names with the german characters „Ö“ and „Ü“. I exludes these files from the project and rebuild the project. And voila, no more errors.

I was really pissed that such a basic thing isn’t supported and that there is no info to this problem anywhere.

I hope I could help some of you.

(Feel free to point out any mistakes I made language wise)

——–

Heute wurde mein letztes Update für meine App Bahn Connector abgewiesen. Grund: „XAP file is invalid“. Ich konnte nicht verstehen warum und wollte beinahe schon meine nächste Version hochladen, mit dem Glauben, dass diese Version klappen sollte, da alles mit Visual Studio auch funktioniert. Aber im letzten Schritt habe ich mir überlegt doch nochmal mit dem „Application Deployment“ tool, welches im Phone SDK enthalten ist, zu checken, ob alles funktionert und beim Status kam „XAP file is invalid“. Ich habe dann 2 Stunden dran gesessen, bis ich das Problem gefunden habe.

So wie es aussieht unterstützt das XAP-Dateiformat keine Ö,Ä und Ü. Nachdem ich 2 txt Dateien die ein Ö und Ü enthielten aus dem Projekt ausgeschlossen hatte, gab es keine Probleme mehr.

Ich hoffe ich habe ein paar von euch ewiges suche nach einer Lösung ersparrt.

 

dehodev