[android-developers] Android native process pauses after 10 to 15 seconds

2014-05-16 Thread Put_tiMe
[I'm not sure if I have to ask this question in the NDK forum] I have an Android Java app, and also a native app. The native app is launched from the Java app, like this: mProcess = Runtime.getRuntime().exec(cmdLaunch, null, new File(files_dir)); The native process actually runs in a loop,

[android-developers] Release notes and official info.

2013-05-16 Thread Put_tiMe
Where can I find some official information, like: POST 4.1, we get logcat logs only from our process andWRITE_APN_SETTINGS permission has been elevated to system level permission. I tried looking, but didn't find any. All I found were forum posts. -- -- You received this message

Re: [android-developers] Release notes and official info.

2013-05-16 Thread Put_tiMe
. On Thursday, May 16, 2013 12:59:42 PM UTC+5:30, Nikolay Elenkov wrote: On Thu, May 16, 2013 at 4:29 PM, Nikolay Elenkov nikolay...@gmail.com javascript: wrote: On Thu, May 16, 2013 at 4:22 PM, Put_tiMe put...@gmail.comjavascript: wrote: Where can I find some official information, like

[android-developers] How to launch a process as a different user?

2013-02-20 Thread Put_tiMe
I want to launch a native process, from Java code, using RuntimeInstance.exec. But the problem is, the new native process gets launched under user me. I want the new process to run as user shell. How do I do it? -- -- You received this message because you are subscribed to the Google

[android-developers] Re: Nexus 7, onCreate is getting called multiple times.

2012-09-18 Thread Put_tiMe
Aaargh, it was this option that was doing this: *Developer Options - Don't keep activities.* Switched it off, and it's all fine now. On Tuesday, September 18, 2012 10:52:12 AM UTC+5:30, Put_tiMe wrote: Nexus 7 - Jelly Bean I have an activity A. The usual callbacks are called: onCreate

[android-developers] Nexus 7, onCreate is getting called multiple times.

2012-09-17 Thread Put_tiMe
Nexus 7 - Jelly Bean I have an activity A. The usual callbacks are called: onCreate, onResume, etc. Now I launch B, from A. Again the usual callbacks are called, this time for B: onCreate, onResume, etc. I close B. Now A's onResume should get called. But onCreate is getting called. This

[android-developers] Re: Nexus 7, onCreate is getting called multiple times.

2012-09-17 Thread Put_tiMe
Actually when A calls B, A's onDestroy is immediately called. And I *don't* have the FLAG_ACTIVITY_NO_HISTORY set. On Tuesday, September 18, 2012 10:52:12 AM UTC+5:30, Put_tiMe wrote: Nexus 7 - Jelly Bean I have an activity A. The usual callbacks are called: onCreate, onResume, etc

[android-developers] Activity stack question (another one, I'm afraid) SDK 8

2012-08-21 Thread Put_tiMe
I'm using Android SDK 2.2. Activity stack - A - B - C - D - E Now I press Home key. And I press the notification area to goto A again. Because of the stack issue, I make sure that I close B, C, D and E, using the static Instance. Now, the new activity stack:: A - B - C Now when I'm at C, E

[android-developers] Multiple e-mail attachments of arbitrary files.

2012-07-30 Thread Put_tiMe
Surprisingly, this topic seems to be still in it's infancy. There are very few posts, and those who have given it a shot have given up since it didn't work. I need to attach multiple files of different types in a single e-mail. File types could be image, audio, video, zip, doc, and so on. I

[android-developers] ListView and check box.

2012-07-25 Thread Put_tiMe
I'm using a list view with a custom adapter. And the row contains a check box. Without the check box, everything works fine. If I use a check box inside a list-view row, then I basically don't get a on-item-click callback. The other side effect is, the click or press visual feedback is also

[android-developers] Play Store kind of UI interface

2012-06-29 Thread Put_tiMe
(I'm using 2.2 SDK) Play store app has a UI in which you can scroll vertically to look for content in the current category. If you want another category, you can swipe left or right. There is also a smooth transition into the resulting category. Is this UI control/view already available in

[android-developers] How to unlock device programmatically and launch apps?

2012-06-28 Thread Put_tiMe
I want to run a few tests on the device. The device should *NOT* be connected through USB. i.e. no ADB. So basically my app/service should be stand alone. And this app is purely for internal purpose. So even a horrible hack that works consistently well is fine. Let's say I want this

Re: [android-developers] Fails to delete row from content://call_log/calls

2012-06-27 Thread Put_tiMe
, pushpa wrote: Did you observe the logcat? If you can show your log cat messages we can try. On Tue, Jun 5, 2012 at 1:43 PM, Put_tiMe putt...@gmail.com wrote: The ContentResolver.delete call fails, i.e. returns zero rows deleted, even though the row exists and the parameters passed

[android-developers] Problems with ListView scroll.

2012-06-26 Thread Put_tiMe
I have a ListView, and a custom adapter. I have setup listeners for click, and long-click. The problem:: I can scroll, but the moment I take my finger off the screen, it scrolls back to the top of the list view. How can I fix this problem? -- You received this message because you are

[android-developers] A very strange issue, while launching an activity.

2012-06-19 Thread Put_tiMe
I have two activities, A and B. By default, A shows up, and upon pressing a button, B is shown. What happens sometimes is that, in A, when I press the button to bring up B, the transition happens, I even see the B's title. But it immediately exits. I don't do any code changes. I just reinstall

[android-developers] Re: A very strange issue, while launching an activity.

2012-06-19 Thread Put_tiMe
=13 old=StatusBarIcon(pkg=com.android.systemui id=0x7f0200d4 level=0 visible=true num=0 ) icon=StatusBarIcon(pkg=com.android.systemui id=0x7f0200d2 level=0 visible=true num=0 ) On Tuesday, June 19, 2012 4:53:46 PM UTC+5:30, Put_tiMe wrote: I have two activities, A and B. By default, A shows

[android-developers] Re: A very strange issue, while launching an activity.

2012-06-19 Thread Put_tiMe
Both activities are declared in the manifest. I saw the post, but it does not give me any clues, except the 'requestFocus'. Is that the issue? The point is, if I reinstall the APK file, it works. On Tuesday, June 19, 2012 4:53:46 PM UTC+5:30, Put_tiMe wrote: I have two activities, A and B

[android-developers] Fails to delete row from content://call_log/calls

2012-06-05 Thread Put_tiMe
The ContentResolver.delete call fails, i.e. returns zero rows deleted, even though the row exists and the parameters passed are correct. Any idea how to debug/fix this? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Can I have a service run as a seperate process?

2012-05-29 Thread Put_tiMe
, then I want to show it as that, not the entire package. On Tuesday, May 29, 2012 11:39:08 AM UTC+5:30, Kristopher Micinski wrote: wait, why do you want to do this? kris On Tue, May 29, 2012 at 1:21 AM, Put_tiMe putt...@gmail.com wrote: I have a package, in which I have n activities

[android-developers] Re: Can I have a service run as a seperate process?

2012-05-29 Thread Put_tiMe
android:process=processName this in AndroidManifest.xml. this will helpful http://developer.android.com/guide/topics/manifest/application-element.html#proc Regards Imran Ali On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services

Re: [android-developers] Can I have a service run as a seperate process?

2012-05-29 Thread Put_tiMe
, Kristopher Micinski wrote: Along with TreKing's understandable response, splitting the app into two processes and then doing IPC between them is also going to be a real pain, and potentially pretty heavyweight. kris On Tue, May 29, 2012 at 2:35 AM, Put_tiMe putt...@gmail.com wrote

[android-developers] How often is the ActivityManager.getRunningTasks() list refreshed?

2012-05-28 Thread Put_tiMe
The reason I'm asking is that, sometimes if I'm in the Home screen, and I call 'getRunningTasks(1)', then I get reported that a different activity (other than home) is currently active. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Can I have a service run as a seperate process?

2012-05-28 Thread Put_tiMe
I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to the

Re: [android-developers] Which is better, one trigger receiver and multiple services -- or -- one trigger receiver per service.

2012-05-26 Thread Put_tiMe
are asking if you should have five separate services and simpler logic or slightly more complex in one. Unless sufficiently complex I would go with one service and see later if more are needed. On May 25, 2012 1:15 AM, Put_tiMe putt...@gmail.com wrote: I have a situation where in I need to have

[android-developers] Which is better, one trigger receiver and multiple services -- or -- one trigger receiver per service.

2012-05-24 Thread Put_tiMe
I have a situation where in I need to have 5 or more services running in the same package. Let's call it service A, B, C, D and E Which is a better way of doing this? Better in terms of memory and CPU usage (and hence battery usage and efficiency). 1. Have 1 main service running, apart from

[android-developers] Service not re-starting on time, on a Samsung Galaxy Note device.

2012-05-23 Thread Put_tiMe
I am running my service on a Galaxy Note device. When I switch off the screen, and after a while (2 mins) switch it on and go to :: Settings - Applications - Running Services:: then I see that there are lots of services that have the Restarting tag. For my service, it restarts after a very long

[android-developers] How to create an ongoing notification, without the icon in the top bar.

2012-05-23 Thread Put_tiMe
Can I create a notification only in the pull down bar? Basically I don't want an icon in the top bar. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] How to create an ongoing notification, without the icon in the top bar.

2012-05-23 Thread Put_tiMe
://stackoverflow.com/questions/2855110/android-no-icon-for-notification Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, May 23, 2012 at 8:00 AM, Put_tiMe putt...@gmail.com wrote: Can I create a notification only in the pull down bar? Basically I don't want

[android-developers] How to scroll the 'Gallery' widget through code?

2012-05-18 Thread Put_tiMe
I am trying to scroll a 'Gallery' widget programmatically. I actually scroll the gallery manually. Then when I do a 'getScrollX and Y', then it always returns me 0. It always returns me 'zero' no matter how much ever I have scrolled. How do I do this then? -- You received this message

[android-developers] Multiple rows in 'Gallery' widget.

2012-05-18 Thread Put_tiMe
Doesn't 'Gallery' widget support multiple rows? It just shows one row, no matter what ever I try. Basically I want 'GridView' widget with horizontal scrolling only. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Gallery widget selection.

2012-05-16 Thread Put_tiMe
I'm using a 'Gallery' widget. And I've registered for a item-click callback. And I'm getting the callback when I click on an item. But the problem is that I don't see any selection UI. How do I fix this? Thanks -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Gallery widget selection.

2012-05-16 Thread Put_tiMe
wrote: What are you using for your selector? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, May 16, 2012 at 10:25 AM, Put_tiMe putt...@gmail.com wrote: I'm using a 'Gallery' widget. And I've registered for a item-click callback. And I'm

Re: [android-developers] notification

2012-04-30 Thread Put_tiMe
But if I do use a 'remoteview' then my entry's background stands out from the other notifications. Is there anyway I can maintain the same system background? Can I set background=android:id?blah blah? On Sunday, March 27, 2011 2:28:30 AM UTC+5:30, Mark Murphy wrote: On Sat, Mar 26, 2011 at

Re: [android-developers] How to use the default radio button and check box drawable resource (image)

2012-04-30 Thread Put_tiMe
How do I mentioned this in the layout XML file? On Thursday, April 12, 2012 7:35:48 PM UTC+5:30, MagouyaWare wrote: Use android.R.drawable.btn_radio Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Apr 11, 2012 at 11:37 PM, Put_tiMe putt

Re: [android-developers] How to use the default radio button and check box drawable resource (image)

2012-04-30 Thread Put_tiMe
Got it: android:background=@android:drawable/ On Monday, April 30, 2012 4:39:26 PM UTC+5:30, Put_tiMe wrote: How do I mentioned this in the layout XML file? On Thursday, April 12, 2012 7:35:48 PM UTC+5:30, MagouyaWare wrote: Use android.R.drawable.btn_radio Thanks, Justin Anderson

[android-developers] values-v9 and styles.xml problem

2012-04-30 Thread Put_tiMe
This documentation here: http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView *Says:* Then, to apply the system's default colors for notifications on Android 2.3 and higher, use the following styles for res/values-v9/styles.xml: ?xml version=1.0

[android-developers] Getting system's color value from string resource.

2012-04-30 Thread Put_tiMe
I want to retrieve the system's color value from a resource string, like: getResources().getIdentifier(* android.R.style.TextAppearance_StatusBar_EventContent*, style, getPackageName()); How do I do this? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Getting system's color value from string resource.

2012-04-30 Thread Put_tiMe
No, I want to get the system's default text color used in the status bar notification. Is there anyway I can get this? On Tuesday, May 1, 2012 3:29:45 AM UTC+5:30, Jonathan S wrote: On Monday, April 30, 2012 11:58:13 AM UTC-4, Put_tiMe wrote: I want to retrieve the system's color value

[android-developers] Activity stack.

2012-04-21 Thread Put_tiMe
I have an activity that launches another activity, like let's say facebook's post to wall activity. Let's say facebook app was already running, and you were in what's on your mind screen. When my app launches the facebook's post to wall activity, and in that activity I press 'Back, then the

[android-developers] Options menu - icon + text

2012-04-19 Thread Put_tiMe
I am trying to add an options menu: *code: * onCreateOptionsMenu() { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.options_menu, menu); } *xml:* menu xmlns:android=http://schemas.android.com/apk/res/android; item android:id=@+id/A

[android-developers] Tab host and the settings-app activity.

2012-04-18 Thread Put_tiMe
I have a tab host and I host a settings app activity, like this:: Intent tabIntent = new Intent( android.provider.Settings.ACTION_APPLICATION_SETTINGS); tabHost.newTabSpec(blah, blah, blah, .setContent( tabIntent); The idea is the embed the activity inside my tab-view. This works

[android-developers] How to get the user choice from 'Intent.createChooser'

2012-04-17 Thread Put_tiMe
I call 'Intent.createChooser' to let the user choose the app that he wants to use to do the necessary action. Is it possible to get what the user chose, before the user chosen app starts up. -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Sub folders under 'layout'

2012-04-16 Thread Put_tiMe
://techdroid.kbeanie.com http://www.kbeanie.com* On Mon, Apr 16, 2012 at 9:44 AM, Put_tiMe putt...@gmail.com wrote: The number of XML's in my layout folder is growing and is becoming difficult to manage. So I want to create sub folders, under layout, to better manage this. Is there any way

[android-developers] Sub folders under 'layout'

2012-04-15 Thread Put_tiMe
The number of XML's in my layout folder is growing and is becoming difficult to manage. So I want to create sub folders, under layout, to better manage this. Is there any way the resource compiler can handle this? So instead of *R.layout.layout_a* I want to refer it as *

[android-developers] Directly accessing the e-mail app.

2012-04-12 Thread Put_tiMe
How do I directly choose the default e-mail app, without going through the chooser? I would also like to set some of the values through the intent, like: emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, recipients); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, blah);

[android-developers] Re: Directly accessing the e-mail app.

2012-04-12 Thread Put_tiMe
I want to do this on Android 2.2 or later. On Thursday, April 12, 2012 12:42:12 PM UTC+5:30, Put_tiMe wrote: How do I directly choose the default e-mail app, without going through the chooser? I would also like to set some of the values through the intent, like: emailIntent.putExtra

Re: [android-developers] Re: Directly accessing the e-mail app.

2012-04-12 Thread Put_tiMe
I'm looking at this: if *com.android.email* package exists, then I want to open the compose activity, and automatically fill up the fields, such as 'to', 'subject', etc... If the default mail package doesn't exist, then I don't mind showing the chooser. The reason I want to do this is: I know

[android-developers] How to use the default radio button and check box drawable resource (image)

2012-04-11 Thread Put_tiMe
In my layout, for some of the UI controls, I want to use the OS radio button resource. For example, I want an ImageView, but it draws the default radio button texture. How can I achieve this? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Relative layout : how to horizontally center align 2 children.

2012-04-09 Thread Put_tiMe
a horizontal-align flag set??? On Monday, April 9, 2012 9:33:52 AM UTC+5:30, jason zhu wrote: Both of them are set to android:layout_centerHorizontal=true 在 2012年4月9日 上午11:56,Put_tiMe putt...@gmail.com写道: In a relative layout, how do I center align two *child* elements. The two elements could

[android-developers] List view row background.

2012-04-09 Thread Put_tiMe
I want to add a background image for each row of a list-view control. I have written a custom adapter for the list view. What is the best way of doing it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] List view row background.

2012-04-09 Thread Put_tiMe
I also need to change the drawable when a listview item is selected. How can I achieve this? On Monday, April 9, 2012 2:19:39 PM UTC+5:30, bin yang wrote: Define common list item layout file. Using LayoutInflater to create view of Adpater. 在 2012年4月9日 下午4:30,Put_tiMe putt...@gmail.com写道

Re: [android-developers] List view row background.

2012-04-09 Thread Put_tiMe
, Put_tiMe wrote: I also need to change the drawable when a listview item is selected. How can I achieve this? On Monday, April 9, 2012 2:19:39 PM UTC+5:30, bin yang wrote: Define common list item layout file. Using LayoutInflater to create view of Adpater. 在 2012年4月9日 下午4:30,Put_tiMe putt

Re: [android-developers] List view row background.

2012-04-09 Thread Put_tiMe
I have another issue that I'm facing. I have registered for a callback on item click. Whenever I click on a row, it remains selected. I want to clear the selection. How do I do it? I tried various functions, but none of them worked. On Monday, April 9, 2012 4:01:43 PM UTC+5:30, Put_tiMe

[android-developers] Relative layout : how to horizontally center align 2 children.

2012-04-08 Thread Put_tiMe
In a relative layout, how do I center align two *child* elements. The two elements could be of different widths. They appear one below the other and are horizontally center aligned. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Difference between user-induced screen on and programmatically induced screen on.

