[android-developers] YouTube Android Player API - PlayerViewDemoActivity crash

2013-11-20 Thread Latha Shivanna
Hii All, I am trying to use the youtube android api jar & the samples from here : https://developers.google.com/youtube/android/player/ But everytime, i run this app & press the back key continously, before the video is loaded in the activity, I see youtube crashing. It says : "Unfortuantely, Y

[android-developers] Need help: How to disable a view(provided there are 2 views in xml) ??

2010-03-25 Thread Latha Shivanna
Hi All, In one of my applications i have 2 views(1 surfaceview and 1 videoview). And my main requirement now is to disable videoview( & its corresponding surface obtained thru videoview->getholder->getsurface()) when i dont need it. The reason for me to do this, I have created these 2 views i

[android-developers] Need help: How to create Surfaces in Native layer(equivalent of view->getholder->getsurface)

2010-03-22 Thread Latha Shivanna
Hii All, In one of my applications, i am doing some video playback and other display related stuffs in Surfaceviews and i create them in XML layouts. I am all fine in Java here. But now i need to do all this in C/C++(native layer), I have this doubt in this regard. Is it possible to create Su

[android-developers] [Android-developers] Overlay in Views. Please suggest

2010-03-18 Thread Latha Shivanna
Hii All I need your help/suggestion on this issue. In my application, i have a surfaceView and a videoView which are occupying the full screen. SurfaceView is on the top and thus VideoView is hidden below. But i need to see both SurfaceView and VideoView together. How do i achieve this? I tri

[android-developers] [Android-developers] ApiDemos' MediaPlayerDemo_Video not playing the video fully in new SDK 'android-sdk_r05-windows'

2010-03-11 Thread Latha Shivanna
Hii All, I just got a new SDK 'android-sdk_r05-windows' from the site and tried the "{android-sdk_r05-windows\android-sdk-windows}\samples\android-7\ApiDemos" , but I found something strange with the "MediaPlayerDemo_Video.java" When i tried running a 3gp file ( which used to run perfectly fine

[android-developers] [Android-developers] General question: Can't we have 2 projects(same) in 2 different locations and import them in eclipse?

2010-03-09 Thread Latha Shivanna
Hii All I always face this problem in my eclipse. I would like have a copy of the apps in all the versions of SDKs/NDKs. And once i have a project in eclipse, and if i have to import the same project from a new location, i get the message saying " can't import, project of the same name already

[android-developers] [Android-developers]How many SurfaceHolder objects can be created in one activity having one view?

2010-02-26 Thread Latha Shivanna
Hi All, I need to have an app where i can play both video and audio using mediaplayer APIs. But my problem here is , for video . i have to use "SURFACE_TYPE_PUSH_BUFFERS" and pass this to mp.setDisplay(). SurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); Where as, An audio

[android-developers] Need help:Any Opencore APi to get the decoded frame of a video into a buffer??

2010-02-07 Thread Latha Shivanna
Hi All Is it possible to get the decoded frame of a video in a buffer using Opencore Apis? Or is it like, the Opencore Media APis would directly update these frames on screen display? Any reply is greatly appreciated. Please do advise. thanks Latha -- You received this message because you are

[android-developers] Need Help : canvas.drawtext() for a lengthy string

