[android-developers] Export/Import SharedPreferences

2010-03-25 Thread Csenteri Barna
Hi I would need to export the shared preferences and load it on another device. Is this possible in a direct way somehow? (without exporting the keys one by one and writing to a custom file) Another question is that there is any XML parser which has the same functionality like SharedPreferences

[android-developers] Re: How to find out when any activity starts or get focus

2010-03-18 Thread Csenteri Barna
I understand this scenarios Bob and I agree with You. But what you say is DOABLE right now very-very easy with a background service which is polling the current task (current activity) periodically using the ActivityManager.getCurrentTasks function (ofc GET_TASKS right is needed for it). This

Re: [android-developers] Re: How do i check app close gracefully during shutdown scenario

2010-03-18 Thread Csenteri Barna
Did You tried this? http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN I also wonder is there shutdown event in 2.0 maybe? I could save some service data to file, before shutdown. On Mar 13, 9:20 am, James Wang jameswangc...@gmail.com wrote: I think Not

[android-developers] How to find out when any activity starts or get focus

2010-03-17 Thread Csenteri Barna
Hi I would need to know when one activity starts or get's focus. I need this notification for any activity regardless of his type, name or whatever - not searching for one specific activity. Checked the ActivityMonitor and the Intent and I haven't found a generic intent for this purpose. Or I

Re: [android-developers] Relative Layout problem :(

2010-03-17 Thread Csenteri Barna
Did You tried another layout in the middle in which you put your textfields centered? B. hi, I've got a RelativeLayout with a small Image aligned to the left (like a face), 2 texts above each others in the middle and an Image aligned to the right (like an expander symbol). Now I've got the

Re: [android-developers] How to find out when any activity starts or get focus

2010-03-17 Thread Csenteri Barna
...@commonsware.com wrote: Csenteri Barna wrote: Hi I would need to know when one activity starts or get's focus. I need this notification for any activity regardless of his type, name or whatever - not searching for one specific activity. Checked the ActivityMonitor

[android-developers] Transparent text over desktop

2010-03-15 Thread Csenteri Barna
Hi Is there any example or sample how the transparent text over desktop is achieved by the devtools/Development settings/show running processes? I would like to write some text over the desktop like that one from a service if possible. The aplication will be for development purposes like the

[android-developers] View.bringToFront doesn't works?

2010-02-19 Thread Csenteri Barna
Hi Does anyone knows why View.bringToFront doesn't works? Or it doesn't only for SurfaceViews? Also tried ViewGroup.bringChildToFront(view) - the result was the same - nothing. regards, Brown -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] read text from file

2010-02-17 Thread Csenteri Barna
Did You tried to call readLine more times till You get end of file exception? As far as I remember from my Java experience readLine is intended to read only 1 line - check the help to be sure. B. What do I do to be able to read all lines from a file? With this code I have below I can only get

Re: [android-developers] Re: read text from file

2010-02-17 Thread Csenteri Barna
Check Mark's example - it's a good one. Hi Barna, how do I call readLine more times in a nice way? André On Feb 17, 11:21 pm, Csenteri Barna br...@mini-box.com wrote: Did You tried to call readLine more times till You get end of file exception? As far as I remember from my Java experience

[android-developers] Appwidget with fast updating needed ...

2010-02-15 Thread Csenteri Barna
Hi I would need a fast updating (minimum 5 frames/second) appwidget which can be on the desktop all the time (like the cpu usage or other things - mostly measurement gauges) ... The appwidget is not a must but I've found it easy to configure for any customer so the management is easy and I need

[android-developers] adb Atmel

2010-01-11 Thread Csenteri Barna
Hi Anyone managed to use any ATMEL development board as a debbugging target for Android? I used the latest release of the USB driver with one of the Atmel boards running Android - the device appears fine with the default USB drivers downloaded from Google (in the device manager appears as