2012-04-05 Thread Put_tiMe
and value is true. So, when you receive this intent and if it contains that flag key it means that it is sent from program else screen-on done by user manually. Hope it works ! Thanks Regards, Deepchand Singh +91-9868522870 On Apr 4, 12:06 pm, Put_tiMe putt...@gmail.com wrote: Sorry

Re: [android-developers] Difference between user-induced screen on and programmatically induced screen on.

2012-04-04 Thread Put_tiMe
If it's a code induced screen-on, I want to switch bluetooth off. If it's a user induced screen-on, I want to switch bluetooth on. On Wednesday, April 4, 2012 10:10:09 AM UTC+5:30, TreKing wrote: On Tue, Apr 3, 2012 at 4:21 AM, Put_tiMe putt...@gmail.com wrote: I want to handle this intent

Re: [android-developers] Difference between user-induced screen on and programmatically induced screen on.

2012-04-04 Thread Put_tiMe
Sorry, a slight correction: If it's a code induced screen-on, I want to switch bluetooth on/off (toggle). If it's a user induced screen-on, I want to switch bluetooth on. Code induced screen-on is initiated from Alarm-manager. On Wednesday, April 4, 2012 12:26:49 PM UTC+5:30, Put_tiMe

[android-developers] Re: ScrollView and programmatically scrolling

