[android-developers] Re: Video Playback freezes on 1.6 donut with opencore2

2009-12-21 Thread Alexey Krasnoriadtsev
bump Anyone has any ideas? On Dec 18, 9:35 pm, Alexey Krasnoriadtsev ale...@agilefusion.com wrote: It looks like there is something wrong with the player (opencore), at times, video playback will get stuck on one frame, and will stay there for a long time. If you look at the log, you can

[android-developers] Video Playback freezes on 1.6 donut with opencore2

2009-12-18 Thread Alexey Krasnoriadtsev
It looks like there is something wrong with the player (opencore), at times, video playback will get stuck on one frame, and will stay there for a long time. If you look at the log, you can see that player started playing at 17:59:48, at that time it has already buffered 6 seconds of video. Then

Re: [android-developers] Re: Using MediaPlayer best practices?

2009-11-05 Thread Alexey Krasnoriadtsev
You can register the buffering listener and save the current buffering position. You can also poll for current position say every second (using your ui handler), and if current position did not change since last poll, show ui message (or dialog). Alexey Krasnoriadtsev Agile Fusion Corp On Wed

[android-developers] Re: Using MediaPlayer best practices?

2009-11-04 Thread Alexey Krasnoriadtsev
Preparing a mediaPlayer is the most expensive operation. calling stop() or pause() and then start() works best for me. You can also peek at the MediaPlaybackService for inspiration. Why do you think it will get into the bad state? On Nov 3, 7:14 pm, Moto medicalsou...@gmail.com wrote: What is

[android-developers] Re: Dynamic Image loading from Resources in ImageView

2009-08-02 Thread Alexey Krasnoriadtsev
you can place your images directly under assets directory, and then use getResources().getAssets().open(path to file); On Jul 31, 1:55 pm, DroidDude bhavy...@gmail.com wrote: Hi, I am very new to Android Development and I have a doubt regarding Image Loading in ImageView from R.drawable.

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Alexey Krasnoriadtsev
double tap, that circles through predefined zoom levels. On Jul 18, 11:18 am, Jason Van Anden jason.van.an...@gmail.com wrote: I need to zoom-in/zoom-out for my app.  Multitouch would be the most obvious way to go about this *sigh*. I would prefer not to use the zoom-in/out widget. I have

[android-developers] Re: Media AspectRatio

2009-07-11 Thread Alexey Krasnoriadtsev
Is the aspect ration is really different, or do you think youtube app just re sizes video to fit the screen? You can dynamically adjust SurfaceView layout parameters to take all you screen, maintaining aspect ration. On Jul 10, 8:26 am, glory hiti.dee...@gmail.com wrote: Hi, I am playing the

[android-developers] Re: Associate app to open email attachments

2009-07-10 Thread Alexey Krasnoriadtsev
You are correct that you should use contentResolver.openInputStream (uri), to get the data from gmail attachments. Default Email app, is very dumb and is hardcoded to only open audio and image attachments. (disclaimer, that was the case 6 month ago, the last time i looked at it). On Jul 8,

[android-developers] Re: Image

2009-07-09 Thread Alexey Krasnoriadtsev
You can create your class that will extend from ImageView. at some point store a Drawable of the small image as an instance variable. overwrite public void onDraw(Canvas canvas){ super.onDraw(canvas); mDrawable.setBounds(0, 0, drawableWidth, drableHeight); mDrawable.draw(canvas); } This

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-22 Thread Alexey Krasnoriadtsev
GIT is the repository where all android code is. for Browser, here is the specific link: http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=summary On Jun 21, 1:02 pm, psaltamontes mcg2...@gmail.com wrote: @Alexey : What's the meaning of git? @ Hamy : ¡ I needed this

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-20 Thread Alexey Krasnoriadtsev
You can create your own Browser application, that will allow proxy configuration. You can also take original Browser app as the base (it's available in git). Those users who need proxy will be able to install your browser application and use it. On Jun 19, 9:44 am, psaltamontes

[android-developers] Re: Howto detect media actions

2009-06-18 Thread Alexey Krasnoriadtsev
Have you tried forcing any of the MediaScanner actions? like adding new image to the sd card, removing/inserting sdcard. download img or mp3 through browser. On Jun 18, 10:01 am, JayBird jayje...@gmail.com wrote: Hi Folks, I'm trying to detect media events.  As a test I created a simple

[android-developers] Re: Use drawable in TextView with SimpleAdapter

2009-06-18 Thread Alexey Krasnoriadtsev
you can extend SimpleAdapter and textView.setCompoundDrawable() while you build view. On Jun 18, 3:17 pm, vovkab vov...@gmail.com wrote: Hello I want to use TextView as ListView item. Is any way to assign left drawable to TextView via SimpleAdapter? Thanks for any help.

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread Alexey Krasnoriadtsev
http://developer.android.com/reference/android/view/View.html#attr_android:keepScreenOn This will keep the screen on, while your view is visible. On Jun 16, 3:52 am, Thomas Riley tomrile...@googlemail.com wrote: How would I go about doing this. I have the wake lock working ok now but no harm

[android-developers] Re: Sharing common view layouts and resources across multiple Android applications (APKs)

2009-06-04 Thread Alexey Krasnoriadtsev
There is no such way right now to share resources between the apps. However, if you are building your own version of OS, you can add this functionality into the system image. On Jun 2, 11:09 am, Nag raju...@gmail.com wrote: I am working on developing several individual android applications. We

[android-developers] Re: load image from the web?

2009-05-25 Thread Alexey Krasnoriadtsev
In addition to Mark's suggestion, I would encourage you to use httpclient apis, instead of direct urlconnection. On May 25, 3:11 am, Mark Murphy mmur...@commonsware.com wrote: Bear in mind that the code shown below runs on the UI thread. This means the UI thread is blocked until the HTTP

[android-developers] Re: How to track down: java.lang.IllegalArgumentException: View not attached to window manager

2009-05-20 Thread Alexey Krasnoriadtsev
Before calling Dialog.dismiss() try checking whether it is shown, isShown(); On May 19, 10:22 pm, Mariano Kamp mariano.k...@gmail.com wrote: Exactly my original point. That's the reason I originally asked this: I am wondering how to track down this IAE? It doesn't mention my code

[android-developers] Re: Add my application in Share menu gallery or others application

2009-05-10 Thread Alexey Krasnoriadtsev
with picture's mime-type, and displays a dialog to the user, with the names of those activities. Google ACTION_SEND for samples on how to implement your activity. -Alexey Krasnoriadtsev On May 10, 1:38 am, arnouf arnaud.far...@gmail.com wrote: Hi all, I would like that users using Pictures application

[android-developers] Re: how to check if sdcard is mounted in program

2009-04-17 Thread Alexey Krasnoriadtsev
Also, most of the time, you would want to register and IntentReceiver to be notified when SD card is unmounted. On Apr 16, 10:27 pm, Desu Vinod Kumar vinny.s...@gmail.com wrote: public static boolean isSdPresent() { returnandroid.os.Environment.getExternalStorageState().equals(android.os.

[android-developers] Re: Bitmap Memory

2009-02-28 Thread Alexey Krasnoriadtsev
There best working approach is to only load Bounds of the image, and then use scale to load the Bitmap of the needed size. This way you never load the full-size bitmap in the memory. http://code.google.com/intl/ja/android/reference/android/graphics/BitmapFactory.Options.html#inJustDecodeBounds