Re: [android-developers] Re: Regarding Audio and Video send/receive on Android.

2009-12-28 Thread hongki park
I think your request is not supported at the framework layer.

under the framework media.

2009/12/29 Android Development 

> Any thoughts friends?
>
> On 12/28/09, Android Development  wrote:
> > Hello,
> >
> > Android provides a use-friendly API for playing and handling media
> > (audio/video).
> >
> > However, I have the following requirements which i wish to realize with
> > this
> > framework :
> >
> > 1. My requirement is to have knowledge of the ports that the android
> media
> > framework opens and uses for sending/receiving media streams. I use this
> > information for signaling on the Session Description Protocol (SDP) that
> i
> > add as a payload to SIP.
> >
> > Is it possible for me to get this information in the form of a RTP
> session
> > from the framework ? (ports and address combination).
> >
> > *Use Case for this requirement:*
> >
> > If I initiate a multimedia call towards a peer, I will need to open my
> > audio
> > and video ports and start streaming media once the signaling is complete
> > and
> > successful. For successful streaming, the remote end needs to have
> > knowledge
> > of the ports I have opened for media as the streams are bi-directional
> and
> > I
> > will also need to receive media from the remote end.(sendrecv in SDP) .
> > This
> > is for the outgoing call.
> >
> > Similarly, for an incoming call, once the signaling succeeds, I will need
> > to
> > receive audio/video streams from the remote end and play them on the
> device
> > (the remote end will send media to the ports that I had advertised in the
> > SDP payload offer).
> >
> > Thanks in advance
> >
>
> --
> 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 more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Multiple Services within a Process

2009-12-15 Thread hongki park
I just guess, Whole the services are inside of the same process,(as you
said), no service will be killed by android automatically.

Am I right ? :-)

2009/12/16 Carter 

> *bump*
>
> Again, the question is: if there are multiple services within a
> process and at least one service is a "foreground" service, will that
> keep the non-foreground services alive?
>
>
> Thanks,
> Carter
>
> The documentation
>
> On Nov 23, 10:40 pm, Carter  wrote:
> > This is probably a question for Dianne:
> >
> > The Android 2.0 SDK introduces the startForeground() API which makes
> > it much less likely that a background service (and therefore a given
> > process) will be killed.
> >
> > Suppose there are two services within a process, and one of those
> > services has called startForeground() while the other has not.  Will
> > the one foreground service "protect" the other non-foreground service
> > from being killed?
> >
> > I'm specifically looking at a case where there could be multiple
> > services within a process, but coming from different APKs.  So these
> > would be APKs signed with the same signature, and given the same
> > sharedUserID and process in the Android Manifest.  I'd like to avoid
> > having to post a notification for each individual service, as that
> > would likely annoy users.
> >
> > Thanks!
> > Carter
>
> --
> 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 more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: restricting edittext control's max chars

2009-12-11 Thread hongki park
thank you
it is a good informations

2009/12/11 Nithin 

> check this,
>
>
> http://smartandroidians.blogspot.com/2009/11/creating-edittext-programmatically-in.html
>
> On Dec 11, 2:16 pm, Nithin  wrote:
> > try setFilters()..
> >
> > Thanks
> >
> > On Dec 11, 10:28 am, Jags  wrote:
> >
> > > nobody has tried this before ?
> >
> > > On Nov 26, 9:39 pm, Jags  wrote:
> >
> > > > I need to restrict edittext's max chars to 255, how can i do that in
> > > > layout or functions ?
> >
> > > > regardsJagat
>
> --
> 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 more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android 1.5 and CDMA

2009-12-08 Thread hongki park
I can guess that HTC change the android 1.5 for CDMA.
you may run CDMA at android 1.5.

you can ask to HTC about it.

2009/12/9 Ken H 

> I though Android 1.5 could not run cdma, am I wrong? It doesn't have
> the android.telephony.cdma.CdmaCellLocation library, correct?
>
> Yet I have a user with an HTC Eris with this setup:
>
> Model number: ADR6200
> Firmware version: 1.5
> Baseband version: 2.32.00.09.26
> Kernel version: 2.6.27-e850bba0  "htc-ker...@and18-2 #926"
> Build number: 1.12.605.1 CL76938 release-keys
> Software version: 1.12.605.1
> Hardware version: 0002
>
> Am I missing something?
>
> Ken
>
> --
> 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 more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Screen Size

2009-12-07 Thread hongki park
what is a exact meaning of "Size" ??

2009/12/8 Mark Murphy 

> > All the Android Models are same size or different size?..
>
> There are QVGA, WQVGA400, WVGA432, HVGA, WVGA, and WVGA854 resolutions
> defined for Android. Hardware exists for most of those.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android App Developer Books: http://commonsware.com/books.html
>
>
> --
> 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 more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: WifiManager.getScanResults() reports out-fo-date values after AP settings changed.

2009-12-04 Thread hongki park
I just guess, your changes need reboot.

or, partially restart the modem side.

2009/12/4 Farproc 

> Nobody care?
>
> On Dec 4, 8:28 am, Farproc  wrote:
> > After changing the settings of the wireless router(SSID, frequency,
> > securities) Android won't report the correct values until you reboot
> > your android device!!
> >
> > http://code.google.com/p/android/issues/detail?id=5178&can=4&colspec=...
> >
> > Does anyone know any workarounds of this???
>
> --
> 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 more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: outgoing call data stream / channel