2012-04-04 Thread Put_tiMe
It's actually quite crazy. I had similar problems with scroll view. But from what you are saying, you are interested in scrolling the text-view. I would presume that the text-view has scroll-view bundled in it. If things are not working out, then try this (at least this is what I did):

[android-developers] Difference between user-induced screen on and programmatically induced screen on.

2012-04-03 Thread Put_tiMe
Screen-on can be done in two ways: 1. User pressing the power (or home button) 2. Through code: by using power manager - wake lock - with screen-on flag. Either ways, I get a 'Intent.ACTION_SCREEN_ON' intent. Is there anyway I can distinguish between the two intents? ** ** -- You

Re: [android-developers] Difference between user-induced screen on and programmatically induced screen on.

2012-04-03 Thread Put_tiMe
, depending on where it originated from. On Tuesday, April 3, 2012 2:02:57 PM UTC+5:30, TreKing wrote: On Tue, Apr 3, 2012 at 2:29 AM, Put_tiMe putt...@gmail.com wrote: Is there anyway I can distinguish between the two intents? If you explain why you need to distinguish, maybe you'll get

[android-developers] requestSync :: 'Authority' parameter

2012-04-02 Thread Put_tiMe
What does the 2nd paramter in the function ContentResolver.requestSync mean? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: requestSync :: 'Authority' parameter

