There's something in the app that happens in the background
sporadically (daily to weekly). It's CPU intensive, but I don't want
it to slow down the device. Right now, I'm creating a thread with
MIN_PRIORITY, but it doesn't seem to help in anyway from the perceived
slowdown of the phone while
It's one of those rare moments that I've stumbled across an error that
doesn't even exist on Google search (neither web search nor code
search). I'm rather proud of it, in fact - it means I'm breaking stuff
better than others :)
[2011-10-28 17:21:19 - Dex Loader] Unable to execute dex: Section
Hi all.
We've got a pretty large app with millions of installs. What we've
noticed is that there are always ANRs reported, even in questionable
conditions. For example, we see ANRs in the most simple of broadcast
receivers, where there are only 4 lines of code, and no networking or
file IO.
Have you used StrictMode to confirm that you are not using networking
or file I/O here? There may be file I/O under the covers in some
Android API calls you're using.
That is a good call, I will try that. I was thinking no.
Also, bear in mind that referring to classes other than the
Hi all. I was wondering what would happen in the following scenario:
Your application schedules a service or any type of pending event on
the AlarmManager. Let's say it repeats every 24 hours at noon. If an
application update is available, and the user updates the application
at 10 AM through
The AlarmManager setRepeating() methods include parameters for 1. when
it starts, and 2. how often it repeats.
http://developer.android.com/reference/android/app/AlarmManager.html
On Feb 25, 11:37 am, Jake Colman col...@ppllc.com wrote:
If I create an alarm on a repeat interval of, say, 60
I have a base group of activities. Let's call them A1, A2, and A3.
When the user switches between these activities, they are at the
bottom of the app. When they press the BACK button in either A1,
A2 , or A3, they leave the app (or task).
An easy way to visualize this is a tab activity, such as
The following do not work:
myDate.setTextColor(0x00FF);
This app has examples of dynamically changing text color.
http://www.androidengineer.com/2010/08/easy-method-for-formatting-android.html
--
You received this message because you are subscribed to the Google
Groups Android
When switching back and forth between activities, by default, they are not
destroyed and recreated - unless necessary.
This is irrelevant. Activities, by default, are destroyed when
clearing the task.
If you are concerned with maintaining state (like a list view's scroll
position), you need
AHH! This latest update to Android SDK v8 has made my life hell.
1. The change that makes the compiler fail when strings have multiple
formatter specifications (%d, %s, etc.) without position arguments
(%1d, %2s, etc.) is new. This means that ALL PREVIOUS TAGS/BRANCHES/
ETC. IN THE REPOSITORY
.
This is documented in the bug here:
http://code.google.com/p/android/issues/detail?id=13091
--
Matt Quigley
www.androidengineer.com
--
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
Although that solution will work for most developers, it will not work
if you need to propagate this fix across all team members working on
the project. As an alternative, you can fix it in your own project's
build file (build.xml) by ensuring that the external .jar files are
included in the
The Ant builds no longer work with external libraries.
Make sure you are on Ant 1.8.1.
On Dec 10, 2:21 pm, Xavier Ducrohet x...@android.com wrote:
Yes. this is a requirement that fell through the release notes.
We're adding code to detect the Ant version at compile time and fail
hard
In the latest Android SDK Tools (revision 8), ProGuard has been
integrated into the ant build. This is easier to set up than it was
before (http://www.androidengineer.com/2010/07/optimizing-obfuscating-
and-shrinking.html), but I'm curious about the optimizations that are
disabled by default.
To all the various responses:
1. To the guys asking about plurals, have you seen
http://developer.android.com/guide/topics/resources/string-resource.html#Plurals
?
2. To the guys who think the errors for the multiple formatters is
over the top... it isn't just over the top, it has really screwed
3, 1:18 am, Matt Quigley matthew.quig...@gmail.com wrote:
First of all, I find it odd that the encoding is even specified at
all. Why not just leave it as the default system encoding?
Secondly, if one is going to specify an encoding, then it should NOT
be ascii. It should be UTF-8
Dear Google,
You are really cool and all. You must be working really hard on this
Android thing because I see updates every few months. But every time
you come out with a new update to the Android SDK, you break my app.
In strange ways, too! A while back there was this new feature to
the
On Dec 6, 3:08 pm, Romain Guy romain...@android.com wrote:
It wouldn't. What if you translate your app in a language where the second
value should appear first? The translation would be $2%s $1%s and the code
wouldn't change.
That may be the case, sometimes, somewhere. It isn't all the time.
On Dec 6, 4:13 pm, Daniel velaz...@gmail.com wrote:
What would be the proper way of outputting a % sign, it's giving me
this error on a regular string saying 3%
Outputting just a % sign? Probably %%.
Or, you can leave it as 3% and add formatted=false.
--
You received this message because
On Dec 6, 4:25 pm, Xavier Ducrohet x...@android.com wrote:
At this time we really haven't committed to keep the rules compatible
if you go in and change/override stuff.
If you need extensibility you should let us now what and we'll add it.
Okay, that's fair I suppose. That previous problem
First of all, I find it odd that the encoding is even specified at
all. Why not just leave it as the default system encoding?
Secondly, if one is going to specify an encoding, then it should NOT
be ascii. It should be UTF-8. After all, the files themselves are
not ascii, they are UTF-8 (or
Hi all. I have read all about having separate processes for different
Application components, and how to use them. I am curious, what are
some appropriate use cases for when an application should actually use
separate processes? It seems to me, the main advantage to using
separate processes is
I believe that you are expecting the IntentServices to act like
threads. You will not have multiple instances of an IntentService run
at the same time. From the documentation at
http://developer.android.com/reference/android/app/IntentService.html:
All requests are handled on a single worker
Hi all. I have read all about having separate processes for different
Application components, and how to use them. I am curious, what are
some appropriate use cases for when an application should actually use
separate processes?
I'm not sure there are any for the vast majority of
I'm looking for a good book to buy to help me with OpenGL ES. This is
obviously going to be for Android, but I suppose the benefits will
spill over to iPhone development too. Although I'm not specifically
opposed to a general OpenGL book, I'm not going to be using it on my
desktop (at least not
There are many more project directories that make up the Android
source. /platform/frameworks/base is just one of many on
http://android.git.kernel.org/. I don't know off hand where
ServiceManager.java is, but it's there somewhere.
-Matt
On Nov 2, 1:25 am, adithya 24adit...@gmail.com wrote:
a yucky feeling (to me, at least) to not know why
a line of code is there.
On Nov 2, 7:53 pm, Leigh McRae leigh.mc...@lonedwarfgames.com wrote:
Do you have any 3d experience?
On 11/2/2010 7:28 PM, Matt Quigley wrote:
I'm looking for a good book to buy to help me with OpenGL ES
Thanks for the advice, guys. Googling OpenGL HUD is a step in the
right direction for anyone else looking to do this. Here's some quick
code:
private void viewOrtho2(GL10 gl, int x, int y)
{
// Set Up An Ortho View
I'm making a 2D game, with sprites drawn using the glDrawTexfOES()
method. I'm wondering if there are ways to draw things like lines and
squares along side this.
Now, I know that technically there's nothing stopping me from drawing
3D cubes and such. But, you see, glDrawTexfOES draws using
I'm sorry I've confused everyone, I will try to explain myself more.
First of all, ignore anything related to downloading data from the
network. Of course you download data in a separate thread or
service. This question has nothing to do with that.
What I'm trying to do is emulate tabs. I'm
On Aug 12, 2:34 pm, Mark Murphy mmur...@commonsware.com wrote:
Why? Why not views and a ViewSwitcher?
On Aug 12, 2:42 pm, TreKing treking...@gmail.com wrote:
4. Use one single activity with four components of your own design. Your
main layout can have the four tab buttons and a space beneath
On Aug 10, 6:13 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
Load the network data from a background thread or even a (background)
service, not from your activity.
For an even better user-experience, you may want to consider caching
the data as well (if that's possible).
OK, well we
Let's say you have a TabActivity with activities A1, A2, A3, and A4.
When you click on the different tabs, no matter how many times you
navigate between them, when you press the back key you leave the
entire tab group, instead of navigating to a previous tab. My problem
is, I am not using an
Just thought I would post my solution, if anyone else wants to know.
I had to add android:focusableInTouchMode=true in order to get it to
work. I also might have added android:duplicateParentState=true to
get it to work, but I'm not sure if that's necessary.
Now that I got it working, though, I
On Jul 23, 2:37 am, Indicator Veritatis mej1...@yahoo.com wrote:
You left out something very important: the code hidden under //
reload the image must not assume that it is not itself interrupted by
yet another call to the garbage collector. That is, instead of simply
continuing to use the
You might get it to work if you request the focus for EditText on
creation. Either add editText.requestFocus() in your onCreate(), or
add a requestFocus/ tag inside the EditText's XML layout.
EditText
requestFocus/
/EditText
-Matt
On Jul 23, 4:52 am, harshe hars...@gmail.com wrote:
no
36 matches
Mail list logo