I have a MapView that I update from time to time from a timing
thread.
The problem is when the user interacts with the map two invalidate
occurs, does anyone know how can I know if the map is alredy drawing
for me not to send invalidate again?
is there anything like isdrawing or
Hi,
The code here is incomplete, and does not suggest any reason for an error, I
am not sure what the issue might be, could you post the code for your class
and its declaration in AndroidManifest.xml? Do you have the permission to
read contacts set in AndroidManifest.xml?
Thanks,
Megha
On Fri,
Yes, it's working.
You mean the way I used is not correct?
but that's what mentioned in API.
From exception, it seems it could not find android.R.id.list.
On Apr 12, 1:17 pm, Dan U. [EMAIL PROTECTED] wrote:
You are extending ListActivity right? Maybe you could try using
Replying to myself :)
I went digging in the documentation, and found BitmapShader
http://code.google.com/android/reference/android/graphics/BitmapShader.html
Believe me that Shader is not the best name for such a Functionality !
I would have never found it by this name, I just opened it out of
You can find it in the browser.apk file inside the emulator
On Apr 12, 12:12 am, zero [EMAIL PROTECTED] wrote:
Hi folks
a simple, maybe even stupid question:
i'd like to display the browser icon in an activiy menu (as it is
supposed to launch the browser with an uri), but i can't find it
I'm also same problem when I try to install m3 version of SDK.
On Apr 6, 11:18 pm, sasperilla [EMAIL PROTECTED] wrote:
I keep getting this error in my console when I try to startup the
emulator. I've restarted Eclipse, but it keeps croaking with this
error. Also the emulator easily takes 5
Unfortunately setting mSF to null had no influence. Some additional
info on what's happening:
If I leave SurfaceView in my main.xml, the surface won't show the
video, but will contain the info what was displayed on it in the
subactivity. If I use VideoView in main.xml, the subactivity info is
thank you for your reply - as i said, the code worked fine in the main
activity, sendmail.java, but when i moved it to GetContacts.java i get
a nullPrtException from EmailContactsRepeat where the call is. i am
also listing the intent reciever where the code is called.
here is the manifest
?xml
I'm in trouble !
How in the hell do I load a Bitmap from resources ?
NOTE: Bitmap, NOT BitmapDrawable !
Because we only have that option in the constructor of a BitmapShader,
which IS A Shader (derives from Shader), not a Bitmap !
On another note, We can NOT get the Bitmap from BitmapDrawable,
Gee, found it, BitmapFactory.
I think, I'm starting to feel the stress of the approaching date ;P,
and so much stuff still to do.
On 12 abr, 09:30, Rui Martins [EMAIL PROTECTED] wrote:
Replying to myself :)
I went digging in the documentation, and found
Just a comment on this Bitmap issue, in terms of class structure and
organization.
I understand the Factory Pattern usage and concept, since I have used
it before.
But why are some of these factory methods (static methods that know
how to create Bitmaps) inside Bitmap class, and others inside
Apparently, on M3, canvas.drawRect(...) will throw a
NullPointerException, when the rectangle is out of the screen, zero
area or something similar. Haven't tested on M5 either.
Haven't debugged it further, just asking, maybe someone already knows
the answer.
So I can't quite exactly pinpoint the
I tried different methods, but field wasn't updated.
1.
ContentValues values = new ContentValues();
values.put(People.NAME, New name);
getContentResolver().update(People.CONTENT_URI, values, people._id=
+ contactId, null);
===
2.
String[] projection = new String[] {
Ok, confirmed !
When canvas.drawRect( ... ) is given coords that will make it draw
outside of the canvas buffer (bitmap), it will throw a
NullPointerException.
This should NOT happen whatever the draw method is drawRect or other!
Any draw method MUST clip the coords to match the available
I guess the only other choice is to use a cursor adaptor and bind it
to the data. That requires some changes that I don't want to have to
do this close to the deadline.
On Apr 11, 5:02 pm, SnowDrifter [EMAIL PROTECTED] wrote:
After looking at the Activity lifecycle I am not sure if there are
Interesting -- how are you testing this? I mean, how are you sending
messages from your desktop PC to your android client, and how are you
receiving and handling these messages in your android client?
Are you simply using the ApiDemo classes?
On Apr 11, 6:41 am, NTR [EMAIL PROTECTED] wrote:
When using BitmapShader, the results might be surprising, or look
strange or just erroneous.
This looks like a bug or problem, because the class/methods
documentation is missing some important info.
Nowhere in the documentation is stated that the bitmap will be pinned
down to the screen absolut
Thanks Qin Shiming,
I Think these informations will be very useful, But just tell me if
I'm wrong...
As far my system contains 2 partitions...FAT16 kernel partition, EXT2
filesystem partition. Both are read only.
So what I have to do is :
- make system partition to be in read/write mode,
But
Can it play wmv files?
I used ViewVideoDemo with a streaming wmv url and it failed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Comments in the speex forum:
Android provides Java SDKs, but the underlying media libraries are in
C/C++:
http://code.google.com/android/what-is-android.html
The M5 release contains support for Ogg Vorbis (.ogg):
http://code.google.com/android/migrating/m3-to-m5/m5-api-changes.html#media
so
Hi all,
I created this post to help new android developers with porting
android on hardware.
Very inportant quesion is :
How to prepare SD card to run android?
Lets say, that I have :
- patched compiled kernel,
- system dir extracted from android emulator,
- userdata dir extracted from android
Hello Megha:
i try to use MediaPlayer to play a lot files,
ArrayListString fileList = new ArrayListString();
fileList.add(/sdcard/01.mp3);
fileList.add(/sdcard/02.mp3);
fileList.add(/sdcard/03.mp3);
fileList.add(/sdcard/04.mp3);
...
for(int i=0;i100;i++){
mp = new MediaPlayer();
Here is an easy question but I can't find the easy answer.
How can I align the label in a Checkbox widget to the left of the
actual checkbox. To label first then checkbox. It seems to default to
checkbox first then label.
thanks
--~--~-~--~~~---~--~~
You received
There's probably some nice way of doing this (styles), but off the top
of my head, I'd say don't set any text for the checkbox and add a
textview to the left for your label.
On Apr 12, 11:41 am, Redhunt [EMAIL PROTECTED] wrote:
Here is an easy question but I can't find the easy answer.
How can
Actually, it would be fairly easy to do this, but I don't think there
is an existing method for it.
First, create some kind of flag in the Service to represent whether
it's running. Update this flag in onStart and onDestroy. Then provide
a public static method to access this flag. I would be
The message is a bit vague I guess. The way I read it was that it
couldn't find an xml file with that id. That would likely be in
reference to an xml in res/layout. I don't know where you see anything
mentioned in the API. The docs are empty for createFromResource in my
local m5-rc14 copy. The
I think a static variable will stay in the memory when the service is
stopped, but there is one way to find out...
On Apr 12, 9:08 pm, Dan U. [EMAIL PROTECTED] wrote:
Actually, it would be fairly easy to do this, but I don't think there
is an existing method for it.
First, create some kind
Thanks Dan, I thought about that too. I was trying to keep things
nice ! :)
On Apr 12, 1:57 pm, Dan U. [EMAIL PROTECTED] wrote:
There's probably some nice way of doing this (styles), but off the top
of my head, I'd say don't set any text for the checkbox and add a
textview to the left for
Is it possible to get the terrain data from Google Maps as is possible
with the web version?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I've been frustrated for a while by the lack of support for proper
reverse geocoding - or at least, proper mock reverse geocoding. And
we really need it now for our app (left this bit to the last minute).
We didn't want to use the undocumented GML-thing and wanted to stick
to the standard format
why go through the trouble of fixing minor issues with mock geocoding
when the bigger problem is that the geodb file only has 1 non-business
location (the white house) and one business (Zachary's Pizza in 3
locations)
For challenge submissions, instead of the FixedMockGeocoder.java
class, I
Well, I'm not sure the issue is when it is stopped, but when it is
taken out of memory when the OS tries to release resources.
On Apr 12, 1:29 pm, Hielko [EMAIL PROTECTED] wrote:
I think a static variable will stay in the memory when the service is
stopped, but there is one way to find out...
The following Code works, and does what we expect:
android.graphics.Matrix myMatrix = new android.graphics.Matrix();
myMatrix.reset();
myMatrix.setScale( 1, 1 );
myMatrix.preTranslate( 100.0f, 36.5f );
This code, DOES NOT work, i.e. does NOT do what we expect
I am having trouble updating the state of a Checkbox inside a
SimpleCursorAdapter. I want to update the checkbox to reflect some
data in my DB at the start of my ListActivity. My Layout is as
follows:
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
How is this done? I am not having any problems setting String and
integer data through the SimpleCursorAdapter constructor at onCreate
but I can't figure out how to bind the check state of the checkbox
with this method, it always wants to bind to the text field of the
checkbox.
Here is how I am
This is normal and expected, but the docs should be clearer.
setScale/setTranslate/etc. on Matrix set the Matrix to the specified
transformation. To compose the transformation with the existing Matrix
you need to use the pre/post methods.
On Sat, Apr 12, 2008 at 3:18 PM, Rui Martins [EMAIL
renegade,
The guys hanging out on android-internal are doing this kind of stuff.
Check out what they've been doing.
Joa
On Apr 12, 10:25 am, renegade [EMAIL PROTECTED] wrote:
Hi all,
I created this post to help new android developers with porting
android on hardware.
Very inportant quesion
Ok nevermind what I just said. I now understand what you are talking
about.
Thank you very much!!! I have been banging my head on this for several
days now and this fixes it!
For other people with this problem this is what I did:
SimpleCursorAdapter List=
new
Has anyone succeeded in using Shaders ?
Do they Work ?
Yes, I'm using a shader for tiling bitmaps in my view background. I
also got a ComposeShader working to apply a gradient across my
background. The thread below might help:
I am using the setWallpaper method and I am having problems with it.
Rarely it seems to work fine, others I just get a white screen on the
home screen. And I cannot pin point what the difference is. Right now
it is always white. Has anyone else experience problems? Is there any
requirements with
Does the audio subsystem support cross-fading, or at least offer
sufficient features to implement it gracefully?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
41 matches
Mail list logo