2012-04-02 Thread Put_tiMe
Okay, I need to sync emails only. So what is the value to be passed? On Monday, April 2, 2012 2:30:57 PM UTC+5:30, Put_tiMe wrote: What does the 2nd paramter in the function ContentResolver.requestSync mean? -- You received this message because you are subscribed to the Google

[android-developers] PowerManager WakeLock is inconsistent.

2012-04-02 Thread Put_tiMe
On an AlarmManager intent, I am trying to switch on the device screen. And I am relying on the system to switch off the screen after some duration of no user activity. I use: PowerManager.XXX| PowerManager.ON_AFTER_RELEASE | PowerManager.ACQUIRE_CAUSES_WAKEUP flags. PowerManager.XXX is

Re: [android-developers] Wifi and phone sleep state

2012-04-02 Thread Put_tiMe
I tried a few things on an ICS device. When the phone is in sleep mode, I use an AlarmManager to wake up. During that alarm-manager handler, if I acquire a wifi-lock and a wakeup-lock. Still, if I enable/disable wifi programmatically, it doesn't work. But the moment I switch on the screen

[android-developers] Re: Sleep mode

2012-04-02 Thread Put_tiMe
Ok, to clear some confusion, does CPU off means that CPU is completely switched off, or is it run at a low clock rate? If CPU is completely off, then how does the AlarmManager even work, and how does the phone receive an incoming call or an SMS? I'm sure CPU will be required to run some

