Re: [android-developers] Re: Vertical ViewPager and possible alternatives

2013-04-23 Thread Dmitriy F
Writing your own component would be too hard - check out the ViewPager source code and tweak it. It worked for me. 2013/4/23 Naseem Rafique naseem.rafi...@northbaysolutions.net Hi Dmitriy F I want to use same vertical pager.. did u used Jake Wharton's component or write ur own.. plz suggest

[android-developers] Handling different resolutions within the same configuration group

2013-01-10 Thread Dmitriy F
I have a normal-hdpi-480x800 layout, which includes buttons and similar graphics. I mostly use RelativeLayout, since it's recommended for better performance, and position my elements from the upper left bound relatively to each other. According to

[android-developers] Dimen.xml. Use scenarios.

2013-01-05 Thread Dmitriy F
Having read this: You should always use dp units when defining your application's UI, to ensure proper display of your UI on screens with different densities. why should I be concerned about dimen.xml and what the use scenarios out there ? Thanks. P.S. I suppose it might be related to my

[android-developers] Referencing views through instance fields and garbage collection

2013-01-04 Thread Dmitriy F
Correct me if I'm wrong - onStop state destroys view hierarchy of activity/fragment. Consequently, views that are referenced through the object fields will be retained because of hard references, for example if I have such a class: public class ArticleFragment extends Fragment { WebView

[android-developers] Re: Referencing views through instance fields and garbage collection

2013-01-04 Thread Dmitriy F
Hi Mark! So, you basically say there's nothing wrong with storing those references - great ! Thanks for the clarification. пятница, 4 января 2013 г., 14:16:10 UTC+4 пользователь Dmitriy F написал: Correct me if I'm wrong - onStop state destroys view hierarchy of activity/fragment

[android-developers] Dynamically removing fragments and saving their UI transformations

2012-12-29 Thread Dmitriy F
I have a couple of fragments which substitute one for another. The UI of these fragments changes and I need to hold it's new state. So the code looks pretty trivial: FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction fragmentTransaction =

[android-developers] opengl - way to import model with predefined transitions

2012-12-18 Thread Dmitriy F
My client says that there's an animation constructed with some 3D design tool like Blender or 3D Max . What is the best scenario for importing that kind of animation. So far I've used [this tool][1] but it's only suitable for model importing. Thanks. [1]:

[android-developers] Re: ListView one item per screen

2012-12-12 Thread Dmitriy F
a listview), you'll also find it easier to add gesture control to a ViewFlipper On Wednesday, December 12, 2012 9:29:30 AM UTC+2, Dmitriy F wrote: Since DirectionalViewPagerhttps://github.com/JakeWharton/Android-DirectionalViewPager is deprecated now, I need some way to mimic its' vertical

[android-developers] Vertical ViewPager and possible alternatives

2012-12-11 Thread Dmitriy F
I have to implement vertical scrolling with view pager. I am trying to adopt Jake Wharton's libraryhttps://github.com/grantland/android-verticalpager but it doesn't seem to be working because of some changes in the support library discussed

[android-developers] Re: Vertical ViewPager and possible alternatives

2012-12-11 Thread Dmitriy F
I meant this library: https://github.com/JakeWharton/Android-DirectionalViewPager вторник, 11 декабря 2012 г., 17:33:30 UTC+4 пользователь Dmitriy F написал: I have to implement vertical scrolling with view pager. I am trying to adopt Jake Wharton's libraryhttps://github.com/grantland

[android-developers] Re: Vertical ViewPager and possible alternatives

