[android-developers] Re: activityCloseExitAnimation not working

2017-02-16 Thread xiaoyue lei
I met the same problem.Any solution , please? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to

[android-developers] Open URL in Fragment causes ActivityNotFoundException

2014-01-23 Thread Stanley Lei
Hi all, I'm working on the APP to show multiple images with Fragment which contains an ImageView control. And I also set the onClickListener for the image view to open some URL with startActivity. But unfortunately, the App crashed with ActivityNotFoundException. Below is the code and the

Re: [android-developers] Open URL in Fragment causes ActivityNotFoundException

2014-01-23 Thread Stanley Lei
(right word?) of that kind of data (an URI with no protocol declared). Marina On Thu, Jan 23, 2014 at 2:11 PM, Stanley Lei xiaofen...@gmail.comjavascript: wrote: Hi all, I'm working on the APP to show multiple images with Fragment which contains an ImageView control. And I also set

Re: [android-developers] Add target similar to otapackage

2011-12-22 Thread Lei Bian
/coolya/android_device_samsung_galaxys/tree/master/releasetools https://github.com/coolya/android_device_samsung_galaxys/blob/master/releasetools.py BRs, Lei Bian 2011/12/23 TreKing treking...@gmail.com: On Wed, Dec 21, 2011 at 7:55 PM, 卞磊 mykofz...@gmail.com wrote: How can i build this package

[android-developers] how bluetooth audio input (mic) works in frameworks.

2011-11-21 Thread lei wang
hi, i am trying to figure out how bt mic works in frameworks. here is what i found, 1. Phone.apk main the logic to connect headset and open sco socket. 2. looks like audio input data should come from AudioHardwareInterface, which run in mediaserver. the problem is there is no way to let the two

[android-developers] Re: eclipse/sdk combo crash

2011-04-20 Thread Lei Gao
Hi Tor, Have you tried reproducing the problem in a Mac OS X? I am using a MacBook and I met the same problem. What I did is like the following: 1. Create a new project of android. 2. Right-click on res folder, then New a folder named menu. 3. Right-click on the menu folder, then New a file. 4.

[android-developers] how to monitor the activities launching in real time, so I can count how many times it has been launched?

