How to mount the microSD disk programmatically?

by Dianne Hackborn » Fri, 06 Mar 2009 11:36:18 GMT


Sponsored Links
 It's not an application doing it, it's the system itself.  So sorry, there
is no API for it at this point.







> 



Other Threads

1. Make different instances of a widget behave different based on their appWidgetId

A solution (or rather a workaround) was found.
I am posting this for future reference:

It was simpler than I thought, but it didn't occur to me or my friend
with whom I am developing this widget, until he recently came up with
this simple solution.

It consists in having the different flags selected by the users in the
configuration activity appended as strings to the intent action.

That way, if you want some instances of your widget to behave by
outputting sound and others not, setup different action strings
accordingly.
(for example, "action_button1_sound" if the button should output
sound, and "action_button1_nosound" for the opposite behavior.

If you have more than one flag you can set in your configuration
activity, as it is in our case, you'll have to manifest all possible
combinations in your intent-filters. You don't have to parse the
intent action string, though, as that is only needed so the intents do
not overwrite each other.
Therefore, you can now read the arguments passed through the extras
and make the buttons behave accordingly.

If someone finds a nicer solution I will be happy to hear about it!

thanks!



--~--~---------~--~----~------------~-------~--~----~

2. application with root permssion

Hello,

Is there anyway I can start a particular application with root permission.
How does the zygote launch an application and how is the permission set for
an application ?

-- 
with regards vishal

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Maps API Add-Ons Device Support?

4. Webview with progress and url overriding

5. Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKS

6. apikey for MapView

7. Question about LocationServices issue (3453): has this been solved in Donut (1.6)?