[android-developers] Re: How to stop a service, when all activities are finished?

2010-01-30 Thread Martin
Thank you all! I deleted my service now and will make it with a manager class :-) Greetings, Martin -- 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

RE: [android-developers] HTC Hero Album app source code, anyone ?

2010-01-30 Thread Emre A. Yavuz
Thanks Mark. I wanted to ask just in case ... ; ) Cheers, Emre Date: Fri, 29 Jan 2010 20:47:43 -0500 Subject: Re: [android-developers] HTC Hero Album app source code, anyone ? From: mmur...@commonsware.com To: android-developers@googlegroups.com Does anyone in the list have the

[android-developers] Layout problems: AbsoluteLayout deprecated, how to do it now?

2010-01-30 Thread Martin
Hi! For my game Leonard Frog - Beta in the market, I use an AbsoluteLayout to place all the buttons in the correct position like in the following image: http://digle.de/friends/LeonardFrogBig.jpg Now the AbsoluteLayout is deprecated. How can I place these buttons now in the right position like

[android-developers] Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-01-30 Thread qmwestview
Hi, I have a working ListActivity class. Each of the list item consists of an ImageView and a TextView. However, when I try to replace the ImageView with ImageButton, The list becomes unselectable. The onListItemClick or any other function no longer get called when press a list item (Although

[android-developers] Re: Use of final for locals on Dalvik

2010-01-30 Thread Bob Kerns
They can readily inline them in the same class (so all private methods qualify). Otherwise, you don't really know what the code will be until the class is loaded. A sufficiently-clever classloader can do amazing things, but usually this sort of trick is done later, Just-In-Time compilers that

[android-developers] Re: Layout problems: AbsoluteLayout deprecated, how to do it now?

2010-01-30 Thread Arron
Well that's exactly the reason why absoluteLayout was deprecated. It works for only one screen size. I will say use various layouts with sp margins to space out the buttons correctly. On Jan 30, 12:23 am, Martin google-gro...@digle.de wrote: Hi! For my game Leonard Frog - Beta in the market,

[android-developers] Custom tabs customizable only to 99%

2010-01-30 Thread Marek Uhel
According to the http://developer.android.com/guide/tutorials/views/hello-tabwidget.html example I'm able to use tabbed content, however problems arise if I'm not satisfied with the default look (well, for my app, I'm not :) In order to change the tab drawable, I'm using for each TabWidget child

[android-developers] VerifyError - how can I solve this error?

2010-01-30 Thread Martin
Hi! I am analyzing my game with flurry-analytics and some people, who play my game, receive the Exception java.lang.VerifyError in my Highscore- Activity. What do I have to do to solve this error? Here is the quellcode of my Highscore-Activity: package digle.de.LeonardFrog; import

[android-developers] Re: (x,y) co-ordinates of touched area ?

2010-01-30 Thread Martin
This is a double-post. You posted the same question here: http://groups.google.com/group/android-beginners/browse_thread/thread/9d3d1d2ae4ac9ff3 On 30 Jan., 08:53, Vivek Satpute vivekonlin...@gmail.com wrote: Hi, I am exploring the android's webkit. If my webpage have many URLs one after

[android-developers] How to Put common header for entire application Like Android Market application

2010-01-30 Thread RamaMohan
Hi all, I am Working on develop an application .In my application i want to Put application header as it look like Android Market Application .I need help on following issues. 1)How to put all header same for all activities in the application. 2)How to put the common header like in android market

[android-developers] Mulit-Touch Problems

2010-01-30 Thread Mario Zechner
Hi, i'm currently investigating multi-touch support on = 2.0 devices, testing it on a motorola milestone. The multi-touch API seems to be very well thought out and processing the respective MotionEvents is really a piece of cake. I want to use multi-touch as an optional input method for a small

[android-developers] Re: How to Put common header for entire application Like Android Market application

2010-01-30 Thread Al
You can use the include / tab in your layout files. For each activity's layout file, have something like this: include layout=@layout/common_header / !-- activity specific layout here -- include layout=@layout/common_footer / RamaMohan wrote: Hi all, I am Working on develop an application .In

Re: [android-developers] Layout problems: AbsoluteLayout deprecated, how to do it now?

2010-01-30 Thread Mark Murphy
Martin wrote: For my game Leonard Frog - Beta in the market, I use an AbsoluteLayout to place all the buttons in the correct position like in the following image: http://digle.de/friends/LeonardFrogBig.jpg Now the AbsoluteLayout is deprecated. How can I place these buttons now in the right

