I started going down the path of Object pooling. It seemed the only
solution when taking an existing engine and making work on a resource
constrained system like Android on a phone. Determining the strategy
for returning objects to the pool proved quite tough for me. I have
no doubt there are
OK, Dan, here are fragments of the output resulting from 'dx --dump
bin/classes/net/from/apprise/Apprise.class' when gij is used. Results
are similar for any class file. Unfortunately, it's not an outright
crash with a stack dump and I suppose this only gives you an
approximate idea of where it
Hello all...
This morning, we updated our app on AM; this was our first update
since release of Android 1.1.
In testing, on the emulator and with the signed .apk installed on our
handsets, everything appeared to be working fine; however, we uploaded
to AM, selected the new CopyProtection
Thanks Romain,
I have just filed it http://code.google.com/p/android/issues/detail?id=2337.
But before it's fixed in a new release, is there any workaround or I
will have to play with the VelocityTracker myself?
On Mar 31, 10:39 am, Romain Guy romain...@google.com wrote:
Hi,
It looks like a
private CharSequence[] strings;
Resources res = getResources();
strings = res.getTextArray(R.array.secondlines);
res/values/array.xml :
?xml version=1.0 encoding=utf-8?
resources
string-array name=secondlines
item.../item
item.../item
...
/string-array
I think this code will answer your questions :)
http://code.google.com/p/netsentry/
On Mar 31, 4:34 am, Skouti sko...@scs-net.org wrote:
Dears
Is there any Library and classes that enables writing a NetMonitor
application for 3G Wifi like in Symbian phones ..?
Android.net.wifi and
Hi,
You are mistaking two different things. Some Java ME phones have a
dedicated chip used to interpret the Java bytecode. OpenGL
acceleration is another thing entirely. The G1 has a dedicated GPU
that can be used to accelerate OpenGL. Any Android OpenGL application
benefits from that hardware
Unfortunately I don't see any possible workaround :(
On Tue, Mar 31, 2009 at 11:40 AM, focuser linto...@gmail.com wrote:
Thanks Romain,
I have just filed it http://code.google.com/p/android/issues/detail?id=2337.
But before it's fixed in a new release, is there any workaround or I
will
Holy crap, thanks for posting this - was going out of my mind trying to
figure out why I couldn't get two pending intents to fire off.
Thanks
Rob
On Sat, Feb 21, 2009 at 4:10 AM, Juan David Trujillo C.
jdavidandr...@gmail.com wrote:
In case this is useful for someone:
When you are
seems that gc is a problem, just one of them at least, so can we please have
a c++ sdk?
On Tue, Mar 31, 2009 at 9:26 PM, shaun shashepp...@gmail.com wrote:
I started going down the path of Object pooling. It seemed the only
solution when taking an existing engine and making work on a
From what i know, most of the Java/J2ME phones use the chipsets
acceleration functions (some mobilephone CPUs are optimized for java
accerlration in 2d/3d games). But since Android is not based on Java/
J2ME, it doesn't support this acceleration (even though the CPU used
in the G1 supports Java
Don't do heavy work in the main thread and put tasks which require
much processing (or long loops) into a seperate backgroudn thread.
http://developer.android.com/guide/practices/design/responsiveness.html#avoiding
On Mar 30, 10:26 pm, ying lcs ying...@gmail.com wrote:
Hi,
Can you please
I was under the impression that if you have an app installed without
protection and then update to a version with protection you get force-
closes.
I have no idea if it's been confirmed though, sorry.
On Mar 31, 7:43 pm, rcs rsar...@gmail.com wrote:
Hello all...
This morning, we updated our
ah thanks for the class!
On Tue, Mar 31, 2009 at 11:42 AM, deepdr...@googlemail.com
deepdr...@googlemail.com wrote:
private CharSequence[] strings;
Resources res = getResources();
strings = res.getTextArray(R.array.secondlines);
res/values/array.xml :
?xml version=1.0 encoding=utf-8?
Good point, I forgot about the MediaScanner.
One thing to note about using ACTION_VIEW is although you get the nice
mediaplayer UI it doesn't keep playing when you change Activities e.g.
go back to the home screen.
On Mar 31, 3:57 pm, Jean-Baptiste Queru j...@android.com wrote:
No problem
I currently have a few classes that are called by an activity (some
statically) in which I want to use a string resource. I tried:
Resources.getSystem().getString(R.string.mystring), but am getting an
error. It seems as though you can only use this within an activity.
Is there anyway to use a
(moving out of android-developers, but posted for the last time so
those who are interested can join the conversation on android-discuss)
Romain, can you confirm that the G1's Qualcomm MSM7201 CPU does not
support java hardware acceleration?
I'm reading here[1]:
528 MHz ARM11 Jazelle™[2] Java®
I have noticed that if my background service crashes the system will
automatically restart the service after 5 seconds. This is great, but
I have noticed that only the onCreate method gets called and not the
onStart method. Does this mean the service is properly restarted or do
I need to do
It doesn't matter whether there's a chip with Java hardware
acceleration in the G1 because Android does not use Java bytecode, but
Dalvik bytecode.
--
Romain Guy
Android framework engineer
romain...@android.com
Note: please don't send private questions to me, as I don't have time
to provide
Thanks. I am trying to disable it so that it won't pop up while I am
debugging via eclipse.
Thank you for any tip.
On Tue, Mar 31, 2009 at 12:13 PM, Tseng tseng.priv...@googlemail.com wrote:
Don't do heavy work in the main thread and put tasks which require
much processing (or long loops)
That is working as intended. onStart() is called each time someone calls
startService(); if nobody has called startService() since your last
onStart(), then onStart() will not be called again. The Service class does
not have the same lifecycle as Activity; it is unfortunate we used start
for the
You should pass the Resources object in. Actually, you should generally
pass in Context so you get the theme and everything else as well.
On Tue, Mar 31, 2009 at 12:28 PM, Kirk kirk.mora...@gmail.com wrote:
I currently have a few classes that are called by an activity (some
statically) in
Aha, maybe I wasn't clear enough. I very well understand that Android
runs Dalvik, and not Java bytecode, and from what I read on the net,
this was done to avoid some licensing issues/arguments with Sun.
Here I'll put my question as bluntly as possible:
If Google were not forced by Sun because
Works like a charm. Now I just have to change all my static methods to
accept a context object.
Thanks!
On Mar 31, 12:39 pm, Dianne Hackborn hack...@android.com wrote:
You should pass the Resources object in. Actually, you should generally
pass in Context so you get the theme and everything
Do you have code in your 'onPause()' method of your activity.
If so, it looks like this code is blocking (never returning).
On Mar 31, 11:39 am, Bobbie bobbie.st...@gmail.com wrote:
When I choose the image, this is what I get in the debug log:
03-31 11:34:36.055: INFO/ActivityManager(55):
Stoyan - the optimisation from the Jazelle is apparently not that good
anyway, partially because a software JVM performs all sorts of
optimisations on the fly.
On Apr 1, 8:42 am, Stoyan Damov stoyan.da...@gmail.com wrote:
Aha, maybe I wasn't clear enough. I very well understand that Android
Dear all,
I have a custom view that draw a rounded rectangle. This view is
clickable.
I would like to change the color of the inner rectangle when the view
is clicked (to act like a button)
So I created a swapColor() method inside my custom view :
public void swapColor() {
On Tue, Mar 31, 2009 at 11:36 PM, thesquib thesq...@gmail.com wrote:
Stoyan - the optimisation from the Jazelle is apparently not that good
anyway, partially because a software JVM performs all sorts of
optimisations on the fly.
I wasn't comparing JVMs, I was comparing Dalvik's
On Tue, Mar 31, 2009 at 12:42 PM, Stoyan Damov stoyan.da...@gmail.comwrote:
If the answer is yes, I then expect to hear what was that Google
couldn't agree on with Sun (although I don't expect to hear that from
Google Android engineers, but like I've said many times, Google is
f...@#ing DEAF,
On Tue, Mar 31, 2009 at 5:38 PM, m5p3nc3r matt...@thespencers.me.uk wrote:
Any news on when we might be seeing a fix for this problem?
I have a pending patch, but only for the cupcake emulator (the 1.1 one is
*way* older).
I didn't find the time to test it properly, or more precisely, I
Developer phones can't see paid apps in the market. This is because
the root access available on the developer
phones breaks the Market copy-protection model.
The Market copy-protection model ignores that there are many consumer
phones that have been rooted...
Eric Schott wrote:
I have
I'll definitely post the app tonight for you guys to check out (at
work now). I am an embedded systems programmer by trade. But I do
physics toys for fun and am just getting into Java/Android
optimizations. I will point out that optimizing for Java and
optimizing for Android are very
Dianne,
I can't see why are you taking this personally.
FWIW, you, Android engineers, are the only people we're getting *any*
answers to all our non-development questions.
Is it so hard to accept the fact that people can think that Google,
the company, is for example bad or deaf, but at the
Thanks for the tip, I will definitely write up a contract if this goes
through!
On Mar 30, 11:45 am, droozen droozenr...@gmail.com wrote:
I take it, then, that you are not an iPhone developer.
Not sure which way I would go on this one. If your friend already has
some iPhone experience, I
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
You can receive an SMS mesage on the emulator by using
emulator control, you'll need an actual device to fully test sending
sms, the behavior is different on the emulator.
M
On Mar 30, 10:05 am, aglagla lad...@gmail.com wrote:
Hello World!
I'm a beginner in android platform.I
I call WebView.clearHistory(), but I am still able to go back after
doing so. I want to reuse a WebView, but I don't want the back button
to allow the user to go back further than the current session of
using the WebView. Anybody know what is the best way to handle this? I
thought for sure that
Hope you wont be mad because I'm giving this discussion a bump ... but
I'd really need an answer =)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
OK, but could you explain briefly why the GestureDetector would have
such side effect? In the code above I don't see any events being
stolen nor any new events being created. Original events are just
passed to FrameLayout.dispatchTouchEvent as if there's no
GestureDetector used.
I even tried
Anyone?
BoD
On Mar 29, 5:48 pm, BoD bodl...@gmail.com wrote:
It works fine, except when doing this, the picture is written in the
Camera folder (/sdcard/dcim/Camera).
Since the picture was not taken with the camera, this is not
desirable.
Is there any way to put it directly in dcim?
The problem comes from the VelocityTracker used by the
GestureDetector. The tracker has a pool of 1 instance but there's a
bug in the pool management which causes both your GestureDetector and
ListView to use the *same* VelocityTracker. This means the tracker
receives most events twice.
I just
Craig - None of your responses are valid because I am using the two
PreferenceScreens in the same .java file, so that wouldn't help.
Peli - No, I do not use onPreferenceTreeClick(PreferenceScreen,
Preference). This is my code:
@Override
public void onCreate(Bundle icicle) {
Matthias wrote:
Setting the locale in /data/locale as described here doesn't work for
me in 1.1 R1. Has the process changed? This used to work for me in
pre-1.1 releases.
I've just posted an article on my blog detailing the steps I'm using to
test my applications.
Basically, you need to
Great!
Will it fix the problem in my app if I pull GestureDetector.java from
Cupcake and include/use it in my code?
On Mar 31, 4:05 pm, Romain Guy romain...@google.com wrote:
The problem comes from the VelocityTracker used by the
GestureDetector. The tracker has a pool of 1 instance but
I believe there is a bug in Android's implementation of
Color.colorToHSV(). If you pass it fully desaturated color, it
assigns all three HSV components to the same value, that value being
the value component of the color. While hue is arguably arbitrary
in such an instance could be assigned any
I have an Activity that plays a brief OGG pop sound effect when
bubbles pop. To keep it fast and to ensure I can play several pops, I
create four MediaPlayer instances. I synchronize access to a pool of
instances, so I can play up to four pops at once. Once a sound
completes, I call seekTo(0) and
No because the issue is in VelocityTracker :)
On Tue, Mar 31, 2009 at 4:39 PM, focuser linto...@gmail.com wrote:
Great!
Will it fix the problem in my app if I pull GestureDetector.java from
Cupcake and include/use it in my code?
On Mar 31, 4:05 pm, Romain Guy romain...@google.com wrote:
Bugs and issues can be added and tracked at
http://code.google.com/p/android/issues/list
On Apr 1, 12:44 pm, Keith Wiley kbwi...@gmail.com wrote:
I believe there is a bug in Android's implementation of
Color.colorToHSV(). If you pass it fully desaturated color, it
assigns all three HSV
good point. Thanks Romain. :)
On Mar 31, 5:37 pm, Romain Guy romain...@google.com wrote:
No because the issue is in VelocityTracker :)
On Tue, Mar 31, 2009 at 4:39 PM, focuser linto...@gmail.com wrote:
Great!
Will it fix the problem in my app if I pull GestureDetector.java from
It works, thanks a lot.
-Jiang
--- 09年3月31日,周二, Jon Colverson jjc1...@gmail.com 写道:
发件人: Jon Colverson jjc1...@gmail.com
主题: [android-developers] Re: How to display a horizontal bar
收件人: Android Developers android-developers@googlegroups.com
日期: 2009,331,周二,7:36下午
On Mar 31, 11:25燼m, Jiang
Hi All , I definitely have a memory leak problem and i'm trying to
figure out there. After 6-10 config changes i'm getting out of memory
in regards to BitmapFactory. I'm kind of suspect that this is going
on within adapter.
I have a listview . ListItems are an thumbnail image ( ImageView )
and
OK,because no body answer this question on the other forum,so i have
to change another forum to ask the same question,since somebody may be
answer this question
And,i search this topic by google, and get some info like this:
As one of the key infrustructure, Android Binder provide one of the
I'm writing a game using two different SurfaceView's (RollView and
CupView) in two different activities. Both SurfaceView's heavily
resemble the LunarLander demo.
The RollView SurfaceView is working fine. When leaving the Activity,
RollView's surfaceDestroyed() is called, killing the thread. If
Hi Cupcake today build version seems has same sdcard mount problem
Best Regards
Eric Chen
On Thu, Mar 26, 2009 at 9:05 AM, Anonymous Anonymous
firewallbr...@googlemail.com wrote:
Sorry i coundt find mmcblk0 but i can see mtdblock0 mtdblock1 and
mtdblock2
*and btw this will not help
Thanks for your help!
On Mar 31, 7:46 pm, Mark Murphy mmur...@commonsware.com wrote:
guishenl...@gmail.com wrote:
Hi all,
When I tried to copy a file in my PC to the Android Emulator, I
used the command
C:\Documents and Settings\Aliothadb push D:\Data\Android\1.jpg \data
\data\.
I don't think you've included enough code. Where is this 'thread' variable
defined? Where do you clear it after finishing the thread?
I am also confused by the comment saying you exiting the activity in
rollDice -- you aren't calling finish, you are just starting another
activity, so the
This is where the thread variable is declared.
private Context mContext;
/** The thread that actually draws teh animations. */
private CupThread thread;
private TextView mStatusText;
public CupView(Context context, AttributeSet attrs){
This is the main Activity of my app. The one holding a CupView.
package my.package;
import my.package.CupView.CupThread;
import org.openintents.hardware.SensorManagerSimulator;
import org.openintents.provider.Hardware;
import android.app.Activity;
import android.content.Intent;
import
This is the CupView Class.
package my.package;
import org.openintents.hardware.SensorManagerSimulator;
import org.openintents.provider.Hardware;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import
Hi,
I configured the username and pwd from DevTools-Google Service
Login successfully on the 1.0r2 emulator and i found the account
infomation is stored in the
\data\data\com.google.android.googleapps\databases\accounts.db, but i
did not find the Googleapps package in the open soucecode.
Anyone?
--~--~-~--~~~---~--~~
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
I haven't read through all your code, but you should not call
thread.start() in your surfaceCreated method.
Instead, create and start your thread asap and have it paused when
necessary.
When 'onPause()' or when surfaceDestroyed is called, pause your thread
(CupThread).
When 'onResume()' or
Hi all,
How to run one or more apk programmess base on Emulator's SDcard?
Thanks!
--
Sincerely!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
faint,perhaps FirmWare 1.1 disable paid app features for android dev
phone???
On Mar 31, 11:11 pm, Eric Schott ericwsch...@gmail.com wrote:
Here's the specs:
Model Number:AndroidDevPhone1
Firmware Version: 1.1
Kernel Version: 2.6.25-01845-g85d4f0dandroid-bu...@apa27 #27
Build number:
Thank you for your suggestions, however according to the API, there is
no way to pause or resume threads. Only start them, then join them
(which eventually kills it). All related methods for pausing and
resuming have been deprecated it seems.
On Mar 31, 11:07 pm, Streets Of Boston
I am using in ImageButton Now and am using the following code to ad the
button to the surfaceview..
myImgTest.setBackgroundDrawable(mBalloon1);
myImgTest.draw(canvas);
This seems to work as I do not get any errors however i don't see the
button. What is the proper way to add the button to the
This is not true. Devices that are identified as root-enabled, whether an
ADP1 or a rooted retail G1, cannot access copy-protected apps. They can
still access both paid and free apps that are not copy-protected, however.
- Dan
On Tue, Mar 31, 2009 at 2:09 PM, Michael MacDonald
If you have the holiday devphone build, it's either an actual
Google-employee holiday phone, or you've flashed a third-party system image
on some other device. The latter case is an unsupported configuration, and
it would not surprise me at all if the Market client in that build simply
pre-dates
Hi all,
I tried to show a picture in local file system in a imageswitcher.
But I could see nothing but a black screen in fact.
Here is my code:
public void onItemSelected(AdapterView parent, View v, int
position, long id) {
Uri imageUri =
Actually he developed his own code for calculating distance and
direction,
What I mean is, I launch the new activity with,
this.startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse(http://maps.google.com/maps?
f=dsaddr=37.4,-121.9+
Hi all,
I want to implement SyncML on android. I want to sync my contacts
and calendar on my server.Is it possible in android ?
if yes then how ?. I am waiting your response.
Thanks,
Gulfam
--~--~-~--~~~---~--~~
You received this message because you are
Michael MacDonald wrote:
Sorry - meant to say that developer phones can't see copy-protected apps
in the market.
Developer phones can't see paid apps in the market. This is because
the root access available on the developer
phones breaks the Market copy-protection model.
The Market
Got it!
Thank you!
On 3月31日, 下午11时35分, Romain Guy romain...@google.com wrote:
For efficiency, layouts do not get their onDraw() method called. To
enable it, call setWillNotDrawEnabled(false) (or set the equivalent
XML attribute to false.)
On Tue, Mar 31, 2009 at 7:15 AM, FBear
http://www.funambol.com/news/pressrelease_2007.11.14.php
it works
2009/4/1 Gulfam gulfa...@gmail.com
Hi all,
I want to implement SyncML on android. I want to sync my contacts
and calendar on my server.Is it possible in android ?
if yes then how ?. I am waiting your response.
Thanks,
Hi,
I need to pass a 2 dimensional array to an ACTIVITY from a SERVICE.
How can I achieve this in minimum number of statements (as in avoiding
putExtras for each and every string stored in the array)??
Please help me with this.
Thanks.
Best Regards,
Zhubham
101 - 175 of 175 matches
Mail list logo