[android-developers] java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-01-23 Thread ad
I've problem with memory of the bitmaps, I'm creating a lot of bitmaps and then releasing them by recycle() and after many retries I get: java.lang.OutOfMemoryError: bitmap size exceeds VM budget How to get rid of this??? The problem is that even if i close the activity (call onDestroy()), in ne

[android-developers] Re: Documentation of MediaPlayer error codes

2009-01-23 Thread Dave Sparks
-1 is a general failure that usually comes from somewhere in OpenCore. Unfortunately a lot errors end up as -1 by the time they bubble up. -4 is PVMFErrNotSupported, which also seems to be a catch-all that usually occurs during prepare() and probably means that OpenCore found something it didn't

[android-developers] Re: Camera.java

2009-01-23 Thread Dave Sparks
If you are looking for the camera application source code, you'll find it on android.git.kernel.org in the packages/apps project. On Jan 23, 5:47 am, ANDREA P wrote: > There is Camera application in Android Emulotor... > > The application code is Camera.java but I don't know where is it

[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black

2009-01-23 Thread Dave Sparks
The camera service has no concept of foreground activity. It simply gives the camera to the app that requests it. If another app currently owns the camera, it is notified when the camera is stolen. I don't know all the rationale for that design decision. It's probably not the way I would have des

[android-developers] Re: RecentCallsListActivity: adding a contextual menu extra entry

2009-01-23 Thread A T
I believe this exact question was asked recently and it was said that this is not possible... I agree it would be nice, though. On Fri, Jan 23, 2009 at 7:55 AM, elDoudou wrote: > > Sorry to insist, but we thought that a very benefit of Android is to > re-use other Activities via Intents. Any one

[android-developers] Re: Preferences not saved *sometimes*

2009-01-23 Thread Sundog
I don't think that's a problem, I'm doing the same. On Jan 23, 9:17 am, A T wrote: > Hmm. I'm going to feel stupid if this is the problem: I'm reinstantiating > the preferences object and its editor every time I load them and save/commit > them (i.e. within the onResume and onPause methods). Is

[android-developers] Re: how do i set bank information for receiving 70% rev?

2009-01-23 Thread Sundog
The promise, reiterated Dec. 31, was "early first quarter" which by my reckoning ends the first of February, after which it's "mid first quarter". Just joking, but I really hope it's soon, I'm getting a LOT of complaints. On Jan 23, 5:43 am, Sena Gbeckor-Kove wrote: > There is currently no way t

[android-developers] Re: Preferences not saved *sometimes*

2009-01-23 Thread A T
Then again it doesn't make sense that the prefs remain persistent on my phone and presumably a lot of other people's phones, otherwise I would be getting more reports of this bug... On Fri, Jan 23, 2009 at 11:17 AM, A T wrote: > Hmm. I'm going to feel stupid if this is the problem: I'm reinsta

[android-developers] Re: Preferences not saved *sometimes*

2009-01-23 Thread A T
Hmm. I'm going to feel stupid if this is the problem: I'm reinstantiating the preferences object and its editor every time I load them and save/commit them (i.e. within the onResume and onPause methods). Is that not a good idea (aside from efficiency.. I mean in terms of the prefs being persistent)

[android-developers] Re: Loading a large list of contacts into a ListAdapter - making it responsive

2009-01-23 Thread Romain Guy
You have to do the query in a background thread yourself. ListActivity doesn't do any heavy work, only what's needed to fill the screen with data. On Fri, Jan 23, 2009 at 3:55 AM, Miguel Paraz wrote: > > Hi, > I need to load Contacts.Phones.CONTENT_URI and > Contacts.ContactMethods.CONTENT_EMAIL

[android-developers] Re: Documentation of MediaPlayer error codes

2009-01-23 Thread Allan Beaufour
On 20 Jan., 18:22, Dave Sparks wrote: > We are working on improving media player error codes for the next > major SDK release. Cool. Could you reveal what some of them are though until then? I'm getting -1 and -4 a lot, and -44 iirc occasionally. -- Allan Beaufour --~--~-~--~~--

[android-developers] WiFi service in emulator

2009-01-23 Thread corjuela
It is possible to use the wifi service with complete funcionality in the emulator or it only works in the device. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

[android-developers] File permission issue

2009-01-23 Thread corjuela
I'm trying to run from an app a script that it's located in the Data/ data/ directory and i'm having problems setting the exec. attribute for that file. Is there any trick in the implementation of the permission method??? or is there anything special at the moment of creating such file. Thank

[android-developers] I don't have the phone, how can I read reviews?

2009-01-23 Thread novice
Hello all, I posted a demo this morning, I got 2 downloads and 7 reviews (I don't know how thats possible) but how can I "read" the reviews if you don't have the phone? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Developer looking for project to join

2009-01-23 Thread Mark Murphy
DanAtAndroid wrote: > Hello, my name is Dan and I'm looking for an open source android > project to join. I've developed extremely basic android apps for the > emulator, but I am, or was, a full time java developer working on web > data gathering technology. I will be unemployed (planned) for the

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread Stanley.lei
It's so interesting! Thanks On Jan 23, 11:21 pm, Mark Murphy wrote: > Stanley.lei wrote: > > Hi all, > > > I met a very strange issue when I tested my application on G1 phone. > > > As usual method, I started a thread in an activity, and stopped the > > thread in the onDestroy method. But to my

[android-developers] Developer looking for project to join

2009-01-23 Thread DanAtAndroid
Hello, my name is Dan and I'm looking for an open source android project to join. I've developed extremely basic android apps for the emulator, but I am, or was, a full time java developer working on web data gathering technology. I will be unemployed (planned) for the next few months and would li

[android-developers] Re: When does my thread die?

2009-01-23 Thread g1bb
I realized this right after I posted, by running a bunch of other apps while my app was still running. It seems like 'setPersistent' on the activity should most likely prevent this. Any ideas? Thanks again. On Jan 23, 8:36 am, Torgny wrote: > Your application background process might get killed

[android-developers] Re: When does my thread die?

2009-01-23 Thread Torgny
Your application background process might get killed if you run another application that takes up a lot of memory, for instance the browser with several windows. As far as I understand it, the application in the foreground takes priority as far as memory and processing power goes over services and

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread Mark Murphy
Stanley.lei wrote: > Hi all, > > I met a very strange issue when I tested my application on G1 phone. > > As usual method, I started a thread in an activity, and stopped the > thread in the onDestroy method. But to my surprise, when I tried to > slide down the keypad, the onDestroy method was ca

[android-developers] Activity Issue on G1 phone

2009-01-23 Thread Stanley.lei
Hi all, I met a very strange issue when I tested my application on G1 phone. As usual method, I started a thread in an activity, and stopped the thread in the onDestroy method. But to my surprise, when I tried to slide down the keypad, the onDestroy method was called and the thread was stopped,

[android-developers] The issue in sendTextMessage

2009-01-23 Thread Stanley.lei
Hi all, I am trying to implement an application to send multiple messages one by one using the API function sendTextMessage. As described in SDK document, I created two PendingIntent as the last parameters: sentIntent and deliveryIntent to send back which message has been sent or delivered. But

[android-developers] When the dev phone will be available in Greece

2009-01-23 Thread tasos.klei...@gmail.com
I currently develop MonolithAndroid, a 3D game that uses openGL/ES. I develop my application on the emulator, but users that tried my application have experienced problems, like crashes and black screens not replicated on my emulator setup. Of course, the solution to this problem is to test my gam

[android-developers] how to create the object of intentfilter

2009-01-23 Thread Honest
I tried to use AlaramManager . First i used in the manifest file but it is not working well. now i want to use registerReceiver (). But can some one please tell me how can i use it. It requires the paramiter IntentFilter and BroadcastReceiver. Can some one please tell me how can i create the

[android-developers] Question on differing permission definitions

2009-01-23 Thread Peli
What happens if 2 applications (one that offers a permission, and one that uses it), define a permission in different ways? Application A: Application B: How are permissions enforced if the definitions given for the same permission MYPERMISSION differ in application A and application B? (i

[android-developers] When does my thread die?

2009-01-23 Thread g1bb
Hello, I've created an app that functions as a countdown timer via a thread, a wakelock, and a handler back to my activity. My question is, what will cause my thread to die, or app to not be running in memory anymore? I've had this happen once, and can't seem to recreate it again. Thanks in adva

[android-developers] Re: Screen Orientation change performance Question

2009-01-23 Thread android_soft
I add the following attribute to an activity tag in the manifest to handle orientation changes. You may want to check other events you want to handle. android:configChanges="orientation" --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-01-23 Thread moontain
Does anybody have any clues on how to fix this issue? 2009/1/21 moontain > Hi, > > I checked out cupcake branch yesterday and made the full build and sdk > successfully, and I also built the ADT 0.9 with the command > cupcake/development/tools/eclipse/scripts/build_server.sh on another Linux >

[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black

2009-01-23 Thread Pascal Merle
Yes, that would be great. I have been able to test my app running in foreground. In background will be much better. It sometimes just needs to take a snapshot so there is no problem with the battery. When implementing you have to take care about the locking mechanism. As you know the camera can

[android-developers] Re: Preferences not saved *sometimes*

2009-01-23 Thread android_soft
Well ,not sure if this will help, since there's no code snippetbut here goes 1. You can hold on to the SharedPreferences.Editor object... 2. edit as much as you want 3. In OnPause(), go ahead and commit the editor ... Though I prefer saving the edits as they change... On Jan 23, 5:13 pm

[android-developers] Re: start Activity without Manifest

2009-01-23 Thread Mark Murphy
AlexKar wrote: > Can I launch unregistered Activity directly from my provider? No. Any Activity class that is not listed in AndroidManifest.xml file cannot be used as an Activity by the Android framework, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden --

[android-developers] Re: two threads, the main closes the DB but the second is still running and need to use the DB!

2009-01-23 Thread Mark Murphy
polo777 wrote: > Dianne, > > Thanks a lot for your answers. Really helpful! > > Another question, just to make sure I understood what you meant: > >> The main UI thread isn't destroyed. Well, it is destroyed when the process >> is killed, and at that point it doesn't matter because the entire

[android-developers] Camera.java

2009-01-23 Thread ANDREA P
There is Camera application in Android Emulotor... The application code is Camera.java but I don't know where is it ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Time stamp in contacts.db

2009-01-23 Thread aditya marella
Hello Everyone, Is there a way know all the contacts added/edited/deleted from the contacts.db in a certain time interval? I don't see any timestamp column in the people table and although the timestamp is being populated into the voice_dialer_timestamp table(the last TRIGGER does this) for some

[android-developers] Re: RecentCallsListActivity: adding a contextual menu extra entry

2009-01-23 Thread elDoudou
Sorry to insist, but we thought that a very benefit of Android is to re-use other Activities via Intents. Any one has a hint, on how to add extra menu entry to the built-in "Contacts" Android application? Thank you for your understanding. Cheers, Édouard --~--~-~--~~~-

[android-developers] Re: how do i set bank information for receiving 70% rev?

2009-01-23 Thread Sena Gbeckor-Kove
There is currently no way to charge for apps. It's coming this quarter according to Google. S On 22 Jan 2009, at 19:42, kom wrote: > > I am about to pay $25 and set up my android market account by google > checkout/credit card. can anyone tell me what i need after that? > > my google checko

[android-developers] Re: String resource issue

2009-01-23 Thread Sena Gbeckor-Kove
I'm not sure I understand what you mean. Do you want multiple string resource files or do you want them totally external, ie downloaded? S On 22 Jan 2009, at 07:38, 川何 wrote: > > Hi, All > > In Android, resources are packaged into each ".apk" file. Now I'd > like separate string resources w

[android-developers] Webview's scroll bar

2009-01-23 Thread saagar.par...@gmail.com
I need to change webview's scrollbar color..how can I do that?? Changing it from xml does not work.. please help.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Re: Preferences not saved *sometimes*

2009-01-23 Thread A T
I'll give that a try. Will that really change anything, though? The variables shouldn't change, especialy if the app is in focus. And right now I save them onResume and onPause. On Thu, Jan 22, 2009 at 5:54 PM, Sundog wrote: > > Trying to post this again... Can you save your preferences when t

[android-developers] Loading a large list of contacts into a ListAdapter - making it responsive

2009-01-23 Thread Miguel Paraz
Hi, I need to load Contacts.Phones.CONTENT_URI and Contacts.ContactMethods.CONTENT_EMAIL_URI into a ListActivity. Since these are separate Content URIs, I have two separate cursors and can't construct a SimpleCursorAdapter for use in the ListActivity. The problem is that I have more than a thous

[android-developers] web view scroll bar effect

2009-01-23 Thread saagar.par...@gmail.com
Hello android developers, in my web view when i set scrollbars to none..it still shows the white track ..webview is a child of scrollview.i need a transparent track for webview..what should i do now???..please help --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-23 Thread blindfold
Not sure if it is related to your problem, but I'm reminded of the progress dialog problem discussed earlier at http://groups.google.com/group/android-developers/browse_thread/thread/1211b385358857b9/ On Jan 22, 11:30 pm, Stoyan Damov wrote: > Hi guys, ... > Has anyone experienced that and does

[android-developers] java.net.SocketException: unknown error - and yes, I have got permission.INTERNET set

2009-01-23 Thread Simon Brooke
[Right! I've fixed this myself, solution at the bottom - but I'm posting anyway in case anyone else is struggling with the same thing...] OK, I admit I'm new to Android, and could be making silly mistakes. I'm trying to do a simple XML remote procedure call using the org.xmlrpc.android library. W

[android-developers] Re: automatic start using Alaram Manager problem

2009-01-23 Thread Honest
I hope some one will reply me as early as possible. --~--~-~--~~~---~--~~ 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 fr

[android-developers] unable to delete sms from inbox

2009-01-23 Thread ipeg . student
Hi, I am trying to delete sms from inbox getContentResolver().delete(Uri.parse("content://sms/conversations/ 9"), null, null); the above statement does not work. gives error. Please help me --~--~-~--~~~---~--~~ You received this message because you are subs

[android-developers] Help!!!! How do I delete sms from inbox?

2009-01-23 Thread ipeg . student
I need to know the code for deleting an SMS from the inbox. Please help! --~--~-~--~~~---~--~~ 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@googlegro

[android-developers] Re: Emulator's /dev/ttyS0

2009-01-23 Thread David Turner
start the emulator with "emulator -qemu -serial " this will connect /dev/ttyS2 in the emulated system to your host device. On Thu, Jan 22, 2009 at 11:31 AM, coolio wrote: > > Hi, > > When I adb shell to emulator, I can see /dev/ttyS0. In my program, I > can open this device but the device is no

[android-developers] Re: Porting JMF - Native source code to android based

2009-01-23 Thread Paranoia
hi, can you tell me when android will publish it? On Jan 23, 3:48 pm, Dave Sparks wrote: > We do not support native code on Android at this time, but we have > plans to publish a native SDK soon. > > On Jan 22, 2:03 am, MRK wrote: > > > I am creating an Android application which uses the JMF (

[android-developers] Dial a USSD code

2009-01-23 Thread sabdart
Hi, When I dial a divert number directly from the handset it works. For example: **004*+668190099# sets up my call forwarding to the number +668190099 However, when I try to do the same thing from within an application I get a problem. The number displayed in the dialer is missing the ending #.

[android-developers] Re: How to create blur surface from android.view.Surface?

2009-01-23 Thread Dianne Hackborn
Sorry this is not available to applications. You can use this indirectly by setting the flag on your window to blur the screen behind it. On Thu, Jan 22, 2009 at 3:04 PM, Max R. wrote: > > Hi, how do I create blur surface from android.view.Surface? > > I found this flag but there is no construc

<    1   2