[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 T

[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 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 shut down > I've n

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

2010-09-08 Thread HeHe
omething has happened, 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,

[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 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 but no luck so f

[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=d&saddr=%f, %f&daddr=%f,%f&hl=en" ,src.getLatitude(),src.getLongitude() ,dst.getLatitude(),dst.getLongitude()); startActivity

[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 wrote: > Don't know why I bother asking here but, you never know, right? > > Anyway - after stopping and restarting playback of an audiotrack > stream, on som

[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 wrote: > Don't know why I bother asking here but, you never know, right? > > Anyway - after stopping and restarting playback of an audiotrack > stream, on some

[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 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 user clicks a

[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 wrote: > On Sat, Jul 17, 2010 at 11:40, Indicator Veritatis wrote: > > > Actually, it is possible, but it would require custom code for both > > server and client dropping the UDP connection and starting up a > > corres

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

2010-07-07 Thread HeHe
afaik, from ddms>emulator 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 wrote: > hi, i am trying to run the example as given in the book Professional > Android  Development by Reto Meier[pg 220], but

[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)" wrote: > You would not use C/C++ for

[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 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 it on emulator and

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

2010-07-02 Thread HeHe
h traffic sites that use TCP connections > exclusively, scaled up beyond your or my wildest dreams. > > On Jul 1, 5:52 pm, HeHe wrote: > > > > > if the statement "I concluded that this is not allowed when using a > > non LAN connection." were true, all RT

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

2010-07-01 Thread HeHe
combination of perl, erlang/rabbitmq, and java. > 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,

[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 wrote: > I understand that the IP is subject to change but that is not my > c

[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" wrote: > I currently have an Activity that when it gets displayed a > Notification will also get displayed in the Notification bar. >

[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 wrote: > Thanks, but no luck. I get the exact same error :-/ > > On 26 June 2010 22:35, HeHe wrote: > > > > > it should be possible. one way is to put a framelayout on xml and in > > activity do sxth

[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 Jun

[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 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, send email to

[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 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: > > android:id="@+id/start_game_button" > android:layout_width="480px"

[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 wrote: > does anybody know how to programmatica

[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: AudioRecord: onPeriodicNotification and onMarkerReached are not called

2010-05-14 Thread HeHe
initially i use those callbacks both of AudioRecorder and AudioTrack. then i found them not as reliable as i had thought, so later i removed my dependency on them. then, i was surprised to learn that without using the callbacks both my audio recording and playback code performed as well if not much

[android-developers] Re: SIP Stack

2010-05-13 Thread HeHe
use less battery power) than UDP. On May 10, 11:46 am, mike 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 >

[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 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 (e

[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 wrote: > On May 11, 10:32 am, Ma

[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 r

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

2010-05-11 Thread HeHe
what action should i take to fix the issue? please advice. thanks a lot !!! On May 10, 4:35 pm, HeHe 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 > l

[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 y

[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 wrote: > On 05/10/2010 11:24 AM, HeHe wrote: > > > when i mentioned "...not be able to receive incoming calls..", i was > > n

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
ble user like me. at least i find my G1 ip frequently changes :( On May 10, 10:47 am, mike 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 regi

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
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 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
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, T-

[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 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 wrote: > > Hi All, > > > I have a basic question on

[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 12 abr, 20:22, HeHe wrote: > > > > > > On Apr 12, 2:34 pm, Gabriel Simões 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 c

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

2010-04-12 Thread HeHe
> On Apr 12, 2:34 pm, Gabriel Simões 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 messed up, di

[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" wrote: > Hi Hehe, > > I tried it but still it showing Null Pointer Exception. > > > > > >

[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 :-@ http://schemas.android.com/apk/res/a

[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 requ

[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 i

[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 numero

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

2010-04-06 Thread HeHe
rojects). > > Remember, too, that ant scripts can integrate with the Eclipse IDE. > > On Apr 5, 10:27 am, HeHe wrote: > > > > > Bob, sounds like you are going to devise some "Makefile" to achieve > > the purpose and i also have to look outside of Ec

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

2010-04-05 Thread HeHe
debug APK on a real device while you're developing it. > > On Mon, Apr 5, 2010 at 1:31 PM, HeHe 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 thu

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

2010-04-05 Thread HeHe
          return "YOURPRODKEY"; >         } > > I've actually deployed this to a device and it seems to work just > fine. > > - Brill Pappin > > On Apr 5, 1:27 pm, HeHe wrote: > > > > > Bob, sounds like you are going to devise some "Makefile

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

2010-04-05 Thread HeHe
t appears in the manifest, unless I'm > creating a production build, where it is automatically set to false > instead. But I don't examine it in my code; I have metadata to control > various aspects of that. (I also automatically manage build numbers, > etc). > > On A

[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 wrote: > I am trying to

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

2010-04-05 Thread HeHe
right now i don't know how my apk can 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" wrote: > On Mon, Apr 5, 2010 at 10:42 AM, HeHe wrote: > > but what i need is some info tellin

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

2010-04-05 Thread HeHe
lt without changing manifest debuggable attribute so that my apk can choose the right map api 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" wrote: > On Mon, Apr 5, 2010 at 2:00 AM, HeH

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

2010-04-05 Thread HeHe
't understand what a debug build is. The flag > indicates 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 >

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

2010-04-05 Thread HeHe
 pm, "~ TreKing" wrote: > On Sun, Apr 4, 2010 at 9:38 PM, HeHe 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

[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" wrote: > On Sun, Apr 4, 2010 at 9:38 PM, HeHe wrote: > > my apk stills gets a *false* Config.DEBUG value. > > Are you being serious? Which part of Xavier's post did you not understand? > &

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

2010-04-04 Thread HeHe
it does not work. here is the setting in my manifest.xml: my apk stills gets a *false* Config.DEBUG value. On Apr 4, 6:40 pm, "~ TreKing" wrote: > On Sun, Apr 4, 2010 at 6:20 PM, HeHe wrote: > > how can i make a "debug build" in Eclipse IDE? > >

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

2010-04-04 Thread HeHe
BTW, if Config.DEBUG is true, (for example in the emulator), 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 wrote: > > thanks. > > > i d

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

2010-04-03 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 wrote: > On Apr 3, 4:30 pm, HeHe wrote:> yes, the flag is set to > true. > > In the right location? In the manifest, it must be p

[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" wrote: > On Fri, Apr 2, 2010 at 6:55 PM, HeHe wrote: > > does anyone know how to DEBUG build an APK and launch it directly > > with Eclipse? > > I

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

2010-04-02 Thread HeHe
ig.DEBUG to have correct value ("true")? thank you. On Apr 2, 3:54 pm, Mark Murphy 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&

[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
duction' mode? thanks! On Apr 2, 12:51 pm, Mark Murphy 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.

[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 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 from android

[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 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 getIP() method. > >

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

2010-03-23 Thread HeHe
t; > or > > > should I flush it and start from 0 (the buffer gets messed and this > > > ends giving a bad audio signal with chops, delay, etc...)? > > > > Gabriel > > > > On 17 mar, 21:07, Mario Zechner wrote: > > > > > Hi there, > >

[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 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-17 Thread HeHe
cord´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 wrote: > > > > >

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

2010-03-16 Thread HeHe
lo the microfone input > > > level (using a 1 second buffer, sometimes the audio decays in a lot > > > longer) and AudioRecord buffer overflow messages even if all I do in > > > the thread is to read from AudioRecord and to play using AudioTrack. > > > > Tomo

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

2010-03-14 Thread HeHe
ased on that I 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). > > O

[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 emulat

[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 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 MapActivity. I have my map ap

[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" wrote: > I currently have a Loop back program for testing Audio on Android > devices. > > It uses AudioRecord and Au

[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 wrote: > Hi All, > > I'm writi

[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] 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 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 processing > applic

[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 eq

[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 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 nothing see

[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 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 cr

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

2010-02-26 Thread HeHe
27;t understand is: 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? 2). how does setBackgroundResource() increase the depth or memory usage of 'the stack'? thanks again!! On Feb 26, 9:06 am, Mark Mu

[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) rea

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

2010-02-26 Thread HeHe
about > > 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

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

2010-02-25 Thread HeHe
ier > 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 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 anybod

[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 wrote: > Not to beat a dead horse... but obviously it's not dead enough since I > haven't really seen any go

[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 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 in the kernel

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

2009-12-15 Thread HeHe
thanks! thanks! thanks! On Dec 15, 3:02 pm, Robert Green 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 > you on-save.  

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

2009-12-14 Thread HeHe
killing your app in DDMS and re-run it should work, too. On Dec 14, 4:50 am, Kit wrote: > Sorry, i just realized that i have to restart the emulator after > changing the locale. > the localization works now. Thanks. > > On 12月14日, 上午10時11分, Kit wrote: > > > > >

[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 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 Google Groups "And

[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 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 > feasible because it

[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 wrote: > Isn't anybody know that solutions? > > On Nov 16, 11:07 am, Mark wrote: > > > > > Hi, folks > > > i have aproblemto show specific web page (https:// > > emo

[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 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 group, send

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

2009-09-14 Thread HeHe
++ On Sep 14, 11:40 am, Mobidev 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 other developers to joi

[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 wrote: > Thanks > i was Checking JBOSS,But found out Glassfish application server is > equally good,and have good support,will be helpfu

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

2009-07-27 Thread HeHe
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 wrote: > > > > > afail, yo

[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 wrote: > hi all, > > for now i have a list, > using extends listactivity, > and now i want to addmapviewon the same activit

[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 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

[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 18:03:54

[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
d!! Is it possible 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 wrote: > I found my application run differently on G1 from Android emulator. > > I used Ethereal to capture HTTP messages. I saw

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

2009-06-22 Thread HeHe
I found my application run differently on G1 from Android emulator. I used Ethereal to capture HTTP messages. I saw in both cases that the server ended HTTP connection in 3 seconds after it finished sending data. Here is the related code snippet in my Android application: