[android-developers] Sharing a view among several activities

2009-11-04 Thread Gavin Bong
I want to create a little widget which displays a green bulb if there is network connectivity and a red bulb if there is none. Design: a) register a BroadcastReceiver to listen for network connectivity events b) If the receiver receives a network down/up event, it will notify the

[android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread Nishant
Hello, Why in-build javax.sound API of Java not introduced in Android 2.0? Lots of problems occur in Android Sound API (AudioTrack as well as MediaPlayer). Regards, Nishant Shah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Using MediaPlayer best practices?

2009-11-04 Thread Alexey Krasnoriadtsev
Preparing a mediaPlayer is the most expensive operation. calling stop() or pause() and then start() works best for me. You can also peek at the MediaPlaybackService for inspiration. Why do you think it will get into the bad state? On Nov 3, 7:14 pm, Moto medicalsou...@gmail.com wrote: What is

[android-developers] Re: Getting outgoing number on HTC Hero (Sense) from HtcDialer

2009-11-04 Thread Junda
I have encountered the same problem and would to know if anyone has a fix. But I observed on another HTC Hero with build 3.03.751.4, the intent is broadcasted correctly. On Sep 30, 7:51 pm, Arild arildgr...@gmail.com wrote: First, just let me apologize if this has been answered before, but I

[android-developers] Re: Getting outgoing number on HTC Hero (Sense) from HtcDialer

2009-11-04 Thread Arild
I've tried it with build 2.73.405.5 from the norwegian HTC site, so that hopefully means it'll be fixed in future updates. However, I'm not sure if the average user really upgrade the ROM on his/her phone. But maybe the upgrade to Android 2.0 will be significant and talked about enough for most

[android-developers] Could the mediarecorder and the mediaplayer use the same surfaceview?

2009-11-04 Thread yjshi
Hi,all! I use the mediarecorder to record the video.And I use the surfaceview to preview the video while it is recording.And I want to use the some surfaceview to playback this video that just has recorded.But it does not work. Could anyone give me a suggestion? -- You received this

Re: [android-developers] Trap in TabHost when AsyncTask delays setContentView at activity startup

2009-11-04 Thread Jeff Sharkey
Instead of delaying the setContentView() call, can you inflate that layout and set its visibility to View.GONE temporarily until the actual content arrives? j On Tue, Nov 3, 2009 at 8:52 PM, Lee Laborczfalvi labor...@gmail.com wrote: I've got a tab host activity started from a home screen

Re: [android-developers] Re: Regarding the database schema of Android native database

2009-11-04 Thread Jeff Sharkey
If you're looking to interact with the built-in Contacts or MediaStore databases, you should interact through the ContentProvider abstraction layer. The underlying database schema can change, but these public APIs will continue working across releases:

Re: [android-developers] Trap in TabHost when AsyncTask delays setContentView at activity startup

2009-11-04 Thread Lee Laborczfalvi
I'll give this a go and let you know how it works. Thanks for the tip. Lee On Wed, Nov 4, 2009 at 8:27 PM, Jeff Sharkey jshar...@android.com wrote: Instead of delaying the setContentView() call, can you inflate that layout and set its visibility to View.GONE temporarily until the actual

[android-developers] calendar

2009-11-04 Thread jera g.
where is the calendar application in android 2.0? i can't seem to find it in the emulator. -- 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

[android-developers] Re: android.com e-mail addresses

2009-11-04 Thread Fred Grott(Android Expert, http://mobilebytes.wordpress.com)
No, for Google engineers working on Android OS only On Nov 4, 1:01 am, PJ pjbar...@gmail.com wrote: If someone has an android.com e-mail address, what does that mean? Can serious app developers get one? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Error after installing 1.6 on DEV PHONE

2009-11-04 Thread Eric Wong (hdmp4.com)
Is there a way to fix this without doing a wipe? (I just upgraded to 1.6 from 1.5) Thanks Eric On Oct 8, 6:11 pm, jayan jayan.thara...@gmail.com wrote:  there is an Option at Settings = Sdcard Phone Storage next search Factory Data Reset. and it will restart the phone. but you will be

[android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread poohtbear
Hi. I'm trying to produce source code for the SDK (gather it from the git repository and put it under ./sources directory under platform-2.0). i can't however find a tag in the git repository of 2.0 ? can anyone tell me why ? how do i check out the code of 2.0 ? Eyal. On Oct 27, 6:45 pm, Xavier

Re: [android-developers] Re: Problem running a compiled/packaged-with-v1.6 application on v1.5

2009-11-04 Thread Armond Avanes
Lance, Thanks for your reply. Finally I could track down the problem. PreferenceCategory was the root of the issue! For whatever reason, that exception occurs when I build against v1.6 and run it under v1.5 or when I build it against v1.5 and run it under v1.6... The problem vanishes when I

Re: [android-developers] Re: text animation

2009-11-04 Thread Anh Khoa Nguyen Pham
Hi pskink, Can your way make text displayed in rotate mode? On Wed, Nov 4, 2009 at 2:39 PM, skink psk...@gmail.com wrote: On Tue, Nov 3, 2009 at 2:49 PM, npak...@gmail.com npak...@gmail.com wrote: Hi all, Now i want to write an application to make a certain text to run

[android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread Nishant
Hi, You can download source code from: http://android.git.kernel.org/?p=platform/dalvik.git;a=tree;hb=HEAD Thanks Regards, Nishant Shah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: [Android-developers] Display APIs in Android?

2009-11-04 Thread Latha Shivanna
You can directly draw onto surface bound with canvas passed in in your draw handler. You don't have to always first draw into bitmap then copy from bitmap to surface. can you please give me some sample code for the same? It would be really helpful. Or any references where i can have a look at

Re: [android-developers] ALT key for a virtual keyboard

2009-11-04 Thread Dianne Hackborn
No, an IME doesn't provide any modifiers, it inserts the final UTF-16 characters into the text. On Tue, Nov 3, 2009 at 9:37 PM, droidin.net bost...@gmail.com wrote: Basically I want to capture Alt-key combination to provide some customized alternative text input. For example Alt-f would put

Re: [android-developers] Re: Problem running a compiled/packaged-with-v1.6 application on v1.5

2009-11-04 Thread Armond Avanes
Lance, Digging further showed that it was the problem with my theme customization. The default preference_category.xml is referring to listSeparatorTextViewStyle as its style. But I've customized the listSeparatorTextViewStyle and for whatever reason it does not correctly inherit the

[android-developers] Re: Trouble Rendering Bitmaps Correctly in OpenGL

2009-11-04 Thread abowman
If you can solve my problem, I'll send you a Google Wave invite. :) On Nov 2, 6:39 am, abowman abow...@gmail.com wrote: I'm basically using the same method of loading bitmaps in OpenGL that the SpriteMethodTest example uses and have been unable to get rid of an annoying outline that appears

[android-developers] Re: [Android-developers] Display APIs in Android?

2009-11-04 Thread niko20
Hi, OnDraw gets a Canvas object passed to it. You basically draw directly to this object (Use Canvas's methods to do the drawing). However, you won't be double buffering then so you may see some flicker. -niko On Nov 4, 5:33 am, Latha Shivanna latha...@gmail.com wrote: You can directly draw

[android-developers] Re: Stable contact identity CONTENT_LOOKUP_URI

2009-11-04 Thread jarkman
Dmitri - thanks - that's perfect. So, we have two choices - (1) For each incoming contact URI, loop over our table of stored lookup keys, looking each one up with ContactsContract.Contacts.lookupContact(resolver, lookupUri) and comparing with the incoming contact. I think that will be reliable,

Re: [android-developers] What is the Sprint Hero AppWidget problem?

2009-11-04 Thread Justin Giles
It might be related to this problem (which HTC has said isn't their problem): http://groups.google.com/group/android-developers/browse_thread/thread/3b7aced444a47425 Justin On Wed, Nov 4, 2009 at 12:20 AM, btm...@gmail.com btm...@gmail.com wrote: Hello all, I wrote a widget that has been

[android-developers] Subclass of ArrayAdapter not working

2009-11-04 Thread jax
I have subclassed ArrayAdapter to set the color of text to RED if the string does not contain 100%, this has been added to a ListView. The problem is that some of the rows show as red when they contain 100%. Why would this happen? /* * Subclass of ArrayAdapter to change the

[android-developers] Max size of android application

2009-11-04 Thread Archana
What is the maximum size that android application can hold? I have one database(.sqlite extension) file with 147 mb, Is it possible to include that file in my app.?I tried to put it in my asset folder but while running it showing message like No space left on device. -- You received this

Re: [android-developers] Max size of android application

2009-11-04 Thread Mark Murphy
Archana wrote: I have one database(.sqlite extension) file with 147 mb, Is it possible to include that file in my app.? Not really. Some devices do not have 147MB of app storage available. I would keep your APK size down to a few MB if you are trying to distribute it via the Android Market,

Re: [android-developers] Subclass of ArrayAdapter not working

2009-11-04 Thread Mark Murphy
jax wrote: I have subclassed ArrayAdapter to set the color of text to RED if the string does not contain 100%, this has been added to a ListView. The problem is that some of the rows show as red when they contain 100%. Why would this happen? You are recycling rows but not resetting their

Re: [android-developers] Dynamically grow listview

2009-11-04 Thread Martin Obreshkov
This approach is good but in first place i was looking for something else. In the article the method of growing the listview is simply to take care when the last visible element is reached and the listview grows with new elements (just like in android store when you scroll down apps) but what i

[android-developers] Scroll Event in Android

2009-11-04 Thread Maxood
I am developing an app in which i am using random numbers to retrieve data from my database and drawable from an array. Here is my code: public class Facts extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState)

Re: [android-developers] Dynamically grow listview

2009-11-04 Thread Mark Murphy
Martin Obreshkov wrote: This approach is good but in first place i was looking for something else. In the article the method of growing the listview is simply to take care when the last visible element is reached and the listview grows with new elements (just like in android store when you

[android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread jax
Thanks it worked, I changed it to if(!item.contains(100%)) { tv.setTextColor(Color.RED); } else { tv.setTextColor(Color.BLACK); } but I still don't understand why... Do you know any

[android-developers] Re: Trouble setting contact photos with ContactsContract

2009-11-04 Thread jarkman
Well, I found a simpler way, which seems to work. You need to know that the photo lives in the extension data for a contact, so you are just adding a row of extension data with the right contact ID. Here's adding a photo: ByteArrayOutputStream bytes = new ByteArrayOutputStream();

[android-developers] Re: Verify musical instrument app idea: microphone, simultaneous record and play, elevation, multi-touch

2009-11-04 Thread Ulrich Althöfer
Yes, those applications are the hype, I think! But what's about guitar-playing? You need 4 fingers simultaneously and more (for to hit the string)? I read about, that the multi-touch-option is limited to 3 simultaneously fingers touched. I am glad to see such applications! Greetings Ulrich On 4

Re: [android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread Mark Murphy
jax wrote: Thanks it worked, I changed it to if(!item.contains(100%)) { tv.setTextColor(Color.RED); } else { tv.setTextColor(Color.BLACK); } but I still don't understand why...

[android-developers] Guru Meditation@ AudioTrack(51): *** SERIOUS WARNING *** obtainBuffer() timed out

2009-11-04 Thread Mike
Hello, I am using MediaPlayer to play background music and SoundPool to play sound effects. All Audio data is stored in .ogg file format. Sometimes it happens that the MediaPlayer playback is interrupted for a fraction of a second if SoundPool.play() is called. Whenever this happens, the

[android-developers] Re: Max size of android application

2009-11-04 Thread Archana
Actually i am working on G1 device.So it might be difficult rit? On Nov 4, 6:43 pm, Mark Murphy mmur...@commonsware.com wrote: Archana wrote: I have one database(.sqlite extension) file with 147 mb, Is it possible to include that file in my app.? Not really. Some devices do not have

Re: [android-developers] Re: Max size of android application

2009-11-04 Thread Mark Murphy
Archana wrote: Actually i am working on G1 device.So it might be difficult rit? The G1 has 70MB for all apps. It would be difficult to have 147MB in your app. Again, download the database yourself and store it on the SD card. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Max size of android application

2009-11-04 Thread Archana
Can u send me some links mentioning android memory size and internal storage. I searched but i am not getting any documentation related to this. On Nov 4, 6:43 pm, Mark Murphy mmur...@commonsware.com wrote: Archana wrote: I have one database(.sqlite extension) file with 147 mb, Is it

[android-developers] Cannot start volume '/sdcard' (volume is not bound) error using vold

2009-11-04 Thread sreedhar b
Hi All, Iam seeing the SDcard mount issue with the donut release 1.6_r1. This uses vold. Please see the below log portion for details: # I/vold( 620): Android Volume Daemon version 2.0 I/vold( 620): New MMC card 'MMC08G' (serial 520946106) added @

Re: [android-developers] Re: Max size of android application

2009-11-04 Thread Mark Murphy
Archana wrote: Can u send me some links mentioning android memory size and internal storage. I searched but i am not getting any documentation related to this. Search Google for: G1 70MB -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's

[android-developers] Re: Guru Meditation@ AudioTrack(51): *** SERIOUS WARNING *** obtainBuffer() timed out

2009-11-04 Thread Ulrich Althöfer
Yes, I can confirm the error message: AudioFlinger write blocked for 53 msecs Have a look at the entry: SoundPool: playing/stopping-delaytime sometimes greater 300 ms http://groups.google.com/group/android-developers/browse_thread/threa... I have got no answers at all to those problems here.

[android-developers] Re: Advice Needed on Application Approach

2009-11-04 Thread Tabibito
So does that mean there's no way to tell the difference between the phone starting up and calling onCallStateChanged, and the caller hanging up and calling onCallStateChanged? On Nov 3, 2:13 pm, Mark Murphy mmur...@commonsware.com wrote: Dianne Hackborn wrote: I'm not sure it is published in

Re: [android-developers] Re: Advice Needed on Application Approach

2009-11-04 Thread Mark Murphy
Tabibito wrote: So does that mean there's no way to tell the difference between the phone starting up and calling onCallStateChanged, and the caller hanging up and calling onCallStateChanged? I do not know what the phone starting up means, sorry. There are three call states tracked by a

[android-developers] Re: Guru Meditation@ AudioTrack(51): *** SERIOUS WARNING *** obtainBuffer() timed out

2009-11-04 Thread Ulrich Althöfer
Excuse me, the correct link of my above message is: http://groups.google.com/group/android-developers/browse_thread/thread/4e7a0eabd2727864/8d8cbb7421af147b?lnk=gstq=SoundPool%3A+playing%2Fstopping-delaytime+sometimes+greater+300+ms Greetings Ulrich On 4 Nov., 14:44, Ulrich Althöfer

[android-developers] Re: how to know if it the emulator or device

2009-11-04 Thread Diego Torres Milano
As Dianne mentioned assuming that because there's no wifi you are running on the emulator is a bit risky. There could be real phones with no wifi and emulator emulating wifi. Stick to any of the other methods. On Nov 4, 6:19 am, Zhihong GUO gzhh...@gmail.com wrote: It can not work. There is no

[android-developers] Re: The mysterious disappearing progress bar...

2009-11-04 Thread dadical
Anyone have a clue? I'm guessing it has something to do with changes in Donut related to buffering or optimizing display of Z-Order of views in relative layout, but maybe it's something simpler... I'm stacking: LinearLayout RelativeLayout VideoView (WRAP_CONTENT, WRAP_CONTENT,

[android-developers] Re: The mysterious disappearing progress bar...

2009-11-04 Thread Mika
I had a similar problem and it was just because the default progressbar had changed in Donut and it was all white. So I had a white progressbar in a white background. Not sure if that's your problem though. -Mika On Nov 4, 5:02 pm, dadical keyes...@gmail.com wrote: Anyone have a clue?  I'm

[android-developers] Re: Advice Needed on Application Approach

2009-11-04 Thread Tabibito
What I mean is that I start the service when I receive a BOOT_COMPLETED message from the system. Immediately upon starting my service, onCallStateChanged() is called with a state of idle. No calls have come in, I haven't even touched the emulator... I'm assuming that it's happening because the

[android-developers] Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
So I am slowly trying to figure out maps... I want to be able to click on a point and pop up a message. Toast seemed the way to go. So I added an onTap handler in my class that extends ItemizedOverlay (the class is called HelloItemizedOverlay) and then tried to grab the Toast example... But I am

Re: [android-developers] Toast - I can't get it to work in Eclipse...

2009-11-04 Thread Mark Murphy
furby wrote: So I am slowly trying to figure out maps... I want to be able to click on a point and pop up a message. Toast seemed the way to go. So I added an onTap handler in my class that extends ItemizedOverlay (the class is called HelloItemizedOverlay) and then tried to grab the Toast

Re: [android-developers] Does Google think developers are lowest life form?

2009-11-04 Thread Disconnect
..do you have some sort of evidence that they shut down cyrket? On Wed, Nov 4, 2009 at 1:14 AM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: What purported to be a web company doesn't even let developers see user comments from the so-called Developer Console. Now they shut down

[android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
It underlines the makeText word and when I ask it for suggestions all it says is Rename in file. Which makes me wonder if, perhaps, makeText' no longer exists in the Toast object? On Nov 4, 10:38 am, Mark Murphy mmur...@commonsware.com wrote: furby wrote: So I am slowly trying to figure

[android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread jax
Thanks, I will check it out On Nov 4, 9:19 pm, Mark Murphy mmur...@commonsware.com wrote: jax wrote: Thanks it worked, I changed it to                 if(!item.contains(100%)) {                    tv.setTextColor(Color.RED);                 }                 else {                

Re: [android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread Disconnect
Thats not 2.0. ISTR 2.0 sources are tagged, but only the bare minimum to cover the sdk gpl requirements. On Wed, Nov 4, 2009 at 6:28 AM, Nishant nish...@saltriver.com wrote: Hi, You can download source code from: http://android.git.kernel.org/?p=platform/dalvik.git;a=tree;hb=HEAD Thanks

[android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
To be sure that you have some idea of what I am talking about, here is the code for the entire class : import java.util.ArrayList; import android.graphics.drawable.Drawable; import android.widget.Toast; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.OverlayItem;

[android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread jax
Actually Mark I went to buy your book on Amazon the other day and it is $417.24 ...??? The Busy Coder's Guide to Android Development by Mark L. Murphy (Paperback - Feb 6, 2009) 1 new from $417.24. What is with that? Is there another way to buy it? I am not in the US. On Nov 4, 10:53 pm,

Re: [android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread Mark Murphy
furby wrote: To be sure that you have some idea of what I am talking about, here is the code for the entire class : import java.util.ArrayList; import android.graphics.drawable.Drawable; import android.widget.Toast; import com.google.android.maps.ItemizedOverlay; import

Re: [android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread Mark Murphy
jax wrote: Actually Mark I went to buy your book on Amazon the other day and it is $417.24 ...??? The Busy Coder's Guide to Android Development by Mark L. Murphy (Paperback - Feb 6, 2009) 1 new from $417.24. What is with that? Is there another way to buy it? I am not in the US. _The

[android-developers] data in xml res/raw

2009-11-04 Thread stephane.cast...@gmail.com
Hi ! I want to get the string in my xml and create button with this text. But my code (below) doesn't work. I don't know why? there is an exception : String array resource id #0x7F040 android.content.resources$NotFoundException: String array Morever, I have used this method to store my data.

[android-developers] Override in call-screen - Security Bug or Feature?

2009-11-04 Thread Jarman
I just had a private mail-discussion with Dianne Hackborn and he asked me to put this issue on the Developer forum for further discussion. I have managed to override the in-call screen from the Java API (i.e. not modifying the source). (If you want to se it happen, download Jarmans ReverseLookup

[android-developers] How to avoid change in the screen brightness when changing the screen form portrait to landscape mode and vice versa...

2009-11-04 Thread Girish
Hi All... Whenever the phone screen changes its orientation from landscape to portrait , or portrait to landscape, the screen goes dim and becomes bright (after changing its orientation it becomes bright). Hot to disable this change of brightness...? please help me... -Girish --

[android-developers] no device

2009-11-04 Thread Libre
Since I upgrade to Android 2.0 my phone does not appear in Eclipse or in adb, only the emulators, and indepandantly of the Android version of application ( 1.5 1.6 or naturally 2.0). Is there something to do with this new version? -- You received this message because you are subscribed to the

[android-developers] Issue with playing audio or video from Remote URL (RTSP/HTTP)

2009-11-04 Thread dileep
Hi Friends, Did anyone try playing audio/video through http/rtsp. I am having a problem with either of the approach I am getting an error Command PLAYER_INIT completed with PVMFError I some cases I got Command PLAYER_INIT completed with PVMFErrorContentInvalidForProgressiveDownoload. Can

[android-developers] manually update AppWidgetProvider's onUpdate

2009-11-04 Thread skink
hi, my custom AppWidgetProvider has onUpdate method where i have logic to update RemoteViews it is not periodically updated by system, but rather, i'd like to trigger onUpdate if something happens (in one of my app Activities). both custom AppWidgetProvider and Activities i'd like to trigger

Re: [android-developers] Issue with playing audio or video from Remote URL (RTSP/HTTP)

2009-11-04 Thread Mark Murphy
dileep wrote: In case of http it says PVMFErrorContentInvalid for progressive download At least for HTTP streaming of MP4 content, you need to have your 'moov' atom before your 'mdat' atom. This may happen automatically when you create your MP4 files, or you may need to lightly twiddle them

Re: [android-developers] manually update AppWidgetProvider's onUpdate

2009-11-04 Thread Mark Murphy
skink wrote: hi, my custom AppWidgetProvider has onUpdate method where i have logic to update RemoteViews it is not periodically updated by system, but rather, i'd like to trigger onUpdate if something happens (in one of my app Activities). both custom AppWidgetProvider and Activities

[android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
Hmmm Am I putting the onTap handler in the wrong place? I thought that it would go in the overlay handler On Nov 4, 11:01 am, Mark Murphy mmur...@commonsware.com wrote: furby wrote: To be sure that you have some idea of what I am talking about, here is the code for the entire class :

Re: [android-developers] Toast - I can't get it to work in Eclipse...

2009-11-04 Thread FFEH
Maybe you can try to use Toast.LENGTH_LONG On Wed, Nov 4, 2009 at 11:32 PM, furby wookie...@gmail.com wrote: So I am slowly trying to figure out maps... I want to be able to click on a point and pop up a message. Toast seemed the way to go. So I added an onTap handler in my class that extends

[android-developers] Re: The mysterious disappearing progress bar...

2009-11-04 Thread dadical
Hah! The style for my app is the light styled theme, so I bet that makes the progress bar dark. Sheesh. I'll check that out... thanks for the tip. On Nov 4, 10:19 am, Mika mika.ristim...@gmail.com wrote: I had a similar problem and it was just because the default progressbar had changed in

Re: [android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread Mark Murphy
furby wrote: Hmmm Am I putting the onTap handler in the wrong place? I thought that it would go in the overlay handler Your onTap() is in the correct place. However, HelloItemizedOverlay is not a Context, and so it cannot be used as the first parameter to makeText(). Either make

[android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
Perhaps I am going about this the wrong way... it seems like a lot of shifting of code around to get a simple message to display in google maps. Let me rephrase the question : Is there a simple way to get the two String parameters to display (That are sent to the OverlayItem class) when a point

Re: [android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread Mark Murphy
furby wrote: Perhaps I am going about this the wrong way... it seems like a lot of shifting of code around to get a simple message to display in google maps. Not really. Let me rephrase the question : Is there a simple way to get the two String parameters to display (That are sent to the

[android-developers] Re: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
Thank you! The got my app to display a message to the user! Yay! And you are about to have a customer! On Nov 4, 12:14 pm, Mark Murphy mmur...@commonsware.com wrote: furby wrote: Perhaps I am going about this the wrong way... it seems like a lot of shifting of code around to get a simple

[android-developers] Re: Using MediaPlayer best practices?

2009-11-04 Thread Moto
Thanks Alex! When you say peek at the MediaPlaybackService you mean android framework code? I was afraid that MediaPlayer would somehow end in an invalid state if the internal server died or something but I guess reset() cleans it up... As of now I just use Reset() to stop playback.. :P seems

[android-developers] server callbacks to mobile client

2009-11-04 Thread VY
Hi: I am trying to implement a service that server needs to, on occasions, make contacts with mobile client. Is SMS the only possible server - client callback mechanism? Is there another way? And for SMS, is the best way to send SMS is by way of email - SMS (sending email to

[android-developers] Draw GLSurfaceView to a Bitmap

2009-11-04 Thread yammada
I have an application that uses GLSurfaceView to draw OpenGL ES graphics. This is all working (mostly) how I would expect. Now, I would like to implement a screenshot feature. For normal views, it seems that the standard practice is to create a new Canvas with a Bitmap and then draw to that

[android-developers] Re: Audio Playback while Recording... ------- attemp playback while recording, cheat it! ----- error

2009-11-04 Thread Moto
Can you just do the following? byte []buf = new byte[1024]; int read = 0; ar = new AudioRecord(); at = new AudioTrack(); do { //Read from mic read = ar.read(buf); //Send to speaker at.write(buf,0,read); } while(...); -Moto On Oct 22, 5:00 am, Vishal vishal.andr...@gmail.com wrote: Thanks

[android-developers] Re: Different versions of searchable.xml for different sdk targets?

2009-11-04 Thread Perty
Thanks! Worked like a charm. /Perty On 3 Nov, 17:17, Romain Guy romain...@google.com wrote: The syntax is xml-v4/, with a dash instead of an underscore. On Tue, Nov 3, 2009 at 1:55 AM, Perty pertyj...@gmail.com wrote: Hi! I have  implemented a SearchManager which make uses of a

Re: [android-developers] data in xml res/raw

2009-11-04 Thread Dianne Hackborn
R.raw is almost certainly not going to be a string array. You need to define a string array in values/somefile.xml, with the following markup: resources string-array name=resourceName itemstring1/item itemstring2/item /string-array /resources On Wed, Nov 4, 2009 at 12:57

Re: [android-developers] Re: Stable contact identity CONTENT_LOOKUP_URI

2009-11-04 Thread Dmitri Plotnikov
Hi Richard, I can tell you what we did when we faced a similar requirement. We needed to store things like custom ringtone, straight-to-voicemail etc on a per-contact basis. What we ended up doing is simply replicating this information into each raw contact in the aggregate. When raw contacts

[android-developers] Re: Trouble Rendering Bitmaps Correctly in OpenGL

2009-11-04 Thread Lance Nanek
I don't need the invite, but I did run into something similar on an OpenGL project I'm working on. One of my textures faded out to transparent on one side. A row of pixels that were partially transparent there were getting rendered darker than they should. Fortunately for me I only ever draw that

Re: [android-developers] manually update AppWidgetProvider's onUpdate

2009-11-04 Thread skink
Mark Murphy wrote: skink wrote: hi, my custom AppWidgetProvider has onUpdate method where i have logic to update RemoteViews it is not periodically updated by system, but rather, i'd like to trigger onUpdate if something happens (in one of my app Activities). both custom

[android-developers] Re: Where put file with data?

2009-11-04 Thread stephane.cast...@gmail.com
I think the /res/values are writable. I try this solution. thanks On 2 nov, 19:01, Wojciech Topolski wojciech.topol...@gmail.com wrote: Hi I have a problem with files. I would like to add file with database inserts to my app. Where should I put this file? In res/then? This file will have 5

[android-developers] Re: Advice Needed on Application Approach

2009-11-04 Thread James
It seems like a shame if you need to code around this, but you could do it a little cleaner, as you suggested. I would suggest you simply keep your own preference variable that records the 'last' state it knew about defaulting it to idle when your application first initializes. Then on the state

[android-developers] Re: App name/icon problems on Hero after reboot

2009-11-04 Thread fadden
On Nov 3, 10:58 am, gdonald gdon...@gmail.com wrote: So Diane is saying this is not a generic Android platform bug because it's only on HTC Heros, and then HTC is denying the bug exists even though many people in this very thread say they are experiencing it and can reproduce it. If the

Re: [android-developers] no device

2009-11-04 Thread Disconnect
What phone? On Wed, Nov 4, 2009 at 5:20 AM, Libre roussel...@gmail.com wrote: Since I upgrade to Android 2.0 my phone does not appear in Eclipse or in adb, only the emulators, and indepandantly of the Android version of application ( 1.5 1.6 or naturally 2.0). Is there something to do with

Re: [android-developers] Override in call-screen - Security Bug or Feature?

2009-11-04 Thread Disconnect
Didn't the whitepages app come out in the very very first days of the market with this capability? (I didn't use it much, at the time there was no 3g in this area. Plus, submitting incoming phone #s to a 3rd party service was really skeevy.) As an aside, Dianne is a girl's name. :) On Wed, Nov

[android-developers] Re: Low level audio really needed - too much latency in SoundPool, AudioTrack for more real time stuff

2009-11-04 Thread James
You're going to get lag simply from touching the screen and waiting for the message go to the registered handler. So, first of all, I would make sure any user activity actions be bound to direct hardware interactions such as sensors and hardware key presses vs. UI screen button presses. However

Re: [android-developers] Re: App name/icon problems on Hero after reboot

2009-11-04 Thread Mark Murphy
fadden wrote: My advice to everyone in this thread is: if you are experiencing this problem, file a bug report with HTC, with as much detail as you can manage. Hopefully a pattern will emerge that will allow them to isolate and reproduce the problem, and if it's in their stuff, provide a

[android-developers] Re: Where put file with data?

2009-11-04 Thread WoodManEXP
/sdcard/ works well. On Nov 2, 1:01 pm, Wojciech Topolski wojciech.topol...@gmail.com wrote: Hi I have a problem with files. I would like to add file with database inserts to my app. Where should I put this file? In res/then? This file will have 5 MB, so after operation I would like to

[android-developers] GPS_EVENT_SATELLITE_STATUS called alot

2009-11-04 Thread WoodManEXP
Has anyone noticed that onGpsStatusChanged for event GPS_EVENT_SATELLITE_STATUS is called alot? As far as I can tell it seems to be called continously. Is that expected? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] get absolute screen position

2009-11-04 Thread sdphil
View.getLeft() and View.getTop() give the position of the view relative to the parent. Is there a way to get the absolute screen position of that view? Either a way to translate those coordinates into screen coordinates to make a call to get the position in screen coordinates. tia. -- You

[android-developers] Re: App name/icon problems on Hero after reboot

2009-11-04 Thread Rafael Sanches
I have the exact same problem with my application too. The problem is that it seems to erase the app icon. I don't see the icon anywhere else in the phone.. menu, application manager etc. It only happened with my app so far, so it may have something to do with the process of me debugging with

[android-developers] Re: The mysterious disappearing progress bar...

2009-11-04 Thread dadical
yup, that was it. My activity had a background color of black, but my application had set the theme to lite. I simply set the theme of the activity to black (the background was black anyway) and the progress bar reappeared. Thanks again! dk On Nov 4, 11:55 am, dadical keyes...@gmail.com

[android-developers] Re: Low level audio really needed - too much latency in SoundPool, AudioTrack for more real time stuff

2009-11-04 Thread niko20
Yes, I tested the touch event response, but that was plenty fast. As another note, I downloaded a couple of games, and I noticed their sound seemed to work just fine (it was in sync with the graphics), so I'm not sure why yet, but it seems maybe only playing after touching is slow? Even in my

[android-developers] What’s up with ADC2 Round1 re sults?

2009-11-04 Thread Mobidev
A moonth to review the ratings? (30 days wait is that much annoying). Are we short of computers at Google? What’s your guess about the delay? Is it that the Droid “drop” is holding back ADC2? We know that Motorola is desperately trying to involve third-party

[android-developers] Re: Verify musical instrument app idea: microphone, simultaneous record and play, elevation, multi-touch

2009-11-04 Thread niko20
Hi, The multi touch is NOT limited to 3 points. Search the forums, Dianne Hackborne indicated that she had only put in constants for up to 3, but you can do as many as you want. -niko On Nov 4, 8:18 am, Ulrich Althöfer ulrich.althoe...@web.de wrote: Yes, those applications are the hype, I

[android-developers] Uploading your app to GetJar.com

2009-11-04 Thread gojuryu
We now have approximately 1000 Android Apps on GetJar.com with several million downloads among them and increasing by about 10% month over month where as our website is increasing 5.5% month over month now serving well over 55 million downloads per month. GetJar is the worlds largest independent

[android-developers] Re: Documentation deficiencies.

2009-11-04 Thread jotobjects
Just another point of view - but I find the SDK documentation to be impressive and a good job. That said, some methods do look like they were written by a developer and could use some editing from an experienced tech writer. Simple proof reading (i.e., QA for docs) alone would go a long way.

[android-developers] Re: Advice Needed on Application Approach

2009-11-04 Thread Christopher
Couldn't you just ignore any onCallStateChanged() calls within the first X seconds of the device starting up? BOOT_COMPLETED events seem to fire before the user even has full access to the UI, and certainly well before mobile network connectivity has been established. Even moreso if the user has

  1   2   >