[android-developers] Animate an icon that is moving through GeoPoints
i am developing an android application which is based on mapview. (a live real time bus timing application). im using the overlay class for this purpose (inserting the icons etc'). i am recieving an array of GeoPoints, and i need to create an animation in which a certain icon is moving through the GeoPoints index route. (in short - an icon that represents a bus which is moving on a certain road / route) how can this animation be achieved? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android:textStyle=bold doesn't work in my language (but works in English)
Hello. I'm trying to change the text style of some strings I keep in strings.xml. I have a textView in a layout xml file that will contain the strings. The strings themselves are kept in strings.xml and are accessed and added to the textView programmatically (after obtaining a handle to the textView rather than in the xml file). In the layout xml file, I also set the android:textStyle setting to bold|italic. The program compiles and runs correctly and I can indeed see the strings in the textView. The italic style works fine. However, the bold style simply doesn't work! I have also tried using only bold instead of bold|italic but to no avail. Also, I tried using b/b labels in strings.xml around the strings, but it too doesn't seem to have any effect. The strings themselves are all in Hebrew. I discovered that if I change the text to English, both bold and italic work fine! So it has something to do with Hebrew in Android. But why? And if this problem exists in Hebrew, it probably also exist in other languages as well. For your note, Hebrew is a right-to-left language. Can anyone please help me solve the problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false
I'm really sorry for popping this again so quick without any new info, I really need more info on this. Shai Levy On Apr 5, 11:31 am, Shai levys...@gmail.com wrote: Same results with ApiDemos! I created a new sample project (ApiDemos) using ADT with API level 11 as the target and I tried the following: I DO get the patterned blue background in the main screen (seems like hardware acceleration is working). In ApiDemos.Java: - In the OnCreate I added a log print for getListView().isHardwareAccelerated() and was False - In BouncingBalls.Java near the end of the onCreate I added a log print : MyAnimationView v =new MyAnimationView(this); container.addView(v); Log.e(Test, Result: + v.isHardwareAccelerated()); It was also false - In BouncingBalls.Java at MyAnimationView.onDraw(Canvas canvas) Log.e(Test, Canvas is: + canvas.isHardwareAccelerated()); It was also false Can someone clear this out for me ? Is hardware acceleration off ? Is this a bug in the isHardwareAccelerated() function or am I doing something wrong ? Best Regards, Shai Levy On Apr 4, 9:58 pm, Dianne Hackborn hack...@android.com wrote: API demos is hardware accelerated. Try putting the call in one of the simple samples there and see what it does. Fwiw, if you are using the default dark theme, if your window is hardware accelerated than you will get the patterned blue background. If it is drawing in software you will get the solid black background. On Mon, Apr 4, 2011 at 10:53 AM, Shai levys...@gmail.com wrote: Hi, I am trying to turn on hardware acceleration for my HoneyComb application but I never seem to get a 'true' result from this function. I tried all the methods in the Android Developers blog post about the subject ( http://android-developers.blogspot.com/2011/03/android-30-hardware-ac... ). I am working on a completely blank project (ADT generated project), I added the tag android:hardwareAccelerated=true to both the application and activity and even called getWindow().setFlags( WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED); before calling setContentView() My view only has the TextView that was automatically generated from the ADT new project wizard. Yet, no matter what I do, when I call isHardwareAccelerated() on the textview or the root view or any canvas I try to obtain - the function isHardwareAccelerated() of the view/canvas always returns false. I am testing on a Motorola Xoom device with Android 3.0.1 What am I missing here ? Best Regards, Shai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false
Yes, I have on my desk 2 Xoom devices near me that are currently useless until I figure this out (I wish Google had some kind of official support) On Apr 6, 9:39 am, Zsolt Vasvari zvasv...@gmail.com wrote: Sorry, I just read your first post that you are, in fact, using the Xoom. Then I have no idea. On Apr 6, 2:03 pm, Shai levys...@gmail.com wrote: I'm really sorry for popping this again so quick without any new info, I really need more info on this. Shai Levy On Apr 5, 11:31 am, Shai levys...@gmail.com wrote: Same results with ApiDemos! I created a new sample project (ApiDemos) using ADT with API level 11 as the target and I tried the following: I DO get the patterned blue background in the main screen (seems like hardware acceleration is working). In ApiDemos.Java: - In the OnCreate I added a log print for getListView().isHardwareAccelerated() and was False - In BouncingBalls.Java near the end of the onCreate I added a log print : MyAnimationView v =new MyAnimationView(this); container.addView(v); Log.e(Test, Result: + v.isHardwareAccelerated()); It was also false - In BouncingBalls.Java at MyAnimationView.onDraw(Canvas canvas) Log.e(Test, Canvas is: + canvas.isHardwareAccelerated()); It was also false Can someone clear this out for me ? Is hardware acceleration off ? Is this a bug in the isHardwareAccelerated() function or am I doing something wrong ? Best Regards, Shai Levy On Apr 4, 9:58 pm, Dianne Hackborn hack...@android.com wrote: API demos is hardware accelerated. Try putting the call in one of the simple samples there and see what it does. Fwiw, if you are using the default dark theme, if your window is hardware accelerated than you will get the patterned blue background. If it is drawing in software you will get the solid black background. On Mon, Apr 4, 2011 at 10:53 AM, Shai levys...@gmail.com wrote: Hi, I am trying to turn on hardware acceleration for my HoneyComb application but I never seem to get a 'true' result from this function. I tried all the methods in the Android Developers blog post about the subject ( http://android-developers.blogspot.com/2011/03/android-30-hardware-ac... ). I am working on a completely blank project (ADT generated project), I added the tag android:hardwareAccelerated=true to both the application and activity and even called getWindow().setFlags( WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED); before calling setContentView() My view only has the TextView that was automatically generated from the ADT new project wizard. Yet, no matter what I do, when I call isHardwareAccelerated() on the textview or the root view or any canvas I try to obtain - the function isHardwareAccelerated() of the view/canvas always returns false. I am testing on a Motorola Xoom device with Android 3.0.1 What am I missing here ? Best Regards, Shai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false
Same results with ApiDemos! I created a new sample project (ApiDemos) using ADT with API level 11 as the target and I tried the following: I DO get the patterned blue background in the main screen (seems like hardware acceleration is working). In ApiDemos.Java: - In the OnCreate I added a log print for getListView().isHardwareAccelerated() and was False - In BouncingBalls.Java near the end of the onCreate I added a log print : MyAnimationView v =new MyAnimationView(this); container.addView(v); Log.e(Test, Result: + v.isHardwareAccelerated()); It was also false - In BouncingBalls.Java at MyAnimationView.onDraw(Canvas canvas) Log.e(Test, Canvas is: + canvas.isHardwareAccelerated()); It was also false Can someone clear this out for me ? Is hardware acceleration off ? Is this a bug in the isHardwareAccelerated() function or am I doing something wrong ? Best Regards, Shai Levy On Apr 4, 9:58 pm, Dianne Hackborn hack...@android.com wrote: API demos is hardware accelerated. Try putting the call in one of the simple samples there and see what it does. Fwiw, if you are using the default dark theme, if your window is hardware accelerated than you will get the patterned blue background. If it is drawing in software you will get the solid black background. On Mon, Apr 4, 2011 at 10:53 AM, Shai levys...@gmail.com wrote: Hi, I am trying to turn on hardware acceleration for my HoneyComb application but I never seem to get a 'true' result from this function. I tried all the methods in the Android Developers blog post about the subject ( http://android-developers.blogspot.com/2011/03/android-30-hardware-ac... ). I am working on a completely blank project (ADT generated project), I added the tag android:hardwareAccelerated=true to both the application and activity and even called getWindow().setFlags( WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED); before calling setContentView() My view only has the TextView that was automatically generated from the ADT new project wizard. Yet, no matter what I do, when I call isHardwareAccelerated() on the textview or the root view or any canvas I try to obtain - the function isHardwareAccelerated() of the view/canvas always returns false. I am testing on a Motorola Xoom device with Android 3.0.1 What am I missing here ? Best Regards, Shai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HoneyComb isHardwareAccelerated() always returns false
Hi, I am trying to turn on hardware acceleration for my HoneyComb application but I never seem to get a 'true' result from this function. I tried all the methods in the Android Developers blog post about the subject ( http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html ). I am working on a completely blank project (ADT generated project), I added the tag android:hardwareAccelerated=true to both the application and activity and even called getWindow().setFlags( WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED); before calling setContentView() My view only has the TextView that was automatically generated from the ADT new project wizard. Yet, no matter what I do, when I call isHardwareAccelerated() on the textview or the root view or any canvas I try to obtain - the function isHardwareAccelerated() of the view/canvas always returns false. I am testing on a Motorola Xoom device with Android 3.0.1 What am I missing here ? Best Regards, Shai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Honeycomb surprising result for WallpaperManager.getDesiredMinimumHeight()
Any one? I would also be happy to hear any kind of educated guess on the issue On Jan 27, 1:26 am, Shai levys...@gmail.com wrote: Hi, In the new Android 3.0HoneycombPreview emulator WallpaperManager.getDesiredMinimumHeight() returns 1408. getDesiredMinimumHeight=1408 getDesiredMinimumWidth=1920 The 1408 result is a bit surprising, is this planned ? is there any special reason the desired Height is 1408 and not just 1400 ? Thanks, Shai Levy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Honeycomb surprising result for WallpaperManager.getDesiredMinimumHeight()
Thanks. So I am assuming 1408 pixels isn't a bug, just a result of some kind of computation the parallax scrolling had to do for the WXGA resolution. I hope that creating wallpapers for that resolution will fit well on the Motorola Xoom. On Jan 27, 8:46 pm, Dianne Hackborn hack...@android.com wrote: These are just returning the values that the current home-screen set; they can be the same size as the longest size of the screen, or any size larger, depending on the kind if parallax scrolling the current home screen wants to do. On Thu, Jan 27, 2011 at 10:40 AM, Shai levys...@gmail.com wrote: Any one? I would also be happy to hear any kind of educated guess on the issue On Jan 27, 1:26 am, Shai levys...@gmail.com wrote: Hi, In the new Android 3.0HoneycombPreview emulator WallpaperManager.getDesiredMinimumHeight() returns 1408. getDesiredMinimumHeight=1408 getDesiredMinimumWidth=1920 The 1408 result is a bit surprising, is this planned ? is there any special reason the desired Height is 1408 and not just 1400 ? Thanks, Shai Levy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Honeycomb surprising result for WallpaperManager.getDesiredMinimumHeight()
Hi, In the new Android 3.0 Honeycomb Preview emulator WallpaperManager.getDesiredMinimumHeight() returns 1408. getDesiredMinimumHeight=1408 getDesiredMinimumWidth=1920 The 1408 result is a bit surprising, is this planned ? is there any special reason the desired Height is 1408 and not just 1400 ? Thanks, Shai Levy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Regarding to Live Wallpaper
You don't need a live wallpaper for what you just described. WallpaperManager.setResource() On Jan 25, 10:39 am, android person apunandrod...@gmail.com wrote: I am doing live wallpaper project. I want to set the wallpaper images from my resource folder. I don't know how can i set the image on the android wallpaper. If anyone know then inform the solution for that problem. Thanking you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help me out with my Listview custom row layout, I already tried many combinations
Hi, I am having trouble getting my layout to give me result I need, I already tried many options and it seems that I'm doing something wrong or completely missing something. I have a listview with a custom row layout I can't seem to working although it shouldn't be complex. I need of the list row to insist of: Icon -- title text (bigger and bold) with a short multi line text under the title -- ImageButton My problem in most of my tests is the icon to the right usually doesn't appear, I guess my center group grows and takes all the space of the button. My last failed attempt was with a Relative Layout, didn't have too much luck with a Linear Layout either. Here is the row XML: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:padding=4dip ImageView android:id=@+id/icon android:layout_width=48dip android:layout_height=48dip android:src=@drawable/icon android:layout_marginRight=4dip / LinearLayout android:id=@+id/centertext android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@+id/icon android:orientation=vertical TextView android:id=@+id/titletext android:textSize=16sp android:textStyle=bold android:textColor=@color/titlecolor android:layout_width=fill_parent android:layout_height=wrap_content / TextView android:id=@+id/summarytext android:layout_width=fill_parent android:layout_height=fill_parent android:textSize=10sp android:textColor=@color/titlecolor android:singleLine=false / /LinearLayout ImageButton android:id=@+id/android_button android:layout_width=48dip android:layout_height=48dip android:layout_toRightOf=@+id/centertext android:src=@drawable/playbutton android:background=# / /RelativeLayout Any pointers on what am I doing wrong ? Would you suggest keeping the relative view or dropping it ? How can I force my vertical LinearLayout (@+id/centertext) to leave space for my button ? I tried both 'wrap_content' and 'fill_parent' -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en