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 d
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 to
erable 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
an
he sense that it misleads people
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 t
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.
l 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 exte
s behavior expected (if so, why), or is this a bug?
Thanks,
Shri
http://schemas.android.com/apk/res/android";
android:id="@+id/container"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height=&
't this be exactly the same as
using "@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
, 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 to
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-
* 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 this
std::locale(""));
>
>
>
>
>
>
> On Thursday, March 7, 2013 6:49:12 PM 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&qu
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 subsc
ptional crash your 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 wr
ure (name, value) 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
cpus that may 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@googlegr
ror because the SO 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
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 t
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 req
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
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 De
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 wrote:
> Btw, for some users, the audio does not switch if they plug in the headset
> after the app starts playing audi
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 earpiec
eamOutALSA::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
Shr
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 b
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
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 wrote:
> My app uses nat
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 all
PM, TreKing wrote:
> On Fri, Sep 16, 2011 at 1:37 PM, Shri 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.
>>
&
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 c
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 ev
using 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 wrote:
> Well it is too bad we
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 wrote:
> On Fri, Sep 2, 2011 at 8:12 PM, Shri Borde wrote:
> > Actually, I am using a GridView in a
, heightMeasureSpec);
}
}
On Fri, Sep 2, 2011 at 4:42 PM, Mark Murphy wrote:
> On Fri, Sep 2, 2011 at 7:33 PM, Shri 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. For example,
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 rows
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
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
b.
My main concern is if this can 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 po
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 wrote:
> I have a small screen camera preview being shown on top of a larger
> video (see layout at the end). I use
> SurfaceView#setZOrderMediaOverlay(tru
"
android:layout_height="match_parent" >
Setting android:minHeight on the red rectangle does not fix the
problem. I tried swapping the order of the views to avoid a forward
reference, but that does not help either. Any idea why this is
happening? Is layout_above just broken
on Honeycomb MR1 on Motorola Xoom.
Thanks,
Shri
http://schemas.android.com/apk/res/
android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
--
You
missing feature?
On Jun 24, 3:34 pm, Shri 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 wrote:
>
> > how are you using your pop up as alert
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()) {
un 15, 10:48 pm, Shri 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 dismis
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 Devel
Fragment being
hidden would automatically do the right thing.
On May 25, 4:01 pm, Shri 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, t
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 is
. 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, sen
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, and
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 gro
menu items?
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...@goo
figure how 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.Activi
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).
Any suggestions on how to track this down? This is on a Honeycomb
tablet.
--
You received this message because you are subscribed
w 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 wrote:
> > It actually worked with Fragment#se
t;
> On Fri, Apr 15, 2011 at 8:33 AM, Shri 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/ge
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
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
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-
, the code will have access to its resources.
On Mar 10, 10:56 am, Mark Murphy wrote:
> On Thu, Mar 10, 2011 at 1:42 PM, Shri wrote:
> > You can use Context.createPackageContext to load the other apk, and
> > then use reflection to load the class.
> > Seehttp://www-jo.se/f.pfle
s created after the screen
> > rotation and I have read threads like
> >http://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?
>
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 wrote:
> And TabActivity doesn't fully support displ
/thread/bf046b95cf38832d/1c3bd1f1c0b72569?lnk=gst&q=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;
im
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 messag
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
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 u
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
andro
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@googlegrou
67 matches
Mail list logo