[android-developers] Re: UI performance is slow on large screen tablet

2012-05-31 Thread dara kok
ConvertView is used. What else to optimize? Profile the part that is slow is a great answer. -- 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] UI performance is slow on large screen tablet

2012-05-30 Thread dara kok
the smaller and the bigger sibling. Could somebody here point out what are the contributing factors to such issue? and what could be done to optimize the UI speed? Thanks, dara kok -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] interval between invalidate/similar method call

2012-03-11 Thread dara kok
interval between invalidate call what is the refresh interval between each call to invalidate or similar method? according to Android documentation, in one second, android device can draw up to 50 times per second. In my example, if i wan to animate an object on x-coordinate from point A to B

[android-developers] AudioTrack class only plays the first half of sound track

2012-02-20 Thread dara kok
Hi, I've got a sample class demoing the use of Android AudioTrack class. It's a very simple one which make use of 2 threads. One to read data from a wav file chunk by chunk and another thread to play it back. My issue is that it only play the first half and then the sound vanishes. Please

[android-developers] Re: AudioTrack class only plays the first half of sound track

2012-02-20 Thread dara kok
additional observation: a system call to GG_EXPLICIT is made before the audio stop playing. -- 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] All fragments are reloaded when return from an activity

2012-02-08 Thread dara kok
Hi, I have an activity with a couple of fragments. Only one fragment is displayed at a time and I switch from one fragment to another using the FragmentTransaction.replace method. It works alright. A strange behavior happens when i allow user to leave the fragment and launch another activity.

Re: [android-developers] widget stop working after force close in setting page

2012-01-23 Thread dara kok
Totally agree with what you said technically. But from a user point of view, it is weird to have a widget on screen that is not usable after a force stop. -- 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] widget stop working after force close in setting page

2012-01-22 Thread dara kok
Kristopher Micinski, u're right. Never thought it is this hard to explain someone what I mean. -- 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] widget stop working after force close in setting page

2012-01-22 Thread dara kok
force stop is supposed to reset the app. But it does not seem right that the widget stops working. logically The force stop button should act as a single point to reset both the app and widget that belong to the app -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] widget stop working after force close in setting page

2012-01-21 Thread dara kok
A button, I refer to the option to force close an app under application section in android system setting page. -- 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

[android-developers] widget stop working after force close in setting page

2012-01-20 Thread dara kok
A Simple app with a widget that once a button on the widget is clicked, it will lead back into the app. My issue is that when the app is force close using a button in the application setting page, my widget becomes actionless. I've put a few log statement within the widget provider. after the

[android-developers] Webview.loadDataWithBaseURL can't load html with image

2011-11-22 Thread dara kok
Hi, I've been searching through SO and there plenty of resource showing how to display html string with image inside of it. But I still can't make it work in my case. Below is my only line of code. It actually links to a valid image resource.

Re: [android-developers] Webview.loadDataWithBaseURL can't load html with image

2011-11-22 Thread dara kok
yes, that's what's missing. Thanks a lot. Always overlook this manifest thing. -- 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] Re: Using ActionBar while remains compatible with Android 2.x?

2011-11-19 Thread dara kok
Why not just ur solution here. -- 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] Gridview whose cell have differing size

2011-10-20 Thread dara kok
Hello, Can you tell if it's possible to build gridview widget to have a number of cells with some cells span multiple columns forward and a few rows downward? Thanks, darakok -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread dara kok
Hello, I try to create list view that get its data from CursorAdapter. My cursor will contain all the row. And within the adapter implementation, base on a criteria, I want to skip a certain row from being displaying in the listview. Is that possible? Example from a newView or bindView

Re: [android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread dara kok
Thanks for ur comment. I need to have everything in the cursor, can't filter it out. Because even though I will skip a certain row, but i still need data form that row for backend processing within the adapter. That's why I need a solution to skip a row within the adapter. Thanks, darakok

Re: [android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread dara kok
Within one list item, I want to display 2 or 3 rows of data from the cursor, it's displayed as multiple column in a single list view row. So with that requirement, I can use a gridView. But my trouble is for a certain row from the cursor, it may fill the space of 2 columns. In overall, the

[android-developers] Android ADT 14, build with maven fail. Cannot create the APKBuilder object, NullPointerException

2011-10-19 Thread dara kok
Hello, After upgrading to the latest ADT v14, I've an issue when I build my project using maven. I've updated both the ADT and SDK tools to the latest version. Creating additional unsigned apk file /user/user-aaa/xxx-SNAPSHOT-unsigned.apk [ERROR] Cannot create the APKBuilder object

[android-developers] Why dither a bitmap

2011-10-09 Thread dara kok
Can somebody here explain me why dithering is needed in Android? Thanks dara kok -- 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] Image dpi, does Android care about it?

2011-10-06 Thread dara kok
this? Thanks, dara kok -- 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

[android-developers] width of image 480px doesn't fit device screen (webview)

2011-09-25 Thread dara kok
a simple html file with an img tag inside without specifying anything other than its source property. So anyone here knows what wrong. Thanks dara kok -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] maven-android-plugin, ActionBar - Symbol not found

2011-09-16 Thread dara kok
message. Any idea of this error. Dara kok -- 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

[android-developers] Open sms app from a link in webview

2011-09-05 Thread dara kok
I receive the following error when click on a link in a webview control which open an sms app on my HTC legend 2.1. My html is like this: a href='sms:##'##/a On emulator, it runs fine. - java.lang.RuntimeException: Unable to start activity

[android-developers] Re: Open OpenOffice with Read only access to Data

2011-08-17 Thread dara kok
Dont think this is possible. Unless your flag is supported by the target application. dara kok -- 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