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. What is the best way to handle Images?

Hi All,

I wrote a application that load images from facebook and i show in
lmageview, using this below code.

                                InputStream object = myDataFromServer;
                                Bitmap 
bmpImage=BitmapFactory.decodeStream(object);
                                imageView.setImageBitmap(bmpImage);

it works fine for me. But the trouble is when i run my application for
a longer time, it gives me error,
OutofMemoryError, and becuse of this error my application crash.

      so want to know is there any better way to handling
images.please help me.

Thanks,
Sohan Badaya

-- 

2. ActivtyGroup - problem returning to the root activity.

Hi All,

Probably not known to me but i do not find this happening with
Android-ActivityGroup

I have a service-bind() in the root activity of a activitygroup and in the
same frame two redirector buttons for two activities.

*public class RemoteServiceBinding extends ActivityGroup {*
*
             localActMngr = getLocalActivityManager();

 setContentView(R.layout.remote_service_binding);
             Button activity1 = (Button)findViewById(R.id.activity1);
             Button activity2 = (Button)findViewById(R.id.activity2);
                           activity1.setOnClickListener(activity1Listener);
                           activity2.setOnClickListener(activity2Listener);

                           initService();
*
*}*

on click of each i pass the current service-passed data and the same gets
updated there.

My problem starts with the back-key pressed on each of the invoked
activities.
Whenever i press the back button i do not come to the root activity which
started the activity.To top it the service also shuts down.


*public boolean onKeyDown(int keyCode, KeyEvent event) {

                                Activity current =
localActMngr
().getCurrentActivity();
                                     if (current != null) {

                                        Intent i = new
Intent(getApplicationContext(),RemoteServiceBinding.class);

localActMngr.startActivity("", i);
                                        return current.onKeyDown(keyCode,
event);*/
                                       }*
*return false;
}*


If somebody has an idea,please help.






-- 

Regards,

-- 
    ("`-''-/").___..--''"`-._
     `6_ 6  )   `-.  (     ).`-.__.`)
     (_Y_.)'  ._   )  `._ `. ``-..-'
   _..`--'_..-_/  /--'_.' ,'
  (il),-''  (li),'  ((!.-'

KKK
9241482044

-- 

3. KoinKuLator v0.

4. people.NUMBER is deprecated....what else i can use in place of it

5. Tanya desire user

6. add <uses-permission> to application via Java code

7. Tolong tes Alkitab 1.0-dev7