[android-developers] Re: Reading expansion file in Android 6.0

2016-04-08 Thread Alexey Danilov
To resolve this problem for API 23 I download .obb file to private app's file directory instead of `obb` directory which my app hasn't access to. You can review my solution here . Usage:

Re: [android-developers] Re: terminating android application

2013-01-03 Thread Alexey Redinskii
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 -- *Kind Regards, Alexey.* *Phone (cell):** **+375 29 5109703 **Skype: i4004Sam** **Email:** aredins

Re: [android-developers] Disabling/Hiding the Application ?

2012-11-09 Thread Alexey
Dianne, is it possible to disable other apps that I'm developing. For example, I develop 2 apps, and then I develop third app that includes functionality of previous ones. Can I disable my old apps? Is it possible to add some common security id in manifest to do this using

[android-developers] How to implement actiobar drawers?

2012-08-16 Thread Alexey Zakharov
There is Drawers section inside ActionBar guidelines http://developer.android.com/design/patterns/actionbar.html How actionbar drawer should be implemented? -- Alexey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

[android-developers] Android USB host and hidden devices

2012-06-27 Thread Alexey
I am developing an Android application in which I have to communicate to an USB device. I tried to use standart google API in my app, but list of devices is allways empty. Same things if i use USB device info with google api. List of devices searched by google api is empty, lsusb gives following

[android-developers] Please include DiskLruCache to next version of support package

2012-04-20 Thread Alexey Zakharov
Please include DiskLruCache (http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html) to next version of support package. Alexey Zakharov -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] SAXParserFactory.newInstance() Problem

2012-03-22 Thread Alexey Sinyutin
Good time. I have problem with SAXParserFactory.newInstance();. I have error look like : SAXParserFactory.newInstance cannot be resolved to a type Ccode: try{ URL website=new URL (fullUrl); SAXParserFactory spf=new SAXParserFactory.newInstance(); -only in this line i have error

Re: [android-developers] Crashed service restarted by system doesn't call onStart

2012-03-05 Thread Alexey Zakharov
So what is the right solution. Start service from onCreate? On Wednesday, April 1, 2009 2:38:15 AM UTC+7, Dianne Hackborn wrote: That is working as intended. onStart() is called each time someone calls startService(); if nobody has called startService() since your last onStart(), then

[android-developers] Missing class

2012-01-08 Thread Alexey Kuznetsov
Hello! Just one question from nooby developer. Why I can find source for ServiceManager inside android 4.0.3 source tree but no ServiceManager.class under andoird.jar? I expect to see the following line: ./platforms/android-15/data/android/content/SyncStorageEngine.class but here only this

[android-developers] Google Places API for Android

2011-12-17 Thread Alexey Zakharov
I want to integrate Google Places Api to my android application. Im afraid that my api key could be stolen from Android app and used by third party. How can I avoid that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Android Network Provider sometimes stop using WiFi and start using Cell Tower even then person is still on same place. How to avoid that?

2011-12-16 Thread Alexey Zakharov
Android Network Provider sometimes stop using WiFi and start using Cell Tower even then person is still on same place. How to avoid that? I have tested several apps. Google maps, mapquest, glympse. Only google maps works correct. My own app, mapquest and glympse show wrong location based on

[android-developers] How can I cache Google Maps tiles using Android SDK?

2011-12-09 Thread Alexey Zakharov
I want to implement Download map areahttp://googleblog.blogspot.com/2011/07/download-map-area-added-to-labs-in.htmlfeature like official Google Map application. Is it possible or not? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] How to disable discrete zoom level in android google maps?

2011-11-21 Thread Alexey Zakharov
Android google maps sdk approximate zoom level to discrete values. I mean that i cannot set it to 13.33 it will convert it to 13. However Google Android Maps application doesn't do it. How they achieved that? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to disable discrete zoom level in android google maps?

2011-11-21 Thread Alexey Zakharov
So Google provides legacy api to developers. Why google won't adopt same technique for sdk. =\ -- 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

[android-developers] How can implement double tap zoom in gesture, and two-fingers tap zoom out gesture?

2011-11-21 Thread Alexey Zakharov
How can implement double tap zoom in gesture, and two-fingers tap zoom out gesture? This gestures works in Google Maps Application. They are by default available in IPhone SDK. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Does Google has any plan to release vector based google maps for android SDK?

2011-11-21 Thread Alexey Zakharov
Does Google has any plan to release vector-based google maps for android SDK? They have release vector-based google map application for Android long ago, but api is still based on image tiles. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] What is the proper way to change look of MapView zoom controls in Android?