[android-developers] Re: Sleep mode

2012-04-02 Thread Put_tiMe
interrupt or something like that? i.e an interrupt that will be raised after some time??? I thought at least the alarm-manager will need the CPU running. On Tuesday, April 3, 2012 9:19:12 AM UTC+5:30, Put_tiMe wrote: Ok, to clear some confusion, does CPU off means that CPU is completely

[android-developers] Wake-lock instance.

2012-04-01 Thread Put_tiMe
The PowerManager.newWakeLock() will return a new instance of a wake lock every time. If I have an intent service or an alarm manager service, then I won't have an instance to store this wake lock. Whereas I want to work on one instance of the wake-lock object. How do I handle this

Re: [android-developers] Sleep mode

2012-03-31 Thread Put_tiMe
disabled/switched-off? On Saturday, March 31, 2012 7:36:06 AM UTC+5:30, Dianne Hackborn wrote: On Android sleep mode is the screen being off. What do you mean by sleep mode? On Thu, Mar 29, 2012 at 10:50 PM, Put_tiMe putt...@gmail.com wrote: How can I goto sleep mode on a device

[android-developers] Wifi and phone sleep state

2012-03-29 Thread Put_tiMe
I have a situation where in I use AlarmManager to wake up once in a few minutes, and switch on/off wifi. If I don't use the device for a while, then the wifi never connects to the preferred wifi network. Is there anything happening with the wifi if the phone is in a sleep state? And how

Re: [android-developers] Wifi and phone sleep state

2012-03-29 Thread Put_tiMe
my job is done (in about 40 seconds) I'll release the wifi lock. Does the above stategy look okay? On Thursday, March 29, 2012 6:59:56 PM UTC+5:30, Mark Murphy (a Commons Guy) wrote: On Thu, Mar 29, 2012 at 9:02 AM, Put_tiMe putt...@gmail.com wrote: I have a situation where in I use

[android-developers] Wifi lock question

2012-03-29 Thread Put_tiMe
I want to know if I can do this: I have two alarm managers, to trigger once every X minutes. Alarm A: every 10 minutes Alarm B: every 12 minutes. I start both of them at once. So A should hit every 10 mins, and B should hit every 12 mins. Now in A, I create a wifi lock, and acquire it.

Re: [android-developers] Wifi and phone sleep state