[android-developers] Start a service on device start up.

2010-01-30 Thread poohtbear
Is there an API, or a registry i can do i nthe manifest to make sure my service is being run at the device start up and being shut down before the device shuts off ? 10x! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Start a service on device start up.

2010-01-30 Thread Mark Murphy
poohtbear wrote: Is there an API, or a registry i can do i nthe manifest to make sure my service is being run at the device start up and being shut down before the device shuts off ? Yes on the former -- listen for the BOOT_COMPLETED broadcast Intent. No on the latter, as far as I know. --

[android-developers] Re: How to stop playing music or sound of other application

2010-01-30 Thread Alam
Well first of all thanks to everyone for their posts. Its seems that I'd confused some of them. Let me first clear this.Suppose you have downloaded some game (*.apk) from Android Market. Now you are playing the game with its music on and in between you got some call which probably you picked up.

[android-developers] logcat buffer size...

2010-01-30 Thread sdphil
is there a way to change how big the logcat buffer is? or how much is buffered back? especially when using ddms. tia. -- 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

[android-developers] Re: logcat buffer size...

2010-01-30 Thread sdphil
hm... i see options to adb logcat -r kbytes -f filename but what about inside of ddms (or actually, how about on the phone??). tia. On Jan 30, 7:18 am, sdphil phil.pellouch...@gmail.com wrote: is there a way to change how big the logcat buffer is?  or how much is buffered back? especially

[android-developers] character chinese or korea

2010-01-30 Thread DAVIDT
Hi All How do can have in my string.xml, characters chinese or korean. Is it possible? Thanks David -- 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

[android-developers] listview is getting me mad plase help

2010-01-30 Thread David Fire
hi i cant press any item on my listview nor in the emulator nor in a real phone. item layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:layout_width=wrap_content android:layout_height=wrap_content

Re: [android-developers] listview is getting me mad plase help

