Linker problem

2009-02-27 Thread Girish
Hi, I am trying to compile a main.c file main.c : #include stdio.h int main() { printf(Helloworld\n); return 0; } using toolchain available at /home/user/foobar/mydroid/open_src/prebuilt/linux-x86/toolchain/arm- eabi-4.2.1/bin/arm-eabi-gcc-4.2.1 main.c But compiler throws error it cant

How to handle incoming voice call.

2009-02-27 Thread Anil Yadav
Hi all I want to receive the incoming call automatically based on predefined Caller number and want to play some sound files and also want to take input from caller(I mean digit pressed. 1,2,3,4,5,6,7,8,9,0 etc.). Please let me know if anybody knows how to handle the incoming call without user

Re: Linker problem

2009-02-27 Thread Joe Petruchi
Refer this http://android-tricks.blogspot.com/ Regards Joe On Fri, Feb 27, 2009 at 2:57 PM, Girish htgir...@gmail.com wrote: Hi, I am trying to compile a main.c file main.c : #include stdio.h int main() { printf(Helloworld\n); return 0; } using toolchain available at

Re: Linker problem

2009-02-27 Thread Girish
Thanks Joe, Is it possible to link object files and 3rd party library ? I dont have source files available ..Is it possible to link them ? Regards Girish On Feb 27, 3:50 pm, Joe Petruchi petruchi.dr...@gmail.com wrote: Refer this http://android-tricks.blogspot.com/ Regards Joe On Fri,

Re: Incorrect use of SkAlpha255To256 trick in Skia

2009-02-27 Thread pixelflinger
The problem in the code you pointed to can be improved by rounding the result (add 0x80 before shifting by 8). result = S + D * (((256 - (A + (A7))) + 0x80) 8) What you're proposing is interesting, essentially: result = S + (D * (256 - A))8 Basically, this has a bigger error, but it is

Re: Linking failure for libmedia

2009-02-27 Thread Nikhil
Sorry, just to correct myself, it's not linking error but a compilation error. Native MediaPlayer member function calls is throwing error, e.g. below: undefined reference to `android::MediaPlayer::MediaPlayer() Please help in finding the correct way of using native MediaPlayer APIs. Thanks

Re: Linking failure for libmedia

2009-02-27 Thread Freepine
Maybe you need check the include path or something else. I was able to link libmedia in native app without any tricks:) On Fri, Feb 27, 2009 at 7:47 PM, Nikhil nikhi...@gmail.com wrote: Sorry, just to correct myself, it's not linking error but a compilation error. Native MediaPlayer member

Re: Incorrect use of SkAlpha255To256 trick in Skia

2009-02-27 Thread reed
static inline U8CPU SkMulDiv255Round(U8CPU a, U8CPU b) { SkASSERT((uint8_t)a == a); SkASSERT((uint8_t)b == b); unsigned prod = SkMulS16(a, b) + 128; return (prod + (prod 8)) 8; } This is used in some places for blending. I think it has even smaller error than (a + (a 7)),

Re: define public or private resources

2009-02-27 Thread cht
for the OEM, if want to add some public resources, they can not do that? waht they added must be private? can not be accessed for the android.R ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups android-framework

Re: Test FrameWork

2009-02-27 Thread rktb
If you are running the player engine unit test logs, you would find them in a file named player.log in the cwd of the emulator. As an example adb shell cd /sdcard;pvplayer_engine_test -test 803 803 -source test.mp4 -logfile -logall ...this will dump the logfile in /sdcard/player.log. -Ravi

Re: amr-wb codec in .3gp file format

2009-02-27 Thread rktb
It should be a new format in the existing container. Go through the existing mp4 parser and try to understand how it is structured. We can help you with specific questions. Btw, I am assuming that you would be contributing this work back to OHA community. -Ravi On Feb 27, 1:21 am, Lucien

Re: How to test the openCORE on Android Emulator

2009-02-27 Thread rktb
I am confused. In the first post you said that you are trying to integrate your codec, and now you are saying that you are trying to integrate your own media framework. Pick one :-) -Ravi On Feb 27, 2:32 am, vishy s vishy.s1...@gmail.com wrote: Is there some one who can give more details on

Re: Linking failure for libmedia

2009-02-27 Thread rktb
Did you include the mediaplayer.h header file? On Feb 27, 8:42 am, Nikhil nikhi...@gmail.com wrote: Below is the code snippet: using namespace android;     m_pPlayer = new MediaPlayer();     m_pPlayer-setDataSource(m_pOutFilePath);     m_pPlayer-setAudioStreamType(mStreamType);    

Re: Linking failure for libmedia

2009-02-27 Thread rktb
Ok. I guess you have to share the complete sourcefile + makefile for us to be of further help. -Ravi On Feb 27, 9:15 am, Nikhil nikhi...@gmail.com wrote: yes, I have included mediaplayer.h which is present in frameworks\base \include\media On Feb 27, 7:49 pm, rktb yend...@pv.com wrote:

need to have trace from mediaplayer to opencore

2009-02-27 Thread das.ar...@gmail.com
Hi how can i get traces from mediaplayer application upto openmax,media engines on simulator. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups android-framework group. To post to this group, send email to

[noob question] Displaying an Image

2009-02-27 Thread Will
If I have a Drawable object (on which I used .createFromPath ([imagePath]) to get an image), what is the easiest and fastest way to display the image in full screen? I just want the image from the Drawable to take over the whole display until the user presses the home or back button.

Re: define public or private resources

2009-02-27 Thread Dianne Hackborn
Correct. Sorry. On Fri, Feb 27, 2009 at 5:47 AM, cht caoht...@gmail.com wrote: for the OEM, if want to add some public resources, they can not do that? waht they added must be private? can not be accessed for the android.R ? -- Dianne Hackborn Android framework engineer

Re: Displaying an Image

2009-02-27 Thread mathiastck
For you sir, I would recommend: http://groups.google.com/group/android-beginners This group, Android-framework, is described as: Android framework - You want to improve the Android APIs. Those are the APIs that developers use in the SDK. You want to contribute code into Android to achieve

Re: Displaying an Image

2009-02-27 Thread mathiastck
On this note, the short description of this group: Android Framework Discuss developing and extending the Android framework for applications (everything above the kernel). found here: http://groups.google.com/group/android-framework does seem overly broad. Saying everything above the kernel

Re: Incorrect use of SkAlpha255To256 trick in Skia

2009-02-27 Thread pixelflinger
I think that Eric's point is that it works specifically for that case. The macro is correct in general, but in that specific case (32-bits, premult blending), a different global equation (with +1) would work better. It wouldn't cause artifacts, would be slightly faster and would have the nice

Re: need to have trace from mediaplayer to opencore

2009-02-27 Thread arindam das
but how to do that on emulator?? On Sat, Feb 28, 2009 at 7:57 AM, rktb yend...@pv.com wrote: If you want a readymade trace, I am not sure. However, if you are willing to generate one, you could just enable the debug logs on all the components that you are interested in. Here are a few