[android-developers] ANR in IPCThreadState::waitForResponse with high CPU load

2015-11-02 Thread Shri
My app is seeing ANRs reported by user where the main thread has the following state. The state is "NATIVE" which means that it is executing native code but that it is not blocked. However, the stack shows IPCThreadState::waitForResponse. Does this mean that the thread is actually blocked? Or

[android-developers] Notification from non-starred contact is notifying in Priority only mode

2015-10-07 Thread Shri
On a Marshmallow phone, I set Priority mode and chose 'Priority only allows Messages From starred contacts only' (see https://support.google.com/nexus/answer/6111295?hl=en). My app's notification for an incoming message from a phone number contact is still notifying. Do I need to do anything

[android-developers] Can an ActionProvider be used in an ActionMode (contextual action bar)

2014-12-17 Thread Shri
if I can get the drop down menu. Thanks, Shri -- 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

[android-developers] Activity.setIntent() is a noop if activity is recreated

2013-08-01 Thread Shri
into thinking that it can be used to cache state without realizing the activity recreate problem. Am I missing anything? Thanks, Shri -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Service is restarted after ANR, OutOfMemoryError, native crashes, etc inspite of Service.START_NOT_STICKY

2013-07-02 Thread Shri
] This is a problem because the Intents also seem to being redelivered which breaks the invariants of my app. Is there a way to prevent my service from being restarted? Thanks, Shri -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Re: 9.png file not spanning the LinearLayout when android:paddingBottom is specified

2013-06-30 Thread Shri Borde
you'll overwrite the settings provided by the 9patch. On Saturday, June 29, 2013 2:10:36 AM UTC+3, Shri wrote: I have the following layout file which uses the attached 9.png. It results in the attached screenshot where the red background from the 9.png does not extend all the way behind the button

[android-developers] 9.png file not spanning the LinearLayout when android:paddingBottom is specified

2013-06-28 Thread Shri
expected (if so, why), or is this a bug? Thanks, Shri ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/container android:orientation=vertical android:layout_width=match_parent android:layout_height=match_parent

[android-developers] Calling setTheme(Theme_Dialog) in onCreate() results in black background

2013-06-26 Thread Shri
@android:style/Theme.Dialog in the manifest? I want to be able to choose between themes conditionally, and so am trying to call setTheme(android.R.Theme_Dialog) in onCreate(). Thanks, Shri -- -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Activity start+restarts when launched with screen off

2013-04-24 Thread Shri
, the order of callbacks is: onCreate, onStart, onResume, onPause, onStop, onRestart, ... This seems like a bug. If onStop calls finish(), it should not be followed by onRestart, right? Thanks, Shri * The activity displays a snapshot of the current state. If it can be restarted, it has

[android-developers] What methods can be called after Activity.finish() is called?

2013-04-11 Thread Shri
* that these method may be called after finish(). I am not sure about it, but wanted to understand what the model is and what to expect. Unless finish() removes all relevant pending Runnables from the Looper, it seems like any of the above could happen. Thanks, Shri -- -- You received

[android-developers] Ongoing notification being removed on HTC One VX and Samsung Galaxy Tab 10.1

2013-04-11 Thread Shri
the notification disappears. I am positive the service is still running. What can cause notification_cancel_all? Thanks, Shri -- -- 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: [android-developers] Re: std::locale().name() returns C

2013-03-08 Thread Shri Borde
UTC-6, Shri wrote: std::locale().name() and std::locale().name() are both returning C on a JellyBean phone, instead of the expected En_US. Is it possible to get to the user's locale from C++ code? Thanks, Shri -- -- You received this message because you are subscribed to the Google

[android-developers] std::locale().name() returns C

2013-03-07 Thread Shri
std::locale().name() and std::locale().name() are both returning C on a JellyBean phone, instead of the expected En_US. Is it possible to get to the user's locale from C++ code? Thanks, Shri -- -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] How can I check the value of wtf_is_fatal?

2012-08-10 Thread Shri
) values ('wtf_is_fatal', 1); select * from secure; ... 60|wtf_is_fatal|1 ... Thanks, Shri -- 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

Re: [android-developers] How can I check the value of wtf_is_fatal?