2011-11-15 Thread Alexey Zakharov
What is the proper way to change look of MapView zoom controls in Android? I want to repoduce zoom button from new google maps. https://lh4.googleusercontent.com/-XW8UlX0U0Bw/TsInKzXKe-I/AfQ/x5aqzeV8PvE/SC2011-111658.png -- You received this message because you are subscribed to

Re: [android-developers] What is the proper way to change look of MapView zoom controls in Android?

2011-11-15 Thread Alexey Zakharov
I just like this style and want to reproduce this in my app. -- 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

Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2011-11-03 Thread Alexey Zakharov
Even with POP_BACK_STACK_INCLUSIVE onResume of popped Fragment is called. You need to add alternative method that will allow remove element from back stack without resuming it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] How can I pop fragment from backstack without resuming it?

2011-11-02 Thread Alexey Zakharov
How can I pop fragment from backstack without resuming it? I just want to remove from back stack, I don't want to display it. -- 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] How can handle AlertDialogFragment events inside Fragment that created it?

2011-11-01 Thread Alexey Zakharov
For dialogs fragments UI google recommendshttp://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentAlertDialog.html to extend DialogFragment. However in provided sample it handle alert inside activity, but I need to do it inside fragment that invoke

[android-developers] Does Google notify devise that c2dm registration_id is expired?

2011-09-27 Thread Alexey Zakharov
Does Google notify devise that c2dm registration_id is expired? If yes in what method should I handle this? -- 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

[android-developers] Is there any oauth2 lib that implemnt client side flow for both facebook and google?

2011-08-31 Thread Alexey Zakharov
Is there any oauth2 lib that implemnt client side flow for both facebook and google? -- 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,

Re: [android-developers] What should I use for common parts of UI in Android application?

2011-08-09 Thread Alexey Zakharov
Yep, from my searches in Uber's code it uses ViewStabs and single map activity. -- 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

[android-developers] What is the right way to get updates from REST service by timer in Android?

2011-08-09 Thread Alexey Zakharov
I wonder what is the right way to get updates from REST service by timer in Android? May be I should use timer taskhttp://developer.android.com/reference/java/util/TimerTask.htmlfor this? -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: What is the right way to get updates from REST service by timer in Android?

2011-08-09 Thread Alexey Zakharov
*UPDATE: I need to receive updates even if user has switched to another application or receive a call. UI also should be updated. So when user switch back to the application he should see updated view.* -- You received this message because you are subscribed to the Google Groups Android

[android-developers] What should I use for common parts of UI in Android application?

2011-08-08 Thread Alexey Zakharov
Here is Uber Android application. As you see each of screen has some common elements: header, map control etc. But each view has different header buttons and subview with some view specific details. Should this screens be separate activities? Is fragments API right thing to implement this?

[android-developers] Simulate GPS speed and heading on Android Emulator

2011-07-25 Thread Alexey Zakharov
Im trying to test my phonegap gps location application on Android Emulator. I need to simulate W3C gps speed and heading on Android Emulator http://dev.w3.org/geo/api/spec-source.html. Using DDMS i was able to setup kml path. However navigation.watchPosition only see latitude and longitude

[android-developers] Is there any way to disable landscape mode for widget?

2011-06-10 Thread Alexey Onuchin
Hi to all, I'm developing a simple widget for which I want to leave only portrait mode. So is there any way to block lanscape mode like we can do it for Activities? Thanks in advance, Alexey -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Is there any way to disable landscape mode for widget?

2011-06-10 Thread Alexey Onuchin
Hmm, Ok. Then I will provide additional layouts :) Thanks. On 10 июн, 16:24, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 10, 2011 at 8:18 AM, Alexey Onuchin av.onuc...@gmail.com wrote: I'm developing a simple widget for which I want to leave only portrait mode. So is there any way

