Why wouldn't that work if it's a non-static inner class? Dave's
solution is basically what I do, with the AsyncTask being a private
(non-static) inner class of the Activity that uses it. Store it
across screen flips, and then if it's present in onCreate, feed it the
new context.
-- Eric
On Sep
I eventually made my own best practices for AsyncTasks that survive
screen flips and can even maintain progress dialogs if needed, and
it's all very robust and reasonably clean - but it took a lot of
iteration and investigation.
Storing an AsyncTask is not hard if you understand what is
Hi Romain,
Thanks for the response. What was the general effect of the race
condition? This might explain why I think that I see this behavior
consistently when debugging (when everything is slow) and
inconsistently otherwise (when things are fast, but I can't verify
what's happening).
Is that
Just making sure. :)
On Jul 27, 12:22 pm, Romain Guy romain...@android.com wrote:
Post-froyo means after froyo, so not in froyo :)
On Tue, Jul 27, 2010 at 5:53 AM, Eric Mill kproject...@gmail.com wrote:
Hi Romain,
Thanks for the response. What was the general effect of the race
As far as I can tell, AsyncTask's cancel method doesn't work as
advertised. I can't tell whether this is a bug, or me not
understanding AsyncTask's cancel() method. I'm asking here instead of
StackOverflow because I suspect it's a bug.
I understand from past discussions here that cancel() isn't
You might want to check out this thread:
http://groups.google.co.jp/group/android-developers/browse_thread/thread/1cfcbfd3fb754b64
I'm having the same problem right now. I'll let you know if I find a
solution.
-- Eric
On Oct 28, 5:12 pm, Lee labor...@gmail.com wrote:
I'm getting a null
Would you mind elaborating a bit, and showing some code? I am having
the exact same problem, and am in the exact same situation, but I
can't follow your solutions.
-- Eric
On 11月4日, 午後9:34, Lee Laborczfalvi labor...@gmail.com wrote:
Thanks for the tip on this. That fixes my issue.
What I've
AH, I GET IT NOW!
I was having awful troubles with an ArrayAdapter recycling random
views to me, in a list which used different kinds of views. The
errors were maddening until I figured out what was going on, using
that part of your book. It's absolutely insane...until you understand
why they
ignore'd res/values/keys.xml, created a keys.xml.example file
and put it in the root of my repo (can't put it in res/values, causes
project errors), and added an instruction to the README to copy and
rename keys.xml.example, and to fill in one's own values.
-- Eric
On Sep 10, 12:05 pm, Eric Mill
it in
manually during operation, but that seems like the wrong way to do it.
-- Eric
On Sep 9, 4:09 pm, Mark Murphy mmur...@commonsware.com wrote:
Eric Mill wrote:
In my app, I'm taking advantage of a web-based API (the Sunlight Labs
API) that requires an API Key. The project is also open source
In my app, I'm taking advantage of a web-based API (the Sunlight Labs
API) that requires an API Key. The project is also open source,
hosted on Github. I want to avoid committing my API key into the
codebase.
I'd be fine with creating some other .xml file of special string
values, and
I am having similar problems, and have no idea how to resolve it. So,
er, +1.
-- Eric
On Feb 22, 2:17 am, Ilan ilan.ca...@gmail.com wrote:
Hi,
I've tried to setup eclipse to run junit after reading the following
Yeah, I got that too. It's wonderful news, awesome on Google!
-- Eric
On Wed, Dec 31, 2008 at 11:51 AM, Al Sutton a...@funkyandroid.com wrote:
Did anyone else get the email saying that initially only developers
operating in the US and UK will be allowed to sell apps in Market?
The email
There's an issue where downloading small files (such as small 20Kish
apps) get corrupted over 3G, but not wifi, that this is certainly
related to. If you've ever downloaded an app, and it says that it
wants to replace Android System, that's the bug, and I now blame T-
Mobile (as opposed to
This has been an awesome thread.
On Dec 1, 5:33 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
So that means the G1 Does!
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL
You could just have a piece of code that reads in the text file,
parses it into an array of items, and then loops through that array to
add the items to the menu. It's not conceptually different than doing
it statically. The XML inflate method isn't going to work for dynamic
data, so it'll have
Dianne, do you think this will be added to the API in the future?
Saving state on phone shutdown could be important for some apps.
-- Eric
On Nov 20, 9:12 pm, Jon Colverson [EMAIL PROTECTED] wrote:
Eek. That makes things a bit more difficult. Thank you for the quick
response, though!
On Nov
If you think many in the army would find it useful, I bet you could
find someone or some office who could hire someone to do it.
-- Eric
On Nov 8, 1:15 pm, Sam M [EMAIL PROTECTED] wrote:
I'm a US Army Officer Cadet, not a developer. However, I've seen
things like the Radar application and
So, is there a way to get the audio after the call? Surely there must
be some way to use the G1 to record one's phone calls.
-- Eric
On Nov 7, 2:34 pm, Dave [EMAIL PROTECTED] wrote:
Downlink audio is not routed to the application processor on the G1,
so there is no way to capture in-call
app is displaying the data from an API
call to a server, so unless you know how to get call the API and
interpret the data you're not going to have any joy.
Al.
Shane Isbell wrote:
On Sun, Nov 2, 2008 at 4:14 PM, Eric Mill [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
I share
I share Nate's interest -- I have a G1, but I'd like to just browse
the Market in Firefox for a while sometimes. Where's the endpoint,
and what user agent string do I have to spoof? :)
-- Eric
On Oct 27, 6:03 pm, Nate Sanden [EMAIL PROTECTED] wrote:
It says my app has 17 reviews but I can't
This is a good question. Is there a standard way for programs to send
messages to each other? Can they touch each others' SQLite databases,
at least?
-- Eric
On Oct 19, 5:00 am, roshan [EMAIL PROTECTED] wrote:
I wanna know a possible way of sending data from one android
application to
22 matches
Mail list logo