[android-developers] Re: Activity Lifecycle

2009-07-03 Thread hmmm
What if you make your activity singleTop and then use onNewIntent() in the same activity such as onCreate { configure(); } onNewIntent { configure() } -Original Message- From: Daniel daniel.himmel...@googlemail.com To: Android Developers android-developers@googlegroups.com Date: Fri,

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-03 Thread hmmm
Really? It will be interesting to hear Google engineers comment on this. -Original Message- From: skink psk...@gmail.com To: Android Developers android-developers@googlegroups.com Date: Thu, 2 Jul 2009 23:57:41 -0700 (PDT) Subject: [android-developers] **never ever** use Toasts with

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-03 Thread hmmm
-developers] Re: **never ever** use Toasts with Activity context On Jul 3, 11:20 am, hmmm akul...@mail.ru wrote: Really? It will be interesting to hear Google engineers comment on this. well, its nothing wrong with Toasts per se, they are working as api docs describe, but when using wrong

[android-developers] do I always close() cursor explicitly?

2009-07-02 Thread hmmm
Hello, If I don't close() a cursor explicitly, relying on gc instead, may it, theoretically, cause any problems? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How to stop any currently played audio?

2009-07-02 Thread hmmm
Hi, I'm developing an application which plays some music files. I want to stop any other audio playback when my application starts playing the music. I've looked at the source code of the Music application and figured out how to to pause the Music application using the intent

[android-developers] Re: How to detect roaming event?

2009-03-02 Thread hmmm
oh yeah and I tried to use PhoneStateListener but to what event should I listen to then? I've tried several and none helps. - Original Message - From: hmmm To: android-developers@googlegroups.com Sent: Tuesday, March 03, 2009 12:36 AM Subject: [android-developers] How

[android-developers] Re: How to detect roaming event?

2009-03-02 Thread hmmm
noone knows? I tried NETWORK_SERVICE too and still can't find if there is such an event as 'in/out of roaming'. Maybe no such event? Do I then have to constantly poll to detect roaming condition? That would be strange. - Original Message - From: hmmm To: android-developers

[android-developers] Re: Is it possible to run ADB shell command from inside an Android app

2009-01-29 Thread hmmm
I don't know the answer but interested why would you want to do that? - Original Message - From: Anshul aaj...@gmail.com To: Android Developers android-developers@googlegroups.com Sent: Thursday, January 29, 2009 10:33 PM Subject: [android-developers] Is it possible to run ADB shell

[android-developers] Re: Want to have amr file still getting 3gp

2009-01-29 Thread hmmm
(MediaRecorder.OutputFormat.THREE_GPP). On Jan 29, 11:45 pm, hmmm akul...@mail.ru wrote: Hi, I want to record and AMR file using the standard Sound Recorder application. So I use Intent.ACTION_GET_CONTENT_TYPE and use Intent.setType(audio/amr). I can see then that the Sound Recorder does create a MediaStore

[android-developers] Re: How to handle ini file in android?

2009-01-29 Thread hmmm
You can place your ini file (or any file), say config,ini, in the 'raw' subdir of the 'res' dir and then use InputStream is = Context.getResources().openRawResource(R.raw.config) But then, I guess, there's no API in android dealing with ini files specifically so you then might want to create

[android-developers] Re: Android Challenge!! Can you correct this 1 line ?????

2009-01-26 Thread hmmm
And what does it print in the DDMS logcat after the crash? Usually this output is helpful. - Original Message - From: ipeg.stud...@gmail.com To: Android Developers android-developers@googlegroups.com Sent: Tuesday, January 27, 2009 9:30 AM Subject: [android-developers] Android

[android-developers] Images in a Context Menu - how to?

2009-01-20 Thread hmmm
Hello, Does someone know how to display images in an activity's context menu? I've tried setIcon(resId) and it doesn't work (although it does work in the Options Menu). Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Launching Multiple Activities?

2009-01-18 Thread hmmm
What if you pass some to that activity using Intent.putExtra() and then in the activity depending on the data you will decide whether to show a progress dialog or not? Or, if you want that progress dialog only once for loading what if you put a static field say private static boolean isLoaded

[android-developers] Re: Launching Multiple Activities?

2009-01-18 Thread hmmm
a cleaner way of doing this involving how activities are started and called from the stack. I'll keep an eye out. Thanks! On Jan 18, 2:06 pm, hmmm akul...@mail.ru wrote: What if you pass some to that activity using Intent.putExtra() and then in the activity depending on the data you will decide

[android-developers] Re: Why Android?

2009-01-16 Thread hmmm
I did some programming in Symbian and now I'm doing some Android stuff and for me Android is much easier in comparison with Symbian. This is because Symbian has some real weird limitations and some real annoying stuff to remember like those push/pop stack things and no exceptions in

[android-developers] Want to step into the SDK Android code - how to?

2009-01-16 Thread hmmm
Hello, I'm doing some debugging and thought it would be great if I could step into the Android SDK source code. However, I can't figure out how to setup whatever I should setup in Eclipse to achieve this. If anybody did the same before, could you, please, advise? Thank you!

[android-developers] Re: Want to step into the SDK Android code - how to?

