[android-developers] question about FindPreference.setDependency and CheckBoxPreference.setDependency

2011-02-15 Thread stanly
hi all, I have traced for native Setting app for some days, I want to understand the code when user enable airplane mode then bluetooth toggle and bluetooth settings will be disable, in the WirelessSettings.java, used wireless_settings.xml layout, there are some CheckBoxPreference widget for bluet

[android-developers] switch between activity issue

2011-01-17 Thread stanly
hi all, I have a application, main activity called A, function 1 called B, function 2 called C, function 3 called D, every function are activitys, then A will use StartActivityForResult call B then return to A, and used same method to call C and D, A->B->A->C->A->D->A->B->A->C.and so on, the l

[android-developers] change permission to /data/data//databases

2011-01-13 Thread stanly
hi all, I want to change permission for /data/data//databases folder, is it possible to do this action in my application? 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@googl

[android-developers] about content provider physical store location

2011-01-12 Thread stanly
hi all, I have a question about content provider, for example, I used the *Telephony.Carriers.CURRENT* this URI to store all APN nodes, maybe it will has 100 nodes(records) in it. but when I insert the 100 rows data via *ContentResolver.insert* pragramatically, instead of inserting records in ever

[android-developers] content provider update problem

2011-01-06 Thread stanly
dear all, I have some question about provider update issue, here is my code public static final String[] BUCKET_PROJECTION_VIDEOS = new String[] { Video.VideoColumns.BUCKET_ID, Video.VideoColumns.BUCKET_DISPLAY_NAME }; ContentResolver cr =

[android-developers] Re: list add item error

2009-06-24 Thread Tsai stanly
thanks for your help! from my DDMS on my Eclipse, it just show: "[2009-06-24 20:06:02 - DeviceMonitor]Error reading jdwp list: EOF" and how to use the adb logcat? thanks! 2009/6/24 Mark Murphy > > Tsai stanly wrote: > > with the location parameter, > > when int

[android-developers] Re: list add item error

2009-06-24 Thread Tsai stanly
with the location parameter, when into the app,will show "the application demo(process demo.app) has stopped on unexpectedly, please try again" without location, it works!! 2009/6/24 Mark Murphy > > tstanly wrote: > > hi all, > > > > it's so strange!! > > > > i have a list decleared: > > publi

[android-developers] Re: how to close activity?

2009-06-23 Thread Tsai stanly
no...if you don't use the finish(), and variables would not kill automatically, variables include some static variable 2009/6/23 Fei Zhang > I don't think you need close 2, the system will do it! Is it right? > > 2009/6/23 tstanly > >> >> hi all, >> >> i have a app,the structure composed thr

[android-developers] Re: Problem with setExtra

2009-06-22 Thread Tsai stanly
http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String,%20int ) 2009/6/22 Sujay Krishna Suresh > by doesnt work do u mean that u r unable to read the extra in ur target > activity? > if so plz post d code tat u r usin for this purpose... so tat we can find d

[android-developers] Re: global variable and get website address question

2009-06-19 Thread Tsai stanly
solved. for two: use WebViewClient.getTitle() for one: eg: class A{ static int a=1; public void doSomethingElse(){ } } class B{ public void doAddA(){ A.a=A.a+1; } } 2009/6/19 Tsai stanly > sorry,about first quest, > I want the variable can deliver b

[android-developers] Re: global variable and get website address question

2009-06-19 Thread Tsai stanly
sorry,about first quest, I want the variable can deliver between different .java in the same project. 2009/6/19 Tsai stanly > thanks for your reply, > > for first question, > how can i do the garbage collection? > for second, > i was implement,but haw can get the link "a

[android-developers] Re: global variable and get website address question

2009-06-19 Thread Tsai stanly
thanks for your reply, for first question, how can i do the garbage collection? for second, i was implement,but haw can get the link "address"? my code of implement shouldOverrideUrlLoading is bellow, how can i get address? thanks! private class class_WebViewClient extends WebViewClient { @

[android-developers] Re: how can alert dialog add/delete items arbitrary?

2009-06-18 Thread Tsai stanly
solved use android.app.AlertDialog.Builder there has "setAdapter" method 2009/6/18, tstanly : > > > hi all, > > I wish my alert dialog can add/remove items arbitrary, > but I looked for the sdk reference but nothing method can use, > is somone knows how to do? > > > thanks > > > --~--~-~-

[android-developers] Re: android.os.SystemProperties???

2009-06-17 Thread Tsai stanly
thanks for your answer, so it can't be use? 2009/6/18, Dianne Hackborn : > > It is private. > > On Wed, Jun 17, 2009 at 9:07 AM, tstanly wrote: > >> >> hi all, >> >> when i research the android browser source code, >> there are BrowserSetting.java in the src dir, >> and the code import "android

[android-developers] when program has edittext and webview

2009-06-15 Thread Tsai stanly
hi, there have some problems when adding edittext and webview, the edittext is upon the webview, the problem is the mouse always focus on edittext, so i can't type the id or password in the webview?? so, how to solved??? thanks!!! s