My first app.

Nokia Boy

New member
Sep 22, 2013
568
0
0
Visit site
This is my first app,Nokia RSS Feed,this app will directly show you most news about nokia lumias!!!
I still wait for my Student Report so i can post in the windows phone store as developer,so i cant share it,for now,here are some pics:
EDIT: i need help with something,if any dev is willing to help me,PM me please...
wpss201401130003.png
wpss201401130004.png
 
Last edited:

Nokia Boy

New member
Sep 22, 2013
568
0
0
Visit site
Well in App Studio to enable ads i need to downloadi ts source code and find the xaml and add my unitId and application id-done,where do i have to insert the source code so my app can actually show ads,i want to do this just to learn(and maybe in future published apps :p )
 

hacer619

New member
Apr 25, 2012
350
0
0
Visit site
The source code downloaded from app studio has the ads code.
You will find it as a comment (green text). All you need is to uncomment the code and insert your pubcenter ad ID. And as hopmedic said you'll do it in mainpage.xaml (or it could have different name e.g. Navigate.xaml) depending on what appstudio saves it.
If you find it difficult and don't mind sharing bits of your code, we would be happy to help you. :D
 

Nokia Boy

New member
Sep 22, 2013
568
0
0
Visit site
Alright i rebuilded code but the app when i start it,it force close after 1 second....
Here is my code:
Code:
<!--PLACE BELOW YOUR AdUnitId AND ApplicationId TO ENABLE ADS IN YOUR APPLICATION-->
        <!--Image480_80 and test_client ARE DEMO VALUES-->
        !--<ads:AdControl Grid.Row="1" Height="80" Width="480"
                      IsAutoCollapseEnabled="True"
                      IsAutoRefreshEnabled="True"
                      AdUnitId="10635296"
                      ApplicationId="6ba5e6c2-6076-434a-8e13-d7f438974ec9"/>-->
 

hacer619

New member
Apr 25, 2012
350
0
0
Visit site
The code you posted is commented
This is how the ads code should be:
Code:
         <ads:AdControl Grid.Row="1" Height="80" Width="480"
                      IsAutoCollapseEnabled="True"
                      IsAutoRefreshEnabled="True"
                      AdUnitId="XXXXXXX"
                      ApplicationId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx"/>

replace the xs with your id
1 more thing that I remembered
to make the ads actually work you need to enable medialib_audio, photo & playback capabilities. You will find this in WMappmanifest.xaml under capabilities tab. :D

after that build the solution and deploy the xap from the bin/release-or-debug folder to your phone

Hope everything works with you great
 

hacer619

New member
Apr 25, 2012
350
0
0
Visit site

hopmedic

Active member
Apr 27, 2011
5,231
0
36
Visit site
In WP7, Microsoft would add necessary permissions, but no longer. I'm not sure if there are more required than that for MS ads, because I use AdRotator, which requires more. The info that I put up came from Microsoft's documentation.
 

hacer619

New member
Apr 25, 2012
350
0
0
Visit site
That could be related to ram. try testing it on the emulator. try the 512MB and 720p. If it crashes on the 512mb then it is related to low ram and your app should be further optimized.
 

Members online

Forum statistics

Threads
322,910
Messages
2,242,883
Members
428,004
Latest member
hetb