[android-developers] Re: How to change orientation sensor polling period in Android?

2012-07-30 Thread Goodwin
why do you want to change the orientation sensor polling period? how do you get the current polling period. is there some function ? 在 2012年7月29日星期日UTC+8上午5时19分14秒,Prem写道: I just want to change the orientation sensor polling period in android. The current polling period is 40ms. -- You

[android-developers] Re: Start application on System boot without home screen

2011-11-28 Thread Goodwin
I have a doubt. if that,there are two home screens,and the user must choose one in the alert dialog. it is not convenient. is there any way to start his application only ? On Nov 29, 7:00 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Nov 25, 2011 at 9:06 AM, AlexBonel

[android-developers] Re: Playing a sound several times

2011-10-25 Thread Goodwin
Please implement this interface MediaPlayer.OnCompletionListener. when the playback of the source has completed, you can play it second time. On Oct 21, 9:26 am, Rafael Maas rafaelm...@gmail.com wrote: i have the following problem: when i try to play a sound over and over again, it sometimes

[android-developers] Re: unreasonable NullPointerException in onDestroy()

2011-10-08 Thread Goodwin
I have run these code. no error. On Oct 8, 4:34 pm, DraganA dand...@gmail.com wrote: I'm puzzled as to why I'm getting Null pointer exception in the construct below, knowing the Activity life cycle, it shouldn't happen. Could the clue be in TabActivity?? public class Main extends

[android-developers] Re: activity launches with wrong layout orientation

2011-10-08 Thread Goodwin
I never find this issue. maybe you could supply more code. On Oct 7, 8:50 pm, Simon simon.wilkin...@gmail.com wrote: Hi, I have an activity that I have two layouts defined for: one for landscape and one for portrait.  So in my layout folder I have activity.xml and activity_landscape.xml.  

[android-developers] Re: How to start activity without creating new one?

2011-10-08 Thread Goodwin
I think the Activity is destroyed. so, It calls onCreate() everytime. On Oct 6, 8:55 pm, Charley Smith sfaffila...@gmail.com wrote: I tried to set attribute android:launchMode=singleTask for calling Activity, but it still does not works as I expect I need that method onCreate(Bundle bundle)

[android-developers] Re: Android Start up

2011-05-12 Thread Goodwin
Please check the console log. On 5月9日, 下午6时19分, LiTTle littlep...@gmail.com wrote: Hi everyone, I am new in android development. I am coming from J2ME. I am trying to build my first Android application. The application is Hello World as it is described at Google's guidelines. I use Eclipse

[android-developers] Re: Android: Get Recently used Apps

2011-04-28 Thread Goodwin
Add the following. uses-permission android:name=android.permission.GET_TASKS/uses- permission On 4月27日, 下午9时14分, Simon carep...@gmail.com wrote: Hello! I need a little bit help getting information about the last lets say 5 application that was opened/used. ActivityManager m =

[android-developers] Re: Video Call Recording Feature

2011-03-30 Thread Goodwin
hi Guna, How did you work for Voice call Recording? Could you help to share it ? Guna 写道: Hello all, I am working on Video Call Recording feature on 2.3, and wondering if this is possible with out any framework changes I mean as a stand alone application. Till now I have written the

[android-developers] Re: Downloading Videos using Service but facing problem with respect to Wifi Connection

2011-03-16 Thread Goodwin
1. I think you should create a Thread in service to download the videos. On 3月15日, 下午2时38分, monty neilm30s...@gmail.com wrote: Hi All I am downloading encrypted videos from server in my phone memory and decrptying and moving the decrypted video to sdcard. I have the following issues and

[android-developers] Re: How to fetch GroupId of ContextMenu

2011-03-16 Thread Goodwin
want that when i click on any of item of my ListView, it will display a different context menu corresponding to different List item. How could you do that? I think it is impossible. It is context menu ,not nomal menu. On 3月15日, 下午2时35分, Puneet Agarwal android.developer1...@gmail.com wrote: Hey

[android-developers] Re: Appwidget onDisabled not called.

2011-03-14 Thread Goodwin
BTW, why is the onDisabled function not called? I think it should be. On 3月13日, 下午10时19分, Mahavir Jain vir.j...@gmail.com wrote: Solved.. 1) Reset the emulator with following command: emulator -avd -TestDevice -wipe-data This clears all the AppWidget that were in the memory. 2) Next

[android-developers] Re: bitmap returning null

2011-03-13 Thread Goodwin
hi, I tested this in Android 2.2 emulator. it is ok. On 3月12日, 下午4时24分, vani reddy vani.redd...@gmail.com wrote: Hi, I used the below links,but still bitmap is null. I am using the below iamge url,in browser it is opening.

[android-developers] Re: Clear recent apps stack

