Back to home screen on windows 7 phone - windows-phone-7

My windows phone app checks for network connection when starting and presents the user with a message box if there is no connection. I want the user to go to home screen when the 'OK' button in the message box is clicked - any ideas?

There is no way your application can do that. You could exit the application by triggering an exception that will be unhandled, but that will count against the app crash index and might cause problems during AppHub Marketplace ingestion.

Related

Windows Phone 7 Emulator Not able to connect to Windows Live ID

I'm trying to connect to Windows Live ID using the Live SDK from this site: http://msdn.microsoft.com/en-us/library/live/hh243641.aspx
When I run this code in my emulator, I get the Live SignIn Button. When I click on it, it tries to connect to Windows Live, but always ends up with
"We're unable to complete your request
Windows Live ID is experiencing technical difficulties. Please try again later."
And this happens all the time - does it need some permission or sth like that?
Ok, this happened because I gave a wrong ClientId in the XAML code for the signIn Button.
If you use a Sign In Button, you have to provide the ClientId property along with the ID you got.

Windows Phone 7 push notification when the app is not running

I am trying to implement push notifications in windows phone 7.5
I bind the channelUri in App.xaml when the application starts up.
I can then switch my app to background and receive toast notifications based on the Uri.
But this requires me to first go the app and then make it to background.
Can I receive the toast without the app running? That is when the channelUri is not bound.
Is this a default behaviour in Windows phone 7 or whether I am missing a point here?
If this is the behaviour, how can I send some form of notification/ information to the phone when the app is not running?
I did see this Windows Phone 7.5 - Push Notifications when app is tombstoned.
Update:
I know the Channel is active up to 30 days, is it the same when I use only emulator?
App should be associated with a channel so as to receive notification and even when app is not running, if the notification channel is active, then the application will receive the toast
I think you are missing the point. In order to receive toast notifications you don't have to have the app running in the background. Toasts (and Tile notifications) are meant for when the app is not running at all. So, start the app to get a push-uri and then send that to the service. In theory you won't need one again after 30 days. When it comes to the emulator it will be available as long as the emulator is running. Once you shutdown/close the emulator, the push-uri is gone and you would need to re-request one. (Generally speaking, nothing is saved on the emulator and so closing and opening the emulator is like getting a new device everytime.)
Hopefully this helps

Windows Phone Application Deployment error 0x89731812

When I try to deploy my XAP to the Windows Phone, I get the "error 0x89731812" message.
Your device has a locked screen. Unfortunately, this is not documented anywhere, but there is a discussion with some hints on page 3.
Turn on your phone (if it isn't already)
Slide open
Type your password to unlock
Retry the deployment after unlocking your screen.
EDIT: My bad (well, that of my search engine). They are documented here. Thanks keyboardP!
As I Stumbled upon this old thread I might have found a solution for this Error code.
I've had the same message as I found out that my device wasn't recognised properly in device manager.
Did some research and saw that the driver wasn't picking the right USB-port as it was registered to one of the other usb ports.
After inserting the Phone to the first USB port where it was registered the Initial first time everything went ok!
If your phone charge is very low, it won't deploy the app too.
To deploy you must:
1.Connect your wp7 phone
2.Open Zune
3.Open the deployer
4.unlock your phone (As said before)
5.Deploy
It requires an unlocked phone (without restrictions) or an Interop Unlocked Phone, and the phone mustn't have low charge.

I cannot deploy my app on my phone

I've started yesterday afternoon studying WP7, so be patient.
I've just created my first test app, registered as developer on AppHub, connected my phone with Zune, registered my phone in my AppHub profile (I can see it in my devices section) and compiled my app.
When I try to transfer my app into phone (using Application Deployment Tool as described here) I get an error that can be traslated as
Unable to connect to device because it's locked by pin
But my device has not any pin (or I don't know to have one) and it doesn't show anything on screen.
What could/should I do?
UPDATE:
Zune is running: if I try I get the error
I close Zune and run WPConnect: my device is connected but the error is the same
When deploying the app, make sure the phone screen is unlocked.
Additinal info: If you are developing from Desktop PC, sometimes connecting from front USB panel wont work.
You can't deploy while the screen lock is active, so try swiping up the lock screen before deploying.

WP7 Application Certification Requirements

I need some clarification on the following Windows Phone 7 Application Certification Requirements:
It is mentioned in the Application
Certification Requirements that "The
application must render the first
screen with in 5 seconds after
launch". What does that mean, either
we need to display the splash screen
with in 5 seconds or the home screen
?.
If the application finds that there
is no data connection currently on
the device, then can we show an
error message in a message box saying "There is no
data connection. Please check and
launch the app again" and once the user dismisses the message box by clicking on the OK button, can we close the
app?(this is what we do in our
iPhone applications). Or do we have
to show some old content, even if
there is no data connection ?
In the Application Certification
Requirements, it is mentioned that
the application must not exceed 90mb
of RAM usage. How do we check the
RAM usage by an application ?
Please clarify the items mentioned above. Thanks!.
1) I believe it's the first screen of your application, not the splash screen. This could include a loading screen (preferably with a ProgressBar) if you need to continue loading something. (Related post)
2) I've seen an app do exactly this. The user launches the app and if there's no connection, it displays a message and closes the app. As long as the user is aware that the app will shutdown because a data connection is required (but not found), it should be okay.
3) You can use DeviceStatus.ApplicationCurrentMemoryUsage to check the usage. (Example here)
If I remember correctly, for question 1, it is a first screen (post splashscreen) must appears 5 sec after launch, and the application must be responsive after 20 seconds.

Resources