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

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현