[android-developers] Re: button text change

2009-01-31 Thread Chander Pechetty
Have you done setContentView(R.layout.yourLayout) before calling this. Looks ok to me, it certainly works for me. if you are doing this on a certain click , then make sure its clickable... button1.setClickable(true); -Chander On Jan 31, 10:37 am, Bob bshumsk...@yahoo.com wrote: Hi, How do I

[android-developers] Re: gapless playback

2009-01-31 Thread Phill Midwinter
That works perfectly, thanks for the help. Do you know why it works? 2009/1/31 Dave Sparks davidspa...@android.com Use Ogg files, you can get a nice seamless loop. We use this for the ringtones. On Jan 30, 10:30 am, ph...@grantmidwinter.com ph...@grantmidwinter.com wrote: Hoya, When

[android-developers] the imageview object supports which formats images other than png and jpg

2009-01-31 Thread jj
Hello everybody The imageview object supports, which formats of images other than png and jpg? Is it supporting *.jif, *.bmp. *.tiff, etc. to display them on sceen of activity? The picture application(on emulator) shows only *.jpg and *.png format it does not shows other format

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-31 Thread blindfold
Thank you very much, fadden! It is much appreciated. For now I appear to have fixed not only my run-to-run memory leaks but also the frequent multi-run crashes by ensuring that my threads finish. From reading this group I had just been looking in the wrong direction when hunting for context leaks

[android-developers] Re: (simple?) problem with table layout

2009-01-31 Thread madcoder
Thanks guys, just what I needed! --~--~-~--~~~---~--~~ 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

[android-developers] filtering images for mime type

2009-01-31 Thread jj
Demo Tutorial for filtering images for mime type I am browsing list of images names of *.png ,*,jpeg, it is working correctly I am filtering images of type png and jpeg, IS there in other smart way to achieve this, some thing we can do in manifest or coding so that we will get desired cursor

[android-developers] Re: headset button

2009-01-31 Thread deepdr...@googlemail.com
you may want to look at http://groups.google.com/group/android-developers/browse_thread/thread/1c64cf65f87c9895/1d9464c96b91dbd8?show_docid=1d9464c96b91dbd8 On Jan 30, 8:20 pm, Brodsky peter.brod...@gmail.com wrote: Hi!  Does anyone know how to tell when the headset button is being pressed?

[android-developers] WiFi in Emulator

2009-01-31 Thread Billy Bob
Hi all, I've been trying to create a local connection to a computer with a Socket from the emulator thinking that it would automagically uses a emulated wifi connection. It doesn't work, in particular because wifi is not supported on the emulator: - Does a Socket connection automatically

[android-developers] custom View using Adapter iface

2009-01-31 Thread skink
hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question is: should i extend AdapterView? if so, what is the most imortant when doing this (e.g. AdapterView is ViewGroup, so how should i manage children)? thanks, pskink

[android-developers] Re: custom View using Adapter iface

2009-01-31 Thread Marco Schmitz
take a look into the api samples. there are 14 lists, and one of them has a very performant adapter... greetings, darolla 2009/1/31 skink psk...@gmail.com: hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question

[android-developers] custom View using Adapter iface

2009-01-31 Thread skink
hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question is: should i extend AdapterView? if so, what is the most imortant when doing this (e.g. AdapterView is ViewGroup, so how should i manage children)? thanks, pskink

[android-developers] Re: custom View using Adapter iface

