file system monitoring?

by MannyNS » Mon, 12 May 2008 23:48:00 GMT


Sponsored Links
 Is there a way to subscribe to (all) file system notifications from
Android? I know there is android.os.FileObserver, but unless one
instance is created and linked for every single folder on the phone,
it is useless.
Is there anything like SHChangeNotifyRegister? How did Android
creators fulfill the need for a feature of this kind?

Manny
--~--~---------~--~----~------------~-------~--~----~



file system monitoring?

by hackbod » Tue, 13 May 2008 07:02:57 GMT


 Sorry, there is no way to do this.  Monitoring all of the files on a
file system is expensive, so it is something we made sure we didn't
need to do.



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


Sponsored Links


file system monitoring?

by MannyNS » Tue, 13 May 2008 17:39:21 GMT


 Thanks for the reply from where the action is. You should really
consider adding a feature of that kind.
For instance, Windows Mobile team may also find it heavy, but they do
have a neat functionality with SHChangeNotifyRegister(). By not
providing an optimized mechanisms to do this, you will not suppress
the need to have it, and developers will find even more expensive
mechanism to get that eventually. Same rule applies to browsing the
folder "/data".

p.s. that red dot on the emulator... some BSG fans out there?




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



Other Threads

1. using ident to react when an sms is sent

Hi there

I'm planning to write some code that allows to send sms over a http service. 
So basically I need to achieve that the current messaging application calls a 
function from my class of my appliction. Then I need to get the text and 
establish a connection and so on. Furthermore I need to be able to exit my app 
if there is no internet connection - in such a case the sms should be sent 
using the normal method.

For me developing on android is totally new. (I'm now at ex2 of the notepad 
tutorial, and read the basic docs).

So how can I do what I would like to? Maybe someone can help me with the 
basics: Lets say that a popUp is generated when an sms is sent. Will I use an 
Indent on the method of sendTextMessage ?

Thanks a lot for your help.

Cyrill Helg


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

2. Having trouble getting ListView to show selected item as highlighted

Hello,

I've seen a few post on this but have never seen or understood the
solution.  I have an application that is showing a list of items from
a database.  I extended the CursorAdapter and added an icon in front
of the item to easily show type.

When I navigate the items using the track-pad, it shows the selected
item; however, when I click the item, the selection goes away.  It's
still there and when I use the track-pad again, it seems to be getting
the focus back and then I can scroll.

What I want to happen is for the list item to appear highlighted when
I click it just like when I navigate to it with the trackpad.

Any suggestions?

Here are my onClick and onItemSelected:

    @Override
    protected void onListItemClick(ListView l, View v, int position,
long id) {
        super.onListItemClick(l, v, position, id);
        setSelection(position);
        movieId = id;
    }
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mDbHelper = new MoviesDbAdapter(this);
        mDbHelper.open();
        Button filterButton = (Button)findViewById
(R.id.filter_button);
        filterButton.setOnClickListener( new View.OnClickListener() {
                public void onClick(View v){
                        EditText filter = 
(EditText)findViewById(R.id.filter_text);
                        filterExpr = filter.getText().toString();
                        fillData();
                }
        });
        getListView().setAddStatesFromChildren(false);
        getListView().setItemsCanFocus(true);
        getListView().setOnItemSelectedListener( new
OnItemSelectedListener() {
                public void onItemSelected(AdapterView<?> parent, View v, int
possition, long id) {
                        v.setSelected(true);
                        movieId = id;
                }
                public void onNothingSelected(AdapterView<?> parent) {
                        parent.setSelection(-1);
                }
        });
        fillData();
    }

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

3. Need Help for installing Eclipse plugin

4. ActivityInstrumentationTestCase issue - can't send key

5. fix for QuickDraw error os x ?

6. dlopen error "Cannot find library" when trying to load a c library

7. Testing a Android Activity..