[android-developers] Widget size problem

2011-05-13 Thread Alexey Onuchin
Hi to all, I faced with one strange issue designing my widget layout. At first I decided to make it 3x2 cells for all supported screens. So I use minWidth=220dip and minHeight=146dip in my xml/widget.xml: appwidget-provider xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] Re: Castor unmarshalling with Android's SAX DOM implementation throws: The 'namespace-prefix' feature is not supported while the 'namespaces' feature is enabled

2011-02-17 Thread Alexey Skor
I tried adding xerces.jar to my Android project and replacing default xml factory for Castor, but this failed with Dx trouble processing javax/xml/parsers/DocumentBuilder.class: Conversion to Dalvik format failed with error 1 -- You received this message because you are subscribed to the

[android-developers] Re: Castor unmarshalling with Android's SAX DOM implementation throws: The 'namespace-prefix' feature is not supported while the 'namespaces' feature is enabled

2011-02-12 Thread Alexey Skor
Same here... My library does not work on Android because of this bug ( https://code.google.com/p/redmine-java-api/issues/detail?id=13). Any updates on this? I'm quite disappointed that Android uses something, which looks like Java, but is not really Java - so many incompatibilities... Sad. --

[android-developers] Preferences not save after restart app

2010-12-15 Thread Alexey Bychkov
Hello, I write application and use prefernces. When i change value on checkbox and restart my app value not save and checkbox has value by default. But it's in android 2.0,2.1,2.2... in android 1.6 it works correctly. What is the problem??? -- You received this message because you are subscribed

Re: [android-developers] R.java file of my project is deleted.......how to get it back

2010-07-29 Thread Alexey Vdovin
Menu [Project] -[Build Automatically] --- Best Regards Alexey -- 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

[android-developers] Access to AT command interface of GSM radio

2010-07-27 Thread Alexey Vdovin
Hi, I'm looking for any tricks to intercept USSD response from my carrier to receive my current balance. Do anybody know how to get access to AT command interface of GSM radio? --- Best Regards Alexey -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Is the EGL_CONTEXT_LOST error is occur on the Nexus One or other real devices ?

2010-07-15 Thread Alexey Kryshen
Hello! We are developing game for the Android platform using OpenGL ES for drawing. The EGL specification states that EGL_CONTEXT_LOST error may occur under some circumstances and there is constant in the Android API for this error code, but we have never seen that error on real Nexus One device

[android-developers] Re: EglSwapBuffers

2010-07-15 Thread Alexey Kryshen
compared to SwapBuffer in respect to (1) and (2) But in my opinion 5% is not the value to be bothered with. Best regards, Alexey On Jul 15, 12:17 pm, HaMMeReD adamhamm...@gmail.com wrote: I noticed in the profiler that eglSwapBuffers is taking up about 5% of my time each frame in some opengl

[android-developers] Re: How to know if child activity exit by unexpected exception (onActivityResult() is not called)

2010-06-29 Thread Alexey Kryshen
On Jun 28, 7:37 pm, TreKing treking...@gmail.com wrote: On Wed, Jun 23, 2010 at 7:57 AM, Alexey Kryshen a.krys...@gmail.com wrote: If child activity started by the startActivityForResult() exit by unexpected exception the onActivityResult() is not called and I have no any ideas how can I

[android-developers] Change drawable for indeterminate progress bar

2010-06-29 Thread Alexey Volovoy
Hi all, i'm trying to change standard indeterminate progress bar from rotating wheel to sequence of 3 images ( dots ). What i have is a animation drawable defined as progress.xml : animation-list android:id=@+id/progress_animation android:oneshot=false

[android-developers] How to know if child activity exit by unexpected exception (onActivityResult() is not called)

2010-06-23 Thread Alexey Kryshen
Hello! I have faced with issue about startActivityForResult() and onActivityResult(). If child activity started by the startActivityForResult() exit by unexpected exception the onActivityResult() is not called and I have no any ideas how can I handle this to get application working in a fail-safe

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-23 Thread Alexey
That's too bad. I was also so hoping for ATT version. But it's a gift, can't complain. Still looking forward for my Nexus to arrive in BC. On Mar 23, 11:15 am, nloko neil.lokn...@gmail.com wrote: Ya, it looks to be the T-mobile version. FCC ID NM8PB99100 is what's on the box. Apparently, the

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-23 Thread Alexey
Received the Nexus 1 in BC, Canada. Too bad it's not ATT version to use with Rogers/Fido but I'm liking it and ready to write some cool new apps. Thank you Google, thankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyou... -- You received this message because you are subscribed to the

[android-developers] Need advice on UI control/feature implementation

2009-12-23 Thread Alexey Volovoy
Hi All , i have a requirement to have a control that visually is similar to the expandable list. However on the expansion of the section it should show something similar to the grid view. GridView should properly respond to itemclicks and should not be scrollable and expanded fully till the next

[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

[android-developers] Re: Shape with open border

2009-12-01 Thread Alexey Volovoy
Anybody figured this out yet ? I need same thing.. On Nov 16, 5:44 pm, Matthew Wardrop mister.ward...@gmail.com wrote: I too would like to know this. On Oct 23, 1:31 pm, junker37 junke...@gmail.com wrote: I am wondering how to do this as well.  Also, I can't seem to find where this is

[android-developers] weird issues with resources on Verizon Eris.

2009-11-17 Thread Alexey Volovoy
Hi all, i'll have more info tomorrow, once i'll have this device again, but i was shown very weird stuff today. We've updated app with hi-res graphics for the Droid ( only drawables ) around 4 days ago . Resources organized res drawable drawable-hdpi-v6 App was tested in working fine on devices

[android-developers] Re: Person using Sprint Hero can't see application?

2009-11-14 Thread Alexey Volovoy
Most of the Heros running 1.5 , although upgrade afaik is available. So minSdk should be 3 ( or you'll run into the same problem with CLIQ users ) target SDK should be 4 On Nov 14, 9:53 am, g1bb corymgibb...@gmail.com wrote: Hello, I have someone e-mailing me that they can't see my application

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-12 Thread Alexey Volovoy
How's your uses-sdk part of manifest looks like ? On Nov 12, 4:29 pm, Klaus Kartou kar...@gmail.com wrote: Can anyone enlighten me? :) It looks like our app doesnt show up on the market on HTC Tattoo. What else should we specify in the manifest? On Thu, Nov 12, 2009 at 4:01 PM, Klaus

[android-developers] Re: Unexpected Resumes Running Under 2.0

2009-11-11 Thread Alexey Volovoy
I have same issue cause by this line of code i onCreate(); iconView.setImageResource(R.drawable.mylogor); On Oct 29, 9:18 pm, Nmix nepean...@gmail.com wrote: Ok, I found it -- it's my bug. Mark, you were partly right, and that helped. It was related to the configuration. Here is the guilty

[android-developers] Android 2.0 setImageResource(R.drawable.my_icon)

2009-11-11 Thread Alexey Volovoy
hi all , not sure if it's a bug or i'm using that in the wrong place. If i have following line (s ) of code in onCreate () iconView.setImageResource(R.drawable.my_icon); And ONLY if my device(Droid) or emulator running 2.0 in landscape it cause activity go through lifecycle endlessly like

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] TelephonyManager getDeviceID() in 2.0

2009-10-27 Thread Alexey Volovoy
Hi All getDeviceID() and LineNumber1 return null in th 2.0 emulator. Anybody knows how to fake those ? --~--~-~--~~~---~--~~ 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] Android 2.0 Force close in contacts app

2009-10-27 Thread Alexey
When I launch Contacts app in the emulator for API level 5, then go to Menu - Accounts, I get exception. Anyone else see this. How to try new multiple Accounts feature? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] HTC Hero (Sense UI) in emulator