2011-03-02 Thread Goodwin
you must modify the android source code. mabe in framework On 3月3日, 上午12时09分, Tom thomas.coz...@gmail.com wrote: Hi, When I do a long press on Home Button, recent apps stack appears. Is there a way to remove or hide this stack? Best regards Thomas -- You received this message because

[android-developers] cts test result

2011-02-21 Thread Goodwin
hi all, I study the cts test recently,and I hava a query about the cts test result. the result shows time out when run some cases. what does the time out mean? any idear will be appreciated! -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: the difference between ACTION_PACKAGE_CHANGED and ACTION_PACKAGE_REPLACED ?

2011-01-27 Thread Goodwin
ACTION_PACKAGE_REPLACED Since: API Level 3 Broadcast Action: A new version of an application package has been installed, replacing an existing version that was previously installed. ACTION_PACKAGE_CHANGED Since: API Level 1 Broadcast Action: An existing application package has been changed (e.g.

[android-developers] Re: App can not start after I change the package name !!

2011-01-27 Thread Goodwin
manifest should be changed. On 1月26日, 上午9时57分, Jar dragonk...@gmail.com wrote: Hi, everyone, I have to change a app's package name for different market. But after I changed the app's package name, when I start the app, it shows this message: The Application(process com.AAA.BBB) has stopped

Re: [android-developers] there is any view like select of html in android SDK?

2011-01-13 Thread goodwin
Thanks.Kostya Surely i dont find optgroup-like. I will try to make an adapter. -- 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] there is any view like select of html in android SDK?

2011-01-12 Thread goodwin
tag select in html , it can contain optgroup and option value=a value, i want to use a view like this in android.I want an optgroup and a value. Is there any ready-made? any help will be appreciated. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Changing the height of ContextMenu at runtime

2011-01-11 Thread Goodwin
I think it's impossible unless you modify the Anroid framework. On 1月10日, 下午10时25分, yogi yogi.ru...@gmail.com wrote: Hi All, I have a requirement in which i have to adjust the height of the contextMenu at run time.The List already have enough element to make scroll in the context menu

Re: [android-developers] what to do with Only the original thread that created a view hierarchy can touch its views?

2011-01-03 Thread goodwin wei
()? On Sat, Dec 18, 2010 at 9:37 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Dec 18, 2010 at 8:26 AM, goodwin weigoodw...@gmail.com wrote: 12-18 21:09:15.104: ERROR/AndroidRuntime(4368): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view

[android-developers] what to do with Only the original thread that created a view hierarchy can touch its views?

2010-12-18 Thread goodwin
12-18 21:09:15.104: ERROR/AndroidRuntime(4368): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. i am using google translate api to practice.when i write a new thread,and use setText() in this thread, error turn

Re: [android-developers] Re: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-18 Thread goodwin
ADT is a pig, too slow. every time i type a dot , it is like crash.. -- 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: what is the source version at the source.android.com website?

2010-12-13 Thread goodwin
Hi Brill i can not understand. why i can't use these methods from SDK. you mean the fact SDK APIs such as 1.5 2.1 2.2 are quit diffrent from Phone's APIs? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] what is the source version at the source.android.com website?

2010-12-12 Thread goodwin
I use git clone the IM application from the source website. many errors in source code. many obect methods are not in the sdk of above 1.5. for example Cursor Cursor c = mContentResolver.query(mMessageURI, projection, selection, new String[]{Integer.toString(Imps.MessageType.POSTPONED)},

答复: [android-developers] MapView in android emul ator white screen

2010-10-22 Thread goodwin
Hi James Are you sure that your emulator has an internet connection.. -邮件原件- 发件人: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] 代表 jamz_mar...@yahoo.co.jp 发送时间: 2010年10月20日 1:04 收件人: Android Developers 抄送: jamz_mar...@yahoo.co.jp 主题:

答复: [android-developers] Re: How to connect to a remote MySQL DB without webservices... ?

2010-10-21 Thread goodwin
Hi Kumar I don’t think google will let people lay any other .jar file , unless you rebuild the source code of android. / i will try using sqldroid library to my needs, i will try to connect to a remote mysql

[android-developers] Re: eclipse - importing image into res folder

2010-09-09 Thread Goodwin
1. copy and past the image 2. lower dpi . middle dpi , high dpi for the images. On 9月9日, 上午7时30分, dashman erjdri...@gmail.com wrote: beginner question... in eclipse, how do i import an image from my computer into the project. the template generator created 3 separate drawable folders - i

[android-developers] Android's Launcher

2010-06-24 Thread Goodwin
As we known, there are 3 home screens in the android's default launcher . we can move the right screen or the left screen. and we don't know how many pages are in left-hand right hand sites . so I want to modify the android's launcher , and add an indicator to show how many pages are in

[android-developers] how to start this activity?

2010-05-27 Thread Goodwin
There is an activity , and its intent-filter is as follow, intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data android:mimeType=vnd.android.cursor.item/ event /