A friend of mine uses the FB APIs on another platform and posted that the
latest release of the FB SDK broke their logins. So perhaps it is something
recent on the FB side.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this gro
gt;If you want to change the rules to make them your own, I'd sugges to
> >>leave android_rules.xml unchanged, and instead copy the rules inside
> >>your build.xml file, *after* the task.
> >>Additionally, change the setup task to . This
> >>will let the cu
ingle project (with
>different resources).
>You can either ignore this and reuse some of the previous target/task,
>or modify the custom task to do what you want (we're pushing the
>source used to generate this SDK on the git server today)
>
>Xav
>
>On Tue, Apr 14, 2009 a
Is it true that if you have a ViewGroup, say a RadioGroup, you can't
align items outside the group to ones inside the group (using
toRightOf, alignTop, etc.)
That is, does toRightOf, toLeftOf and the rest only work with views
at the same hierarchy level?
I was trying to label some vertical ra
Hello.
I've been doing background tasks and they work, but I'm interested in
best practice. I think this has been talked about on the list before,
but I haven't seen a clear discussion, and one of Streets of Boston's
posts yesterday got me thinking.
Say you have a background chore that needs
Messages themselves have a method to remove all messages with id X
from the queue, I seem to recall. This may or may not be inconvenient
for you though.
-- Ward
At 2:30 PM -0700 7/14/09, Micah wrote:
>I have a thread that does all my rendering code for a game (including
>animations). I want t
use this by using the Fullscreen theme, so the system knows
>your window will be fullscreen a bit earlier. There can still be
>some interesting timing in the transition that still leaves the
>status bar visible initially, which hopefully will be improved in a
>future version of the
YES! Fixes it here too. Nice diagnosis/hacking Brady. Thanks very
much. (And yes, it must be a bug.)
-- Ward
At 1:12 PM -0700 7/13/09, Brady wrote:
>Hey Ward,
>
>looks like exactly the same problem! Does my workaround fix your
>issue?
>
>Brady
>
>On Jul 13, 1:02
Me too. Can't believe you and I are the only two who see this.
http://groups.google.com/group/android-developers/browse_thread/thread/8d746b754c8064a8?fwc=1
-- Ward
At 12:50 PM -0700 7/13/09, Brady wrote:
>Hi, just a quick note, bug.java was really named StatusBarBug.java
>like my project.
>
>
I got most of the way there by sticking view trees in a gallery.
The only hitch was one of the gallery "panes" has
a list in it -- and I don't know how to make the
list scroll on touch up/down and the gallery
scroll on touch left/right.
-- Ward
At 2:09 PM -0700 7/9/09, Romain Guy wrote:
>
If I put a list view inside one of a gallery's view, is there a way
to arrange it so that touch up/down scrolls the list and touch
left/right scrolls the gallery?
Thanks
-- Ward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
We get these inner-class errors when using java regex. Suppose other
things could cause it as well. We are ignoring them.
And of course, you can fix the OOM by cranking up the heap in the
dx/dx.bat script.
-- Ward
At 1:20 PM -0700 5/22/09, Jason Proctor wrote:
>i'm getting a *lot* of this ki
At 10:34 AM -0700 5/21/09, Claudio Veas wrote:
> t3.setData(Uri.parse("http://www.yahoo.com.ar";));
>If you know what the problem may be I ll apreciate any comments
Not an expert, but suggest you set the android:authorities of your
receiver to "www.yahoo.com.ar" -- or p
At 11:24 AM -0700 5/20/09, androiddev123 wrote:
>ERROR Error: No resource found that matches the given name (at
>'background' with value
> '@drawable/008').
What is the corresponding file name? 008.png?
I've not tried a pure number as a filename, and the resource compiler
is fussy about caps
I take and I take and I take...Thank you list!
We have a splash screen we put up to cover some initialization on first run.
When we are brought front after being backgrounded, we notice this
(because our application object is not recreated) and we transfer
control from the onCreate of the spla
Title: [android-developers] Re: Service works on 1.1, not
on 1.5
Never mind, posting the problem to the list fixed it again.
:-)
At 12:57 PM -0700 5/19/09, Dianne Hackborn wrote:
Look at the log, post code, etc.
On Tue, May 19, 2009 at 12:52 PM, Ward
Willats <goo...@wardco.com>
wrote
Our remote service is working great on 1.1. It is a pretty rich API too.
BUT, running the same code on cupcake, it hangs after the service
returns the concrete interface stub it has new'd in onBind().
(onConnect() in the client's ServiceConnection is never executed.)
Any thoughts?
Thanks
--
;Are you passing the flag to have the service created? What is the
>output of "adb shell dumpsys activity.service" during this time?
>(And what is the name of your service to be able to find it?)
>
>On Fri, May 15, 2009 at 10:09 AM, Ward Willats
><<mailto:goo
Man, we are pulling our out over this
We have a service. bindService() returns true. But our
ServiceConnection is never called with onConnect(). The onCreate() of
the service is never executed (neither is the onBind(), of course).
Except sometimes! (twice now, out of many many tries).
Rem
In the "widget design guidelines" under "widget graphics tips and
tricks" is says
"In some cases, devices that have low pixel depths that can cause
visual banding and dithering issues. To solve this, application
developers should pass assets through a "proxy" drawable defined as
XML:. This t
At 2:35 PM -0700 4/30/09, fadden wrote:
>The "hprof" dump can help with that. I added a quick writeup:
>http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD
Thanks -- I used hprof with a previous layout leakage problem, and I
think it is a huge t
Thanks for these tips.
At 1:14 PM -0700 4/30/09, Streets Of Boston wrote:
>In my app, i've been dillegently 'unloading' bitmaps when i need
>memory.
>- clear any bitmap cache
I assume you mean any of my own bitmap caches...
>So far, this scheme has served me well. Before i got a lot of OOM-
>er
At 11:23 AM -0700 4/30/09, fadden wrote:
>It's possible that it didn't actually jump back down. The event log
>shows results from all running processes, not just your app, so you
>may be seeing output from other things mixed in.
Ah, OK. Now I see a steady increase in my limit and allocs from 1.1
Okay, a nice OOM crash during inflation to start the morning.
VM won't let us allocate 67600 bytes
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream
At 10:26 PM -0700 4/28/09, fadden wrote:
>Well, that's the interesting question: how much memory are you
>*actually* spending on bitmaps?
While I wait for a crash I can measure, my colleague here points out
we use a lot of 9 patches as backgrounds for various fields on our
screens. If they go i
>I'm going to try to throw something together in python or C that does
>the number-crunching on the log.
Well, I'm as old as Mark Murphy for cris'sake, so I like to use AWK
for things like this, which seemed a good idea until I remembered it
doesn't support infix bitwise operators. Doh! Guess I
5:05 PM -0700 4/28/09, fadden wrote:
>On Apr 28, 1:33 pm, Ward Willats wrote:
>> So am I really out of memory or just chasing my tail?
>
>You're really out of memory.
>
>Bitmap storage exists in a weird parallel universe. The memory isn't
>allocated in the v
At 12:05 PM -0700 4/28/09, Jon Webb wrote:
>I have a clue -- the OutOfMemoryError went away when I set debuggable
>to false. Does that help?
No joy here, I'm afraid. I really hoped this would be it. (Debuggable
changing garbage collection behavior or something...)
I just happened to have a sect
At 11:19 AM -0700 4/28/09, Jon Webb wrote:
>Like many others here I'm getting OutOfMemoryError from BitmapFactory
when decoding multiple bitmaps. I am sure I am not leaking memory.
>I am scrupulously recycling bitmaps nulling pointers, etc.
>Any ideas what's going on, or for a workaround?
+1 he
At 7:19 AM -0700 4/24/09, chrispix wrote:
>
>Having to prompt the user each time to turn on / off gps is a giant
>pain from the standpoint of program flow.
I'm not sure why you have to prompt each time. You only need to check
the GPS state once at startup and then fire the user off to settings
'Round these parts we don't use Eclipse and heavily customize our
build.xml file. The "android" tool tried to update it and burped out
a short, confused file.
That's OK. Don't mind doing build.xml by hand and "target-ifying" it,
but I see what look like a whole set of Android-specific ANT
tas
At 9:01 PM -0400 4/11/09, Mark Murphy wrote:
>devileper wrote:
> > How can you specify which item gets the default focus on Activity
>> startup? Using requestFocus programmatically does not work. On
>> setContextView the first focusable item listed in the XML is given the
>> default focus. Wh
At 9:28 PM +0300 4/10/09, Stoyan Damov wrote:
>if acquireResource could throw an error, the correct way to handle it
>is in an outer try block:
>
>as opposed to this anti-pattern (again widely used):
>
Hi Stoyan:
What is your reasoning here? Why would it be preferred to make the
runtime setup
At 3:37 PM -0700 4/8/09, fadden wrote:
>On Apr 7, 9:48 pm, manohar wrote:
>> Thanks, android.os.Process.killProcess(android.os.Process.myPid());
>> this got worked for me
>
>System.exit(), or possibly Runtime.halt(), are quite a bit simpler
>(and more portable).
When I call System.exit() my ap
This is useful info for me, and I hope others. Sorry to be a pest but
another question(s) for Those Who Know:
If you do a (nested) series of startActivtyForResult() (say 2-3) is
the view hierarchy of the parent held in memory (yes, I think).
If so, would a good strategy be to setContentView( n
Set android:screenOrientation on sub to "user"
>Let's assume i got two activities "Main" and "Sub"
>Activity "Main" is forced into portrait orientation using
>setRequestedOrientation
>At some later point "Main" runs "Sub" using startActivityForResult
>
>Somehow "Sub" also starts in portrait orie
his better...
-- Ward
>You probably have large bitmaps or a lot of bitmaps, whose
>allocation I believe does not show up in hat. (Note that I am
>pretty sure the error message you are seeing is in fact due to a
>failing bitmap allocation.)
>
>On Tue, Apr 7, 2009 at 10:40 AM,
/dalvikvm( 820): threadid=3: thread exitin
According to System.freeMemory I have 1.1 MB of heap right after
setContentView(), and yet I can't allocate a lousy 26K 4 seconds
later.
Puzzling.
>On Apr 3, 2:22 pm, Ward Willats wrote:
>> Are there any tools besides ddms to look at the hea
>Dianne Hackborn wrote:
> > One thing that can happen is that when you make a shortcut on the home
>> screen, this does of course reference the explicit component the
>> shortcut is for. So if the application is changed such that the
>> component no longer exists, you will need to delete the
very much, Mark.
-- Ward
>Ward Willats wrote:
>> SoI HOPE NO ONE EVER CHANGES THE ENTRY ACTIVITY OF THEIR PROGRAM
>> WHEN THEY ISSUE AN UPDATE OR THEIR USERS ARE GOING TO HAVE TO ERASE
>> THEIR PHONES.
>
>I don't think it's quite that simple.
&g
Well crap.
I changed the entry activity (MAIN, LAUNCHER) to my app in the
manifest (swapped it with another activity, actually).
Install. Android tries to launch the old entry activity.
Uninstall, reinstall -- no change.
Factory reset the phone -- install -- NEW ENTRY ACTIVITY RECOGNIZED!
Sw
After a long time with one Activity being my app's entry point, I
just changed the manifest to point to a different activtiy to be the
entry point. But the G1 is doggedly trying to load the old activity
-- even after uninstall, install, reboot, etc. and acore throws a
security exception.
04-0
Okay, starting to debug this by printing out Runtime() memory stats
around setContentView(). There is less memory available than ddms
says (500K vs 1.5 MB). So maybe it is really running out.
Are there any tools besides ddms to look at the heap? My app is using
over 2 MB just sitting there --
All of sudden I am seeing oddball OMM errors when inflating view trees.
The allocations are from really small (couple of K) to fairly large
(couple of hundered K).
But ddms says the heap is only half full and there's around 2MB
available. The app does not appear to be leaking.
What should I b
I have a custom view group control with children views that act as
buttons. What should be their "active" area is non-rectangular. Also,
their bounding rectangles overlap a little.
Is there a framework way to "clip to region" touch events in a view?
Or do I have to get in and muck with the dis
Is there a way to alias the path to my custom view class (perhaps in
its ) so I can say
in the XML, instead of
(I played around with the months ago, namespaces and what-not, but
never found a solution.)
Just a "nice to have" thing.
Thanks
-- Ward
--~--~-~--~~~--
//developer.android.com/guide/topics/fundamentals.html
>
>Cheers
>
>On Tue, Mar 24, 2009 at 12:57 AM, Ward Willats wrote:
>>
>> Is there a way to tell when my task gets put on the back of the UI
>> stack (user pressed "home" say?) I have some resources I
Is there a way to tell when my task gets put on the back of the UI
stack (user pressed "home" say?) I have some resources I'd like to
free when not foregrounded.
The lifecycle routines seem dicey to use to try and infer this.
The "home" key does not seem to be passed to onKeyDown(), and
moveT
Anyone done a post from a WebView with credentials encoded
into the action URL?
http://uname:passw...@www.foo.com/"; >
When I try this, my server comes back with a 401 to collect the Realm
credentials and Android fires up the full-blown browser to collect
them.
The HTML is from assets.
--
Is there any way to poll the system for the "essentially four states"
of an Activity (ACTIVE/RUN, PAUSED, STOPPED, DEAD) ?
I have a situation where this would be convenient, and I don't want
to clutter my on() handlers with my own state tracking.
-- Ward
--~--~-~--~~--
Strike that, you must NOT use quotes, so the 3 rules are:
1. Param array same size as number of wildcards
2. No null values
3. Don't surround ? with '?'
Programming is hard.
-- Ward
>Answer:
>
>Thou SHALT use a param string array that is exactly the same size as
>the number of replacement par
Answer:
Thou SHALT use a param string array that is exactly the same size as
the number of replacement params you have (no re-using a big one for
multiple queries like I was doing -- my example is misleading). [
This is arguably a bug, I think replacements should be driven by the
number of wi
Something like this:
String[] FooParams = new String[1];
FooParams[0] = "123";
Curosr csr =
db.rawQuery( "SELECT * FROM FooTable WHERE FooField = '?'", FooParams );
Causes this:
android.database.sqlite.SQLiteException: bind or column index out of
range: handle 0x30f6b0
Everyone seems to
>I have View B that extends View A. I also have an xml Layout for A
>(a.xml) and i dont want to copy the whole content only for one change
>i do in View B to b.xml, so is it possible to include a.xml in b.xml ?
--~--~-~--~~~---~--~~
You received this message beca
Can I disable the marquee scrolling on the text view labels on the
tabs in my 1.0 application?
I used to stick a line feed into my tab labels and that looked fine.
Now the scrolling is small and hard to read.
Thanks
-- Ward
--~--~-~--~~~---~--~~
You received t
Hi Rodrigo:
I asked this same question ages ago and never got an answer. In the
end, I concluded the built-in animation machinery cannot handle a
case where the bitmap is longer than the view.
I wound up not using any of the built-in animation stuff and just
blitted raw bitmaps in a custom vi
Are you _sure_ your webserver is sending a "Content-Type" header for
the APK of type "application/vnd.android.package-archive" ?
(Based on the thread, I don't think it will help, but, it certainly
won't work without it...)
-- Ward
>after i got my application ready, i put it on my web server,
Thanks to a clever colleague here who suggested this.
Since sub-activities inherit any android:screenOrientation set on
their launching parent in the manifest, if you lock the parent one
way but want the user to be able to control the orientation of the
child, you need an explicit constant for
Okay, I think I know the answer as to what can cause an activity not to rotate.
Every activity I wanted to rotate was started with
startActivityForResult() (i.e. it was a sub-activity). It appears
sub-activities "inherit" the "android:screenOrientation" of their
parent in the manifest.
In my
Hello All:
I asked this before and did not get an answer, so let me try again, simpler:
On the G1...
What can cause an activity to NOT rotate to landscape when the phone
is opened? (I want it to rotate.)
No android:screenOrientation is set, and the activity is destroyed
and recreated, but th
for an item to give focus to, which causes the
>ScrollView to scroll.
>
>On Fri, Jan 9, 2009 at 9:08 AM, Ward Willats wrote:
>>
>> On the G1.
>>
>> I have a pre-rotated activity (via android:screenOrientation="portrait").
>>
>> It contains
On the G1.
I have a pre-rotated activity (via android:screenOrientation="portrait").
It contains a ScrollView with a linear layout child. The XML sets
scrollX="0dip" and scrollY="0dip" (although I assume this is the
default anyway).
I launch this activity via a button in another activity.
If
Hear hear. Even for those of us writing stuff by hand it would be useful.
I've been trying to get my head around what a definitive schema would
be though. It seems like the way things like attrs.xml work (to
define elements for custom controls) some of the XML grammar is
defined at resource co
Well, heh, when I first started writing this app I couldn't get the
G1 to NOT rotate my activities on keyboard out. Finally, I added
android:screenOrientation="portrait" to the activities in the
manifest and that kept everything fixed.
Now I have an activity I WANT to rotate when the keyboard
Thanks, that was it. Not all the 9 patches in the stack were set up correctly.
-- Ward
>Hi,
>
>Your 9patch might contain a very large padding area. You should check
>it out in the draw9patch tool and make sure the content area is large
>enough.
>
>On Wed, Dec 17, 2008 at
It seems as though if I set the background to a stateful drawable in
the View of a Button/TextView, gravity breaks.
That is, I have a Button with a 9-patch background I would like to
write the button label on. If I set
"center_vertical|center_horizontal" without the background, the label
is c
Hello.
On the G1
Say you have a custom view class.
It has an inner-class with some view state. This inner-class
references some variables in the outer class. The outer-class
instances the inner-class and holds a reference to it.
Now, say you clone the inner class reference, and pass the
I see when ddms shows a log the entires are timestamped.
Is there a way to get "adb logcat" to timestamp entries?
-- Ward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this g
>It is just Bug fixes nothing new
>
My $1200 ST-506 5MB winchester hard drive is not supported! (*sniff*)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email
>but then tried subclassing it and
>returning false in gatherTransparentRegion() as you suggested.
>unfortunately this doesn't affect the behaviour - upon switching to
>the playback tab after a preview, the black rectangle remains.
Well.poop.
>did i misunderstand your message?
Nope. Unfort
Assuming one of these is a surface view, it may be asking its parent
container to be transparent so it can, as the docs say, "punch a
hole" in the view hierarchy, since the surface is Z-ordered behind
the native views. The parent here is the FrameLayout in the tab host
that contains the tab co
Howdy all.
I need the classic horizontal scrolling ticker for an app I am doing.
I see the Ticker class was removed from the old SDK.
Tried to use TextSwitcher and a TranslateAnimation.
Almost works, but even though the TextViews inside the TextSwitcher
hold some really long text just fine [1
72 matches
Mail list logo