[android-developers] Re: Out of memory error in frame animation

2009-03-22 Thread iDeveloper
Try using jpegs instead of pngs. That'll reduce your memory usage quite a bit if you have to use these images and alpha is not a concern. On 23-Mar-09, at 11:22 AM, Romain Guy wrote: > > There's no other way, you are using too much memory, that's all. Note > that you might have a memory leak

[android-developers] Re: How to show my ProgressBar

2009-03-24 Thread iDeveloper
Make use of Handlers to tell the main thread when the other thread has stopped or completed its task. final Handler handler = new Handler() { @Override public void handleMessage(Message message) { //do something here. Will be done on main thread } }; Use

[android-developers] Re: Hide a progressbar?

2009-03-26 Thread iDeveloper
Thanks :) On 26-Mar-09, at 12:43 PM, for android wrote: > in the onCreate set the Progresbar visibilty > ProgressBar.setVisibilty(View.INVISIBLE) > > On Thu, Mar 26, 2009 at 12:34 PM, idev > wrote: > > Hi > > I have added an indeterminate progress bar to my view and I want it to > be display

[android-developers] Re: Save an mp3 from a remote site

2009-03-31 Thread iDeveloper
Thanks a ton. Didn't know android allowed saving to mp3 directly unlike an iphone. On 31-Mar-09, at 5:32 PM, MrChaz wrote: > > Sure, > Something like > > //Where the file comes from > URL sourceURL = new URL("address"); > URLConnection conn = sourceURL.openConnection(); > > InputStream inStr

[android-developers] Re: What is wrong with this layout

2009-03-04 Thread iDeveloper
Thanks. But AFAIK having a close button tag and closing the tag using /> is one and the same! On 04-Mar-09, at 10:10 PM, Stoyan Damov wrote: > > Not quite sure (haven't looked at the schema) but perhaps Button is an > empty element, so in your layout it should look like this: > >> >

[android-developers] Re: What is wrong with this layout

2009-03-05 Thread iDeveloper
Yeah that was it. COpied it into notepad and it showed some garbled up things. Thanks. On 06-Mar-09, at 4:10 AM, Marco Nelissen wrote: > > That layout compiles fine for me. Are you sure you don't have some > non-printable character in your xml file that is messing things up? > > > On Tue, M

[android-developers] Using custom jar files in Android app?

2009-03-05 Thread iDeveloper
Hi I have a third-party jar file which I would like to use in my Android application. Is it possible? Or are we restricted to using only those jar files which are provided with the SDK? Thanks. --~--~-~--~~~---~--~~ You received this message because you are sub

[android-developers] Go to Settings page from code?

2009-03-07 Thread iDeveloper
Hi I want to open the Settings-> Sound & Display-> Phone Ringtones screen from my application. How can I do that? Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Open-source thesaurus for Android

2009-10-11 Thread iDeveloper
Hi Are there any open-source thesaurus available for the Android phone? 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@

Re: [android-developers] Re: how to distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2013-01-20 Thread iDeveloper
Hi Mark, Any news on this issue ? Thanks, Dani On Monday, January 30, 2012 5:10:56 PM UTC+2, Mark Murphy (a Commons Guy) wrote: > > On Sun, Jan 29, 2012 at 9:37 PM, Doug > > wrote: > > On Jan 26, 2:33 pm, Mark Murphy wrote: > >> True, though I'm a bit hesitant to rely upon that behavior until

[android-developers] Suppressing USB permission Dialog

2013-01-26 Thread iDeveloper
http://stackoverflow.com/questions/12401027/suppressing-usb-permission-dialog How can I avoid the Usb permission dialog when running my app ? Is there any way to achieve this ? Is there a way to get the permission at install time, or one time when the app runs, and have it suppressed for the r

[android-developers] Re: Change custom title view of window at run time

2009-05-05 Thread iDeveloper
Here's the code Initially , when the activity is created, I set the title like this getWindow ().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.text_title); TextView databar = (TextView) findViewById(R.id.search_title_text); databar.setText(titleText); On a button click, I change the title

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
You can use Log.d for printing debug statements to the LogCat and Log.e for error statements. On 15-May-09, at 1:25 PM, Francesco Pace wrote: > Hi Mariano, thanks for your time. > Example : > > / CODE APPLICATION > System.out.println("Hello"); > foo1(); // Simple function > System.out.

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
formations on my android application.. > There is a particular UI? > > 2009/5/15 iDeveloper > You can use Log.d for printing debug statements to the LogCat and > Log.e for error statements. > > > > > On 15-May-09, at 1:25 PM, Francesco Pace wrote: >

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
gt; >public static final int icon=0x7f02; > >} > >public static final class id { > >public static final int LinearLayout01=0x7f05; > >public static final int TextView01=0x7f050001; > >} > >public static final

[android-developers] Re: Question for SDK developers - behavior of setFeatureInt

2009-05-15 Thread iDeveloper
Sob sob... Sorry to hurt you. Thats why I wanted to confirm before using this. I am already using custom title bar. What I ended up doing was I added the title bar once, then every time I want to change it, I just change the visibility to gone or visible depending on whether I want to show

[android-developers] Re: Emulator help

2009-05-18 Thread iDeveloper
The warning's got nothing to do with the emulator crash. I keep getting this warning the every time I run the emulator but then everything works fine on my mac. There might be some other issue. Look at the crash logs. If its a crash, they will be in Library/Logs/CrashReporter in your home d

[android-developers] Re: showDialog and dismissDialog behave strangely when changing orientation

2009-05-21 Thread iDeveloper
Not in the onCreate implementation. I am calling it on a button's click event. And the button is sort of a refresh button. So it might be pressed multiple times. On 21-May-09, at 7:57 PM, Streets Of Boston wrote: > > Where do you call the showDialog()? In the onCreate? > > (Note that there

[android-developers] Find whether any audio is currently playing

2009-05-21 Thread iDeveloper
Hi I am using a MediaPlayer instance in order to stream audio files from an Internet location. The audio player is in a separate activity. The user can select from a list of audio files and come to this activity which plays the audio. Now the user might go back to the previous activity (wit

[android-developers] Avoid phone locking

2009-05-21 Thread iDeveloper
Hi I have a slideshow function in my app and if the number of images is more, the phone locks (screen goes black) in the middle of the slideshow. How can I avoid this in my app? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscr

[android-developers] Re: Find whether any audio is currently playing

2009-05-22 Thread iDeveloper
again. On 22-May-09, at 9:45 PM, Rob Franz wrote: > You can detect whether audio is playing by getting a reference to > AudioManager and calling isMusicActive()... > > -Rob > > On Fri, May 22, 2009 at 11:04 AM, Marco Nelissen > wrote: > On Thu, May 21, 2009 at 9:41 PM

[android-developers] Re: Find whether any audio is currently playing

2009-05-25 Thread iDeveloper
use. At > that point you can just call methods on the player (like 'isPlaying > ()') without having to worry about where it is. > > Just a thought... > Doug > > On May 22, 9:57 pm, iDeveloper wrote: >> Thanks. >> >> And how do I stop the audio from playing if

[android-developers] Find whether trackball events ended or not

2009-05-28 Thread iDeveloper
Hi I want to move an image around the screen according to the trackball movement. I am able to capture the movements using the onTrackballEvent method. But this is being called for very small float values (I believe for each rotation?) of the trackball. Now as X and Y positions of views sho

[android-developers] Re: What's the best way to handle an task w/progress dialog on orientation change?

2009-05-28 Thread iDeveloper
Hi Robert Can you please post how you're using the service. I had the same problem and asked this question on 22 May but didn't get a reply. Using managed dialogs gives out errors too on orientation change. Thanks. On 29-May-09, at 9:23 AM, Robert Green wrote: > > I just tested using onl

[android-developers] Add menu item to the camera app?

2009-08-17 Thread iDeveloper
Hi I'd like to add a menu option to the Android camera app. Is this possible to do using the current SDK? I know I need to add an intent-filter tag in my activity to add my activity to an app's menu. But I don't know what I should put in the mime type. I want to be able to process the live

[android-developers] Re: What's the best way to handle an task w/progress dialog on orientation change?

2009-05-29 Thread iDeveloper
Check out this link - http://www.paxmodept.com/telesto/blogitem.htm?id=766 This works great without calling a service. On 30-May-09, at 2:03 AM, Mark Murphy wrote: > > Robert Green wrote: >> Are you trying to tell me that it's totally safe to throw stuff in >> static fields? > > I wouldn't go

[android-developers] layout_gravity does not center the control

2009-06-01 Thread iDeveloper
Hi I have a list, a web view and certain buttons on my activity's layout. I am trying to center the web view in the layout. The layout_gravity attribute that I use for the webview doesn't seem to work. It stays put aligned to the left of the screen when I view the activity. Can someone please

[android-developers] Re: layout_gravity does not center the control

2009-06-01 Thread iDeveloper
Thanks a lot. On 01-Jun-09, at 5:42 PM, Mark Murphy wrote: > > iDeveloper wrote: >> I have a list, a web view and certain buttons on my activity's >> layout. >> I am trying to center the web view in the layout. The layout_gravity >> attribute that I use f

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-02 Thread iDeveloper
Hi This is what I tried based on the suggestions in the below chain mail MyLocationListener myListener = new MyLocationListener(); LocationManager myManager = (LocationManager)getSystemService(LOCATION_SERVICE); myManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 0, myListene

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-02 Thread iDeveloper
s icon in the > notification space keeps blinkin then there's some prob... > u better move to a place where sunlight falls directly on ur > phone then it might work... it worked for me tat way... > but i dunno y... > > > On Tue, Jun 2, 2009 at 2:47 PM, iDeveloper > wrote:

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-02 Thread iDeveloper
Mark Murphy wrote: > > iDeveloper wrote: >> Hi >> >> This is what I tried based on the suggestions in the below chain mail >> >> MyLocationListener myListener = new MyLocationListener(); >> LocationManager myManager = >&g

[android-developers] Re: Strange MP3 Problem - Streaming MediaPlayer

2009-06-04 Thread iDeveloper
I am also facing this problem, but the mp3 I reference has a special character in the name. I am reading the URL from an XML and I don;t have any idea how to stop the special character from being converted to garbage when reading from it. On 04-Jun-09, at 2:05 PM, SurtaX wrote: > > bump

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-04 Thread iDeveloper
ing the same issue as iDeveloper. I tried playing around >> with >> the listener (putting 2, 200, or 2000) , but the thing is the map is >> not changing at all. >> >> Also, I am not getting the GPS icon on the phone screen. >> >> any luck? >> >> than

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-04 Thread iDeveloper
wrote: > > Correction: I meant I AM getting the GPS notification on the screen > (GPS is enabled from the phone) > > On Jun 4, 1:21 pm, Georgy wrote: >> I am getting the same issue as iDeveloper. I tried playing around >> with >> the listener (putting 2, 200, or 2000) , but t

[android-developers] Re: Custom Title Not Filling Whole Title Bar (help please)

2009-06-09 Thread iDeveloper
Check out this link http://code.google.com/p/android-misc-widgets/source/browse/#svn/ trunk/android-misc-widgets They make very good use of styles and themes to create a custom title bar. And it works great. On 09-Jun-09, at 9:50 PM, Rick wrote: > > I'm setting up an app to use a custom ti

[android-developers] Re: setting ringtones from raw files

2009-06-10 Thread iDeveloper
You will first have to copy it to the ringtones folder in your SD Card. Once that is done, you can use the uri of this ringtone to set it as the user's ringtone. Thats how Ringdroid does it. You can check out the ringdroid source here http://code.google.com/p/ringdroid/ On 11-Jun-09, at 8

[android-developers] Re: ClassNotFoundException

2009-06-11 Thread iDeveloper
Have you included the activity in your AndroidManifest file? On 11-Jun-09, at 10:01 PM, Mike Lanin wrote: > > I have a problem and cant realize a reason. I have > ClassNotFoundException when starting > Intent i = new Intent(EventInfo.this, AndricoMap.class); > i.putExtra("address", address); >

[android-developers] Re: my app crashes when switching to landscape mode

2009-06-17 Thread iDeveloper
Can you post some more details, like your onCreate implementation and the XML you are using. On 18-Jun-09, at 3:53 AM, nEx.Software wrote: > > Not the case for me. Only one layout file here. > > On Jun 17, 12:10 pm, MrSnowflake wrote: >> Maybe you have different layout files for landscape an

[android-developers] cannot show image selected by user

2009-06-19 Thread iDeveloper
Hi I am letting the user select an image from their Photo library and edit it using my app. The photo selection intent works great and I get the URI of the selected image, but as soon as I make a call to Media.getBitmap to get the selected image from the Uri, I get an OutOfMemory exception.