2013-02-11 20 views

回答

2

這裏是你如何可以啓動一個安裝的Windows Phone應用程序或重定向到商店,如果它沒有安裝

這個library on Codeplex可以幫助在Windows Phone上創建這樣的NDEF記錄。

+0

感謝Olivier,這將在WindowsPhone上完成,因爲WindowsPhone的哪個版本可用?其他人對BB有所瞭解嗎? – Tx33 2013-02-12 10:26:17

+0

這是可用的Windows Phone 8 – 2013-02-12 22:07:30

+0

感謝奧利維爾,真正有用的信息:) – Tx33 2013-02-14 14:46:37

-1

碼接收來自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(); 
} 
相關問題