2010-01-07 Thread Latha Shivanna
Hi All I am stuck in a very simple problem. I have one lengthy string & I need to draw that on the device display. My code is as follows: void ShowText(String text) {                 canv = thread.mSurfaceHolder.lockCanvas();                        if (text!= null) {                          

[android-developers] Need Help : calling a non-static Java method from C in Android

2009-12-21 Thread Latha Shivanna
Hi All In my Android app, I need to call a non static java method from C/C++. But i get a blunt crash when i do it using GetMethodID/CallVoidMethod()1 methods. I have done like this: 1. Register the method using GetMethodID() as follows (mine is a cpp file): jmethodID xyz = (env)->Ge

[android-developers] Need Help: Is widestrings like L"String" allowed in Android?

2009-11-13 Thread Latha Shivanna
Hii All Does anybody know about the behavoir of Android’s compiler for target on wide strings like L”string” ?? I have a piece of code like this: Unsigned short* TESTWSTRING[] = { L".jpg”, L”.txt” }; Will TESTWSTRING[0] & TESTWSTRING[1] be widestrings ? In Win32, memory used

Re: [android-developers] Need help : JSR s supported in Android

2009-11-09 Thread Latha Shivanna
oh thanks ..but any idea on what all JSRs supported in android? please do share this info -Latha On Mon, Nov 9, 2009 at 12:11 PM, Romain Guy wrote: > JSR 226 is not supported. > > On Sun, Nov 8, 2009 at 10:39 PM, Latha Shivanna wrote: >> Hii All >> >> >> Wh

[android-developers] Need help : JSR s supported in Android

2009-11-08 Thread Latha Shivanna
Hii All What are all the JSR s supported in Android? Is JSR 226 supported? Can anybody please let me know this. Thanks a lot Latha -- 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: [android-developers] Re: arrays to be accessed by both JAVA n C thru JNI in an Android app

2009-11-05 Thread Latha Shivanna
ya...I now create the new array only once in the beginning and release it once my app ends. Untill this release my array would be retained n used without being created once again. thank you Latha On Fri, Oct 23, 2009 at 11:39 PM, fadden wrote: > > On Oct 23, 3:51 am, Latha Shivanna

Re: [android-developers] Re: Need Help : Profiler/task manager in Android

2009-11-05 Thread Latha Shivanna
;s a more advanced tool called traceview you might want to look > into as well: > http://developer.android.com/intl/fr/guide/developing/tools/traceview.html > > I haven't needed to use that one yet. > > On Oct 26, 8:10 am, Latha Shivanna wrote: >> Hii All, >> >&g

Re: [android-developers] Re: [Android-developers] Display APIs in Android?

2009-11-05 Thread Latha Shivanna
o it. You basically draw directly > to this object (Use Canvas's methods to do the drawing). However, you > won't be double buffering then so you may see some flicker. > > -niko > > On Nov 4, 5:33 am, Latha Shivanna wrote: >> > You can directly draw onto surface bound w

Re: [android-developers] Re: [Android-developers] Display APIs in Android?

2009-11-04 Thread Latha Shivanna
> graphics/fb0 is not recommand by android platform. > > On Nov 4, 12:35 am, Latha Shivanna wrote: >> I need some 2D apis. can anybody suggest something? >> >> Are there any ways to display a buffer on screen in native layer? I am >> aware of using some ioctl cal

Re: [android-developers] [Android-developers] Display APIs in Android?

2009-11-03 Thread Latha Shivanna
use opengl also > > On Tue, Nov 3, 2009 at 5:54 PM, Latha Shivanna wrote: >> >> Hii All >> >> Can anybody please tell me how can we display a buffer on screen? >> >> Currently I create a bitmap using Bitmap's CreateBitmap() and render >> it

[android-developers] [Android-developers] Display APIs in Android?

2009-11-03 Thread Latha Shivanna
Hii All Can anybody please tell me how can we display a buffer on screen? Currently I create a bitmap using Bitmap's CreateBitmap() and render it on screen using canvas' drawBitmap(). Is there any other way of doing this in Java layer? Please do share your thoughts. thanks in advance Latha --

[android-developers] Need Help : Profiler/task manager in Android

2009-10-26 Thread Latha Shivanna
Hii All, My android app is running very slow and I doubt that it is not given enough CPU. So wanted to know if there is any way to check the CPU utilization by all apps at the time when I am running my app. Or any tool, by which we can get to know what all applications are running at some instan

[android-developers] [Android-developers]arrays to be accessed by both JAVA n C thru JNI in an Android app

2009-10-23 Thread Latha Shivanna
Hii All, I am facing a problem in my Android app which is calling native functions through JNI. So thought somebody in this group can help me to resolve this. The current code : 1. Create an array in JNI layer ( by NewIntArray()) which can be used by both Java & C. 2. we can name tha

[android-developers] Re: Need Help : getheight()/width() API returning wrong screensize on device.

2009-10-21 Thread Latha Shivanna
sion attribute and just setting minSdkVersion to 4 also > gave 480x800. No uses-sdk tag at all gave 480x533. Not sure if you > meant these attributes or the build target when you wrote that the API > version is set. > > On Oct 21, 6:34 am, Latha Shivanna wrote: >> Yes .. API ve

[android-developers] Re: Need Help : getheight()/width() API returning wrong screensize on device.

2009-10-21 Thread Latha Shivanna
ve you set your API version to 4 (SDK 1.6)? > > If I remember correctly - if your API is set to version 3 (or lower) > the platform will run your application in emulation mode and scale it > to the actual screen size.  So you will never see the large screen. > > -- > RichardC >

[android-developers] Need Help : getheight()/width() API returning wrong screensize on device.

2009-10-21 Thread Latha Shivanna
Hii All, I am facing a small problem in my android app regarding its display resolution. Getwidth()/height() in my app is always giving me a screen size of (320x480) though the actual screensize of the target is (480x640). I checked APIdemos/lunarlander n other sample examples from the Android S

[android-developers] Video problem - How to use a surface for both canvas and mediaplayer

2009-10-12 Thread Latha Shivanna
Hii All I have a requirement in my application where i need to do 2 things : 1.use canvas to display a bitmap 2.use mediaplayer class to display a video. I tried using "getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);" and could see the video alone followed by an exception for canv

[android-developers] Any API to get the time elapsed since the system was started?

2009-10-07 Thread Latha Shivanna
Hi All In one of my Android app, I need to get the number of milliseconds that have elapsed since the system was started.(soemthing like "GetTickCount() in Windows mobile") Is there any API for the same ? Or can anybody share the code, if they have done it already? Please do share your thoughts.

[android-developers] Audio on Android : \frameworks\base\media\tests\mediaframeworktest

2009-09-02 Thread Latha Shivanna
Hii All, I need to understand how an audio is being played by Android in its native level. I started looking at its '\frameworks\base\media\tests\MediaFrameworkTest' to track down the call sequence into the native level. I gave a LOG statement everywhere in all the functions that come under "fra

[android-developers] Query: Packing resources into an APK

2009-08-27 Thread Latha Shivanna
Hii All, In one of my applications, I am pushing few image files say "xyz.png" into the device using "adb push " command. And I use these files in my application by giving their exact filepaths (say if I have pushed them into /data, I wud say /data/xyz.png). So to short it down, i wud say," I ha

[android-developers] [android-developers]Query : Mouse event codes on Android

2009-06-16 Thread Latha Shivanna
Hi All I am writing an application in which i need to handle mouse events. I am infact not sure on how Android supports mouse pointers. With all the discussions on android groups, i got a vague idea that it is nto suported. But could anyone please tel me if mouse is suported on Android. On Windo

[android-developers] Messaging between 2 threads

2009-05-21 Thread Latha Shivanna
Hi All I am writing an application in which i need to handle messages between the main thread(the deafult UI related thread) and the user created Gamethread. The requirement is like this. An activity(say "Activity_X") is setting the view by "setContentView(some "View_Y")". In "Activity_X" i have