Xamarin BluetoothAdapter StartDiscovery is not working properlyBluetooth Unknow Connection Error AndroidDoes anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?Android 4.3 Bluetooth Low Energy unstableRunning Bluetooth as background service not working properlyAndroid Awareness of remote Bluetoth-Request with disabled BluetoothAdapter(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1)Android Bluetooth cannot be turn on, after it has been turned off while BluetoothServerSocket.accept() is workingBluetooth is still active on Samsung S4 after switching it offBluetoothDevice.ACTION_ACL_DISCONNECTED never called despite the bluetoothsocket is closedSend string via bluetooth by connecting in one activity and sending from another activity

Can a new chain significantly improve the riding experience? If yes - what else can?

How seriously should I take a CBP interview where I was told I have a red flag and could only stay for 30 days?

Is there a star over my head?

How to work with a technician hired with a grant who argues everything

Can I use ratchet straps to lift a dolly into a truck bed?

Why is the T-1000 humanoid?

Can I toggle Do Not Disturb on/off on my Mac as easily as I can on my iPhone?

Will replacing a fake visa with a different fake visa cause me problems when applying for a legal study permit?

Tall red piece with coffee cup, phone and gas picture?

Exact Brexit date and consequences

How can I fix a framing mistake so I can drywall?

How do I politely hint customers to leave my store, without pretending to need leave store myself?

„nichts wie raus hier“ - explanation based on the literal meaning?

My employer wants me to do a work of 6 months in just 2 months

extract lines from bottom until regex match

Why did it become so much more expensive to start a university?

Have there been any countries that voted themselves out of existence?

Renewed US passport, did not receive expired US passport

Are there any instances of members of different Hogwarts houses coupling up and marrying each other?

What is Japanese Language Stack Exchange called in Japanese?

Why was "leaping into the river" a valid trial outcome to prove one's innocence?

How can I protect myself in case of a human attack like the murders of the hikers Jespersen and Ueland in Morocco?

Using the pipe operator ("|") when executing system commands

Honourable versus Right Honourable Members



Xamarin BluetoothAdapter StartDiscovery is not working properly


Bluetooth Unknow Connection Error AndroidDoes anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?Android 4.3 Bluetooth Low Energy unstableRunning Bluetooth as background service not working properlyAndroid Awareness of remote Bluetoth-Request with disabled BluetoothAdapter(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1)Android Bluetooth cannot be turn on, after it has been turned off while BluetoothServerSocket.accept() is workingBluetooth is still active on Samsung S4 after switching it offBluetoothDevice.ACTION_ACL_DISCONNECTED never called despite the bluetoothsocket is closedSend string via bluetooth by connecting in one activity and sending from another activity






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a C# Xamarin Form Android application for Samsung Tablet and I am connecting the tablet with some other device by Bluetooth. When I change the device at run time by pressing the disconnect the existing device and search the new devices. In that case if I switch OFF the previously connected device and press the button search for the new Bluetooth device than the previous device name appear in the found list with the other valid Bluetooth device.



I have also tried by commented the BluetoothAdapter.DefaultAdapter.IsDiscovering device also.



How can I find the genuine active device ?



public bool Search()

if (BluetoothAdapter.DefaultAdapter.IsDiscovering)
BluetoothAdapter.DefaultAdapter.CancelDiscovery();

return BluetoothAdapter.DefaultAdapter.StartDiscovery();



It should return the active bluetooth device while search the new device instead the offline device with new one.










share|improve this question


























  • Can you provide your code? Did you achived that by broadcastreceiver developer.android.com/guide/topics/connectivity/… You also could change another device, then make a test, if you can get the same results?

    – Leon Lu - MSFT
    Mar 27 at 9:00


















0















I have a C# Xamarin Form Android application for Samsung Tablet and I am connecting the tablet with some other device by Bluetooth. When I change the device at run time by pressing the disconnect the existing device and search the new devices. In that case if I switch OFF the previously connected device and press the button search for the new Bluetooth device than the previous device name appear in the found list with the other valid Bluetooth device.



I have also tried by commented the BluetoothAdapter.DefaultAdapter.IsDiscovering device also.



How can I find the genuine active device ?



public bool Search()

if (BluetoothAdapter.DefaultAdapter.IsDiscovering)
BluetoothAdapter.DefaultAdapter.CancelDiscovery();

return BluetoothAdapter.DefaultAdapter.StartDiscovery();



It should return the active bluetooth device while search the new device instead the offline device with new one.










share|improve this question


























  • Can you provide your code? Did you achived that by broadcastreceiver developer.android.com/guide/topics/connectivity/… You also could change another device, then make a test, if you can get the same results?

    – Leon Lu - MSFT
    Mar 27 at 9:00














0












0








0








I have a C# Xamarin Form Android application for Samsung Tablet and I am connecting the tablet with some other device by Bluetooth. When I change the device at run time by pressing the disconnect the existing device and search the new devices. In that case if I switch OFF the previously connected device and press the button search for the new Bluetooth device than the previous device name appear in the found list with the other valid Bluetooth device.



I have also tried by commented the BluetoothAdapter.DefaultAdapter.IsDiscovering device also.



How can I find the genuine active device ?



public bool Search()

if (BluetoothAdapter.DefaultAdapter.IsDiscovering)
BluetoothAdapter.DefaultAdapter.CancelDiscovery();

return BluetoothAdapter.DefaultAdapter.StartDiscovery();



It should return the active bluetooth device while search the new device instead the offline device with new one.










share|improve this question
















I have a C# Xamarin Form Android application for Samsung Tablet and I am connecting the tablet with some other device by Bluetooth. When I change the device at run time by pressing the disconnect the existing device and search the new devices. In that case if I switch OFF the previously connected device and press the button search for the new Bluetooth device than the previous device name appear in the found list with the other valid Bluetooth device.



I have also tried by commented the BluetoothAdapter.DefaultAdapter.IsDiscovering device also.



How can I find the genuine active device ?



public bool Search()

if (BluetoothAdapter.DefaultAdapter.IsDiscovering)
BluetoothAdapter.DefaultAdapter.CancelDiscovery();

return BluetoothAdapter.DefaultAdapter.StartDiscovery();



It should return the active bluetooth device while search the new device instead the offline device with new one.







c# android xamarin.forms bluetooth






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 9:02









halfer

15.3k7 gold badges63 silver badges128 bronze badges




15.3k7 gold badges63 silver badges128 bronze badges










asked Mar 26 at 11:56









sktskt

831 silver badge14 bronze badges




831 silver badge14 bronze badges















  • Can you provide your code? Did you achived that by broadcastreceiver developer.android.com/guide/topics/connectivity/… You also could change another device, then make a test, if you can get the same results?

    – Leon Lu - MSFT
    Mar 27 at 9:00


















  • Can you provide your code? Did you achived that by broadcastreceiver developer.android.com/guide/topics/connectivity/… You also could change another device, then make a test, if you can get the same results?

    – Leon Lu - MSFT
    Mar 27 at 9:00

















Can you provide your code? Did you achived that by broadcastreceiver developer.android.com/guide/topics/connectivity/… You also could change another device, then make a test, if you can get the same results?

– Leon Lu - MSFT
Mar 27 at 9:00






Can you provide your code? Did you achived that by broadcastreceiver developer.android.com/guide/topics/connectivity/… You also could change another device, then make a test, if you can get the same results?

– Leon Lu - MSFT
Mar 27 at 9:00













0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356573%2fxamarin-bluetoothadapter-startdiscovery-is-not-working-properly%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356573%2fxamarin-bluetoothadapter-startdiscovery-is-not-working-properly%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript