[android-developers] Re: Miracast?

2012-11-08 Thread HeHe
i wonder if any mobile android device can sustain 2 hours of miracasting its screen on which a movie is played without draining its battery, because it involves mpeg/h264 decoding first, capturing screen shots at min 30fps, encoding the screen shots to h264 bitstreams, muxing the bitstreams in

[android-developers] Re: Audio Record problem (urgent)

2010-09-20 Thread HeHe
you should also show logcat output. On Sep 20, 5:35 am, melo fredchou0...@gmail.com wrote: Hi all I'm an android starter I used MediaRecorder and MediaPlayer to record voice via mic before This time,I try AudioRecord and  AudioTrack to record voice But when I try to start, it's forced to be

[android-developers] Re: auto switching the tab being viewed

2010-09-08 Thread HeHe
why googling? you seemed to have answered to your own question, didn't you? On Sep 8, 1:19 pm, Mike Adams adams...@gmail.com wrote: I sent this yesterday but it must have got lost in moderation, as i've scanned the posts carefully and not seen my post, so resending. I've been googleing this

[android-developers] Re: auto switching the tab being viewed

2010-09-08 Thread HeHe
, make the application swith to that tab, as if the users had placed their finger on that tab. but i want it automatic. I do not know how to do this. I do not have an answer to this. I have searched for how to do it. Mike On Wed, Sep 8, 2010 at 4:30 PM, HeHe cnm...@gmail.com wrote: why

[android-developers] Re: Maps with directions.

2010-09-07 Thread HeHe
you might like to try Location src,dst; //...set src/dst locations String uri=String.format(http://maps.google.com/maps?f=dsaddr=%f, %fdaddr=%f,%fhl=en ,src.getLatitude(),src.getLongitude() ,dst.getLatitude(),dst.getLongitude()); startActivity(new

[android-developers] Re: obtainBuffer timed out in AudioTrack.write()

2010-09-02 Thread HeHe
as the log hints, it is likely that your app pegs cpu for too long or your app causes GCs which may also peg cpu. On Sep 1, 1:11 pm, sasq jonas.minnb...@gmail.com wrote: Don't know why I bother asking here but, you never know, right? Anyway - after stopping and restarting playback of an

[android-developers] Re: obtainBuffer timed out in AudioTrack.write()

2010-09-02 Thread HeHe
as the log hints, it is likely that your app pegs cpu for too long or your app causes GCs which may also peg cpu. On Sep 1, 1:11 pm, sasq jonas.minnb...@gmail.com wrote: Don't know why I bother asking here but, you never know, right? Anyway - after stopping and restarting playback of an

[android-developers] Re: creating a WebView in the top of a view

2010-08-02 Thread HeHe
i guess you need to capture BACK key events and hide WebView accordingly. On Aug 2, 1:56 pm, guich guiha...@gmail.com wrote: Hi, I'm trying to do a fairly simple thing but i'm failing since 3 hours. I have a WebView that i show with some pictures and html stored in local sdcard. After the

[android-developers] Re: Udp +Tcp connection in Android

2010-07-17 Thread HeHe
finally i understood xuxu's question, did i? On Jul 17, 8:28 am, Carlos Silva r3...@r3pek.org wrote: On Sat, Jul 17, 2010 at 11:40, Indicator Veritatis mej1...@yahoo.comwrote: Actually, it is possible, but it would require custom code for both server and client dropping the UDP connection

[android-developers] Re: Compile Sip Stack

2010-07-07 Thread HeHe
imho, movng sip-related objects over jni should be fine in most of case, because they are just signaling stuff, are sparse and usually small in size (compared to media packets). On Jul 7, 7:56 am, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: You would

[android-developers] Re: Geocoder not working on emulator

2010-07-07 Thread HeHe
afaik, from ddmsemulator control panel, you may feed any gps data that is resolvable to human-readable address so that you can test your app. On Jul 4, 9:50 pm, pranay streetfi...@gmail.com wrote: hi, i am trying to run the example as given in the book Professional Android  Development by Reto

[android-developers] Re: TCP IP connection via Mobile Network

2010-07-02 Thread HeHe
sites that use TCP connections exclusively, scaled up beyond your or my wildest dreams. On Jul 1, 5:52 pm, HeHe cnm...@gmail.com wrote: if the statement I concluded that this is not allowed when using a non LAN connection. were true, all RTP apps would fail on 3G networks. but most

[android-developers] Re: Deploy App on Google Android G1 Phone

2010-07-02 Thread HeHe
is your LAN is behind nat? On Jul 2, 7:22 am, Lamia Hannoun lamia.hann...@gmail.com wrote: Hi ! I actually want to deploy my app on a real phone after deploying it on a an emulator.the problem is that i access to a web service (.net) hosted on my machine , i used the address 10.0.2.2 to test

[android-developers] Re: TCP IP connection via Mobile Network

2010-07-01 Thread HeHe
i would suggest that you try udp with your app because, against the same well-designed nat, often a very good tcp hole punch technique has a much higher failure rate than a fair udp one. On Jul 1, 8:44 am, WuffIT Tech wuffi...@gmail.com wrote: I understand that the IP is subject to change but

[android-developers] Re: TCP IP connection via Mobile Network

2010-07-01 Thread HeHe
. You can find the thread here:http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa... Miguel. On Thu, Jul 1, 2010 at 9:40 AM, HeHe cnm...@gmail.com wrote: i would suggest that you try udp with your

[android-developers] Re: How To Override the “Back ” button so it doesn’t Finish() my Activity?

2010-06-29 Thread HeHe
it seems that overrriding onKeyDown() method of your activity and returning with a true value perhaps may serve your need. On Jun 29, 8:42 am, draf...@gmail.com draf...@gmail.com wrote: I currently have an Activity that when it gets displayed a Notification will also get displayed in the

[android-developers] Re: Is runtime mapview defining possible? (rather then in main.xml)

2010-06-27 Thread HeHe
. anyway hope you find a way out soon. On Jun 27, 7:21 am, Thomas Wrobel darkfl...@gmail.com wrote: Thanks, but no luck. I get the exact same error :-/ On 26 June 2010 22:35, HeHe cnm...@gmail.com wrote: it should be possible. one way is to put a framelayout on xml and in activity do sxth like

[android-developers] Re: Is runtime mapview defining possible? (rather then in main.xml)

2010-06-26 Thread HeHe
it should be possible. one way is to put a framelayout on xml and in activity do sxth like: mapview mview=new mapview(this,getString(R.string.mapkey)); framelayout frame=(framelayout)findViewById(R.id.frame); bframe.addView(mview,0,new framelayout.layoutparams(FILL_PARENT,FILL_PARENT)); On

[android-developers] Re: How to on Gps in emulator

2010-06-23 Thread HeHe
DDMS perspective Emulator Control Location Control Send On Jun 23, 7:59 am, Sohan badaya sohan.bad...@gmail.com wrote: Hi, How to start Gps in emulator. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: button background image scaled down by default?

2010-06-09 Thread HeHe
i guess you could try android:scaleType attribute. On Jun 9, 2:06 pm, Stanley Li junpin1...@gmail.com wrote: Hi all, I try to make a button with a background image. However, the background image is scaled down. In my xml code, I have: Button android:id=@+id/start_game_button

[android-developers] Re: how to obtain email address?

2010-06-04 Thread HeHe
(refurbished) does anybody know how to programmingly obtain the (GMail) email address configured on a phone, which is usually the one initially entered to activate the phone? MANY thanks in advance for any know-how. On Jun 2, 9:43 am, HeHe cnm...@gmail.com wrote: does anybody know how

[android-developers] how to obtain email address?

2010-06-02 Thread HeHe
does anybody know how to programmatically obtain the email address configured on an android phone? that is the one which was used to activate the phone? thanks in advance for the know-how. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: SIP Stack

2010-05-13 Thread HeHe
battery power) than UDP. On May 10, 11:46 am, mike enervat...@gmail.com wrote: On 05/10/2010 11:24 AM, HeHe wrote: when i mentioned ...not be able to receive incoming calls.., i was not thinking about just server-client streaming. Mike, you knew it :) what is your mobile service provider

[android-developers] Re: clock of emulator 1.6 runs 100% slower than real time clock!!!

2010-05-11 Thread HeHe
take to fix the issue? please advice. thanks a lot !!! On May 10, 4:35 pm, HeHe cnm...@gmail.com wrote: often the clock of emulator 1.6 runs significantly (100-150%) slower than real world clock. for example, after 10 minutes of a human life have elapsed, from logcat timestamp only 5 minutes

[android-developers] PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread HeHe
the slowness of system clock with SDK 1.6 makes debugging of my app that heavily depends on correct clock timing impossible. hence, i would like to know if i can develop app for Android 1.5/1.6 using more recently released SDK (eg. 2.0)? if yes, how? thanks in advancet for any advice!! -- You

[android-developers] Re: PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread HeHe
hi Nathan and Mark, thanks a lot to both of you!! one more question: in Eclipse, how can i set project properties to 1.5? could you elaborate the menu options or point me to the documentation page that indicates how-to. thanks again!! On May 11, 10:50 am, Nathan critter...@crittermap.com wrote:

[android-developers] Re: PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread HeHe
it any more. On May 11, 9:53 am, HeHe cnm...@gmail.com wrote: the slowness of system clock with SDK 1.6 makes debugging of my app that heavily depends on correct clock timing impossible. hence, i would like to know if i can develop app for Android 1.5/1.6 using more recently released SDK (eg

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
i saw this in sipdroid project FAQ: Sipdroid now uses TCP for the signaling connection and keeps the corresponding port open. does anyone know how peer servers of sipdroid handle scalability when there are a million of sipdroid clients connecting with the servers using TCP? as i observed,

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
? it will not be able to receive incoming calls without re-registration. anyway, i am just guessing. do you know the usual (or by default) registration expiration between sipdroid and pbxes? On May 10, 9:32 am, mike enervat...@gmail.com wrote: On 05/10/2010 09:04 AM, HeHe wrote: i saw this in sipdroid

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
frequently changes :( On May 10, 10:47 am, mike enervat...@gmail.com wrote: On 05/10/2010 10:24 AM, HeHe wrote: i was not thinking about media. i guess the reason why sipdroid+TCP+pbxes can lower battery use is to enlarge sip registration expiration, eg. to 5 minutes or longer. what

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
is the java/android api you use to detect ip change? could you share a code example with me? thanks :) On May 10, 11:46 am, mike enervat...@gmail.com wrote: On 05/10/2010 11:24 AM, HeHe wrote: when i mentioned ...not be able to receive incoming calls.., i was not thinking about just server

[android-developers] clock of emulator 1.6 runs 100% slower than real time clock!!!

2010-05-10 Thread HeHe
often the clock of emulator 1.6 runs significantly (100-150%) slower than real world clock. for example, after 10 minutes of a human life have elapsed, from logcat timestamp only 5 minutes have elapsed on my emulator 1.6, has anyone using emulator 1.6 experienced the same issue? if yes, how did

[android-developers] Re: Inter thread Communication

2010-04-24 Thread HeHe
or,   5. STL queue in C++/NDK :-P On Apr 24, 11:18 am, Anurag Singh anusingh...@gmail.com wrote: 1. use global varibales 2. use named pipe streams 3. use socket 4. use file system - Anurag Singh On Sat, Apr 24, 2010 at 9:31 PM, Shekhar shekhar...@gmail.com wrote: Hi All, I

[android-developers] how to remove a notification with flag FLAG_NO_CLEAR

2010-04-20 Thread HeHe
as title. thank you. -- 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: AudioRecord fails on Android 2.1

2010-04-12 Thread HeHe
On Apr 12, 2:34 pm, Gabriel Simões gsim...@gmail.com wrote: I´d like to ask you one thing: have you been able to record a sound and listen to it without problems using the emulator (older versions). I can create an instance and indeed record but when I try to play it the sound is completly

[android-developers] Re: AudioRecord fails on Android 2.1

2010-04-12 Thread HeHe
samsung On 12 abr, 20:22, HeHe cnm...@gmail.com wrote: On Apr 12, 2:34 pm, Gabriel Simões gsim...@gmail.com wrote: I´d like to ask you one thing: have you been able to record a sound and listen to it without problems using the emulator (older versions). I can create an instance

[android-developers] Re: Down Tab Bar in Android

2010-04-11 Thread HeHe
itself cannot cause program exception, i think. you need to debug your apk and find out which object access causes np exception. On Apr 11, 9:22 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi Hehe, I tried it but still it showing Null Pointer Exception. On Sun, Apr 11, 2010 at 7

[android-developers] Re: Down Tab Bar in Android

2010-04-10 Thread HeHe
in case you still find no way to go, here is mine that you might like to try if you can bear the fly in the ointment -- the thin white bar of tabwidget is below instead of above the tab buttons. hope android team shall give more flexibility in this aspect :-@ ?xml version=1.0 encoding=utf-8?

[android-developers] Re: Managing Google apiKeys

2010-04-09 Thread HeHe
regardless whatever others think, i still knees and begs for an SDK function for an apk to see if it has been signed by debug signing key or by release signing key, which seems of more humanity to me than other approaches because MAP API key is associated with the signing key. other approaches

[android-developers] Re: Virtual Keyboard

2010-04-07 Thread HeHe
//the keyboard now ((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(v.getWindowToken(), 0); On Apr 7, 10:09 am, d...@rolph.com wrote: Hello, Is there a way to configure the virtual keyboard to hide once the return key is pressed?  I have numerous

[android-developers] Re: Virtual Keyboard

2010-04-07 Thread HeHe
Dan, please add the line in OnFocusChange() or setOnEditorAction() listener of your EditText view. added there, it works for me. On Apr 7, 11:08 am, d...@rolph.com wrote: HeHe, I added that line to my activity, and I still get the virtual keyboard after the return key is pressed.  Pressing

[android-developers] Re: how to DEBUG build an APK?

2010-04-06 Thread HeHe
can integrate with the Eclipse IDE. On Apr 5, 10:27 am, HeHe cnm...@gmail.com wrote: Bob, sounds like you are going to devise some Makefile to achieve the purpose and i also have to look outside of Eclipse IDE and my code to find my machine gun. please forget my problem and have a nice

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
why do you think i am not being serious?! On Apr 4, 9:28 pm, ~ TreKing treking...@gmail.com wrote: On Sun, Apr 4, 2010 at 9:38 PM, HeHe cnm...@gmail.com wrote: my apk stills gets a *false* Config.DEBUG value. Are you being serious? Which part of Xavier's post did you not understand? So

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
...@gmail.com wrote: On Sun, Apr 4, 2010 at 9:38 PM, HeHe cnm...@gmail.com wrote: my apk stills gets a *false* Config.DEBUG value. Are you being serious? Which part of Xavier's post did you not understand? So once again: On Sun, Apr 4, 2010 at 3:35 PM, Xavier Ducrohet x...@android.com wrote

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
that the DEVICE, not your APPLICATION is a debug build. HeHe -- That's why you can't get at it with Config.DEBUG -- you'd need to reflash your device. You don't make this in Eclipse -- or at least not using the SDK. What you're really looking for is this:http://developer.android.com/intl/de/reference

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
key? or, my question can be: is there any way for my apk to know by which of DEBUG/RELEASE key it was signed? On Apr 5, 7:41 am, ~ TreKing treking...@gmail.com wrote: On Mon, Apr 5, 2010 at 2:00 AM, HeHe cnm...@gmail.com wrote: why do you think i am not being serious?! Because you insist

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
programmatically learn that it is a debug built. do you have a snippet teaching me how? thanks in adavance. On Apr 5, 8:59 am, ~ TreKing treking...@gmail.com wrote: On Mon, Apr 5, 2010 at 10:42 AM, HeHe cnm...@gmail.com wrote: but what i need is some info telling my apk that it was a debug

[android-developers] Re: Getting the amount of Audio data buffered in the device

2010-04-05 Thread HeHe
theoretically, AudioTrack.getPlaybackHeadPosition should do the job. however, in my experience with SDK 1.5, the function seems broken after you *pause the player. i removed it from my app then, so i have no idea if the issue is gone for SDK 1.6+... On Apr 5, 3:00 am, KK

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
aspects of that. (I also automatically manage build numbers, etc). On Apr 5, 9:12 am, HeHe cnm...@gmail.com wrote: thanks for the good idea to turn debuggable apk to red. however, the problem i am experiencing that even after i set debuggable attribute in manifest to TRUE and build

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
On Apr 5, 1:27 pm, HeHe cnm...@gmail.com wrote: Bob, sounds like you are going to devise some Makefile to achieve the purpose and i also have to look outside of Eclipse IDE and my code to find my machine gun. please forget my problem and have a nice breakfast :) thanks anyway for your

[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
while you're developing it. On Mon, Apr 5, 2010 at 1:31 PM, HeHe cnm...@gmail.com wrote: because there seems to me no way to tell build type of an apk I'm blown away by your inability or outright refusal to follow the advice posted here thus far. The easiest and most straightforward way

[android-developers] Re: how to DEBUG build an APK?

2010-04-04 Thread HeHe
), then putting debuggable=true in your manifest is not needed (the app will be debuggable by default). Xav On Sat, Apr 3, 2010 at 11:06 PM, HeHe cnm...@gmail.com wrote: thanks. i did, otherwise ADT build tool would complain it. do you get a true Config.DEBUG value with your apk

[android-developers] Re: how to DEBUG build an APK?

2010-04-04 Thread HeHe
, ~ TreKing treking...@gmail.com wrote: On Sun, Apr 4, 2010 at 6:20 PM, HeHe cnm...@gmail.com wrote: how can i make a debug build in Eclipse IDE? Use the debuggable flag in your manifest.  right now, no matter if i use RunRun As or RunDebug As menu commands, i always see Config.DEBUG

[android-developers] Re: how to DEBUG build an APK?

2010-04-04 Thread HeHe
thanks. i did, otherwise ADT build tool would complain it. do you get a true Config.DEBUG value with your apk? On Apr 3, 7:53 pm, JP joachim.pfeif...@gmail.com wrote: On Apr 3, 4:30 pm, HeHe cnm...@gmail.com wrote: yes, the flag is set to true. In the right location? In the manifest

[android-developers] Re: how to DEBUG build an APK?

2010-04-03 Thread HeHe
yes, the flag is set to true. but Config.DEBUG seems always false no matter what. On Apr 3, 12:13 pm, ~ TreKing treking...@gmail.com wrote: On Fri, Apr 2, 2010 at 6:55 PM, HeHe cnm...@gmail.com wrote: does anyone know how to DEBUG build an APK and launch it directly with Eclipse

[android-developers] Re: Displays on emulator, not on phone

2010-04-02 Thread HeHe
perhaps need to check map api key. map api key for emulator seems not usable for phone. On Apr 2, 5:51 am, RMD rmdel...@gmail.com wrote: The following code will display location data  on the screen in the emulator but not on an actual device.  Any ideas on why? Thank you for any help. line

[android-developers] Re: Displays on emulator, not on phone

2010-04-02 Thread HeHe
 pm, Mark Murphy mmur...@commonsware.com wrote: HeHe wrote: perhaps need to check map api key. map api key for emulator seems not usable for phone. The same Google Maps add-on API key works fine on both the emulator and the device. Where things differ is when you change the APK signing from

[android-developers] how to DEBUG build an APK?

2010-04-02 Thread HeHe
does anyone know how to DEBUG build an APK and launch it directly with Eclipse? in my case, no matter whether i use Run or Debug menu command in Eclipse, my apk always logs Config.DEBUG as false, although obviously the apk is signed with the key in factory debug.store. please help. thank you!

[android-developers] Re: Displays on emulator, not on phone

2010-04-02 Thread HeHe
)? thank you. On Apr 2, 3:54 pm, Mark Murphy mmur...@commonsware.com wrote: HeHe wrote: Mark, thanks for the information. before it, i've been the wrong knowledge that apk running on real phone is in 'production' mode and should use 'production' map api key - _|| is there any way

[android-developers] Re: real ip address

2010-03-30 Thread HeHe
you need a 'mirror' to tell you the real ip address. the mirror may be a STUN server; or, any peer can do the work. On Mar 30, 5:52 am, mscwd01 mscw...@gmail.com wrote: The only way I found to do this was by opening a socket connection and reading the IP that way. I couldn't find a nice

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-23 Thread HeHe
to overflow as you don't read in the next buffer of samples early enough. You could try decreasing the number of samples you read and write so the write will not block as long. No idea whether that will solve the problem. hth, Mario On 18 Mrz., 00:33, HeHe cnm...@gmail.com wrote

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-17 Thread HeHe
AudioRecord´s native implementation. Isn´t it supported anymore? I still can´t believe we are spending so much time on something that should be plug and play. It´s almost becoming plug and pray! On 17 mar, 02:41, HeHe cnm...@gmail.com wrote: if you find any native audio interfaces in NDK, please

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-17 Thread HeHe
lucks and hope goodle folks will help you solve the issue. On Mar 17, 8:55 am, Gabriel Simões gsim...@gmail.com wrote: Installing ubuntu 9.1 on my machine. I will try using linux to develop as I think it will be less confusing to develop using NDK. Hehe: I was thinking about trying to get

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-16 Thread HeHe
. In the mean time, any other ideas? Gabriel On 15 mar, 01:31, HeHe cnm...@gmail.com wrote: no chopping, likely because my computer (Core2 E8400) is lightening fast. my AudioRecord.read() returns a value equal to my buffer size, too. however, it returns recorded samples in a speed

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-14 Thread HeHe
seems i am experiencing similar issue as you r. http://groups.google.com/group/android-developers/browse_thread/thread/ad81d19418c8db1d/561f66e6b0cf2c79?show_docid=561f66e6b0cf2c79 without any single line of code modification to my app, the count of frames recorded by app running on sdk 1.6

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-14 Thread HeHe
understand that AudioRecord.read() blocks the execution, waits for the buffer to get a number of samples at least equal to the buffer size and then it returns the audio stream (older buffer size number of samples in the AudioRecord internal buffer). On 14 mar, 22:34, HeHe cnm...@gmail.com wrote

[android-developers] Re: More Map Troubles

2010-03-12 Thread HeHe
did you also get this error: java.lang.IllegalAccessError: cross-loader access from pre-verified class ?? On Mar 11, 10:39 am, Jason Kahler jason.kah...@gmail.com wrote: I have been trying to get a MapActivty to run properly in me app for a few days now. I have a class that extends

[android-developers] Re: How to add my own Audio codec to AudioRecord?

2010-03-10 Thread HeHe
i believe you should use a short[] buffer in your AudioRecord.read(). on return, you pass the short[] buffer to you encoder and that is it. On Mar 10, 3:39 am, draf...@gmail.com draf...@gmail.com wrote: I currently have a Loop back program for testing Audio on Android devices. It uses

[android-developers] Re: Will TCP Sockets work over cellular network?

2010-03-08 Thread HeHe
i believe opening tcp connections to your game server is ok, at least with T-Mobile network in US. just you need be prepared that your tcp connections may not be persistent since ip of your phone can be frequently changed. hope you the best. On Mar 8, 4:53 pm, Gav gav.ai...@googlemail.com

[android-developers] Re: Can´t create an AudioRecor der object

2010-03-07 Thread HeHe
what is the value of the variable SAMPLE_RATE? On Mar 6, 7:15 pm, Gabriel Simões gsim...@gmail.com wrote: First off, thank you for you attention and your help! I´ve been trying to create a simple application to learn how android handles audio streams for computer music and digital audio

[android-developers] don't panic in case you see exception java.net.SocketException: The socket level is invalid....

2010-03-07 Thread HeHe
just found this and would like to share my fix with you folks in case you run into the exception: if your app sees the exception: java.net.SocketException: The socket level is invalid dont be panic. it occurs when ip of your phone has changed and your app sends packets via a socket which is

[android-developers] i was beaten by AudioRecord :-(

2010-03-06 Thread HeHe
after i upgraded SDK from 1.5r2 to 1.6, i found a serious problem: 1). on emulator 1.6, my app using AudioRecord records at a significantly faster pace than on 1.5 emulator. for example, after 30 seconds of audio recording (8kHz/mono) on 1.6 emulator, my app records 340,800 samples, which is

[android-developers] Re: ImageView can't be clicked... help!

2010-02-28 Thread HeHe
did you set it clickable? On Feb 28, 9:41 am, Kofa elk...@gmail.com wrote: I tried several times to make it work... i tried searching on google but works for everyone but not for me Can anyone tell me how to make an image clickable?? i mean, I tried to use onClickListener and onClick but

[android-developers] Re: AudioTrack.getPlaybackHeadPosi tion() is buggy????

2010-02-26 Thread HeHe
getPlaybackHeadPosition() Then you missed my posts 12 and 13 in that thread, http://groups.google.com/group/android-developers/tree/browse_frm/thr... as well as my bug report http://code.google.com/p/android/issues/detail?id=2563 Regards On Feb 26, 12:33 am, HeHe cnm...@gmail.com

[android-developers] what is the CRITICAL POINT of view layout to get hit by StackOverflowError exception

2010-02-26 Thread HeHe
it is frustrating to get StackOverflowError exception when i just call LinearLayout.setBackgroundResource(wallpaper) trying to to beautify background of an activity. after i comment out the setBackgroundResource() call, the exception has gone. it makes me wonder if my view layout has (easily)

[android-developers] Re: what is the CRITICAL POINT of view layout to get hit by StackOverflowError exception

2010-02-26 Thread HeHe
wrote: HeHe wrote: it makes me wonder if my view layout has (easily) reached a critical point of stack size limit. Use hierarchyviewer both to determine your View hierarchy depth and determine where you may be able to consolidate some containers, to reduce the hierarchy depth and in turn

[android-developers] Re: what is the CRITICAL POINT of view layout to get hit by StackOverflowError exception

2010-02-26 Thread HeHe
thanks for the answers~_~ On Feb 26, 11:07 am, Mark Murphy mmur...@commonsware.com wrote: HeHe wrote: 1). is the critical point measured by the depth of hierarchy or by the total memory size used by all the views on the hierarchy? For StackOverflowException, the depth is more critical than

[android-developers] Re: AudioTrack.getPlaybackHeadPosi tion() is buggy????

2010-02-25 Thread HeHe
: See the earlier threadhttp://groups.google.com/group/android-developers/browse_frm/thread/5... I did not get useful results from trying to get the current playing position and gave up on it. I do not know if Android 2.1 is any better here. On Feb 25, 1:12 am, HeHe cnm...@gmail.com wrote

[android-developers] AudioTrack.getPlaybackHeadPosi tion() is buggy????

2010-02-24 Thread HeHe
folks, does anybody use AudioTrack.getPlaybackHeadPosition()? i found that, if i call AudioTrack.pause() in the middle of playing audio frames, at end of playback getPlaybackHeadPosition() always returns hundreds of frames less than the number of frames fed into the AudioTrack object . did

[android-developers] Re: Webview segfault causes process to restart and in rare cases take the Android platform down and turn the phone off

2010-02-12 Thread HeHe
i experienced this weeks ago. it happened because my app calls WebView.loadUrl(url) with null url value. after i added a null check, it seems never happens again. On Feb 12, 4:03 pm, Mike michaeldouglaskra...@gmail.com wrote: Not to beat a dead horse... but obviously it's not dead enough since

[android-developers] Re: continuous audio recording in memory

2010-01-06 Thread HeHe
a look at .../framework/base/media/.../AudioRecord.cpp should be helpful~ On Jan 6, 10:11 am, frantz lohier floh...@gmail.com wrote: Dear All, I'm trying to write an App that continuously record audio in memory (in a circular buffer). Could anyone point me towards a piece of code (perhaps

[android-developers] Re: NDK all from within Eclipse

2009-12-15 Thread HeHe
thanks! thanks! thanks! On Dec 15, 3:02 pm, Robert Green rbgrn@gmail.com wrote: I was going to post this to the group but figured I'd write up a how- to on my website instead.  Basically, here's how you configure Eclipse to do nice C/C++ editing and automatically build your native code for

[android-developers] Re: Localization for simplified and traditional chinese

2009-12-14 Thread HeHe
: Hi HeHe, Thanks for your reply and sorry for the misleading. let me clarify my question. i didn't make any coding on localization. what it want to do is to let my application shows either traditional chinese/simplified chinese depending on the phone locale. currently i got the following

[android-developers] Re: Localization for simplified and traditional chinese

2009-12-13 Thread HeHe
not quite get your question. selection of the resource folder should be automatic, as indicated in android-sdk-windows/docs/guide/topics/resources/resources- i18n.html the current locale of your phone/emulator can be learned by Locale.getDefault(); hope this helpful to

[android-developers] Re: How to set tooltip to a button

2009-12-01 Thread HeHe
yes, it it possible. i used PopupWindow and TextView together. On Dec 1, 4:43 am, saikiran n saikiran@gmail.com wrote: Hi, I want to set tool tip to a Button.. Is it possible in android if so please give me some sample code -- You received this message because you are subscribed to the

[android-developers] Re: How to read a file provided by a different Android application

2009-11-20 Thread HeHe
try ContentProvider, i guess. On Nov 20, 12:17 am, jaime jjja...@gmail.com wrote: I need some mechanism so that an Android application can read a file which is provided by a different Android application. I know that it's possible if both applications have the same userid, but it's not

[android-developers] Re: Certificate webpage problem when using WebView

2009-11-18 Thread HeHe
perhaps you need to combine raw tcp socket i/o, fake X509TrustManger and webView.load() to achieve it. On Nov 18, 11:21 am, Mark term...@gmail.com wrote: Isn't anybody know that solutions? On Nov 16, 11:07 am, Mark term...@gmail.com wrote: Hi, folks i have aproblemto show specific web

[android-developers] Re: Got 12 Google Wave invitations to use, let me know if you need

2009-11-09 Thread HeHe
no, thanks. On Nov 9, 8:12 am, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Request to official ADC2 team.

2009-09-14 Thread HeHe
++ On Sep 14, 11:40 am, Mobidev android.mobi...@gmail.com wrote: .               Once upon a time, we had this little group…http://groups.google.com/group/android-challengeAndroid Challenge: Discuss the Android Developer Challenge, including questions on contest details. You can also seek

[android-developers] Re: Please help _Confused_Server Side For android mobile application

2009-09-13 Thread HeHe
try mason. amazon uses it. easy and fast. and, mysql. u need replication/cluster if u r serious about ur server. good lucks!! On Sep 13, 9:17 am, Mohith K M mohith3...@gmail.com wrote: Thanks i was Checking JBOSS,But found out Glassfish application server is equally good,and have good

[android-developers] Re: is possible mapview and list exist in same activity

2009-07-27 Thread HeHe
: thank you for your reply, so I want to ask the next question, that's how to put list with themapview?? I just think it must extends ListActivity, is there another methods? thanks so much!! On Jul 26, 3:02 am, HeHe cnm...@gmail.com wrote: afail, you could combine amapviewand listview

[android-developers] Re: is possible mapview and list exist in same activity

2009-07-25 Thread HeHe
afail, you could combine a mapview and listview (or any other sort of views) in a map activity. as for how-to, you should do some experiment. On Jul 23, 10:34 pm, tstanly tsai.sta...@gmail.com wrote: hi all, for now i have a list, using extends listactivity, and now i want to addmapviewon

[android-developers] nullPointerException in android.webkit.WebView.onTouchEvent

2009-07-03 Thread HeHe
I override dispatchTouchEvent() like this: public boolean dispatchTouchEvent(MotionEvent ev) { WebView v=findViewById(R.id.detail); return v.dispatchTouchEvent(ev); } I am getting intermittent NullPointerException like this: 07-03

[android-developers] Re: How to know where a HorizontalScrollView is flinted?

2009-07-03 Thread HeHe
anyone there On Jul 2, 9:56 am, HeHe cnm...@gmail.com wrote: Hello folks, Could somebody teach me how to get current left x-position relative to a HorizontalScrollView view after a Flint event is processing by HorizontalScrollView's factory onFlint handler? There seems to me

[android-developers] How to know where a HorizontalScrollView is flinted?

2009-07-02 Thread HeHe
Hello folks, Could somebody teach me how to get current left x-position relative to a HorizontalScrollView view after a Flint event is processing by HorizontalScrollView's factory onFlint handler? There seems to me no such API in current SDK. Am I correct? Thank you!!

[android-developers] Re: BufferedReader.readLine hangs after HTTP connection has ended

2009-06-22 Thread HeHe
that TM proxy hold HTTP connections toward my G1 after my server has say bye-bye to the proxy? Can anybody confirm this? On Jun 22, 5:49 pm, HeHe cnm...@gmail.com wrote: I found my application run differently on G1 from Android emulator. I used Ethereal to capture HTTP messages. I saw in both