2012-03-29 Thread Put_tiMe
If the wifi radio is disabled when the phone goes to sleep, then how does the e-mail app sync? Does it mean that the e-mail app holds a wifi lock? On Friday, March 30, 2012 8:38:23 AM UTC+5:30, Put_tiMe wrote: What about this situation:: 1. I set an AlarmManager to wake up every 15

[android-developers] Re: Wifi lock question

2012-03-29 Thread Put_tiMe
:32 AM UTC+5:30, Put_tiMe wrote: I want to know if I can do this: I have two alarm managers, to trigger once every X minutes. Alarm A: every 10 minutes Alarm B: every 12 minutes. I start both of them at once. So A should hit every 10 mins, and B should hit every 12 mins. Now

[android-developers] Can I get all the apps that have acquired a wifi lock?

2012-03-29 Thread Put_tiMe
Is there any way I can get a list of apps that have acquired the wifi lock? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Sleep mode

2012-03-29 Thread Put_tiMe
How can I goto sleep mode on a device? Is it only via the UI interface by long pressing the Screen On button? Or does it reach automatically goto sleep mode after X minutes after the screen has been switched off? -- You received this message because you are subscribed to the Google

[android-developers] Wifi - connecting to a preferred network.

2012-03-27 Thread Put_tiMe
Through code, is there anyway I can connect to a preferred wifi network? I can provide the 'WifiInfo.NetworkID' to mention my preferred network. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Broadcast receiver execution.

2012-03-26 Thread Put_tiMe
Hmm, that is actually quite surprising to me. Especially if I want to do something on screen-on and off. So in the above case, if I get the intents in this order Off, On, On, Off instead of the right sequence Off, On, Off, On, then all my logic will go horribly wrong. Are you sure about

[android-developers] Sizing a custom 'GridView'.

2012-03-26 Thread Put_tiMe
I have a situation where I need to have a GridView on the top part and buttons below it. If it was the other way around, then, it would have been easy. i.e. buttons on top and gridview below it. For the gridview, I could have mentioned: android:layout_width=wrap_content

[android-developers] Broadcast receiver execution.

2012-03-25 Thread Put_tiMe
I have a class which is derived from 'BroadcastReceiver'. Here I've signed up for screen-off, screen-on, battery-changed and user-present intents. I want to know how my class receives messages. Are they received in the order they were raised? Or is there a chance that messages could arrive

Re: [android-developers] How to place controls properly inside of a custom list view.

2012-03-25 Thread Put_tiMe
try giving your textview a layout_weight of 1... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/​magouyawarehttp://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 3:31 PM, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 2:58 AM, Put_tiMe

[android-developers] Wifi manager woes

2012-03-25 Thread Put_tiMe
Based on some events, I'm trying to switch on or off wifi. Switching wifi off works well. But while switching on wifi, 95% of the time, it can't reconnect to my previous wifi network. If I goto the settings - wifi, then I see that it's trying to connect, and after a while it'll disconnect.

[android-developers] How is 'onHandleIntent' handled in an IntentService

2012-03-24 Thread Put_tiMe
I have an intent service. From another class, I create 3 different intents at 3 different times, like this: At Time X: Intent aIntent = new Intent(context, abcd.service.ABCD_Processor.class); aIntent.setAction(Do_A); context.startService(aIntent); At Time X + 50 milliseconds: Intent bIntent =

[android-developers] How to place controls properly inside of a custom list view.

2012-03-22 Thread Put_tiMe
I have a custom list view. Each row needs to have a text on the left, and then an image on the extreme right hand side. My problem is that I'm not able to place the image on the extreme RHS. My XML file for the row looks like this: LinearLayout android:layout_width=fill_parent

[android-developers] Check box inside of a GridView

2012-03-14 Thread Put_tiMe
I have a gridview, inside which I have a check-box and imageview and textview. I need to use the check box to determine whether a particular row is selected or not. All the other controls work as expected, except for the check-box. When I toggle the check box, the corresponding checkboxes in

[android-developers] Handling different icon dimensions from Apps.

2012-03-14 Thread Put_tiMe
I have a requirement wherein I have to enumerate all the installed apps and show their names along with their icons. I'm using a grid view for this. Inside the grid view, I have an imageview for showing the app's icon and a textview to show the app name. I have a problem, in the sense every