2009-01-31 Thread Marco Schmitz
/** * Demonstrates how to write an efficient list adapter. The adapter used in this example binds * to an ImageView and to a TextView for each row in the list. * * To work efficiently the adapter implemented here uses two techniques: * - It reuses the convertView passed to getView() to avoid

[android-developers] Re: custom themes?

2009-01-31 Thread Marco Schmitz
take a look here: http://code.google.com/p/android-titlebar/ http://www.anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html and here: http://code.google.com/p/android-misc-widgets/ http://www.anddev.org/making_own_theme-t4052.html greetings, darolla 2009/1/31 Craig

[android-developers] Re: button text change

2009-01-31 Thread Marco Schmitz
sometimes you need to invalidate() greetings, darolla 2009/1/31 Chander Pechetty cspeche...@gmail.com: Have you done setContentView(R.layout.yourLayout) before calling this. Looks ok to me, it certainly works for me. if you are doing this on a certain click , then make sure its

[android-developers] Re: custom View using Adapter iface

2009-01-31 Thread skink
On 31 Sty, 12:39, Marco Schmitz netzprofi.ma...@googlemail.com wrote: /**  * Demonstrates how to write an efficient list adapter. */ thanks Marco, but i don't want to use ListViews. i want to write my own custom View, since from some reasons ListViews dont fit to my requirenents

[android-developers] texts are not adding to intent for email

2009-01-31 Thread jj
Hello I am sending image using following. the image successfully send by application. But The subject and text r not getting added to email. I want to add body containing some hyperlink, I am doing this Intent.EXTRA_TEXT but it is not going to added. Will somebody will clear suggest me for.

[android-developers] Re: i hope to Android dev.

2009-01-31 Thread Fred Grott(shareme)
ahem, use android discuss list please On Jan 30, 8:43 pm, agus tegar agoestafin.gr...@gmail.com wrote: i hope android dev . focus to : Theme Style    = with multi theme ( mac , android, iphon , vista ,win 7 ) , effect animation , google earth , google Drive for android , and Window

[android-developers] MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread ph...@grantmidwinter.com
I've got a media recorder, prepared and started in the following way: mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setAudioEncoder

[android-developers] Re: custom themes?

2009-01-31 Thread Craig
I'm sorry if I missed it, but I didn't see what I was looking for behind any of those links. I know I can create a custom theme to use android attributes; what I want to do is create a custom theme with custom attributes, and refer to those in my code.

[android-developers] Re: button text change

2009-01-31 Thread Phill Midwinter
Have you set the button id correctly in the XML layout? 2009/1/31 Marco Schmitz netzprofi.ma...@googlemail.com sometimes you need to invalidate() greetings, darolla 2009/1/31 Chander Pechetty cspeche...@gmail.com: Have you done setContentView(R.layout.yourLayout) before calling

[android-developers] Re: custom themes?

2009-01-31 Thread skink
Craig wrote: I'm sorry if I missed it, but I didn't see what I was looking for behind any of those links. I know I can create a custom theme to use android attributes; what I want to do is create a custom theme with custom attributes, and refer to those in my code. hi, all you need to do

[android-developers] Re: Emulator crashs when accessing sd card settings

2009-01-31 Thread Chander Pechetty
Did anyone taste success? I am facing the same issue with SD card settings/Image application settings crashing with the same exception reported above.. Here's what i did: 1. emulator -sdcard ./sdcard1.iso (sdcard image in my current directory) 2. adb push PaymentError.png /sdcard/ Steps 1 and 2

[android-developers] Re: local service getting killed