2010-01-30 Thread Sergey Ten
Should setOnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29(AdapterView.OnItemClickListener

Re: [android-developers] Re: How to stop playing music or sound of other application

2010-01-30 Thread Kevin Duffey
So Alam, are you building a voice dialing app.. where your app controls the voice call.. you could record the audio of the chat, for example.. and you're trying to silence other music from any other app playing? I mean, you're talking about two apps.. one being a game (not yours) that a user

Re: [android-developers] listview is getting me mad plase help

2010-01-30 Thread David Fire
my adapter hasnt any method to set a listner the first problem is i cant click on any item. i cant change the item. 2010/1/30 Sergey Ten sergeyte...@gmail.com Should setOnItemClickListener

Re: [android-developers] listview is getting me mad plase help

2010-01-30 Thread Sergey Ten
According to ListView class defintion (see http://developer.android.com/reference/android/widget/ListView.html), it is a subclass of AdapterView. The latter has a method setOnItemClickListener

[android-developers] Re: Layout problems: AbsoluteLayout deprecated, how to do it now?

2010-01-30 Thread theSmith
On Jan 30, 3:23 am, Martin google-gro...@digle.de wrote: Hi! For my game Leonard Frog - Beta in the market, I use an AbsoluteLayout to place all the buttons in the correct position like in the following image:http://digle.de/friends/LeonardFrogBig.jpg Now the AbsoluteLayout is deprecated.

[android-developers] Re: character chinese or korea

2010-01-30 Thread Kumar Bibek
If you have a chineese/korean keyboard, you can of course do it. Else, copy the chineese/korean text from somewhere, and paste them in the string.xml Kumar Bibek On Jan 30, 9:33 pm, DAVIDT dtole...@gmail.com wrote: Hi All How do can have in my string.xml,  characters chinese or korean. Is it

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread David Toledo
No. My Keyboard is latin . Is one app dictionary english, spanish to chinese, and korean. When copy and paste the caracter korean or chinese shown caracteres strange I've changed configuration eclipse to UTF-8 Thanks 2010/1/30 Kumar Bibek coomar@gmail.com If you have a chineese/korean

Re: [android-developers] Start a service on device start up.

2010-01-30 Thread Dianne Hackborn
This is sent when the system is cleanly shutting down: http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWNBut you should never rely on receiving this intent -- it is not at all

[android-developers] Re: AppWidget Update on Orientation Change

2010-01-30 Thread jkman
your post helped me find what I was looking for. In case anyone else is googling the topic, here is what I found: http://groups.google.com/group/android-developers/browse_thread/thread/a640da2a01bdfde5 So, the id's are the same, but you just need a separate folder for landscape layouts. On Dec

[android-developers] Android's support for multiple screens

2010-01-30 Thread Cheryl Sedota
My team has developed a suite of applications for a specific device/ screen - it's a medium density, large sized screen according to the parameters defined here: http://developer.android.com/guide/practices/screens_support.html#qualifiers I would like to know if it's possible to leverage android

Re: [android-developers] Re: Use of final for locals on Dalvik

2010-01-30 Thread Frank Weiss
I had to do some research on that pesky final keyword. Here's what I now understand: Use final for classes that should not be extended and methods that should not be overridden (all methods of a final class are implicitly final). If you use final in an attempt to increase performance, you lose

[android-developers] Re: Contact Picking on Motorola Cliq (1.5)?

2010-01-30 Thread justinh
I just ran into this issue after finally getting my hands on a Cliq. My workaround for now was the following: // if blur contacts exist, kill process to avoid force close in 1.5, // assuming its fixed in non 1.5 update if((Integer.parseInt(Build.VERSION.SDK))==3){ try { //

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread Frank Weiss
I've been able to copy UTF-8 text from Microsoft Office documents to source code in Eclipse without a hitch. Are you sure the encoding in the source document is also UTF-8? I've often debugged character encoding issues using a hex editor, such as XVII, but it does take some study of UTF-8. Here's

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread David Toledo
Thanks. The Text chinese or koreano if appear in the textview now, but I want if is possible see in the eclipse editor without characters strange 2010/1/30 Frank Weiss fewe...@gmail.com I've been able to copy UTF-8 text from Microsoft Office documents to source code in Eclipse without a

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread Frank Weiss
I assume that you can see the characters correctly in the source document, so it's strange you can't in Eclipse. What OS are you using and what kind of document did you copy the text from? -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Fwd: [android-developers] Re: character chinese or korea

2010-01-30 Thread David Toledo
OS : Win XP Source Document : Excel I've set the Eclipse in preferences menu with UTF-8 too Thanks -- Forwarded message -- From: Frank Weiss fewe...@gmail.com Date: 2010/1/30 Subject: Re: [android-developers] Re: character chinese or korea To: android-developers@googlegroups.com

Re: [android-developers] listview is getting me mad plase help

2010-01-30 Thread David Fire
dud please read the problem, i am not able to seclet any item. i preatty sure the callback isnt been called because i cant select any element. 2010/1/30 Sergey Ten sergeyte...@gmail.com According to ListView class defintion (see

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread Frank Weiss
Please check the Android project's text file encoding. Right click the Android project, select the Resouce section. It should be Inherited from container (UTF-8) or other UTF-8. Also check the string.xml XML declaration has encoding=utf-8. I don't know how to check if the Excel encoding is

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread David Toledo
if all these options were had changed 2010/1/30 Frank Weiss fewe...@gmail.com Please check the Android project's text file encoding. Right click the Android project, select the Resouce section. It should be Inherited from container (UTF-8) or other UTF-8. Also check the string.xml XML

[android-developers] Re: Desarrollar para diferentes modelos

2010-01-30 Thread Albert
hice una aplicacion para los moviles G1, usa un timer ya que muestra un reloj, en este telefono me funciona a la perfeccion, se probo esta misma aplicacion en un Nexus One, y cuando cambia a otra vista, la aplicacion falla, Make sure you change you manifest to support the latest SDKs,

[android-developers] Android Programming Class

2010-01-30 Thread joshbeck
Hello everyone: I teach an 8th grade programming class in San Antonio Texas. We're learning Android and I convinced the school to buy us 3 dev phones for the kids. Here's an article about what we're doing: http://www.neisd.net/ComRel/News/Krueger_Smartphone_10.htm I'd like to purchase a

Re: [android-developers] debugging with a different keystore

2010-01-30 Thread Frank Weiss
I'm not exactly clear what the problem is, but maybe this will help. I am developing with Eclipse and use Subversion for the code so I can develop from different machines. To share the default debug keystore, I copied it into the project's workspace, commited it to the repository. In Eclipse, I

[android-developers] Problem with TabHost

2010-01-30 Thread scastria
I have followed the ApiDemos example in Tabs1 where the tab content is inflated at runtime with code and a TabActivity is used. Everything works except when the TabActivity becomes active, I can see the content of both tabs at the same time overlaying each other. All of my tab content has

[android-developers] Service Context.stopSelf() does not work!

2010-01-30 Thread Moto
I'm trying to terminate a service from within it by using this.stopSelf (). I don't see it stopping and as I would expect calling the onDestroy() method... How can I terminate it it self? Just like activities when calling finish()? Thanks! -Moto! -- You received this message because you are

[android-developers] Re: Service Context.stopSelf() does not work!

2010-01-30 Thread Moto
I take that back I was using a prototype phone and that particular call is not working as of now... Thats why I don't see the onDestroy() being called after onDestroy(). In any case I'm still having issues with non prototype phone. HTC G1, it calls onDestroy but under DDMS I can see that the

Re: [android-developers] Re: Layout problems: AbsoluteLayout deprecated, how to do it now?

2010-01-30 Thread Kevin Duffey
I am surprised AbsoluteLayout was ever part of Android knowing full well that future devices would be larger screens with more pixels. From what I've read, you don't want to use it so that you don't have to do special coding when the screen size changes from one device to the next. Using the

[android-developers] Nexus One Multitouch Bug?

2010-01-30 Thread Max R.
Hi, i'm getting touch event(s) that didn't occur on Nexus One. For example, while holding down at location (x,y) = (210, 780), try to press down location (70, 200). You will see DOWN/MOVE event(s) at location around (180, 200). This does not happen on Droid. Is this bug in Nexus One? -- You

[android-developers] How to customize taskbar? i.e. change color to black?

2010-01-30 Thread Moto
I would like to change the taskbar color when my application is running... Is there a way to do this? Could I create a theme that changes this? -Moto -- 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] Re: Problem with TabHost

2010-01-30 Thread scastria
I changed over to use TabContentFactory based on the ApiDemos Tabs2 demo. This seemed to work better in that only one tab content was displayed at one time. However, this time, the emptyView that I set on my expandable list views never show. When the expandable list adapter is empty, the tab

Re: [android-developers] Android Programming Class

2010-01-30 Thread Kevin Duffey
Wow. 8th grade. They already know java well enough by that age to pick up on android? joshbeck josh.beck2...@gmail.com wrote: Hello everyone: I teach an 8th grade programming class in San Antonio Texas. We're learning Android and I convinced the school to buy us 3 dev phones for the kids.

[android-developers] Builtin layout xml source code?

2010-01-30 Thread scastria
Anyway to see the source xml for android.R.layout.simple_expandable_list_item_2 ?? -- 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,

[android-developers] Error in compiling android source under ubuntu 9.10

2010-01-30 Thread n179911
Hi, I have download android source to ubuntu 9.10. And when i 'make', it runs fine for a while. And then I get see this error: host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt) /usr/bin/ld:

[android-developers] TextView - disable focus

2010-01-30 Thread android beginner
Hi, I have a listview, and wanted to make some list items to be non-focusable. i.e On pressing the down-arrow key, some items in the middle of the list gets skipped. I tried the following method. 1. created separate ArrayAdapter class. 2. override getView method. 3. In getView, I called

[android-developers] Re: Blocking on a Socket read operation

2010-01-30 Thread YuHao
How can I solve this problem? A great need everyone's help, thank you. On Jan 29, 2:55 am, YuHao jszh1...@gmail.com wrote: Hi All:        Android emulator is available as a socket server and socket server as a service at background, when service start, I open a thread to start listening, when

Re: [android-developers] OpenGL poor performance with textures?

2010-01-30 Thread Kevin Duffey
I am curious..why do you need 60fps? 30fps is smooth motion to the human eye. I've seen that posted a few times now and fail to understand why 60fps is needed? Of course, I understand doing 30fps would be nice, but if I could yank more out of my game and sustain 30fps, I'd rather do that. On

[android-developers] Re: Dev Guide misunderstands static classes?

2010-01-30 Thread joebowbeer
You should file a documentation bug and submit a patch for review. For example: http://code.google.com/p/android/issues/detail?id=895 On Jan 29, 9:27 pm, pcockerell pcocker...@gmail.com wrote: Hi there In the Dev Guide section on Building Custom Components (http://