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

2009-07-03 Thread hmmm
context > > > > On Jul 3, 11:20 am, hmmm 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 context they

[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 To: Android Developers Date: Thu, 2 Jul 2009 23:57:41 -0700 (PDT) Subject: [android-developers] **never ever** use Toasts with Activity context > > hi, > > take NotifyWithText api

[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 To: Android Developers Date: Fri, 3 Jul 2009 00:38:44 -0700 (PDT) Subject: [android-developers] Activ

[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 "com.android.mus

[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] Re: Accessing raw resource files with the filename as a String

2009-03-09 Thread hmmm
You can create files in your app directory, preferably in its 'files' subdirectory or anywhere on SD card using File class. Is that it? - Original Message - From: "Hayden" To: "Android Developers" Sent: Sunday, March 08, 2009 12:35 AM Subject: [android-developers] Accessing raw resour

[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: and

[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] H

[android-developers] How to detect roaming event?

2009-03-02 Thread hmmm
Hi developers, Is it possible to detect a roaming event programmatically? I am able to use TelephonyManager.isNetworkRoaming() to query roaming state. However, can I receive a notification exactly the moment the roaming state changes? I guess it should be possible because they display the R ui

[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 you

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

2009-01-29 Thread hmmm
REE_GPP). On Jan 29, 11:45 pm, "hmmm" 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 d

[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" To: "Android Developers" Sent: Thursday, January 29, 2009 10:33 PM Subject: [android-developers] Is it possible to run ADB shell command from inside an Android app > > I am tryi

[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: To: "Android Developers" Sent: Tuesday, January 27, 2009 9:30 AM Subject: [android-developers] Android Challenge!! Can you correct this 1 line ? > > Please hel

[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 th

[android-developers] Re: Media Player surprises me!

2009-01-18 Thread hmmm
Does it print something interesting in the logcat? - Original Message - From: "Ninad" To: "Android Developers" Sent: Saturday, January 17, 2009 8:58 PM Subject: [android-developers] Re: Media Player surprises me! Anyone can give answer to my problem! Help me!!! M still stuck on

[android-developers] Re: Launching Multiple Activities?

2009-01-18 Thread hmmm
s involving how activities are started and called from the stack. I'll keep an eye out. Thanks! On Jan 18, 2:06 pm, "hmmm" wrote: > 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

[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 a

[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 you

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

2009-01-16 Thread hmmm
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

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

2009-01-16 Thread hmmm
ssage - 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 wr

[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: 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 constructor

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

2009-01-13 Thread hmmm
sorry, "/sdcard/..." -Original Message----- From: hmmm 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: 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 To: Android Developers Date: Tue, 13 Jan 2009 07:25:59 -0800 (PST) Subject: [android-developers] Accessing Files on the sdcard

[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 gro

[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] 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." To: "Android D

[android-developers] Re: Recording Audio

2009-01-11 Thread hmmm
my development environment. How can I setup the emulator for that? Thank you. On Sun, Jan 11, 2009 at 2:23 PM, hmmm 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: 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 -sdca

[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" To: "Android Developers" Sent: Sunday, January 11, 2009 3:39 AM Subject: [android-developers] Re: Change linear layout pro

[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: 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" To: "Android Developers" Sent: Saturday, January 10, 2009 10:24 AM Subject: [android-develop

[android-developers] Re: Share data between activities queston

2009-01-09 Thread hmmm
Intent.putExtra() Intent.getExtra() will, probably, do - Original Message - From: "EvgenyV" To: "Android Developers" Sent: Friday, January 09, 2009 10:27 PM Subject: [android-developers] Share data between activities queston > > Hi! > > What is the best way to share data between di

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

2009-01-09 Thread hmmm
roid-developers@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 wrote: Hi, Do

[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 th

[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