2009-01-31 Thread Guillaume Perrot
Yes, i ran into the very same problem. From what I understood with documentation and logcat traces, I may be wrong for some details but here's the general idea: My background service (I use startService/stopService to handle an XMPP connection and notifying the user of events when no activity is

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-31 Thread Guillaume Perrot
There is bug in BitmapFactory memory allocation, there are tons of threads in this mailing list dealing with that. To sum up: At a normal time when you create an object, the heap size is automatically grown if not sufficient enough (there is an absolute limit of 16MB per process though, you will

[android-developers] Can i block certain users in Android Market

2009-01-31 Thread Josh
Is there a way too block individual users access to your applications on android market? Also is there a way to reply to comments left for your application? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: WiFi in Emulator

2009-01-31 Thread David Turner
there is a single ethernet port in the emulated system. It is connected to an internal firewall/router within the emulator code that emulates all connectivity through standard BSD sockets. Which connection is used depends entirely on your host machine setup, but wifi or no wifi doesn't have any

[android-developers] What's the trick to do a (forward) geocode?

2009-01-31 Thread Faber Fedor
IIUC, doing a forward geocode (looking up an address from a name) is pretty straightforward, you do this: private void findLocation() { ListAddress locations = null; Geocoder geocoder = new Geocoder(this, Locale.getDefault()); try { locations =

[android-developers] Re: MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread Phill Midwinter
Looking at adb logcat I'm getting this error: *Record channel already open* Could this be a bug? I don't understand how it could already be open.. nothing else is recording on the device? 2009/1/31 ph...@grantmidwinter.com ph...@grantmidwinter.com I've got a media recorder, prepared and

[android-developers] Re: button text change

2009-01-31 Thread Bob
Figured it out, real silly mistake. I was calling setContentView (R.layout.myLayout) twice, once before and once after my code. Thanks for all your help! On Jan 31, 9:02 am, Phill Midwinter ph...@grantmidwinter.com wrote: Have you set the button id correctly in the XML layout? 2009/1/31

[android-developers] Re: MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread Dave Sparks
Are you running on a G1 or on the emulator? If on the emulator, maybe audio input isn't working correctly and it's failing to open the audio input device. On Jan 31, 9:59 am, Phill Midwinter ph...@grantmidwinter.com wrote: Looking at adb logcat I'm getting this error: *Record channel already

[android-developers] Re: MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread Phill Midwinter
I was running on a G1. I've just found the problem though. On previous debug sessions - the mediarecorder hadn't been properly released. Solution was to reboot the phone, add overrides to onpause and ondestroy, making sure it's released in each case and then run again. Works like a charm!

[android-developers] Re: gapless playback

2009-01-31 Thread Dave Sparks
Yes, two reasons actually. One, because the Ogg spec allows for specifying the exact number of samples in the stream. MP3 does not have an official way to specify the number of samples (there are unofficial ways). Two, because the Ogg player has a native loop capability that allows us to

[android-developers] Re: Leaked window in PreferenceActivity

2009-01-31 Thread AusR
Can anyone offer any ideas on this? Thanks! On Jan 30, 9:39 am, AusR austinjr...@gmail.com wrote: Hi, I've created a set of preference screens building on the tuts on androidguys. My preference XML contains nested PreferenceScreens. The below doesn't occur in the root screen, only once

[android-developers] Re: MapView disable?

2009-01-31 Thread Dave Sparks
I don't know anything about MapView. What service are you on e.g. WiFi, 3G/EDGE (what carrier)? Is there anything useful in the log? Maybe a proxy failure? On Jan 30, 5:46 pm, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Hi folks, Now, I'm developing an Android app called Echo. But 5 hours

[android-developers] Re: gapless playback

2009-01-31 Thread Phill Midwinter
That's extremely useful, I've not looked at the format before, but I'll have to read up now. 2009/1/31 Dave Sparks davidspa...@android.com Yes, two reasons actually. One, because the Ogg spec allows for specifying the exact number of samples in the stream. MP3 does not have an official way

[android-developers] Re: custom themes?

2009-01-31 Thread Craig
Thanks! That did it. Here is an example of the code I used: final private static int[] colorAttrs = new int[] {R.attr.activeColor, ...}; I chained my View constructors: public MyView(Context context) {this(context, null);} public MyView(Context context, AttributeSet attrs) {this(context,

[android-developers] Re: custom themes?

2009-01-31 Thread skink
Craig wrote: Thanks! That did it. Here is an example of the code I used: final private static int[] colorAttrs = new int[] {R.attr.activeColor, ...}; I chained my View constructors: public MyView(Context context) {this(context, null);} public MyView(Context context, AttributeSet

[android-developers] How to add extra elements into Cursor or SimpleCursorAdapter?

2009-01-31 Thread Developer
Suppose I get a cursor that contains all rows from my database, and I want to show them on a spinner, the following code will work. But I want to show two extra items as the spinner elements, how can I add those two elements? For example, if the following code can show 4 spinner elements Orange

[android-developers] Re: Audio in the emulator...

2009-01-31 Thread nicolas cosson
Hello, I have been searching for some time and I can't find a detailled tutorial on how to easily record and then read audio on the emulator under eclipse. I have found these steps: - You have to install a virtual sd card with mksdcard.exe 1024M sdimg.iso -then run the emulator : emulator.exe

[android-developers] How to get the position of the click point.

2009-01-31 Thread Hongfei Jiang
Hi, I'm working on a simple application, I need the application to give different response when the user click different position of the screen. But it seems I can't get the position in the OnClickLisenter, I tried OnTouchListener, but it's not as well as I expected. Can you give me some help on

[android-developers] Android Maps API Key gets 502 Server Error

2009-01-31 Thread sonxurxo
Hi, I'm trying to sign up my app (even with debug key, I don't need a custom key by now) and I get a Server Error 502. Anyone knows what's happening? How long will it take? I need the key for February 2nd. Please if anyone has a valid debug key could post it for me? (I'm reading my career thesis

[android-developers] Android Development Forum

2009-01-31 Thread Sushrut Bidwai
Hey Androiders, Buzz is happening around Android already. Off course there are developer groups, where we can find out answers to questions. But we (www.androidcompetencycenter.com/) have decided to provide support to all developers through newly launched forums. Do check out the blog,

[android-developers] Re: MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread nicolas cosson
are you testing it on the emulator or on the G1 device? I'm not sure about it but I've read around some forums that you need a virtual sd card to record audio on the emulator. (with the mksdcard.exe in the tools provided with the sdk) Some other sources also say it isn't possible to record audio

[android-developers] problem with new SDK version android-sdk-windows-1.0_r2

2009-01-31 Thread Ahsan
Hi, I am using the latest SDK android-sdk-windows-1.0_r2 and android plugin version 0.8.0.v200809220836-110569 But everytime i try to run an application, the console shows following messages. and DDMS view shows no device. [2009-01-31 23:27:02 - test] -- [2009-01-31

[android-developers] Re: How to add extra elements into Cursor or SimpleCursorAdapter?

2009-01-31 Thread Mark Murphy
Developer wrote: Suppose I get a cursor that contains all rows from my database, and I want to show them on a spinner, the following code will work. But I want to show two extra items as the spinner elements, how can I add those two elements? For example, if the following code can show 4

[android-developers] Re: Want to help us port our iPhone app to Android?

2009-01-31 Thread beachy
keen, can you send me an email with some details beachy.g...@gmail.com On Jan 30, 2:55 pm, cmxlgy cmx...@gmail.com wrote: Hi all - Just curious if anyone would be interested in helping us port our iPhone app to Android? It would be on a revenue share basis. Drop us a line off-list. Link

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-31 Thread EboMike
Guillaume, that kind of sounds like you're running with a debugger attached... see somewhere in the middle of this long thread, it is known that the system will leak memory when you run with a debugger attached - mostly when exceptions are involved, and BitmapFactory.decodeFile() always throws

[android-developers] Re: local service getting killed

2009-01-31 Thread John Spurlock
http://groups.google.com/group/android-developers/browse_thread/thread/fa2848e31636af70/8d967c32df91a7d1?lnk=gstq=keeping+a+service+alive On Jan 30, 3:09 pm, brs bernhard.r.su...@gmail.com wrote: I have an app loosely based on the LocalService example from the SDK with a controller activity

[android-developers] Re: custom themes?

2009-01-31 Thread Craig
It well could be over complicated - here is what I did: In res, values, attrs.xml I have: ?xml version=1.0 encoding=utf-8? resources declare-styleable name=MyColors attr name=inactiveColor format=color/ attr name=activeColor format=color/

[android-developers] Re: how to overlay an image over the camera preview?

2009-01-31 Thread srajpal
sounds good, do you have an example piece of code or can you please point me to something. On Jan 30, 8:44 pm, Dave Sparks davidspa...@android.com wrote: No, you don't draw on the camera preview surface. You create a transparent surface above it in the Z stack and draw on that. On Jan 30,

[android-developers] Re: Specific Design significance of Attribute Name Spaces in AndroidManifest Files.

2009-01-31 Thread Raja Nagendra Kumar
Thank you for reply. Any good reason for doing it.. Most of the designs aim to assume reasonal defaults to min typing and do more with less.. Regards, Nagendra --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: how to overlay an image over the camera preview?

2009-01-31 Thread srajpal
Played around with this a little and solved it just like Dave Sparks suggested Thank you Dave here is the code import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import

[android-developers] Re: How good to use intents with an application to communcate and modularise it

2009-01-31 Thread Raja Nagendra Kumar
Hi Firedger, Thank you bringin clarity by way of internal and external. The one I am refering here is for internal usage. The application I am refering here has Main menu list, which has Settings and About and Help as menu items. On user choosing Settings it would show submenu Login Register

[android-developers] Re: Audio in the emulator...

2009-01-31 Thread Dave Sparks
Try this: emulator -help-audio-in It will tell you which audio backends are available on your system. You didn't specify what OS you are using. I think there was also some sample code in the SDK at one point. Maybe one of the developer advocates can point you to it. Another option is to look

[android-developers] Re: MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread Dave Sparks
You shouldn't have to reboot the device. The release() call just forces the release of the hardware resources instead of waiting for the garbage collector to come along. You should always call release() in your onPause() if you are using a singleton hardware resource like a media player, media

[android-developers] Re: Force close (exception) during rotation

2009-01-31 Thread Sean E. Russell
Thanks; it looks as if it might. --- SER On Jan 30, 7:11 am, Alistair. alistair.rutherf...@googlemail.com wrote: This might help. http://groups.google.com/group/android-developers/browse_thread/threa... Al. On Jan 29, 3:16 am, Sean E.Russell seaneruss...@gmail.com wrote: I have a

[android-developers] android audio

2009-01-31 Thread solid
I am trying to discover the frequeny of recored audio. I am kinda new to multimedia programming (I am very new to android). Is there a way to get raw frequency information from the mic? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Howto remove thread from Dalvik VM????

2009-01-31 Thread sagar.indianic
Thanks for reply fadden.. Is there any replacement for threads..or else I will have to change my logic as u described.. On Jan 31, 7:20 am, fadden fad...@android.com wrote: On Jan 30, 6:30 am, Sagar Parmar sagar.india...@gmail.com wrote: I am using Thread to display animation..I create a

[android-developers] Re: MapView disable?

2009-01-31 Thread Keiji Ariyama
Dave, Thank you for your reply. WiFi, 3G/EDGE (what carrier)? Is there anything useful in the log? Maybe a proxy failure? I didn't change any settings my dev phone. As you know, this trouble cause is Google server error. And it has recovered now. Thank you, Keiji Dave Sparks wrote: I

[android-developers] Re: Sending Intent to specific Activity

2009-01-31 Thread Rishi
Hi Lutz, When we talk of sending intents from Activity1 to Activity2 , Activity2 should have the intent filter with the intent with which it wants to be invoked. After getting invoked from activity1 , activity2 can further invoke another activity with intent data it wants. You can also use

[android-developers] Re: Leaked window in PreferenceActivity

2009-01-31 Thread Chander Pechetty
Search the forum before posting: :-) http://groups.google.com/group/android-developers/browse_thread/thread/4ffea4cb05b51efe?hl=enq=#1d190c624e30eeaa Mark Murphy's Blog - http://androidguys.com/?s=rotational+forces android:configChanges=orientation

[android-developers] Re: INSTALL_FAILED_UPDATE_INCOMPATIBLE

2009-01-31 Thread bwilliam...@gmail.com
I just figured out how to fix this, but it requires root access. Pull /data/system/packages.xml Find the entry for your package and comment it out. shell back in and chmod packages.xml to be world-writeable Push packages.xml back into the phone. Restart the phone. You can then install the app

[android-developers] Re: android audio

2009-01-31 Thread Dave Sparks
In SDK 1.0, you can only record to a file using the AMR-NB codec, which is bandwidth limited to 4KHz, and the encoding process itself is pretty lossy. If you want to experiment with this on a G1, go to Messaging, create a new message, click menu and select Attach, and select Record Audio. This