[android-developers] Dialog options from a library project?
I've noticed that when developing an SDK library project, there is a desire to have a check as to whether the bluetooth functionality is turned on for the device before proceeding.
However, as a library project, I am restricted to the absence of my own activity. I had hoped to call the following with the context of the application passed into the library:
new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
This was with the hope that it would wait for a reply before finishing. Since the library is an SDK meant to communicate with a device, it isn't its own activity to override an onActivityWithResult( ) call that I could use to trigger a continuation on the code. How is typical situation such as these with a desire to have a blocking UI component handled for an Android Library? I haven't found any decent conclusions thus far.
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home