[android-developers] Get my SIM Phone Number

2011-01-23 Thread André Barbosa
Is any way to get the SIM phone number without use
TelephonyManager.getLine1Number()?

I tried use :
TelephonyManager tMgr
=(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
  mPhoneNumber = tMgr.getLine1Number();

but don't work with my SIM Card. Anybody know other method to get the
SIM phone number without use the rild to get this information?

Best Regards,
André Barbosa.

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


[android-developers] Streaming mp3 file with RTSP protocol

2010-12-05 Thread André Barbosa
hi all,
I am trying play a mp3 stream file using rtsp protocol. To do this i
am using the DarwinStreamingSrvr as a RTSP server and mediaplayer to
play the RTSP link.
I already tried play the mp4 video file and i didn't had any problems.
However, when i try play the mp3 file i don't have sucess and i get
the error:


V/AudioStreamPlayer(10476): playRTSPAudioURL :: IN
I/QC_CORE ( 3013): OMXCORE API - OMX_Init
I/QC_CORE ( 3013): OMXCORE API - OMX_ComponentNameEnum 159d0 128 0
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.decoder.avc
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.decoder.avc
I/QC_CORE ( 3013): OMXCORE API - OMX_ComponentNameEnum 159d0 128 1
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.decoder.mpeg4
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.decoder.mpeg4
I/QC_CORE ( 3013): OMXCORE API - OMX_ComponentNameEnum 159d0 128 2
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.decoder.h263
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.decoder.h263
I/QC_CORE ( 3013): OMXCORE API - OMX_ComponentNameEnum 159d0 128 3
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.encoder.mpeg4
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.encoder.mpeg4
I/QC_CORE ( 3013): OMXCORE API - OMX_ComponentNameEnum 159d0 128 4
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.encoder.h263
I/QC_CORE ( 3013): GetRolesOfComponent OMX.qcom.video.encoder.h263
I/QC_CORE ( 3013): OMXCORE API - OMX_ComponentNameEnum 159d0 128 5
E/MediaPlayer(10476): start called in state 4
E/MediaPlayer(10476): error (-38, 0)
V/AudioStreamPlayer(10476): playRTSPAudioURL :: media player started!
E/MediaPlayer(10476): Error (-38,0)
I/ActivityManager( 3019): Displayed activity
com.MediaFrameWork/.AudioStreamPlayer: 710 ms (total 710 ms)


Somebody help me? I already saw the media formats supported and
OpenCore have mp3 codec.
Best regards.

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


[android-developers] New view for MediaController

2010-11-18 Thread André Barbosa
Hi all,
i want alter the MediaController layout. I created
MediaControllerAdapter class what extends MediaController for i can do
some changes in layout of the MediaController. I already tried add a
new View but the android doesn't show the view. So I need the
MediaController layout in xml to do some modifications. I already
tried search the R file in android source code, but i don't have
success.

Somebody can give me some help? I tried to find some method to modify
the View object, but i don't know how i do this...

Best Regards,
André Barbosa.

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


[android-developers] Video Calls on Android using Sipdroid

2010-10-30 Thread André Barbosa
Hi,
since release the SipDroid 1.5, I search how it is possible the
SipDroid do this. I already searched the Sipdroid page and I don't saw
any official information about this feature. However, some people told
that SIPDroid use the Android rtsp feature to play the video stream.

I already tried put the SIPDroid video call work on two Nexus One, two
HTC Desire, one HTC Hero, one HTC Magic and one HTC G1 with TrixBox
server and never work!

Someone get this working? Someone can clarify me how video calls work
in SIPDroid? I think this is very interesting for all people that
working with media on Android.

Best Regards,
André Barbosa.

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


[android-developers] Compile Sip Stack

2010-07-07 Thread André Barbosa
hi,
anyone could compile some SIP Stack in C/C++ along with Android source
code?

Note: i am referring not to compile the Sip Stack with ndk, but
compile with all the code of the Android plataform.

best Regards.

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


[android-developers] Sip stack

2010-06-21 Thread André Barbosa
hi all,
i need to porting a sip stack to android! after search in google and
read several posts in android groups, i think that the best choice is
sofia-sip or PJSIP. At this time, i think in use the PJSIP! what is
your opinion?

after download the PJSIP, i saw your code and i understand how compile
this lib in linux, however, i don't know how i begin to porting this
code to compile on Android! anybody can give some help?

Best Regards.

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


[android-developers] Re: LOGV

2010-03-24 Thread André Barbosa
hi all,
i want to see all the logs of android source code, i already tried
alter the log.h (system/core/include/cutils), however, when i compile
the android source code, the compile show me errors on some cpp files.

Someone already did this change? what i have to modify in log.h to
activate all logs (LOGE, LOGI, LOGD, LOGV, LOGW)?

Regards,
André Barbosa

On 17 Mar, 16:32, André Barbosa afilipebarb...@gmail.com wrote:
 Dear All,

 I'm running the mediaplayer of android and i would like to see 
 theLOGVgenerated by mediaplayer, but they do not appear in logcat.
 these logs are stored in a file? how can I debug them?

 Regards,
 André Barbosa.

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] LOGV

2010-03-17 Thread André Barbosa
Dear All,

I'm running the mediaplayer of android and i would like to see the
LOGV generated by mediaplayer, but they do not appear in logcat.
these logs are stored in a file? how can I debug them?

Regards,
André Barbosa.

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


[android-developers] invoke functions of android source library (libmedia)

2010-03-10 Thread André Barbosa
Dear All,

I'm working on a project for my BSc in Computer Science. I have to
create a module in C to be invoked by the java through jni.
The goal of this module is call functions from libmedia that aren't
directly accessible in the current Java API.

I already tried copying the code from libmedia to my ndk project, but
the dependencies are a problem! I also tried compile the shared
library in Android Souce and copy the .so to my ndk project, but the
jni can't load the .so library.

I would like know if there is any way of my code c invoke functions of
source library (libmedia) of android? my module is to be invoked by
using the java jni..

Regards,
André Barbosa.

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