[android-developers] 3.1 release note is wrong about FLAG_EXCLUDE_STOPPED_PACKAGES or it is a bug?

2011-06-30 Thread James Wang
Hi, There are such words about FLAG_EXCLUDE_STOPPED_PACKAGES in 3.1's release note:http://developer.android.com/sdk/android-3.1.html. When neither or both of these flags is defined in an intent, the default behavior is to include filters of stopped applications in the list of potential targets.

[android-developers] How to change application not STOPPED in 3.1

2011-06-29 Thread James Wang
Android 3.1 introduced two new Intent flag FLAG_EXCLUDE_STOPPED_PACKAGESFLAG_INCLUDE_STOPPED_PACKAGES. If user stopped my app by settings app and my app was expected to be started by BOOT_COMPLETED Intent. BOOM! My app will not start untill user click my app's shortcut. So if my app include only

[android-developers] Re: Logs not appearing in 3.1?

2011-06-29 Thread James Wang
I do not see this problem. r u sure your app is up? -- 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] Re: 2.3 emulator and xhdpi support

2010-12-23 Thread James Wang
We noticed Samsung has released one addon for Nexus S but it is only 240 hdpi. There is no way to test xhdpi with 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] 2.3 emulator and xhdpi support

2010-12-22 Thread James Wang
Hi, We want test our app for xhdpi device and found no way to let emulator to support xhdpi even by setting desnsity of avd to 320. Have anybody had successful experience about it Please share it. Thanks. James -- You received this message because you are subscribed to the Google Groups

[android-developers] How keep DDMS from capturing screen on App side

2010-11-22 Thread James Wang
Hi, Do anybody know how to keep DDMS from capturing screen on App side? We are developing an ebook reader and don't want anybody copy our book as images. James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How keep DDMS from capturing screen on App side

2010-11-22 Thread James Wang
Hi, We are developing e-book reader app and we do not like bad-people capture screen by ddms to pirate our books. We wonder whether there is a way to keep DDMS from capturing screen on app side. Thanks. James -- You received this message because you are subscribed to the Google Groups Android

[android-developers] How keep DDMS from capturing screen on App side

2010-11-22 Thread James Wang
Hi, Do anybody know how to keep DDMS from capturing screen on App side? We are developing an ebook reader and don't want anybody copy our book as images. James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: No underline for texts candidates in html before committing

2010-08-22 Thread James Wang
We just found there is no such problem on 1.6. This bug was introduced since 2.0. -- 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: No underline for texts candidates in html before committing

2010-08-14 Thread James Wang
After digging farther, I found this is a bug of WebTextView which is used as a specialized version of EditText used by WebView. And it is transparent and only redrawing when input is password according to WebTextView.setInPassword. Any google UI SE can shed some light on this problem? James

[android-developers] No underline for texts candidates in html before committing

2010-08-12 Thread James Wang
Hi, When input something in EditText by softkeyboard, the -- 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] No underline for texts candidates in html before committing

2010-08-12 Thread James Wang
Hi, When input something in EditText of app, we can differ the inputted and inputting text by underline before committing from softkeyboard. But it is not true in html. Is this a bug? And is there any work arround? Best Regards James -- You received this message because you are subscribed to

[android-developers] Re: use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-31 Thread James Wang
Hi Dianne, thanks for your answer. Can you tell us how to avoid this error if we have to put A and B in the same process? -- 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: finish() at onStop causes ANR

2010-07-31 Thread James Wang
@TreKing Thanks for your replies. We do have some reasons to call finish because Android did not finish one when another is shown before it. Probably, but with your code, not Android. Document does not say finish is not allowed to be called at onStop. How to explain there is no problem with

[android-developers] Re: Shared library

2010-07-29 Thread James Wang
Platform library is a choice but I do not think it can be distributed by Market. -- 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] use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-29 Thread James Wang
We have two apks A and B which both import one platform library by use- library in AndroidManifest. And they have the same android:process so they run in the same process. When A is finished and B is started, we got ClassCastException which happens like codes below: CustomedView view =

[android-developers] finish() at onStop causes ANR

2010-07-29 Thread James Wang
We have two apks A and B. A starts B at onBackPressed. Doing as steps below can make ANR: 1)starts emulator and A; 2)put one finger on A and hold on it; 3)press ESC to do back key action and B is started; 4)release finger on B ANR will happens if we call finish() at onStop. And if we call

[android-developers] Re: use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-29 Thread James Wang
Hi Dianne, Thanks for your response. I can understand two different classloader for different apks even who are in the same process. But check the codes below: this.setContentView(R.layout.main); CustomedView view = (CustomedView)findViewById(R.id.customedView); I think there is nothing wrong

[android-developers] Re: use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-29 Thread James Wang
I found call System.exit(0) at A's onPause also can solve this 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] Is onDetachedFromWindow more reliable than onStop

2010-07-02 Thread James Wang
Hi, We developed two heavy apps, A,B. A startActivity B and B comes back to A by startActivity too. We record one flag in A's onStop to remember going to background and restore that flag in onStart. After switching between A and B rapidly, we found A's onStop often get called by system later than

[android-developers] Re: How to change ClassLoader of Activity

2010-06-25 Thread James Wang
So what Thread's ContextClassLoader for? -- 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] How to change ClassLoader of Activity

2010-06-25 Thread James Wang
Hi, I newed a DexClassLoader to load one jar file dynamicly: DexClassLoader cl = new DexClassLoader(my.jar, getFilesDir().getAbsolutePath(), null, this.getClassLoader()); It is OK to loadClass and execute method with reflection like below: Class?

[android-developers] Re: how to play a 8192*8192 image ?

2010-06-25 Thread James Wang
Here is a similar discussion before. http://groups.google.com.hk/group/android-developers/browse_thread/thread/3c12a6fb1a46e910/55f76d394266d675?q=#55f76d394266d675 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: application's persistent not work

2010-06-23 Thread James Wang
Thanks, Dianne. We have confirmed what you said. -- 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] Re: application's persistent not work

2010-06-16 Thread James Wang
We did more research on it. Based on Pone app, we changed our app's AndroidManifest.xml with two platform certificate and system shareuserid. But our app is still killed when in background. Can anybody tell me how to make our app persisitent really? Thanks. James -- You received this message

[android-developers] Re: application's persistent not work

2010-06-16 Thread James Wang
Hi Dianne, Would you shed some light on this topic? Thanks. James -- 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] application's persistent not work

2010-06-15 Thread James Wang
Hi, We set our application's persistent true to make our app run forever. (We are making new device product) However, we found our app was still got killed during background in emulator. Our apps are big mem consumers and I think system maybe kill any app without checking persistent prop when

[android-developers] Re: application's persistent not work

2010-06-15 Thread James Wang
Hi Frank, What you said sounds reasonable. But sdk reference tells us another story. Is the reference to persistent wrong? -- 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: TaskAffinity causes new instance being created when startActivity

2010-06-13 Thread James Wang
Thanks, YangJian. What we want is to put all activities started by L stay in the same task as L. So we have to set all activities`s taskAffinity the same one. For that reason, Single Task is not for what we want, because it is goint to make A as root of that task which is L in fact. Thanks,

[android-developers] Re: TaskAffinity causes new instance being created when startActivity

2010-06-10 Thread James Wang
Dianne, You are right. We did want to make an activity like launcher. In fact, our product is more complicated than what I said above. Below is the real plan: 1)We made an activity as the launcher L; 2)A tells L to start B; 3)B does something and tells L starts A again. L,A,B have the same

[android-developers] TaskAffinity causes new instance being created when startActivity

2010-06-09 Thread James Wang
Hi, I have a problem about taskAffinity of Activity. Activities A and B with the same taskAffinity. A starts B with FLAG_ACTIVITY_NEW_TASK and the B starts A with FLAG_ACTIVITY_NEW_TASK again. Dumpsys activity of system gives us task stack like below: TOP- A B A According to

[android-developers] Re: TaskAffinity causes new instance being created when startActivity

2010-06-09 Thread James Wang
Can anybody help me? -- 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

[android-developers] how browser decides html size on 2.1

2010-05-20 Thread James Wang
We have one html page whose backgroud is an image(1024px*600px) with no-repeat. We displayed it in Browser rightly on 1.6 HVGA(160) and WVGA(240) emulator and scrollbar displaed on both sides. But we got different result when testing on 2.1 HVGA(160) and WVGA(240) emulator. On 2.1 HVGA(160), the

[android-developers] Re: how browser decides html size on 2.1

2010-05-20 Thread James Wang
Hi Dianne, would you be kind to take a look at my problem? Thanks. -- 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] Re: Application installed twice - may be key pwd change

2010-05-06 Thread James Wang
First, If you did sign your app twice with differect key, the second time installation is supposed to be failed. But the fact is not. Have you tested with key password changing back? If you found the first installed app was replaced, I think you get cause. -- You received this message because

[android-developers] Re: How to let soft keyboard overlap the footer of window

2010-04-12 Thread James Wang
Thanks, Murphy. This can not make our customer happy. 1. They want only footer is invisible, not half screen. 2. when scrolling to the EditText at bottom, not all of it is visible. We wonder if there is any event that notifies IME coming out. James -- You received this message because you are

[android-developers] How to let soft keyboard overlap the footer of window

2010-04-09 Thread James Wang
Hi, My customer want soft keyboard can overlap the footer(menu bar) of window when showing up. We noticed soft keyboard squeeze the foreground window to smaller size when showing up. So we overrided onSizeChanged and set footer which is in linearlayout and below one webview to be GONE. But we got

[android-developers] How to add activity rotation animation in 2.1 when orientation changed

2010-04-07 Thread James Wang
Hi, I wonder whether developer can customize activity rotation animation in 2.1 when orientation changed. Can SDK do such thing? Best Regards James -- 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] How integrate my Settings Activity into Settings apk

2010-04-06 Thread James Wang
I know ime developer can create his own setting activity which will be displayed in Settings apk. I wonder whether there is a common way to interate any settings activity into Settings apk. Best Regards James -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How integrate my Settings Activity into Settings apk

2010-04-06 Thread James Wang
3ks. -- 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,

[android-developers] Re: including my .so files in sdk.

2010-04-01 Thread James Wang
add commands like below in build/target/product/sdk: PRODUCT_COPY_FILES += \ $(proprietary)/libaudioeq.so:system/lib/libaudioeq.so -- 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: multiple user feature in android

2010-03-13 Thread James Wang
You should ask this question on android-porting because multiple user is not supported by sdk. -- 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: How do i check app close gracefully during shutdown scenario

2010-03-13 Thread James Wang
I think Not unregisterReceiver is no harm to system because power down. I believe the foreground activity's onDestroy will be called. As for others, there seems be no assurance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Query Loop!?

2010-03-11 Thread James Wang
Sorry, how about SQLiteDatabase.rowQuery? -- 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] Re: setting an icon in the application.

2010-03-11 Thread James Wang
Please download android source and study packages/apps/Launcher -- 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] Re: Remove attention box while activating softkeyboard

2010-03-11 Thread James Wang
I this it is there on purpose. Because you have made one IME and it can record user inputs. However, I did not take look at the android source. -- 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: Call processing

2010-03-11 Thread James Wang
I do not believe Android call BroadcastReceiver.onReceive synchronously. -- 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] Re: How do i check app close gracefully during shutdown scenario

2010-03-10 Thread James Wang
For what? -- 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

[android-developers] Re: multiple user feature in android

2010-03-10 Thread James Wang
You mean supporting more than one user account like windows? -- 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] Re: Customizing in Coming /Out going call screen

2010-03-10 Thread James Wang
AFAIK, you can not do it without making your own firmware. Because Phone App has deep connection with framework. You should ask this question on android-porting. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: General question: Can't we have 2 projects(same) in 2 different locations and import them in eclipse?

2010-03-10 Thread James Wang
I believe you have to change the value of /projectDescription/name of .project file to make your two projects have different names. -- 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: Query Loop!?

2010-03-10 Thread James Wang
You should take a look at SQLiteDatabase.execSQL. -- 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] Re: registerCallback leaks memory?! Help?

2010-03-10 Thread James Wang
I am not much sure gclog.py is only available for linux. Maybe you can try installing python on withows and playing with it. However, linux is recommended. -- 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: How to display icon on the status bar?

2010-03-09 Thread James Wang
I do not think you can do it with SDK and you should ask this question on android-porting -- 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: Unit Test Build Problems

2010-03-09 Thread James Wang
First, r u sure your Android project is runnable? Second, r u sure you have add instrument permission in AndroidManifest.xml? -- 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: registerCallback leaks memory?! Help?

2010-03-09 Thread James Wang
gclog.py (http://bigflake.com/gclog.py.txt) is recommended by fadden( Google engineer) many times for android developers. You can not find the same function in DDMS. By gclog.py, you will know what exactly native heap size, vm heap size and when memory leak happens. Please read this thread

[android-developers] Re: About applying theme over application wide

2010-03-08 Thread James Wang
I think you should ask this one on android-porting. -- 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] Re: Scheduling restart of crashed service, but no call to onStart() follows

2010-03-08 Thread James Wang
No. It is depend on system. -- 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] Re: registerCallback leaks memory?! Help?

2010-03-08 Thread James Wang
My suggestion is to use gclog.py to monitor vm heap and native heap. Then analysis hprof with MAT to find the leak point. -- 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: Is it possible to set minimum heap size for each application.?

2010-03-05 Thread James Wang
@mycall #1. The below code mean that every applications on VM start with 2Mb heap size. correct.? =Yes And If I want to change initial heap size for every application, I can do it directly. correct.? =Yes And according to comment, we can pass argument for heap size but in fact there is no way to

[android-developers] Re: Supress the native In Call Screen and replace with 3rd party?

2010-03-05 Thread James Wang
You can do nothing on this subject with sdk. I think you should go for some help on android porting. -- 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

[android-developers] Re: registerCallback leaks memory?! Help?

2010-03-05 Thread James Wang
Have you read this one http://developer.android.com/resources/articles/avoiding-memory-leaks.html? -- 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

[android-developers] Re: Is it possible to set minimum heap size for each application.?

2010-03-04 Thread James Wang
Please read https://groups.google.com/group/android-porting/browse_thread/thread/a22a9bf2d67013ac/6ffc46ab049a45a4?lnk=gstq=heap+limit#6ffc46ab049a45a4 -- 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: My posts are not displayed

2010-03-04 Thread James Wang
how did you do? -- 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

[android-developers] Re: colud i join Android Developers group?

2010-03-04 Thread James Wang
you have been 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+unsubscr...@googlegroups.com For

[android-developers] Re: How to implement answer function programmetically?

2010-03-04 Thread James Wang
I do not think you can make it with SDK, even Hint2. -- 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] Re: How to set Z order to the child View

2010-03-04 Thread James Wang
use ViewGroup.bringChildToFront and invalide please. -- 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] Re: How to install fresh Android OS in my HTC MAGIC?

2010-03-03 Thread James Wang
you can find all kinds android os rom and install reference on forum.xda-developers.com. Or you can read this http://developer.htc.com/google-io-device.html. Be careful about your magic, it is very easy to be bricked if you do not know much about burn rom! -- You received this message because

[android-developers] Re: Is it possible to set minimum heap size for each application.?

2010-03-03 Thread James Wang
What r u going to do? To limit your app's heap size? if so, I think you can not get it done without building android source. You can find what you want on android-porting. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Update Activity from BroadcastReceiver

2010-03-03 Thread James Wang
What kind of BroadcastReceiver? I think you have to do it by creating, registering and unregister your broadcastreceiver in your activity. And define your activity as member of broadcastreceiver. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: how to do hide and activity when there is an activity on top redirecting me to home screen

2010-03-03 Thread James Wang
startActivity(HOME) when clicking hide button. -- 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] Re: anyDensity - bitmap not resized

2010-02-28 Thread James Wang
My suggestion is to do as what Supporting multiple screens - Resource directory qualifiers for screen size and density of dev guards says. If you sure to support WQVGA400, you should make specific layout and drawable resource for it. -- You received this message because you are subscribed to the

[android-developers] Timer cause memory leak

2010-02-26 Thread James Wang
I have three activities:MyFirstActivity(click)-MyActivity(timer)- MyNextActivity. And I noticed Timer cause MyActivity memory leak when digging through hprof in Eclipse. Below is my codes: public class MyActivity extends Activity { private Timer timer = new Timer(); protected void

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

2010-02-26 Thread James Wang
I think you can do anything with Framelayout like absolutelayout. -- 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] Re: anyDensity - bitmap not resized

2010-02-26 Thread James Wang
Pre-scale resource should be depend on density of screen, not resolution. -- 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] Re: Database management

2010-02-26 Thread James Wang
My suggestion is create your own content provider for this and open db in onCreate and hold it as static. -- 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] Re: SQLiteDiskIOException happens when querying 4000 rows data with order by japanese kanji

2010-02-21 Thread James Wang
I found another resolution for my problem. If I create an index for orderbyed column, my problem will get gone. After reading some docs about sqlite, it seems that using index to order by will remove the necessary of creating journal file. So I think creating index is a better solution. --

[android-developers] about setting WindowManager.LayoutParams.screenBrightness

2010-02-21 Thread James Wang
We noticed some devices(not android's) support such feature:black out screen and turn bright when someone touches it. Our custom want us to simulate such function with android. We trid to set WindowManager.LayoutParams.screenBrightness to make screen dark enough but still knowing touch motion but

[android-developers] Re: Setting Application-wide Themes

2010-02-21 Thread James Wang
According to http://developer.android.com/intl/fr/guide/topics/ui/themes.html you should do it after super.onCreate. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... setTheme(android.R.style.Theme_Light);

[android-developers] Re: Confused about activity lifecycle usage in the notepad example

2010-02-21 Thread James Wang
I think your design can not deal with phone rotation. When phone got rotated, the input can not be reserved. -- 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] Re: SQLiteDiskIOException happens when querying 4000 rows data with order by japanese kanji

2010-02-11 Thread James Wang
After digging further, I got it. This disk I/O error is caused because the default size(4m) of sqlite_stmt_journals partition is too small for our query. If I changed init.rc to make big size partition(8m), 4000 rows data can be selected without any error. So I wonder what is the best solution

[android-developers] Re: system hangs while giving Android build

2010-02-10 Thread James Wang
I did have the same experience before. I think 1G is not enough and your disk should be good enough. -- 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

[android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-10 Thread James Wang
Thanks Romain! -- 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

[android-developers] Re: how to deal complex sql in ContentProvider

2010-02-09 Thread James Wang
Thanks Murphy, Jens! We are using one contentprovider two share all data amount many apps. In fact, we are developing contentprovider as the bridge between apps and database, sound like JDBC. Switching to a remote service sounds like a option but we don't think it is good design that exposing one

[android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-09 Thread James Wang
Thanks Romain! We are developing apps on Donut. Next time, I will search android's bugs before asking 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

[android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-09 Thread James Wang
Hi, Romain. I searched http://code.google.com/p/android and found nothing about this bug. So I guess this bug is not reported by external people. BTW, Dev Tool -show screen update should be not reliable if what we found is a bug. And Dev Tool-show screen has been fixed, too? If not, I guess I

[android-developers] SQLiteDiskIOException happens when querying 4000 rows data with order by japanese kanji

2010-02-09 Thread James Wang
This topic is moved from plateform. Below is stack trace: E/DatabaseUtils( 260): Writing exception to parcel E/DatabaseUtils( 260): android.database.sqlite.SQLiteDiskIOException: disk I/O error E/DatabaseUtils( 260): at android.database.sqlite.SQLiteQuery.native_fill_window(Native

[android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-08 Thread James Wang
Hi, Dianne Can you shed some light on this topic? Any words will be appreciated. James -- 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] how to deal complex sql in ContentProvider

2010-02-08 Thread James Wang
Hi, We want to add below update sql into our contentprovider: update tableName set column1 = column1 + 1 where column1 = 50 We found current update of contentprovider does not support it, which would not recognize the column1 of column1 + 1 as column name. So we have to add execSQL method

[android-developers] Re: how to use com.android.internal.telephony

2010-02-04 Thread James Wang
I recommend you develop your app in Eclipse and build it under android source. -- 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: try to see hprof dump from ddms

2010-02-04 Thread James Wang
but i find out if my app(a simple HelloWorld) is built by mydroid (i.e. using Android.mk) it always complains permission denied =what's mean built by mydroid? you mean build under android source? can you paste some logcat? -- You received this message because you are subscribed to the

[android-developers] Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-03 Thread James Wang
Hi We are using TextView's Ellipsize function to scrolling text in it and there many other controls in our window. We noticed CPU would go up to 50% if text started scrolling. After digging deeper, we found all controls in our layout kept drawing when texts scrolling. We wonder why? And how to

[android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-03 Thread James Wang
Below is our test project: public class AndroidTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout ll = new LinearLayout(this);

[android-developers] How to exclude R class from emma coverage report

2010-01-08 Thread James Wang
Hi We do junit test with emma coverage report successfully but with only one annoying problem. R file was included in coverage report and make the report statics less than our expected. I find out that emmrun of emma seems be the solution but do not know how to be used with Android. So can

[android-developers] android:stateNotNeeded not work

2009-12-28 Thread James Wang
Hi, SDK reference says If this attribute is set to true, onSaveInstanceState() may not be called and onCreate() will be passed null instead of the Bundle — just as it was when the activity started for the first time. I verified it is not true. No matter what value I set stateNotNeeded,

[android-developers] Re: How to Load Asset PDF in Browser or Webview ?

2009-12-28 Thread James Wang
install it and you also need a file browser app. Open pdf in file browser app and apdfviewer will be brought out. -- 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] Re: android:stateNotNeeded not work

2009-12-28 Thread James Wang
we wonder when this **may** will happen? -- 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] how to change window z-order on-the-fly

2009-12-23 Thread James Wang
How can we change the created z-order on-the-fly? setting WindowManager.LayoutParams.type works when creating window but not works after creating. James -- 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: Why RIL.java implements CommandInterface twice

2009-12-18 Thread James Wang
Maybe I should post it to porting group. -- 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] How to know the caller of ContentProvider

2009-12-17 Thread James Wang
We are developing a ContentProvider which is supposed to serve for specified packages. So we want to get the caller package name. Is there any way to achieve that? Thanks in advanced. James -- You received this message because you are subscribed to the Google Groups Android Developers group.

  1   2   >