how to receive general IO events ?

by daemonserj » Sun, 13 Sep 2009 05:02:20 GMT


Sponsored Links
 Hello All!
Is it possible to be notified about general IO in system ?
For example I want to receive some file reading events and blinking
with some indicator...

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



how to receive general IO events ?

by Jack Ha » Sun, 13 Sep 2009 05:32:48 GMT


 Maybe FileObserver is what you are looking for:

     http://developer.android.com/reference/android/os/FileObserver.html 

--
Jack Ha
Open Source Development Center
T  Mobile stick together
The coverage you need at the price you want

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.



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


Sponsored Links


Other Threads

1. Emulator screen size is wrong

Hello,

I created an emulator using API level 5 and skin WQVGA432.  I would
expect the display size would be 240x432 but I get 240x360 using the
following code.

Display display = getWindowManager().getDefaultDisplay();

int     w = display.getWidth();
int     h = display.getHeight();

Also I believe I have the auto-scaling off using the following.

<supports-screens
android:resizeable="false"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"
android:smallScreens="false"></supports-screens>

-- 

2. AutoCompleteTextView static data. Slow performance.

Hi, all.

I am facing the following problem: I have a big list of street
names(~2000 entries), which is stored as a variable. I have an
AutoCompleteTextView which should complete the names. The process
takes really long time(approx. 2 - 3 seconds) to complete the
suggestion. Is there any way to speed this up? I am pasting my code,
if this is necessary:

AutoCompleteTextView fromInput = (AutoCompleteTextView)
findViewById(R.id.NewOrder_FromInput);
ArrayAdapter<String> streetsAutocompleteAdapter = new
ArrayAdapter<String>(
this, R.layout.autocomplete, getStreetsData());
fromInput.setThreshold(3);
fromInput.setAdapter(streetsAutocompleteAdapter);

The getStreetsData() method simply returns the static list of the
names.

Thanks.

-- 

3. ACTION_VIEW sefaults is no application installed for mimetype

4. ACTION_VIEW sefaults is no application installed for mimetype

5. Android Emulator and LTE technology :)

6. Google IO 2010 videos

7. obtain the SDK level