[android-developers] Order of intents delivery

2014-05-15 Thread Durgadoss Ramanathan
Hi, I have a Service from which I send an intent twice like below. I have only one receiver that receives and processes this intent. mContext.sendBroadcast(intent); ...Do some Ops... ...pack different data into intent... mContext.sendBroadcast(intent); Does android guarantee that the first

[android-developers] Name of Binder_1 thread

2013-05-02 Thread Durgadoss Ramanathan
Hi, I am debugging a service under system_server process. Under /proc/pidof system_server/task/, I see some services like PowerManagerService, that are named as such, but there are few services which are not named and show up as 'Binder_1' 'Binder_4' etc.. Is there a way to figure out the names

[android-developers] Camera Intents

2011-07-26 Thread Durgadoss Ramanathan
Hi, Who is the receiver for this Intent inside the Camera.java ? Intent: com.android.camera.NEW_PICTURE inside method storeImage(...) Also, the sendBroadcast is called without a 'context.' In this case, what's the difference between calling just sendBroadcast and context.sendBroadcast ? --

[android-developers] XML vs SQLite

2011-07-25 Thread Durgadoss Ramanathan
Hi, I am writing a Service that has to read information from a config file during it's init. I am storing these information in a text file, and manually Parsing it inside my Service code. For Scalability, I want to move it to a XML file. I am thinking of using SAX to parse XML and store data in

Re: [android-developers] Re: XML vs SQLite

2011-07-25 Thread Durgadoss Ramanathan
Yes..It is by nature hierarchical.. On Mon, Jul 25, 2011 at 7:15 PM, lbendlin l...@bendlin.us wrote: You are not providing enough information. Is your data by nature hierarchical (XML) or flat (database) ? -- You received this message because you are subscribed to the Google Groups

[android-developers] re:CameraButtonIntentReceiver.java

2011-07-21 Thread Durgadoss Ramanathan
Hi, In My GingerBread source, under packages/apps/Camera, I find a CameraButtonIntentReceiver.java. Seems like it is supposed to capture the Intent for Camera Button and start the Camera Activity.. I added some Log.i/v messages inside the onReceive method and tested. When I touch the Camera App

Re: [android-developers] Re: uevent handling in user-space

2011-07-19 Thread Durgadoss Ramanathan
an uevent message? Is there any data structure for it? If I want to do it in Java, then can you give me an example of it? Thanks/ Hvr On Jul 18, 4:57 pm, Durgadoss Ramanathan r.durgad...@gmail.com wrote: Hi, Android has a UEvent Listener in the Application Framework. This receives

Re: [android-developers] Background service with events

2011-07-19 Thread Durgadoss Ramanathan
Hi, On Tue, Jul 19, 2011 at 4:59 AM, shahbhat shahb...@gmail.com wrote: I am moving an iPhone app to Android, where the iPhone app displayed updated stock quote values continuously. I used background timers that polled stock quote values and published them as events to all active

Re: [android-developers] uevent handling in user-space

2011-07-18 Thread Durgadoss Ramanathan
Hi, Android has a UEvent Listener in the Application Framework. This receives the UEvent from the Kernel. For BatteryStatus: You may want to look at frameworks/base/services/java/com/android/server/BatteryService.java Similarly, also at BatteryServer.cpp(corresponding JNI..) Basically the

[android-developers] Intents for Camera

2011-07-15 Thread Durgadoss Ramanathan
Hi, I am writing a simple App that needs to be notified when the Camera App Starts. Also, I want my App to be notified when we 'touch' the 'capture' button in the camera. Are there any Intents available for these ? Or there is some other method to notify ? -- Regards Durgadoss -- You

[android-developers] Alert Dialogs in Services

2011-07-14 Thread Durgadoss Ramanathan
Hi All, During the loading of Android Services, in some service, I want the user to choose something. Basically, a dialog box showing, Do you want to boot further ? with Buttons showing Yes No I will do something based on the reply: Yes or No. Is this possible, using Alert Dialogs ? Or Can I

Re: [android-developers] How to create Dynamic Arrays?

2011-07-13 Thread Durgadoss Ramanathan
You can try ArrayList data structure... On Tue, Jul 12, 2011 at 7:55 PM, Shruthi Varma shruthi.tlis...@gmail.comwrote: Hi All, I have to parse the xml pasted below and store all the images under preview_images tag under magazine tag in one Array. If there was only one magazine tag, It