2009-10-27 Thread Alexey
Is there a way to get HTC Hero system image for the emulator? Sense UI has quite some changes to activities like Contacts. So intents to select Phone number (new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI) ) work differently from default Contacts app, and things like viewing Call Log ( new

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-19 Thread Alexey
On 16 окт, 20:10, Romain Guy romain...@google.com wrote: (it is a quote from sources ListView.java) and only in this case. Thus,  if number of elements wasn't changed, everything is ok. Thanks, Sergey. If you modify the adapter without changing the number of items it can also be bad.

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-19 Thread Alexey
the UI. On Oct 19, 2009 2:49 AM, Alexey goalstu...@gmail.com wrote: On 16 окт, 20:10, Romain Guy romain...@google.com wrote: (it is a quote from sources ListVi... Thanks, Sergey. If you modify the adapter without changing the number of items it can also be bad. It's just th... Ok, Romain

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-15 Thread Alexey
Romain, your answers are clear, but confusing. As I understood modifying adapter should be done in worker thread and only notifyDataSetChanged in UI thread. Now as I see the concept is different, but what if we need to add several hundred items into adapter, won't UI thread be in freeze for this

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-15 Thread Alexey
Romain, one more question. Is this rule applicable for adding/removing elements from adapter (in other words - changing number of elements in ListView) or also when changing content of elements? On 15 окт, 16:31, Alexey goalstu...@gmail.com wrote: Romain, your answers are clear, but confusing

[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: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
...@commonsware.com wrote: Alexey Volovoy wrote: Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached headlines. And once a 3 hours or so - pull new ones. Update are scheduled from widget config file. Everything seems to be working, except I

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
...@commonsware.com wrote: Alexey Volovoy wrote: Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached headlines. And once a 3 hours or so - pull new ones. Update are scheduled from widget config file. Everything seems to be working, except I

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
At this moment no - but in new version i've provided ability to refresh content on demand. hopefully it'll solve complains problem On Jul 31, 9:15 am, String sterling.ud...@googlemail.com wrote: On Jul 31, 2:46 pm, Alexey Volovoy avolo...@gmail.com wrote: Rationale behind frequent updates

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
At this moment no - but in new version i've provided ability to refresh content on demand. hopefully it'll solve complains problem On Jul 31, 9:15 am, String sterling.ud...@googlemail.com wrote: On Jul 31, 2:46 pm, Alexey Volovoy avolo...@gmail.com wrote: Rationale behind frequent updates

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
At this moment no - but in new version i've provided ability to refresh content on demand. hopefully it'll solve complains problem On Jul 31, 9:15 am, String sterling.ud...@googlemail.com wrote: On Jul 31, 2:46 pm, Alexey Volovoy avolo...@gmail.com wrote: Rationale behind frequent updates

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
android:resource=@xml/widget_news / /receiver Strangely i don't receive SCREEN_OFF/SCREEN_ON in my @Override public void onReceive(Context context, Intent intent) { } On Jul 29, 5:20 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Hm.. let's say i'm not going

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
Oh man.. that not going to fly .. I can't do it from the service, because service runs like for a second to update the widget and stopSelf(). So if i register something onStart() i'd have to unregister that onDestroy(). Therefore to actually catch that event while service is running becomes kind

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
is there anyway to get to the state of the phone/screen without listening to broadcasts ? --~--~-~--~~~---~--~~ 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: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
. If it goes a sleep i don't need to do anything. Well after putting devices to sleep i still see updates. It's obviously i'm doing something wrong but have no idea what exactly.. On Jun 22, 9:09 pm, Alexey Volovoy avolo...@gmail.com wrote: Skip the work is not a really good option in my case. I have

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
I see it the logs of course. Every 30 sec it's starting the service as it should if it's not asleep. On Jul 29, 2:35 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Well.. i've tried to use alarm manager like: AlarmManager alarmManager = (AlarmManager)getSystemService

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
the trick. On Jul 29, 2:49 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: I see it the logs of course. Every 30 sec it's starting the service as it should if it's not asleep. Are you holding a WakeLock anywhere? Is anything else perhaps keeping the device/emulator awake

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
awake.  There are also often things that will wake up the device in the background that can allow your own alarm to go off. On Wed, Jul 29, 2009 at 1:06 PM, Alexey Volovoy avolo...@gmail.com wrote: I don't set any WakeLocks . So yes it's seems to be something is preventing device to go

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
. On Jul 29, 5:08 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Thanks for reply Dianne - my worry is that 30 sec interval for update is not enough to let device fall asleep and my updates basically prevent that. I've tried to disconnect device for an hour or so and it's

[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] Bitmap memory leaks with onClick...

2009-07-13 Thread Alexey Volovoy
Hi All i have strange memory leak with Bitmaps. First what i have - an activity that based on the workspace view from Launcher ( 3 screens current prev + next ) . This layout is supplied with adapter , so then i flipping left/right it loads next view. The views that adapter is providing is an

[android-developers] Re: Error on SharedPreferences for AppWidget

2009-07-13 Thread Alexey Volovoy
I think it's an issue with exiting config activity before saving widget settings. Put some logging around create/delete widget and in the service and see how many widgets you're ended up getting while rotating screen Log.d(TAG, appWidgetId= + appWidgetId); You can put some logging around

[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: loop through strings.xml

2009-07-02 Thread Alexey Volovoy
I didn't check if you'll have an access to that file. If you do - then you can parse it ( SAX ). But WHY ? On Jul 1, 11:41 pm, Josh joshdo...@gmail.com wrote: Is there a way to loop through the values of strings.xml? --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Theme.Dialog Activity and Context Menu

2009-07-01 Thread Alexey Volovoy
bump ? On Jun 22, 8:59 am, Alexey Volovoy avolo...@gmail.com wrote: Hi All , i have dialog style activity android:theme=@android:style/Theme.Dialog When i attachedcontextmenuto it         @Override         public void onCreate(Bundle savedInstanceState) {                 super.onCreate

[android-developers] Re: Theme.Dialog Activity and Context Menu

2009-07-01 Thread Alexey Volovoy
thanks for reply Dianne. On Jul 1, 11:20 am, Dianne Hackborn hack...@android.com wrote: The current platform doesn't support menus on non-fullscreen windows, sorry. On Wed, Jul 1, 2009 at 8:31 AM, Alexey Volovoy avolo...@gmail.com wrote: bump ? On Jun 22, 8:59 am, Alexey Volovoy avolo

[android-developers] Theme.Dialog Activity and Context Menu

2009-06-22 Thread Alexey Volovoy
Hi All , i have dialog style activity android:theme=@android:style/Theme.Dialog When i attached context menu to it @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);

[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

[android-developers] Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached headlines. And once a 3 hours or so - pull new ones. Update are scheduled from widget config file. Everything seems to be working, except I don't want to running my updates which are simply

[android-developers] Re: Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
One sec.. you might be right - i think i have a dev setting on the phone that prevents it from sleeping .. On Jun 22, 4:31 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached

[android-developers] Re: Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
hm.. based on the logs from UpdateService onStart - it's still executing update after i've uchecked the setting. On Jun 22, 4:35 pm, Alexey Volovoy avolo...@gmail.com wrote: One sec.. you might be right - i think i have a dev setting on the phone that prevents it from sleeping .. On Jun 22

[android-developers] Re: Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
- setting it to 0 does the job. On Jun 22, 6:00 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: hm.. based on the  logs from UpdateService onStart - it's still executing update after i've uchecked the setting. That's odd. That means they must be using a WAKEUP form

[android-developers] Re: Problem with setExtra

2009-06-22 Thread Alexey Volovoy
logs ? On Jun 22, 9:24 pm, Will wbc...@gmail.com wrote: Sorry, I wasn't clear. That putExtra call actually crashes the program, which is why I'm so stumped. Why would a putExtra() call crash the app? --~--~-~--~~~---~--~~ You received this message because you

[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: Relative layout and include tag

2009-06-15 Thread Alexey Volovoy
anyone ? --~--~-~--~~~---~--~~ 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] Relative layout and include tag

2009-06-14 Thread Alexey
Hi, I'm reworking some of my layouts to use Relative layout. I have some building blocks which i'd like to reuse. The problem i seems to have with the include of the layout and position other layouts out of this include. Example: RelativeLayout

[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] Widget(s) and Pending intent

2009-05-22 Thread Alexey
Hi All , i'm working on news feed widget ( looking at Sky as an example ) Everything seems to be working except when i have more than one Image and click on the widget i'm crashing. One widget is working fine and more than one widget are working fine too as long as i don't try to launch pending

  1   2   >