2012-08-10 Thread Shri Borde
app based on the setting), then don't use it. The only reason to use it that I can think of is because you want the behavior it provides. Is there some other reason you want to call that specific method? On Fri, Aug 10, 2012 at 11:13 AM, Shri shri.bo...@gmail.com wrote: I want to check

[android-developers] Does java.lang.Runtime.getRuntime().availableProcessors() include all CPUs?

2012-05-29 Thread Shri
currently be powered down if they will get enabled once my optimization code starts executing. Thanks, Shri -- 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

[android-developers] Native library not updated by Market on app update

2012-03-13 Thread Shri
file is looking for the old signature of ()V. So it seems like the Java code was updated but the SO file was not on some devices. Any idea why this might happen? Thanks, Shri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Does WakeLock override the proximity sensor turning off the screen in a phone call?

2012-03-01 Thread Shri
My app runs in the background and the screen lock (WakeLockType.SCREEN). This prevents the screen from turning off. However, if a phone call comes in and I cover the proximity sensor, the screen turns off on Gingerbread but not on IceCreamSandwich. Which is the correct behavior? -- You received

[android-developers] AudioService grabs audio focus on ICS when I do AudioManager#setMode(MODE_IN_COMMUNICATION)

2011-11-26 Thread Shri
My app does requestAudioFocus(STREAM_VOICE_CALL) and then calls AudioManager#setMode(MODE_IN_COMMUNICATION). The log shows that this immediately causes the audio focus to be lost to AudioService.IN_VOICE_COMM_FOCUS_ID (AudioFocus_For_Phone_Ring_And_Calls): I/AudioService(23967): AudioFocus

[android-developers] Re: onConfigurationChanged not getting called.

2011-11-15 Thread Shri
The solution is that you need to also include screenSize (which was introduced in Honeycomb) along with orientation. See http://developer.android.com/guide/topics/manifest/activity-element.html#config . -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: onConfigurationChanged call back is not getting called?

2011-11-15 Thread Shri
If you are running on Honeycomb, you need to also include screenSize (which was introduced in Honeycomb) along with orientation. See http://developer.android.com/guide/topics/manifest/activity-element.html#config . -- You received this message because you are subscribed to the Google Groups

[android-developers] Unplugging headset switches to earpiece instead of speakerphone because of FlurryAgent

2011-09-22 Thread Shri
I am using a BroadcastReceiver registered for Intent.ACTION_HEADSET_PLUG to detect when the headset is plugged and unplugged, and I disabled and enable the speakerphone using AudioManager.setSpeakerphoneOn. This mostly works as expected. However, occasionally, on unplugging the headset, the

[android-developers] Re: Switch between speakerphone by default and headset if plugged in

2011-09-22 Thread Shri
I found Intent.ACTION_HEADSET_PLUG (http://stackoverflow.com/questions/ 4092438/intent-action-headset-plug-is-received-when-activity-starts). On Sep 19, 10:49 pm, Shri shri.bo...@gmail.com wrote: Btw, for some users, the audio does not switch if they plug in the headset after the app starts

[android-developers] Switch to speakerphone when the headset is unplugged

2011-09-21 Thread Shri
::setParameters() routing=1 D/AudioHardware( 76): AudioHardware pcm playback is going to standby. D/AudioHardware( 76): closePcmOut_l() mPcmOpenCnt: 1 D/AudioHardware( 76): AudioHardware pcm playback is exiting standby. D/AudioHardware( 76): openPcmOut_l() mPcmOpenCnt: 0 Thanks Shri -- You

[android-developers] Switch between speakerphone by default and headset if plugged in

2011-09-19 Thread Shri
My app plays audio. I would like to support the following: - By default, the audio plays using the speakerphone. I can do this with AudioManager.setSpeakerphoneOn(true) - The hardware volume buttons control the audio level, and the volume level is displayed with a caption of In-call

[android-developers] Re: Switch between speakerphone by default and headset if plugged in

2011-09-19 Thread Shri
Btw, for some users, the audio does not switch if they plug in the headset after the app starts playing audio. For others it does not use the headset if the headset was already plugged in when the app starts playing audio, but it does start using the headset if it is unplugged and then plugged

[android-developers] Camera#startPreview failed because of Error - overlays already in use

2011-09-17 Thread Shri
succeed. Thanks Shri I/MyCameraApp( 1618): Calling Camera.open I/MyCameraApp( 1618): Calling Camera#setParameters W/CameraHardwareSec( 76): WARN(virtual android::status_t android::CameraHardwareSec::setParameters(const android::CameraParameters)): request for preview frame 10 not allowed

[android-developers] Re: Dispatching to original signal handler sometimes does not print the crash details to logcat

2011-09-17 Thread Shri
Removing the exit at the end of my custom handler fixed the problem. So the conditions for getting the native crash details printed seem to be to call the original handler and to let the custom handler return instead of exiting the process. On Sep 16, 1:52 pm, Shri shri.bo...@gmail.com wrote: My

[android-developers] Intent.FLAG_ACTIVITY_REORDER_TO_FRONT does not work with PendingIntent

2011-09-16 Thread Shri
I have an activity MyActivity and a background service. When MyActivity is not in the foreground, I show a notification icon in the system tray. When the user selects the icon, I want MyActivity to be displayed instead of creating a new instance of MyActivity. However, this does not seem to work

[android-developers] Dispatching to original signal handler sometimes does not print the crash details to logcat

2011-09-16 Thread Shri
My app uses native code, and I install my custom signal handler to handle crashes. When it is called, it launches a separate crash- reporting process (the activity specifies android:process for process isolation) which will report the crash details in logcat after waiting for a bit (to ensure the

Re: [android-developers] Intent.FLAG_ACTIVITY_REORDER_TO_FRONT does not work with PendingIntent

2011-09-16 Thread Shri Borde
PM, TreKing treking...@gmail.com wrote: On Fri, Sep 16, 2011 at 1:37 PM, Shri shri.bo...@gmail.com wrote: However, this does not seem to work even though I set Intent.FLAG_ACTIVITY_REORDER_TO_FRONT - a new instance gets created if MyActivity was not on top of my task's stack. http

[android-developers] Re: SurfaceView#setZOrderMediaOverlay(true) not working as expected

2011-09-07 Thread Shri
this API? It would be good to know how much to rely on it so we can look at alternatives. Since it only misbehaves occasionally, its never clear if a change in the code has actually fixed the problem or not. Thanks Shri On Jul 27, 12:43 pm, Dianne Hackborn hack...@android.com wrote: Well it is too bad

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-04 Thread Shri Borde
to display all the rows. So overriding GridView and modifying its behavior seems like the best option. Thanks for the pointers and the discussion. On Fri, Sep 2, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 2, 2011 at 8:12 PM, Shri Borde shri.bo...@gmail.com wrote: Actually

[android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Shri
I am using a GridView in a LinearLayout. I want the GridView to show up as tall as needed to show all the rows. However, I am seeing only one row when set (layout_width=MATCH_PARENT and) layout_height=WRAP_CONTENT. If I set layout_height to a size that equals mulitple rows, then I do see those

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Shri Borde
, heightMeasureSpec); } } On Fri, Sep 2, 2011 at 4:42 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 2, 2011 at 7:33 PM, Shri shri.bo...@gmail.com wrote: I am using a GridView in a LinearLayout. I want the GridView to show up as tall as needed to show all the rows. That is not really possible

[android-developers] SurfaceView is sometimes not clipped within the bounds of the parent

2011-08-02 Thread Shri
was actually not clipped when a notification has popped up. clipChildren should be honored in all cases. Is there any workaround to reliably get clipping of a SurfaceView? My question is if there is any workaround which will allow me to consistently get clipping of a SurfaceView? Thanks Shri

[android-developers] Droid 3 - Stretched camera preview with size of 240x160 with front-facing camera

2011-08-01 Thread Shri
with the rear camera looks fine at 240 x 160. Is anyone else seeing this? Is this a known issue? I have also asked the question at http://www.droidforums.net/forum/droid-development/163543-stretched-camera-preview-size-160x240-front-facing-camera-droid-3-a.html#post1668852 Thanks, Shri Camera.Parameters

[android-developers] Fail to connect to camera service after killing the process

2011-07-28 Thread Shri
happen for users and if I should be guarding against it. If it can only happen after adb install, I can live with that. Shri -- 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

[android-developers] Re: SurfaceView#setZOrderMediaOverlay(true) not working as expected

2011-07-26 Thread Shri
I am occasionaly seeing this on Nexus S Gingerbread MR1 as well. Is this a bug in setZOrderMediaOverlay? On Jul 13, 2:09 pm, Shri shri.bo...@gmail.com wrote: I have a small screen camera preview being shown on top of a larger video (see layout at the end). I use SurfaceView

[android-developers] android:layout_above does not work while android:layout_below does

2011-07-14 Thread Shri
not help either. Any idea why this is happening? Is layout_above just broken? Thanks, Shri -- 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

[android-developers] SurfaceView#setZOrderMediaOverlay(true) not working as expected

2011-07-13 Thread Shri
on Honeycomb MR1 on Motorola Xoom. Thanks, Shri RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=match_parent android:layout_height=match_parent SurfaceView android:id=@+id/some_video

[android-developers] Re: How to immediately dispatch touch events outside of a PopupWindow

2011-06-24 Thread Shri
On Jun 15, 10:48 pm, Shri shri.bo...@gmail.com wrote: If a ListPopupWindow is being displayed, I can tap on buttons outside it, and the buttons receive the touch event. However, while displaying a PopupWindow, tapping outside does not cause the button to be clicked. It just dismisses

[android-developers] Smart dismissability of ListPopupWindow

2011-06-24 Thread Shri
I use the following code to show a popup menu when the user taps an anchor button. final ListPopupWindow popup = new ListPopupWindow(this); anchorButtonView.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { if (!popup.isShowing()) {

[android-developers] Re: How to immediately dispatch touch events outside of a PopupWindow

2011-06-24 Thread Shri
a missing feature? On Jun 24, 3:34 pm, Shri shri.bo...@gmail.com wrote: Calling #setModal(false) works. It confusing because the PopupWindow seems to be modal by default but ListPopupWindow is not. On Jun 15, 9:54 pm, harsh chandel harshdchan...@gmail.com wrote: how are you using your pop up

[android-developers] How to immediately dispatch touch events outside of a PopupWindow

2011-06-15 Thread Shri
the button. I tried using #setOutsideTouchable with true and false arguments, but it did not change anything. Any idea how to make PopupWindow behave more like ListPopupWindow in this regards? Thanks Shri -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Virtual keyboard does not disappear when EditText with focus is hidden

2011-05-25 Thread Shri
I have a simple layout with two EditTexts and a button. When the Activity starts, the first EditText automatically gets focus and the virtual keyboard is shown. When I click the button, the second EditText gets focus because the first one is gone. If I click the button again, the second EditText

[android-developers] Re: Virtual keyboard does not disappear when EditText with focus is hidden

2011-05-25 Thread Shri
in the Fragment being hidden would automatically do the right thing. On May 25, 4:01 pm, Shri shri.bo...@gmail.com wrote: I have a simple layout with two EditTexts and a button. When the Activity starts, the first EditText automatically gets focus and the virtual keyboard is shown. When I click the button

[android-developers] Does Spinner support multiple view types for its rows?

2011-05-22 Thread Shri
. So it seems that Spinner does not intend to support different rows using different view types. Is this by design? What is the reason for this? Thanks Shri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Does Application Error Reports support crashes in native code?

2011-05-19 Thread Shri
Does the Application Error Reports infrastructure described at http://android-developers.blogspot.com/2010/05/google-feedback-for-android.html work for crashes in native code? It sounds like the mechanism works by using Thread.setDefaultUnhandledExceptionHandler which only works for Java code,

[android-developers] Re: Menu items in ActionBar obscuring Tabs even with showAsAction=ifRoom

2011-05-02 Thread Shri
I have opened issue http://code.google.com/p/android/issues/detail?id=16530 to track this. -- 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] Menu items in ActionBar obscuring Tabs even with showAsAction=ifRoom

2011-04-28 Thread Shri
Shri -- 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 For more options, visit

[android-developers] ListPopupWindow does not anchor correctly after an orientation change

2011-04-20 Thread Shri
to force it to be positioned correctly. I tried creating a new instance in #onConfigurationChanged, but even that does not work. Any idea how I can get it to be positioned correctly? Thanks, Shri # MainActivity.java package com.shri.helloandroid; import android.app.Activity; import

[android-developers] onConfigurationChanged not getting called.

2011-04-19 Thread Shri
I have set configChanges=orientation on my Activity as shown below, but it gets recreated after an orientation change (I see #onCreate called in logcat). activity android:name=.MyActivity android:configChanges=orientation|keyboardHidden| keyboard / Any suggestions on how

[android-developers] Re: Activity#onRetainNonConfigurationInstance vs Fragment#setRetainInstance

2011-04-16 Thread Shri
leaking that object and worse it may be trying to do stuff with it (such as use the WindowManager service) that is now on a context that is no longer live. On Fri, Apr 15, 2011 at 4:54 PM, Shri Borde shri.bo...@gmail.com wrote: It actually worked with Fragment#setRetainInstance. I just had

[android-developers] Activity#onRetainNonConfigurationInstance vs Fragment#setRetainInstance

2011-04-15 Thread Shri
mentions these apis anyway, not Fragment#setRetainInstance. Thanks Shri -- 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

Re: [android-developers] Activity#onRetainNonConfigurationInstance vs Fragment#setRetainInstance

2011-04-15 Thread Shri Borde
, Apr 15, 2011 at 8:33 AM, Shri shri.bo...@gmail.com wrote: I have a WebView in my Activity which I want to reuse across config changes so that the webpage does not get reloaded after every orientation change. I can use Activity#onRetainNonConfigurationInstance/getLastConfigurationInstance

[android-developers] What is WebView.enablePlatformNotifications for?

2011-04-14 Thread Shri
working even when its not in the foreground? Thanks, Shri -- 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

[android-developers] Can WebView#onPageFinished be called after WebView#onPause has been called?

2011-04-14 Thread Shri
the member variable to not be null. If WebView#onPageFinished can be called after onPause, then I would need extra logic to deal with it. Thanks Shri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: Dynamically including a custom view defined in another app

2011-03-10 Thread Shri
You can use Context.createPackageContext to load the other apk, and then use reflection to load the class. See http://www-jo.se/f.pfleger/apk-piracy. Also take a look at DexClassLoader and PathClassLoader. On Mar 10, 10:08 am, Justin Anderson magouyaw...@gmail.com wrote: And TabActivity

[android-developers] Re: ProgressDialog persisting after screen rotation inspite of call to dismissDialog

2011-03-10 Thread Shri
://groups.google.com/group/android-developers/browse_thread/threa However, my scenario is simpler in that there is no background task which holds onto the old Activity. Any ideas? Thanks Shri package com.shri.helloandroid; import android.app.Activity; import android.os.Bundle; import

[android-developers] Re: Dynamically including a custom view defined in another app

2011-03-10 Thread Shri
, the code will have access to its resources. On Mar 10, 10:56 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Mar 10, 2011 at 1:42 PM, Shri shri.bo...@gmail.com wrote: You can use Context.createPackageContext to load the other apk, and then use reflection to load the class. Seehttp

[android-developers] ProgressDialog persisting after screen rotation inspite of call to dismissDialog

2011-03-09 Thread Shri
/thread/bf046b95cf38832d/1c3bd1f1c0b72569?lnk=gstq=dismissDialog+orientation#1c3bd1f1c0b72569. However, my scenario is simpler in that there is no background task which holds onto the old Activity. Any ideas? Thanks Shri package com.shri.helloandroid; import android.app.Activity; import

[android-developers] changes made to get 1280X720 resolution??

2009-11-20 Thread shri
hello how to increase the resolution to get 1280X720. please tell where to make changes in the source code to get that resolution. I have android1.5 source code. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] source code to launch the emulator

2009-11-20 Thread shri
can anybody share the emulator dependent source files. we are using avd in the emulator for selecting the skin. so how this avd function is called in the source code. and emulator is launching . is there any maximum resolution set to the emulator?? thanks in advance -- You received this

[android-developers] How to increase the resolution

2009-11-18 Thread shri
how to increase the resoltion in android... what all changes need to do in the source code to get 1280X720p resolution... -- 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] android1.6 source code

2009-11-18 Thread shri
can anyone please do share the android1.6(donut) kernel source code -- 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] emulator dependent files

2009-11-18 Thread shri
hi anybody can share the emulator dependent files (source files as well as binary files) regards shri -- 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