[android-developers] Ad framework.

2012-03-12 Thread Put_tiMe
Given that I can scan an APK file, is there anyway I can get to know if it uses ads or not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] How to use 'IActivityWatcher'?

2012-03-12 Thread Put_tiMe
How do I register for an 'IActivityWatcher' callback? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Problems with scroll view and orientation

2012-03-11 Thread Put_tiMe
I have a ScrollView. If the orientation is changed, then it's scroll position is automatically changing. Is there any way to switch off automatic scrolling? If I use any other view, like LinearLayout, then it works fine (except there is no manual scrolling also) -- You received this

[android-developers] Extending ScrollView

2012-03-11 Thread Put_tiMe
I might have to extend ScrollView and I would like to call it *myScrollView* . Is it possible to specify this *myScrollView* in the XML file itself? Or can it be done only programmatically? If it can be done only through code, then, can I squeeze in a layout specified in the XML file into

Re: [android-developers] Background and foreground image views

2012-03-09 Thread Put_tiMe
:10 PM, Put_tiMe putt...@gmail.com wrote: I need to have a background and a foreground image views in a LinearLayout. Obviously the background has to be drawn before the foreground. How can I do it? -- You received this message because you are subscribed to the Google Groups

[android-developers] Scroll position is not the same when orientation changes.

2012-03-08 Thread Put_tiMe
I have a scroll view activity under which I have lot's of UI objects. Now let's say when the activity starts up, the view is right on top. Now if I change the orientation of the phone, I observe that my activity has automatically scrolled to a different position. I don't want the scroll

[android-developers] Re: Scroll position is not the same when orientation changes.

2012-03-08 Thread Put_tiMe
prevent this? On Thursday, March 8, 2012 4:51:52 PM UTC+5:30, Put_tiMe wrote: I have a scroll view activity under which I have lot's of UI objects. Now let's say when the activity starts up, the view is right on top. Now if I change the orientation of the phone, I observe that my activity

[android-developers] Background and foreground image views

2012-03-08 Thread Put_tiMe
I need to have a background and a foreground image views in a LinearLayout. Obviously the background has to be drawn before the foreground. How can I do it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

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

2012-03-01 Thread Put_tiMe
How do I register for IActivityWatcher? On Thursday, March 18, 2010 3:02:48 PM UTC+5:30, Csenteri Barna wrote: 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

[android-developers] Getting access to the cluster level data of an micro SD card.

2012-02-15 Thread Put_tiMe
In Android, is it possible to get access to the cluster level data of a micro SD card? Like in Win32, you would do a CreateFile(\\.\\d:, ); or CreateFile(physicaldrive0\ file://\\physicaldrive1\, ); That way I should be able to access the boot sector. Does Android support SD

Re: [android-developers] Re: Passing parameter in intent.

2012-02-14 Thread Put_tiMe
Got it working, thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

[android-developers] Passing parameter in intent.

2012-02-13 Thread Put_tiMe
I'm trying to send a parameter to an activity. But the problem is that in the activity's 'onCreate' callback, the 'Bundle' parameter is always null. Intent aintent = *new* Intent(android.content.Intent.*ACTION_VIEW*); *try *{ aintent = new Intent(getApplicationContext(), AAA.*class);*

[android-developers] TextView scroll in an activity.

2012-02-07 Thread Put_tiMe
I have a main activity. Based on a button press, I have to launch a 'new' activity. This 'new' activity has just one UI item, i.e a TextView. I've added properties which will indicate that it is scrollable: *

Re: [android-developers] Battery manager : temperature and voltage

2012-02-07 Thread Put_tiMe
Ok, by derived, I mean can I find out how long the battery will last? This is because battery lasts longer at ideal temperature, Or if the voltage is not within a threshold, then does it mean anything? If the voltage is high, then does it mean more power is being consumed, and thus the battery

[android-developers] Re: TextView scroll in an activity.

2012-02-07 Thread Put_tiMe
Ok, I got it to work. I HAD to add a scroll view to the text view. ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:isScrollContainer=true

  1   2   >