2010-04-06 Thread lei
how to monitor the activities launching in real time, so I can count how many times it has been launched? ActivityManager somehow can do the similar work, but it is not on real time. would you help me? (i.e i had a background service running, it can detect when an activity has been launched, so it

[android-developers] Re: how to monitor the activities launching in real time, so I can count how many times it has been launched?

2010-04-06 Thread lei
, Apr 6, 2010 at 12:37 PM, lei eirst...@gmail.com wrote: how to monitor the activities launching in real time, so I can count how many times it has been launched? ActivityManager somehow can do the similar work, but it is not on real time. would you help me? (i.e i had a background service

[android-developers] how to find the path of frameworks/base/include/utils/Asset.h ?

2010-02-16 Thread lei
I run into the problem of resource file size 1M bytes limitation on android device, and I heard that patching the aapt tool by editing frameworks/base/include/utils/Asset.h will overcome this limitation. But I could not find that path, and wonder is that path under the resources.arsc file in

[android-developers] Re: how to find the path of frameworks/base/include/utils/Asset.h ?

2010-02-16 Thread lei
oh, that could be the path of android source code. On Feb 16, 11:10 am, lei eirst...@gmail.com wrote: I run into the problem of resource file size 1M bytes limitation on android device, and I heard that patching the aapt tool by editing frameworks/base/include/utils/Asset.h will overcome

[android-developers] Re: how to find the path of frameworks/base/include/utils/Asset.h ?

2010-02-16 Thread lei
:30 pm, lei eirst...@gmail.com wrote: oh, that could be the path of android source code. On Feb 16, 11:10 am, lei eirst...@gmail.com wrote: I run into the problem of resource file size 1M bytes limitation on android device, and I heard that patching the aapt tool by editing frameworks

[android-developers] embeded web browser with custom width and height

2009-11-23 Thread lei
I try to create a web browser with custom width and height rather than fill screen, is that possible to do in android? Below is my snippet code: AbsoluteLayout.LayoutParams params = new AbsoluteLayout.LayoutParams( 180, 180,

[android-developers] Does styled text support html tag: p and br ?

2009-11-16 Thread lei
Styled text supports: b,i, does it support more html tags, like p or br ? The code below is used for testing styled text: CharSequence str = getText(R.string.styled_text); //retrieve the styled text as char sequence, so it won't lose any formatting TextView tv =

[android-developers] Fail to create a new file on a sdcard

2009-11-12 Thread lei
I do not know what is cause of failing to create a new file on a sdcard of G1, the code is below: File temp = File.createTempFile(test, .temp, Environment.getExternalStorageDirectory()); and the permission of sdcard is: d--rwxr-x. Also fail if I try using the code below: File file = new

[android-developers] Re: Fail to create a new file on a sdcard

2009-11-12 Thread lei
I find the file that path to Environment.getExternalStorageDirectory() is not writable, how could I change it? On Nov 12, 2:06 pm, lei eirst...@gmail.com wrote: I do not know what is cause of failing to create a new file on a sdcard of G1, the code is below: File temp = File.createTempFile

[android-developers] Re: Fail to create a new file on a sdcard

2009-11-12 Thread lei
Thanks, Mark. It's solved. The permission of WRITE_EXTERNAL_STORAGE is required in Android SDK1.6, also I find a link describe it: http://developer.android.com/sdk/android-1.6.html On Nov 12, 3:44 pm, Mark Murphy mmur...@commonsware.com wrote: lei wrote: I find the file that path

[android-developers] enableMyLocation() return false

2009-10-20 Thread lei
When I called enableMyLocation() on onResume() method, it returns false. Does anyone know why? I've added permission of LOCATION and GPS, the map Api Key is correct. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: how to connect to pc through wifi directly

2009-03-08 Thread Lei
Thank you. On Mar 7, 5:38 am, Jon Colverson jjc1...@gmail.com wrote: On Mar 6, 6:51 am, Lei poohd...@gmail.com wrote: I want to know how toconnectG1 topcdirectly through wifi. Thepchas a wireless network card. I know how toconnectbetween 2 pcs. But I need to set up the ip address

[android-developers] how to connect to pc through wifi directly

2009-03-05 Thread Lei
. Thanks in advance. Regards, Lei --~--~-~--~~~---~--~~ 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

[android-developers] Re: how to connect the G1 with pc by socket

2009-03-03 Thread Lei
Thank you On Mar 4, 2:52 am, deepdr...@googlemail.com deepdr...@googlemail.com wrote: Hi Lei, as far as I know you won't have a IP connection to the PC via the USB cable connection. You would have to go over WiFi in order to connect to your PC. http://www.deepdroid.com On Mar 3, 7:48 am

[android-developers] how to connect the G1 with pc by socket

2009-03-02 Thread Lei
. InetAddress serverAddr = InetAddress.getByName (10.0.2.2); ClientSocket = new Socket(serverAddr,SERVERPORT); The ClientSocket is null. What's the IP of the pc now? Thanks. Regards, Lei --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Capture and Playback

2008-12-29 Thread Lei
I'm stuck on this. Help me please. On Dec 26, 2:23 pm, Lei poohd...@gmail.com wrote: Hi, all I want to capture the audio from the microphone, save the audio in the buffer, and then playback the audio in the buffer. It seems that it will be simple if I can use javax.sound.* to create

[android-developers] Re: Capture and Playback

2008-12-29 Thread Lei
I'm stuck on this. Help me please. On Dec 26, 2:23 pm, Lei poohd...@gmail.com wrote: Hi, all I want to capture the audio from the microphone, save the audio in the buffer, and then playback the audio in the buffer. It seems that it will be simple if I can use javax.sound.* to create

[android-developers] Re: Capture and Playback

2008-12-29 Thread Lei
Thank you On Dec 30, 12:54 am, Dave Sparks davidspa...@android.com wrote: There is no support for javax.sound in Android and there are no plans to support it. We will have support for streaming audio in a future release. On Dec 29, 1:11 am, Lei poohd...@gmail.com wrote: I'm stuck

[android-developers] Capture and Playback

2008-12-25 Thread Lei
to solve the problem? Thanks in advance. Regards, Lei --~--~-~--~~~---~--~~ 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: need help for MediaRecorder

2008-12-10 Thread Lei
. Anything that might lead to privacy or security issues generally requires special permission from the user. In the media framework, this includes recording audio, accessing the camera, and modifying system volume controls. On Dec 9, 9:07 pm, Lei [EMAIL PROTECTED] wrote: wow! Thank you

[android-developers] Re: need help for MediaRecorder

2008-12-09 Thread Lei
wow! Thank you, mnj. It works well now. And one more question, how can I know that where it needs a permission? Regards, Lei. On Dec 10, 12:36 pm, mnj [EMAIL PROTECTED] wrote: Hi, Did you set the below permission in AndroidManifest.xml uses-permission android:name

[android-developers] Re: need help for MediaRecorder

2008-12-09 Thread Lei
access, keeping the device awake, etc Regards, Manoj On Dec 10, 10:07 am, Lei [EMAIL PROTECTED] wrote: wow! Thank you, mnj. It works well now. And one more question, how can I know that where it needs a permission? Regards, Lei. On Dec 10, 12:36 pm, mnj [EMAIL PROTECTED

[android-developers] does android phone have a IP address?

2008-11-11 Thread Lei
= ; } Regards, Lei --~--~-~--~~~---~--~~ 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

[android-developers] Re: does android phone have a IP address?

2008-11-11 Thread Lei
Hi Mark Murphy Thanks for your replay. And the G1 (the real phone) may have a IP address. Am I right? Regards, Lei On Nov 11, 9:27 pm, Mark Murphy [EMAIL PROTECTED] wrote: Lei wrote: I want to program a server on android phone. I use socket. Is the android emulator's IP address the same

[android-developers] Re: does android phone have a IP address?

2008-11-11 Thread Lei
Hi Christine Thanks for your relay. I had added the permission. On Nov 11, 8:42 pm, Christine [EMAIL PROTECTED] wrote: Err, is this line in your manifest file?         uses-permission android:name=android.permission.INTERNET / just asking On Nov 11, 9:06 am, Lei [EMAIL PROTECTED] wrote