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
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
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
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
]
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
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
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: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
, 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
* 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
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
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
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
) 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
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
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
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
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
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
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
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
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
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
::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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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()) {
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
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
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
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
. 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
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,
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
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
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
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
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
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
, 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
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
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
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
://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
, 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
/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
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,
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
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
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
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
67 matches
Mail list logo