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: 

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. problem in playing mp4 video file

Hi All

I am trying to play a mp4 video file from remote url on my device.
(File size = 5.7 MB)

I am getting following error:
Command PLAYER_INIT completed with an error or info

Could anyone please let me know how to resolve this error?


2. Custom Compound Control

I'm trying to learn how to build my own custom compound control
component by reading:

I created my own view class and inherited it from RelativeLayout like

public class MyCompoundView extends RelativeLayout

I also wrote a constructor like so:

// Constructor version for instantiation from XML layout file.

public MyCompoundView(Context context, AttributeSet attrs)
        super(context, attrs);

and created an main.xml file that uses it:


Everything works fine.  What I can't figure out is how to get access
to the attributes in the xml to read the hello string so I can display
it.  I can't find an example of someone doing this that works for

The LabelView from the ApiDemos does something that looks good:

But when I try to modify this for my program as shown here:

text_ = new TextView(context);

TypedArray a = context.obtainStyledAttributes(attrs,

CharSequence s = a.getString(R.styleable.MyCompoundView_text);
if (s != null) {

I get the compiler error:  R.styleable cannot be resolved.

So I tried to use this instead:

// see:

LayoutInflater inflater = (LayoutInflater) context.getSystemService
inflater.inflate(R.layout.my_layout, this);

I get the compiler error:  R.layout cannot be resolved.

I'd like to be able to share my composite control with others, so I'd
want it to be flexible in that I can define my own attributes.  Also,
it should allow users to declare the control in XML and not just
instantiate it in Java code.

Any hints on how to do this?




3. Creating mutable Bitmap directly from a File - performance?

4. Chess Walk

5. Googlewave-Bos Wilber

6. does XT9 keyboard support in Android 2.0?

7. Managing receiving/making calls with MediaPlayer