2009-01-16 Thread hmmm
- From: Josh Dobbs To: android-developers@googlegroups.com Sent: Saturday, January 17, 2009 12:15 AM Subject: [android-developers] Re: Want to step into the SDK Android code - how to? I don't believe it's possible. On Fri, Jan 16, 2009 at 1:04 PM, hmmm akul...@mail.ru wrote

[android-developers] Re: Want to step into the SDK Android code - how to?

2009-01-16 Thread hmmm
to? These posts will show you how to setup the sources folder for Eclipse. http://blogs.zdnet.com/Burnette/?p=706 http://blog.michael-forster.de/2008/12/view-android-source-code-in-eclipse.html http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/ On Jan 16, 3:04 pm, hmmm

[android-developers] I fail to understand 'silent' priority in logcat

2009-01-16 Thread hmmm
In the for adb logcat command docs there is: S - Silent (highest priority, on which nothing is ever printed) I don't understand this priority, could you, possibly, help me to understand better? Thank you! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Accessing Files on the sdcard

2009-01-13 Thread hmmm
I guess it should be like File f(sdcard/myaudio.3gpp) then FileInputStream(f) or just FileInputStream(sdcard/myaudio.3gpp) -Original Message- From: Tez earlencefe...@gmail.com To: Android Developers android-developers@googlegroups.com Date: Tue, 13 Jan 2009 07:25:59 -0800 (PST)

[android-developers] Re: Accessing Files on the sdcard

2009-01-13 Thread hmmm
sorry, /sdcard/... -Original Message- From: hmmm akul...@mail.ru To: android-developers@googlegroups.com Date: Tue, 13 Jan 2009 18:35:23 +0300 Subject: [android-developers] Re: Accessing Files on the sdcard I guess it should be like File f(sdcard/myaudio.3gpp

[android-developers] Re: Eclipse plugin

2009-01-12 Thread hmmm
I guess, the plugin is here: http://code.google.com/intl/ru/android/adt_download.html As mentioned in the Google docs: If you are unable to download the ADT plugin through setting up a remote update site in Eclipse, you can download the ADT zip file and install it from your computer (archived

[android-developers] MockContext and any other Mock entities they are for what?

2009-01-12 Thread hmmm
Hi, MockContext and any other Mock entities they are for what? Could I please have an example of their usage? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Recording Audio

2009-01-11 Thread hmmm
To Record audio to a new file on sd card I did as follows and worked for me with emulator and mic. But don't know about buffers or sockets. And not sure if this is a good way but anyway works. To run emulator with sd card you do mksdcard 512M sdimg.iso then start emulator as 'emulator.exe

[android-developers] Re: Recording Audio

2009-01-11 Thread hmmm
environment. How can I setup the emulator for that? Thank you. On Sun, Jan 11, 2009 at 2:23 PM, hmmm akul...@mail.ru wrote: To Record audio to a new file on sd card I did as follows and worked for me with emulator and mic. But don't know about buffers or sockets. And not sure

[android-developers] Re: Animation image

2009-01-11 Thread hmmm
I thought Android does support animated gifs. I think I've seen the example in ApiDemos somewhere in their example they show animated_gif.gif from ApiDemos\res\drawable you could make a search in ApiDemos project to find out. - Original Message - From: Muthu Kumar K.

[android-developers] Re: what is the meaning of 'cross compiling'

2009-01-10 Thread hmmm
like, you compile in the windows environment to produce a program which runs on arm http://en.wikipedia.org/wiki/Cross-compiling Nothing much to think about - Original Message - From: lucius lucius.fo...@gmail.com To: Android Developers android-developers@googlegroups.com Sent:

[android-developers] Re: Change linear layout programmatically - problem

2009-01-10 Thread hmmm
Might it be because as stated in the docs for setLayoutParams() These supply parameters to the parent of this view specifying how it should be arranged. and in this case there's no parent of the view, so the attempted operation is not valid. You might want to try the same with some child view

[android-developers] Re: Change linear layout programmatically - problem

2009-01-10 Thread hmmm
I've tried but the same result. Now in DDMS log I have: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams - Original Message - From: Peli peli0...@googlemail.com To: Android Developers android-developers@googlegroups.com Sent: Sunday, January 11, 2009 3:39 AM

[android-developers] Anybody uses Positron on Windows?

2009-01-09 Thread hmmm
Hi, Does someone uses Positron on Windows for Android automated testing? If so, could you, please, refer me to the setup instructions? I've tried many and always fail. Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Anybody uses Positron on Windows?

2009-01-09 Thread hmmm
@googlegroups.com Sent: Friday, January 09, 2009 5:01 PM Subject: [android-developers] Re: Anybody uses Positron on Windows? You can refer to below link: http://code.google.com/p/autoandroid/wiki/Positron On Fri, Jan 9, 2009 at 9:35 PM, hmmm akul...@mail.ru wrote: Hi, Does

[android-developers] Re: Android, A Programmer's Guide by Jerome (J.F.) DiMarzio

2008-11-24 Thread hmmm
I agree that Jerome DiMarzio book is not particulary outstanding. He seems to explain evident things one can figure out herself and he is missing real necessary things at the same time things one can not really figure out in a reasonable time.. I have learned much from 'Android Essentials' by