Hi,
The code is originally from my Blog. The reason for the clone is
explained there.
I admit to not having worked with Java enough to have the deep
understanding of how containers deal with objects. In my application I
ran into a problem trying to make a copy of an array and had to write
my
The simple fact that it is non-null tells you. And you can have placed
anything else you want in there in onSaveInstanceState() for whatever other
data you want to retain. See here:
http://developer.android.com/guide/topics/fundamentals.html#actlife
and here:
I guess nobody reported my case.
I've solved like below. See my case.
...
Bitmap dummy = Bitmap.createBitma(1, 1, Config.RGB_565);
Bitmap a = Bitmap.createBitma(100, 100, Config.RGB_565);
Canvas c = new Canvas(a);
...c.draw(..) ...
a.recycle();
c.setBitmap(dummy); // This is key point.
Hi all,
I was wondering If there is a way for an Activity to be started and,
even if the View contains one or more focusable widgets, no focus is
assigned initially; i.e. the activity view contains two edittext
fields, but when the Activity is started and view inflated, none of
them should have
Hi Dianne,
I have tried to annotate the test method with UiThreadTest, but still
it doesn't work, the trace log is:
java.lang.RuntimeException: This method can not be called from the
main application thread
at android.app.Instrumentation.validateNotAppThread
(Instrumentation.java:1500)
at
Hi
Why I have this error, please ? It' s the same java code than the
following url:
http://developer.android.com/intl/fr/guide/topics/providers/content-providers.html
/
/
package dany.android.databasejpeg;
import
I have found the root cause of this problem.
That's because of getInstrumentation().waitForIdleSync()
I have seen someone else use waitForIdleSync() after UI action, I want
to know if it is necessary, and in which case we need to call this
method?
If we want to call it, how do we call it
Hi There,
I have been successful in copying the APIDemo search example and I
have search suggestions from search history popping up in the drop
down search pane that appears at the top of the screen.
However since search is the main function of my app, I have also
created a start up screen with
Annotations have nothing to do with this, waitForIdleSync() has nothing to
do with this, it's just a basic aspect of Android that you can only call on
to UI objects from the thread running the UI. Use this:
Hi,
Does anyone knows how to know current software keyboard is on screen
or not in program?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Dan, a little larger window would be very useful.
May be an extension by a week or two .. as the site opened on 24th
late night only.
You could decide to pass it over to market .. say after 15th sept.
And if announcing an extension, please let us know earlier than 28th
so that we can work
This is what i am doing can u please guide me as to what should be
corrected here,
On opening the file,
mBitmap = BitmapFactory.decodeStream(concontentresolver.openInputStream
(uri));
//to create a mutable bitmap out of it
mBitmap = Bitmap.createScaledBitmap(mBitmap,mBitmap.getwidth
On 25 Sie, 10:08, RS rajeshs...@gmail.com wrote:
Dan, a little larger window would be very useful.
May be an extension by a week or two .. as the site opened on 24th
late night only.
You could decide to pass it over to market .. say after 15th sept.
Oh, no my dear. They did that year ago.
Hi Dianne,
The following code can work well in my computer:
@UiThreadTest
public void testBikeButton(){
//click the bike button
bike_btn.performClick();
..
//I delete the following code, then it works
//getInstrumentation().waitForIdleSync();
Hello list,
i think i need some help with a layout issue. I have three views, two
TextViews (header and footer) and in between a ListView. They are
rendered good, in portait mode. When i go into landscape mode, the
ViewList is gone. Switching back to portait mode and the ViewList is
still
If i am using the streaming API's provided by the SDK that is
mMediaPlayer.setDataSource(url);
mMediaPlayer.prepareAsync();
If we are using this and if there are some max file transfer per connection
rules set by the connection provider,does the
Anybody here?
--~--~-~--~~~---~--~~
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
Hi All,
I want to develope a application in Android just like Fring in which I
can chat using skype yahoo also.
I found that using XMPP it is possible to connect the app with the
gtalk server we can chat on that.
But I want the APIs for the Skype Yahoo that are compatible with
Android OS.
Good morning,
Found a little bug in Spinner widget when using a ImageView (or widget
that doesn't have a baseline) as view for Spinner.
Spinner source code:
@Override
public int getBaseline() {
View child = null;
if (getChildCount() 0) {
child = getChildAt(0);
Dear Sir
My name is Mr. Richard Garry and i am interested in purchasing Flyers
which i want to donate to a Church .I am lookong for 40,000 pieces of the
Flyers with the size 8.5x11 in full paper and i want you to the art work in
the atachment with a Red ink and with a doubles sided on
they will upload your app whether you allow them or not... they don't
care if you say no...
On Aug 7, 10:30 am, biAji biaji...@gmail.com wrote:
On Aug 6, 1:27 pm, CraigsRace craig...@gmail.com wrote:
As far as I know .. NetDragon is an evil company..
Really, why do you say that? I
Hi guys,
My application has an activity to display a textview on the screen,
and it ran well on the emulator (it can fulfill the whole screen).
However, when I try to run it on the device with the resolution
640x480, my application cannot fix the whole screen of this device
(just keep the size
Hi All
What is the approx time taken to register as a developer and to be
able to publish apps on the Android Market?
Do we need to wait for any approval from google to be able to publich
the apps once registered as a developer and a Google checkout
merchant?
Thanks in advance
Soniya
What is the approx time taken to register as a developer and to be
able to publish apps on the Android Market?
its simple 15 mins max.
Do we need to wait for any approval from google to be able to publich
the apps once registered as a developer and a Google checkout
merchant?
No.u just
Heyy thanks for such a quick reply.
On Aug 25, 4:43 pm, for android forandr...@gmail.com wrote:
What is the approx time taken to register as a developer and to be
able to publish apps on the Android Market?
its simple 15 mins max.
Do we need to wait for any approval from google to
Hi everybody,
I would like to know how to run a listener on an isolated thread.
Because I would like to use a LocationListener and make some
calculations in the main thread. So the LocationListener would be
slow down, because of those calculations.
Is it possible to have it run in a different
probably this(i have not tried it though)
android-sdk-windows-1.5_r1/docs/reference/android/view/inputmethod/InputMethodManager.html#isActive(android.view.View)
On Tue, Aug 25, 2009 at 1:33 PM, aby orz0...@gmail.com wrote:
Hi,
Does anyone knows how to know current software keyboard is on
To deep copy an array, you can use System.arraycopy(..)
http://developer.android.com/reference/java/lang/System.html#arraycopy%28java.lang.Object,%20int,%20java.lang.Object,%20int,%20int%29
System.arraycopy(b, 0, a, 0, 3);
but for a float array of length 3, you can simply write
a[0]=b[0];
Dianne,
I was very happy to see Stefano's contribution as I wanted to get a
head start on developing some ideas requiring interfacing Android to
hardware via bluetooth. Yes I'm very aware it can break at any time.
I am really looking forward to the official Android Bluetooth APIs for
DUN, SPP
I recommend using DroidDraw ...compare how it does what you are trying to do
OR paste your code into it and try tweaking.
http://www.droiddraw.org/
Jason Van Anden
BubbleBeats, LLC
http://www.bubblebeats.com
On Tue, Aug 25, 2009 at 6:17 AM, Jiri jiriheitla...@googlemail.com wrote:
Hello
How do you populate a spinner from a cursor accessing an SQLite
database?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi!
I have a service that polls for data. To indicate this to the user I
have a persistent notification in the statusbar. In some cases when
the device goes low on memory it destroys the service but OnDestroy is
not called. Later when there is available memory OnCreate is called.
Is this normal
I am also get this error. Did you find solution?
On Jul 29, 8:57 pm, Dato bera ber...@gmail.com wrote:
ok but when i write like this Exeption trows that Unable to connect server,
can you help me to make connection to ftp server?
2009/7/29 Mark Murphy mmur...@commonsware.com
dario
hm... okay, so I check for null in my onCreate() method.
public void onCreate(Bundle savedInstanceData) {
if (savedInstanceData == null) {
// do everything I did before.
// show splash screen
super.onCreate(savedInstanceState);
}
}
However, now if I'm in my app,
URL have Exception ! you must catch() it before!
2009/8/25 engin enginarsla...@gmail.com
I am also get this error. Did you find solution?
On Jul 29, 8:57 pm, Dato bera ber...@gmail.com wrote:
ok but when i write like this Exeption trows that Unable to connect
server,
can you help me to
Cordialement
Thierry GAYET
NextInnovation.org
+33(0)663.849.589
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Could someone on the Android graphics team comment on whether people
should code around this or if people should ignore it because it has a
good chance of being changed in a 1.5 update? I'm asking because I
need to know what to tell developers in the next edition of Hello,
Android. The 1.5
Hello,
I am displaying MAP and some point on it. But some how it is not
displaying directly on particular point. Instead of it is displaying
screen from which i have left previously. Can some one tell me how can
i make display of the map on particular point.
Another thing is i want to display
G1, Dream, Magic, Hero, Galaxy and more to come...
Does anybody have a rundown of their screen sizes (and of some of the
devices to come out)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers
Listeners are called back in the thread of the instance for which they
registered. Usually this means that listeners' callback methods are
run in the main GUI thread.
If you want to do 'heavy' work when a callback to a listener is
issued, you have to do it yourself. Your listener should
Something like this should work:
Cursor cur = managedQuery(People.CONTENT_URI, PROJECTION, null,
null);
SimpleCursorAdapter adapter = new SimpleCursorAdapter(
this,
android.R.layout.simple_spinner_item,
cur,
new String[] {People.NAME},
new int[] {android.R.id.text1});
I did not understand what you mean?
On Aug 25, 5:03 pm, SIDIBE ALI BROMA jahbr...@gmail.com wrote:
URL have Exception ! you must catch() it before!
2009/8/25 engin enginarsla...@gmail.com
I am also get this error. Did you find solution?
On Jul 29, 8:57 pm, Dato bera
You can create a color-filter with color-matrix that will give the
effect of 'Threshold'.
To get the correct values for the color-matrix, i used this web-site:
http://www.quasimondo.com/archives/000565.php
and the sources you can find here when you click on Download the
source files here.
This
Hi, i have some problem to communicate with a service from an Android
application.
The service is in a first package package com.myService and the application
in another on package com.myApplication.
My service work and start well but my next step is to add an AIDL interface to
external
If you write a JPG, information is written with a loss. Always. Even
with quality=100, some loss will occur. If you do this repeatedly,
losses in image-data will compound.
Why not use the PNG format? Why do you need to write a JPG?
On Aug 25, 4:23 am, karthikr karthik.scintill...@gmail.com
Hi friends,
I would like to change the text color frequently which is drawn
already.
Actually, I have taken the app, AlphaBitmap from APIDemos.
There, I draw some 10 lines.
Now I would like to put the background as black, and the initial text
color as white.
after every 1 sec, each word in
I want preferences that only my application can access.
When i read the docs for SharedPreferences it seemed to suggest that,
but i just wanted to confirm (the word shared scares me :) ).
tia.
--~--~-~--~~~---~--~~
You received this message because you are
They also operate jailbreak iPhone apps and pirated iPhone apps, if you so
care.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Regarding the support or lack of support for OpenGL ES 1.1.
I know that officially the emulator and also the G1 device do not
support OpenGL 1.1.
And I suppose that officially, the SDK does support OpenGL 1.1 (the
interface exists).
Fact is that when GLSurfaceView creates an instance of a class
It is a conceptual problem which you are trying to solve with
controling an activity from another activity. The Android platform
tries to simplify UI development in a way that it defined a life cycle
for activities. If you try to control an activity from another
activity you change the current
hi, All
I'm trying to write some contacts into sim contact.
ContentValues cv = new ContentValues();
cv.put(tag, );
cv.put(number, );
cv.put(newTag, 中文);
cv.put(newNumber, 12345678);
getContentResolver().insert(SIM_CONTACTS_URI, cv);
After you shut down the phone and check the sim contact
On Aug 25, 5:43 am, for android forandr...@gmail.com wrote:
What is the approx time taken to register as a developer and to be
able to publish apps on the Android Market?
its simple 15 mins max.
Do we need to wait for any approval from google to be able to publich
the apps once
My application reads existing images from the mobile, and allows the
user to edit it and save it, if the image is in a jpeg format there is
a loss in quality when the image is edited and saved. Is there any
other way to open a jpeg image edit it and save it back?
Also i have noted one more
you should start a new thread rather than hijack this thread for
something totally unrelated!
On Aug 25, 8:26 am, wangysh2009 wangysh2...@gmail.com wrote:
hi, All
I'm trying to write some contacts into sim contact.
ContentValues cv = new ContentValues();
cv.put(tag, );
cv.put(number, );
How are you trying to do it? You need to call View.invalidate() to
force the onDraw method of SampleView to be called at the time
interval you wish it to be called.
Could you paste your code modifications to the sample code, please ?
Balwinder Kaur
Open Source Development Center
·T· ·
That's what i'm doing with my app as well.
And i have the same issue. As soon as your re-read a JPEG and save it
again (modified or not), you will get loss of quality. There is no
other way around it.
In my app, i don't save over the original image. I do a 'save-as',
more or less. At least the
I'm interested in the implementation of MyTracks/Google Maps marker overlay
as well.
I also used draw() method in itemizedOverlay class and the performance is
horrible.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I see no need to extend the deadline, it's been public since May 27th,
if you're not ready by now, you'll probably never be ready. People
have to learn that a deadline means something, extending it would only
punish those who are ready and reward those who can't meet project
goals on time.
-John
Thanks a lot for your advice.
Ill update u on the same once i get a solution.
Regards,
R.Karthik
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi, i have some problem to communicate with a service from an Android
application.
The service is in a first package package com.myService and the
application in another on package com.myApplication.
My service work and start well but my next step is to add an AIDL
interface to external
i want to create a control that looks like this:
+++
|X|Y |
+++
And either X or Y is selected, but not both. Is that some
variation of a ToggleButton?
Also, i want to create something that looks like this
+++
|Y| |
+++
Where the
Yes they are, unless you pass MODE_WORLD_READABLE or MODE_WORLD_WRITEABLE
the first time you retrieve them.
On Tue, Aug 25, 2009 at 8:33 AM, sdphil phil.pellouch...@gmail.com wrote:
I want preferences that only my application can access.
When i read the docs for SharedPreferences it seemed
Please read the documentation. As I said in my original post, this is for
when your activity gets killed while it is in the background. When you
press back, the default implementation is to finish() the activity so there
is no longer any instance data.
On Tue, Aug 25, 2009 at 6:57 AM, sdphil
I also subscribe to the Android Discuss group. I clicked on a post in
today's email update and got a message saying Cannot find android-
discuss ... There is no group named android-discuss. There were a
couple of threads I was watching. Anyone know what happened?
On Aug 21, 5:09 pm, Mark Murphy mmur...@commonsware.com wrote:
David Golombek wrote:
We could kill our app proactively, as soon
as we launch the ACTION_VIEW activity, but then we're left in a bad
state if the user aborts.
Why? In other words, what difference is there between:
-- the
Not getting onDestroy() is normal, expected, and desired behavior as for all
app components -- the kernel kills processes when it needs more memory, we
don't rely on them being nice and cleaning up at their leisure.
The current semantics for recovering from being killed are unfortunately as
you
All current android devices are 320x480.
On Tue, Aug 25, 2009 at 7:30 AM, JP joachim.pfeif...@gmail.com wrote:
G1, Dream, Magic, Hero, Galaxy and more to come...
Does anybody have a rundown of their screen sizes (and of some of the
devices to come out)?
--
Dianne Hackborn
Android
There's no reason that they would change the deadline. The deadline has
been set at the 31st since late May (as stated before). With that deadline
posted, your app should be ready to hit the submit button on the 31st or
sooner. Nothing changed, they're giving you a full week to hit the Submit
No idea. I'm missing it, too.
On Aug 25, 12:48 pm, Doug douglas.w...@plantronics.com wrote:
I also subscribe to the Android Discuss group. I clicked on a post in
today's email update and got a message saying Cannot find android-
discuss ... There is no group named android-discuss. There
I'm trying to get the acceleration values in the earth coordinate
system. E.g. instead of knowing the phone is accelerating
+Z in the phone's coordinate system I'd like to know if
the phone is accelerating upwards relative to the earth.
Seems like it's almost there since I can get the phone's
You are right.. yeah our app is more than ready.. but not everybody
was expecting a one week window.
Some do travel on business during working days and it happens to be a
long weekend in the UK.
And submissions from business involve a paid bunch of developers who
don't work like hackers over
Hi,
I am creating a little application where I use the Android Camera
class. Everything seems to work but the result is a black picture.
I think I forget to set a parameter.
Do you have any ideas on which parameter I must set up ?
The code:
public boolean takeIt() {
If the app was submitted to the Market in any form before August 1st, it's
not eligible. If the app was first submitted in any form after August 1st,
it is eligible. So if you submitted the first version to Market after 1
August, you may submit a revised version to the ADC2.
- Dan
On Tue, Aug
Hi,
I have a scenario where I want to play several samples after each
other. Sounds like a job for the SoundPool since they will re-occur
and I want to keep them loaded. Below is a code snippet:
SoundPool soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0);
int mySampleId =
My board has an lcd of 24 bpp, but android UI is 16 bpp. When 24bpp
images are drawn, android will be down sampling. Is there a way to
optimise it, as config some .conf files to 24 bpp? And how to do it?
On 8月18日, 下午11时20分, Romain Guy romain...@google.com wrote:
Android is perfectly capable of
On Aug 24, 12:34 pm, Hong lordh...@gmail.com wrote:
If you do: adb uninstall your.package.name.mainactivity,
do you ever get any crash/error etc?
If not, the upgrade/installation process will uninstall your app cleanly.
We do get crashes (that we're working on), but they don't matter
since
How do I show chinese type in english android system? Thanks
--~--~-~--~~~---~--~~
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
I agree with Vetch, the deadline has been communicated a long time ago
and one week should be sufficient to just upload the app (I presume
the site works as expected ...). Any change to the deadline would just
insult all developers that were working to this deadline as they were
supposed to.
I just want to know how android rendering onto 32 bits.Anyone knows
pls tell me.
On Aug 18, 11:20 pm, Romain Guy romain...@google.com wrote:
Android is perfectly capable of rendering onto 16 bits and 32 bits (or
24 bits if you prefer) displays. However, I don't know of any display
in mobile
Hi All,
what changes you have been done to vold.conf?
and i followed the steps of gobor..
but for me also, emulator is getting stucked..
can you plz help me..
On Aug 25, 2:23 am, Haritha hari.andr...@gmail.com wrote:
thanks everyone for posting info on emma coverage.I was also able to
My application needs to respond to the change in the database, when a
new contact is added and a new SMS is received or sent. The onChange()
function is so stupid that it only notifies you the happening of the
event without any other infomation.
Does any one have better solutions to know the row
I'm trying to develop an application that need DEVICE_POWER
permission, I put it in android.manifets file, but when launching the
app crashes, the logcat reports Not granting permission
DEVICE_POWER... due to Security constraints.
Checking the docs it seems that the apk must be signed with a
hi i am new to android.
i have an application in that i download 105 images.
now i than i display those images in gridview thumbnail size .
it images are display but it take some time to display images in
gridview
and even take long time to scrolldown to view below images.
can any one helpm me
Hi all,
the Android web site indicates that all applications are created
equal. What is the strategy to ensure that critical applications/
services have priority?
Are there any facilities Android/Linux does provide to ensure certain
applications and/or threads to receive a minimum of CPU
I found it slow as well even with the emulator remaining open.
I've only had a couple of hours messing around with it but I ran the
Hello World application last night. With the emulator still open I
tried changing the output text to see how long it takes to redeploy.
When I click to run it again
Is there a way to get the trackball to flash when an SMS message
arrives?
On Aug 14, 6:08 pm, Dianne Hackborn hack...@android.com wrote:
There is no direct API, the light is controlled indirectly by posting a
notification that requests the lights flash.
On Fri, Aug 14, 2009 at 3:43 AM,
How do I change the timeout time for the lock screen? Instead of the
10 second timeout, a 2 second timeout would save more battery life.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To
I'm trying to set a circle of pixels to transparent in a Bitmap.
Currently I am iterating through the pixels in a circle and drawing
them with Bitmap.setPixel(x, y, Color.TRANSPARENT), and I would like
to see if it is quicker to make a Canvas from the Bitmap and use
Canvas.drawCircle(x, y,
Hi,
As per the following link, Android already developed IMS
http://code.google.com/p/android-ims/
Does it support JSR 281 and IMS SIP stack.
Do Android have any plan to release this within Android 2.0 DONUT sdk?
Please help.
Thanks Regards,
Aryaan
Hi,
Please i'm asking where can we ask google to extend adc 2 deadline ?
thks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi,
I've tried to measure the accelerometer sampling rate on the G1 when
the rate was set to FASTEST and the results were around 50Hz. Does
this value seem to be wrong or is the maximum sampling rate really
this low? And if it is, how come? Since the CPU clock is 528 MHz,
shouldn't it be
Hi all,
I wanted to understand what the $ sign and the number after a $ sign
meant in a backtrace.
For example, consider the following backtrace:
at android.app.ActivityThread.access$2500(ActivityThread.java:115)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
1745)
In
I am trying to let Android connect to my Google App. While I have
tried many kinds way of connection, somehow I failed all. The error is
java.net.Connection.Exception:localhost/127.0.0.1:8080 - Connection
refused.
Hope someone can help me fix this problem.
My one method is as follows:
Hi All,
Android includes a database engine (SQLite). In general, do the
applications keep/manage their own databases (files) or is there a
unifying database manager?
Thanks,
Matthias
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hi all,
at the moment I am thinking about a new app and need some information
to decide whether to develop on Android or an alternative OS.
I am particularly interested in time to first screen, boot-up
time, time to first Audio and app-start (can be any from the
android market or even one of
Hi,
I am writing my first application in Android and when the screen is
locked I pressing menu to unlocked and I am getting event to my view
( onKeyDown ) and it open the menu of the screen .
how can I avoid getting this event to my application ?
Thanks
Singel ton .
Hi,
has anyone tried to run Android in the virtualization layer, e.g. on
VMware?
Thanks, Matthias
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Does anyone knows how to make android with color depth 32bit/pixel?
pls tell me,thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi,
I want to play an audio message to caller and record the caller voice.
Does android provide the following functionalities:
1. Playing an audio over the connected voice call.
2. Recording from the connnected voice call.
Please help.
Thanks Regards,
Aryaan
Hi All,
I am new to Android and OpenGL world.
I've created a new ap using openGL ES. ( I am not able to find a
option to send attachment of package to group, so that youi can see my
code and sugest me wherei made a mistake).
Android Simulator LCD size is 320 x 455 and i've set same size for
1 - 100 of 222 matches
Mail list logo