2012-12-11 Thread Dmitriy F
the solution to the issue he brought up or just dont use that version of the support library :) You can also just implement ViewPager in the vertical form instead of extending it (the source is available if i'm not mistaken) On Tuesday, December 11, 2012 3:33:30 PM UTC+2, Dmitriy F wrote: I have

[android-developers] ListView one item per screen

2012-12-11 Thread Dmitriy F
Since DirectionalViewPagerhttps://github.com/JakeWharton/Android-DirectionalViewPager is deprecated now, I need some way to mimic its' vertical paging functionlity. First thing that comes to my mind is ListView, but I'd like some tips for implementing row per screen funcitonality - where do

[android-developers] SlidingDrawer from left to right

2012-12-06 Thread Dmitriy F
Hi, I've got no idea why subj isn't implemented but I urge to rewrite this piece of codehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/widget/SlidingDrawer.java. Is there any substanital reason why it hasn't been implemented ? So that if

Re: [android-developers] Re: Explain the preparation speed of MediaPlayer in this application

2012-10-01 Thread Dmitriy F
What do you mean ? It's a live-stream - it shouldn't buffer at all 2012/10/1 daulat bachhav daulatbach...@gmail.com u using http service it's actually download then play it's not real streaming. On Friday, 28 September 2012 14:11:24 UTC+5:30, Dmitriy F wrote: Here's an https

Re: [android-developers] Re: sendEmptyMessageAtTime issue

2012-09-30 Thread Dmitriy F
false on failure, usually because the looper processing the message queue is exiting. you can test the returns 在 2012年9月28日星期五UTC+8下午3时31分50秒,Dmitriy F写道: A handler that I defined doesn't get a message set with sendEmptyMessageAtTime. The time I get from updateTime.getTimeInMillis is valid. What

[android-developers] sendEmptyMessageAtTime issue

2012-09-28 Thread Dmitriy F
A handler that I defined doesn't get a message set with sendEmptyMessageAtTime. The time I get from updateTime.getTimeInMillis is valid. What am I missing here ? @Override protected void onResume() { super.onResume(); mNavigationBarFragment.configureFor(0); Calendar

[android-developers] Explain the preparation speed of MediaPlayer in this application

2012-09-28 Thread Dmitriy F
Here's an https://play.google.com/store/apps/details?id=com.maxxt.pcradiofeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5tYXh4dC5wY3JhZGlvIl0. that I've found for playing radio live-streams - pcRadio. I made a similar application with pretty simple code inside. // constructing the player

[android-developers] Re: sendEmptyMessageAtTime issue

2012-09-28 Thread Dmitriy F
Right, thanks On Friday, September 28, 2012 11:31:50 AM UTC+4, Dmitriy F wrote: A handler that I defined doesn't get a message set with sendEmptyMessageAtTime. The time I get from updateTime.getTimeInMillis is valid. What am I missing here ? @Override protected void onResume

[android-developers] Slow preparation of live-streams on devices with Android = 2.3.

2012-09-27 Thread Dmitriy F
Hi, I've run into an issue where my application prepares live-stream roughly from 5 to 10 seconds. For instance, take this live-stream and try to prepare it on 2.3.3 - it will take about 7 seconds, while it's a live stream and there's not much to buffer. Another app called pcRadio uses the

[android-developers] Re: Slow preparation of live-streams on devices with Android = 2.3.

2012-09-27 Thread Dmitriy F
(mLowQualityStreamId)); mPlayer.prepareAsync(); // ... in onPreparedListener mPlayer.start(); On Thursday, September 27, 2012 11:34:42 AM UTC+4, Dmitriy F wrote: Hi, I've run into an issue where my application prepares live-stream roughly from 5 to 10 seconds. For instance, take this live-stream

Re: [android-developers] Slow preparation of live-streams on devices with Android = 2.3.

2012-09-27 Thread Dmitriy F
http://radio-shtorm.ru:8000/32 or http://radio-shtorm.ru:8000/56 or http://radio-shtorm.ru:8000/112. Stupid me forgot to post :(. Anyway this thing occurs mostly on 2.3 and as it was recently found on 4.0.4 On Thursday, September 27, 2012 12:40:38 PM UTC+4, Harri Smått wrote: Hi, I could do

Re: [android-developers] Slow preparation of live-streams on devices with Android = 2.3.

2012-09-27 Thread Dmitriy F
Alight, thanks for your testing help. Simultaneously I've tried the same station in some other app - pcRadio and in my own - preparation differs. pcRadio works as you said with fractions of a second, but my doesn't :( On Thursday, September 27, 2012 3:03:51 PM UTC+4, Harri Smått wrote: Hi,

[android-developers] Prevent application from updating

2012-09-26 Thread Dmitriy F
Is it possible to restrict application from updating receiveing update messages from google play from apllication code itself. Thanks. -- 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] Live audio stream - Android 2.x - possible ?

2012-08-27 Thread Dmitriy F
I need to play a live audio stream on devices with 2.x and greater versions. Thishttp://developer.android.com/guide/appendix/media-formats.html states that it's impossible to play live streams on devices with Android 2.x. What're my options here ? P.S. I've tried Vitamio - don't want to

[android-developers] Audio-Streaming IOException: Prepare failed.: status=0xFFFFFFF6

2012-08-25 Thread Dmitriy F
Android 2.3 Mediaplayer can't play none of those audiostreamshttp://radio02-cn03.akadostream.ru:8114/resulting in `W/System.err(19610): java.io.IOException: Prepare failed.: status=0xFFF6`. However, the same stream works fine on Android 4.0. Is there anything I can provide the app with to

[android-developers] Software codecs to play mp3/aac stream?

2012-08-25 Thread Dmitriy F
I have a couple of links: 1) http://radio02-cn03.akadostream.ru:8114/detifm192.mp3;, 2) http://79.143.70.114:8000/detifm-64k.aac;. Running my app on Android 2.3 results in IOExceptions: with (1) it's java.io.IOException: Prepare failed.: status=0xFFF6 and with (2) it's

[android-developers] Prevent orientation change when users pushes display-turn-off/on button

2012-08-21 Thread Dmitriy F
I've got an activity that is in a landscape mode - it's a player. Whenever I hit display-off button activity gets recreated and the screen goes black. After that I hit display-on to bring the interface back and the activity gets recreated again. I guess this is because on my samsung i9001

[android-developers] Define whether a device supports video format

2012-08-17 Thread Dmitriy F
I need to define if a device can play a video file. So far, I've registered [an error handler][1] which receives a number of errors which might be tolerable - I mean even though they occur player still feels fine and keeps on working. However, I need somehow to distinguish between errors that

[android-developers] Re: Handling server timeout

2012-08-17 Thread Dmitriy F
Try something like: try{ URL page = new URL(address); HttpURLConnection connection = (HttpURLConnection) page.openConnection(); connection.setConnectTimeout(2000); connection.setReadTimeout(2000); connection.connect(); }catch (SocketTimeoutException e1) { } catch (ConnectTimeoutException e2) {

[android-developers] Google Analytics Page Title setup

2012-08-09 Thread Dmitriy F
All that tracker.trackPageView(trackable.getSceneTitle()); does now is filling the first Active page column but I would better get use of both of those. Is it possible to set Page Title with GA framework ? Thanks. -- You received this message because you are subscribed to the Google Groups

[android-developers] AutoCompleteTextView remove/change color delimiter

2012-08-08 Thread Dmitriy F
Is it possible to remove/change color of the delimiter(it's grey by default) in AutoCompleteTextView's popup ? In ListView I get use of the delimiter parameter, but I haven't found any similar in AutoCompleteTextView. Thanks. -- You received this message because you are subscribed to the

[android-developers] Re: CLEAR_TOP + start new activity. Hierarchy issue

2012-08-02 Thread Dmitriy F
Anyone? I've even drawn an example scheme. Profile activity might not be instantiated so simple clearing the isn't going to work. https://lh4.googleusercontent.com/-ptGPTPpWitY/UBo-G2_6JtI/ABk/2i6F8IwQ6T8/s1600/2012-08-02+12.40.13.jpg On Sunday, July 29, 2012 11:43:07 PM UTC+4, Dmitriy

[android-developers] Re: AN ANDROID APPLICATION TO CONVERT HANDWRITTEN SHORTHANDS TO PRINTED DOCUMENT

2012-08-02 Thread Dmitriy F
It's already implemented as a part of soft-keyboard functionality, at least in Android 4.0. I'm not aware of the exact source codes but you can always search their code repository for soft-keyboard related topics. http://code.google.com/p/android-x86/ On Wednesday, August 1, 2012 9:09:53 AM

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-29 Thread Dmitriy F
semantics execute. (And for what it's worth, if you have no reason to use fragments with ViewPager, there is nothing forcing you to -- you can write your own adapter that directly manages raw views and doesn't use fragments at all.) On Sat, Jul 28, 2012 at 1:45 PM, Dmitriy F midnight

[android-developers] CLEAR_TOP + start new activity. Hierarchy issue

2012-07-29 Thread Dmitriy F
I have a hierarchy consisting of 4 levels of depth. My profile has 2nd level of hieararchy that means that pressing back while being in profile must always return user to the 1st hierarchy level. My problem is that link to the profile is available on all levels; so, for instance, if a user

[android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Hi, I'm developing an app which uses ViewPager(holds 4 fragments) and a layout that hosts single-page fragments. I haven't populated my fragments with bitmap data but I'm already anxious about memory management. Because of the bogus design I can't extract ViewPager to a separate activity

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Thanks for the answers! Would you mind to suggest on the part about fragments and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The activity number might slightly increase yet I think it's not the fragments but their bitmaps that gonna cause

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Thanks for the answers! Would you mind to suggest on the part about fragments, bitmaps and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The fragment number might slightly increase yet I think it's not the fragments but their bitmaps that gonna

[android-developers] Problems while transfering photshop design on Android layout

2012-06-29 Thread Dmitriy F
I have a photoshop design, which has 1280x800 resolution which I'd like to transfer in Android application. I've created a layout file and added a couple of images that I'd cut previously. After that I tested it on Samsung Galaxy tab which also has 1280x800 resolution. I can't understand why

[android-developers] Separate design based on resolution. Android 2.3

2012-06-29 Thread Dmitriy F
a better way of implementing it - please, give me your suggestions. Best regards, Dmitriy F. midnight@gmail.com -- 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