2009-12-04 Thread hongki park
^^ what are you talking about ???

2009/12/4 Hetal Patel 

> Will anybody reply ever
>
> Android us Useless as far as Bugs is Concerened Nobody ever Bother to
> rely of Patch
>
> This is another Exmaple of Google Which Never Comes out of BETA
>
> I hate Android
>
> On Nov 19, 1:32 pm, Hetal Patel  wrote:
> > Here is what I see.
> >
> > In AudioRecord.h and in the MediaRecorder.AudioSource, the enum values
> > differ.
> >
> > In native code (AudioRecord.h), the values are ..
> > 44 enum input_source {
> > 45 DEFAULT_INPUT   =-1,
> > 46 MIC_INPUT   = 0,
> > 47 VOICE_UPLINK_INPUT = 1,
> > 48 VOICE_DOWNLINK_INPUT = 2,
> > 49 VOICE_CALL_INPUT = 3,
> > 50 NUM_INPUT_SOURCES
> > 51 };
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
> >
> > In Java MediaRecorder AudioSource, the values are ..
> > 120 public final class AudioSource {
> > 121   /* Do not change these values without updating their
> > counterparts
> > 122* in include/media/mediarecorder.h!
> > 123*/
> > 124 private AudioSource() {}
> > 125 public static final int DEFAULT = 0;
> > 126 /** Microphone audio source */
> > 127 public static final int MIC = 1;
> > 128
> > 129 /** Voice call uplink (Tx) audio source */
> > 130 public static final int VOICE_UPLINK = 2;
> > 131
> > 132 /** Voice call downlink (Rx) audio source */
> > 133 public static final int VOICE_DOWNLINK = 3;
> > 134
> > 135 /** Voice call uplink + downlink audio source */
> > 136 public static final int VOICE_CALL = 4;
> > 137 }
> >
> > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
> >
> > Now, if you look at AudioFlinger, any input source, whose value of
> > stream type is >=
> > NUM_INPUT_SOURCES (i.e., 4), we will get an "invalid stream type".
> > Because of the
> > mismatch of the enums, the Java API sets the value of VOICE_CALL
> > stream type as 4.
> > So, the check fails and we get the failure.
> >
> > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
> >
> > Fix:
> > Set the values of the stream types to be the same in the Java and c++
> > code.
> >
> > Hope this helps.
> >
> > On Nov 19, 1:31 pm, Hetal Patel  wrote:
> >
> > > Understood, I thought that this was straightforward.
> >
> > > When attempting to record a phone conversation on Android v1.6 (by
> > > using the
> > > "MediaRecorder.AudioSource.VOICE_CALL" audio source parameter), at
> > > runtime an
> > > exception is thrown unexpectedly. The test is performed on the HTC ADP
> > > with firmware 1.6.
> >
> > > Here is the snippet of code, which causes the crash:
> >
> > > recorder = new MediaRecorder();
> > > int audioSource = MediaRecorder.AudioSource.VOICE_CALL;
> > > recorder.setAudioSource(audioSource);
> > > recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
> > > recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> > > final String filePath = Environment.getExternalStorageDirectory() + "/
> > > record.3gpp";
> > > final File file = new File(filePath);
> > > file.getParentFile().mkdirs();
> > > recorder.setOutputFile(filePath);
> > > recorder.prepare();
> > > recorder.start(); // Recording is now started
> >
> > > At runtime, when the "recorder.start()" method is executed, an
> > > exception is thrown ,
> > > and in the DDMS log, I get:
> >
> > > 09-30 15:35:09.812: ERROR/AudioFlinger(51): invalid stream type
> > > 09-30 15:35:09.812: ERROR/AudioRecord(51): AudioFlinger could not
> > > create record
> > > track, status: -22
> > > 09-30 15:35:09.812: ERROR/MediaRecorder(11204): start failed:
> > > -2147483648
> >
> > > I hope that the problem reporting is now clear enough. Thank you for
> > > your time.
> >
> > > On Nov 19, 1:31 pm, Hetal Patel  wrote:
> >
> > > > I'm deseperately trying to use the "VOICE_CALL" parameter, in order
> to
> > > > record both
> > > > the in and out audio streams during a phone call. When using
> > > > "VOICE_UPLINK" or
> > > > "VOICE_DOWNLINK" or "MIC", it works fine, however.
> >
> > > > At runtime, in the DDMS log, I get:
> >
> > > > 09-30 15:35:09.812: ERROR/AudioFlinger(51): invalid stream type
> > > > 09-30 15:35:09.812: ERROR/AudioRecord(51): AudioFlinger could not
> > > > create record
> > > > track, status: -22
> > > > 09-30 15:35:09.812: ERROR/MediaRecorder(11204): start failed:
> > > > -2147483648
> >
> > > > I'm running my test againt the ADP with the 1.6 firmware. Could
> > > > someone indicate
> > > > whether this problem is linked to the ADP drivers, or if it is
> > > > something which
> > > > resorts to Android v1.6, please?
> >
> > > > Thank you for your support.
> >
> > > > On Nov 19, 1:30 pm, Hetal Patel  wrote:
> >
> > > > > In Package
> >
> > > > > android.media
> >
> > > > > Classes MediaRecorder.MediaSource now after API Level 4 ( Android
> > > > > 1.6 ) Includes
> >
> > > > > 4 VOICE_CALLVoice c