當應用程序未安裝時,是否有任何方式可以通過NFC標籤啓動BlackBerry或Windows Phone市場?如果未安裝應用程序,則從NFC標籤啓動BlackBerry和Windows Phone市場
我的意思是,就像Android平臺的AAR一樣,如果標籤註定要運行的應用程序未安裝,那麼會啓動Google Play商店。
謝謝。
當應用程序未安裝時,是否有任何方式可以通過NFC標籤啓動BlackBerry或Windows Phone市場?如果未安裝應用程序,則從NFC標籤啓動BlackBerry和Windows Phone市場
我的意思是,就像Android平臺的AAR一樣,如果標籤註定要運行的應用程序未安裝,那麼會啓動Google Play商店。
謝謝。
這裏是你如何可以啓動一個安裝的Windows Phone應用程序或重定向到商店,如果它沒有安裝:
82a23635-5bd9-df11-a844-00237de2db9e
)。這個library on Codeplex可以幫助在Windows Phone上創建這樣的NDEF記錄。
碼接收來自NFC標籤的消息
ProximityDevice device = ProximityDevice.GetDefault();
// Make sure NFC is supported
if (device!= null)
{
long Id = device.SubscribeForMessage ("Windows.SampleMessageType", messageReceived);
Debug.WriteLine("Published Message. ID is {0}", Id);
// Store the unique message Id so that it
// can be used to stop subscribing for this message type
}
private void messageReceived(ProximityDevice sender, ProximityMessage message)
{
Debug.WriteLine("Received from {0}:'{1}'", sender.DeviceId, message.DataAsString);
openMarketPlace(message.DataAsString);
}
如何讓應用程序ID來打開市場的應用頁面
private void openMarketPlace(string appID){
MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentIdentifier = appID;
marketplaceDetailTask.Show();
}
感謝Olivier,這將在WindowsPhone上完成,因爲WindowsPhone的哪個版本可用?其他人對BB有所瞭解嗎? – Tx33 2013-02-12 10:26:17
這是可用的Windows Phone 8 – 2013-02-12 22:07:30
感謝奧利維爾,真正有用的信息:) – Tx33 2013-02-14 14:46:37