Re: [android-developers] Re: How do I know current run Activity name?

2010-08-10 Thread CaryWang
I write android demo I want use service put message current app,but servie don't know current app name.so I want that. 2010/8/11 Kumar Bibek > Why exactly would you want to do that? If you want to pass some > message from the service to the Activity, it should be done in a > different way. > >

Re: [android-developers] Re: About external Storage

2010-08-10 Thread Yves Liu
I found the post about Incredible. It queries images on both "EXTERNAL_CONTENT_URI" and "phoneStorage". That is a very good solution for this, but it is not finished. For example, if you have images on both phone storage and external SD card, and check the image full path will contain both locatio

[android-developers] Re: How do I know current run Activity name?

2010-08-10 Thread Kumar Bibek
Why exactly would you want to do that? If you want to pass some message from the service to the Activity, it should be done in a different way. Register your activity to listen to a particular kind of broadcast which the service would send with the message, and so whatever you need to do. -Kumar

[android-developers] Re: ERROR/LicenseValidator(4883): Signature verification failed.

2010-08-10 Thread Don
Hi All, I have also found that it I rename the failing app's package name (i.e. from com.mycompany.myapp to com.mycompany.myapp1), then the licensing works! Is there anyone here that can help me? Cheers, Donal On Aug 5, 9:51 am, Trevor Johns wrote: > Hi Donal, > If you're getting that error, it m

[android-developers] Re: Conversion to Dalvik format failed with error 1

2010-08-10 Thread Kumar Bibek
Are you trying to include some third party libraries? Or something else? -Kumar Bibek http://techdroid.kbeanie.com On Aug 11, 6:15 am, Hiko wrote: > Hi, > I faced to the serious problem when building my environment. > > I use below software for compiling. > > android SDK(android 2.1) > eclipse 3

[android-developers] Re: Content Encoding and decoding

2010-08-10 Thread Kumar Bibek
Can you give a sample of your encoded data? There are a few Encoding and Decoding classes on Android which you can directly use, depending upon your enconding. -Kumar Bibek http://techdroid.kbeanie.com On Aug 11, 11:22 am, raju bhusani wrote: > Hi All, > >    Can anyone tell me how to store the

[android-developers] Re: Routing audio input to bluetooth headset

2010-08-10 Thread Anzi
Any help ? On Aug 9, 2:51 pm, Anzi wrote: > Hi, > > With the given APIs i am not able route the audio to bluetooth sco > headset. Can you please figure what is missing in code. > > Note that Bluetooth headset is paired and connected before executing > the following code. > > AudioManager am = (Au

[android-developers] Content Encoding and decoding

2010-08-10 Thread raju bhusani
Hi All, Can anyone tell me how to store the encoded content which is in xml in to the string variable and after that i will display that in webview. please help me! -- Thanks & Regards B.NagaRaju Software Engineer 9966990732 WWW.arijasoft.com -- You received this message because you are sub

Re: [android-developers] AsyncTask and UI activity

2010-08-10 Thread raju bhusani
When doing the Asy Task on InBackground method you can do the restore process and put the user in wait by showing progress dialog in PreExecute and dissmis it in post..! On Tue, Aug 10, 2010 at 1:30 AM, Kim D. wrote: > Hi all, > > I know this is not how an async task should behave but my

[android-developers] Re: Getting list of all resources or assets in my APK

2010-08-10 Thread Sarwar Erfan
Hi, Does not the list(String path) method in AssetManager work for you? Look here: http://stackoverflow.com/questions/1495585/how-can-i-get-a-directory-listing-of-resources-from-my-android-app Regards Sarwar Erfan On Aug 11, 11:00 am, Vibhor Mahajan wrote: > Hello All, > > I am trying to get l

[android-developers] How do I know current run Activity name?

2010-08-10 Thread CaryWang
I have Service,Sometimes current run Activity work in background I don't want to know. I want to know current work interface Activity name? -- Cary -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: Record audio problem on the LG Ally

2010-08-10 Thread Open
I am having a similar problem with one of my apps. On all other phones I am able to record using MediaRecorder, but on the LG Ally users are reporting crashes. Did you solve this issue? On Aug 2, 10:56 am, skooter500 wrote: > Giampaolo > > Thanks for yoru reply, but that's definitely not the pr

[android-developers] Re: Android Updater SDK (Manager) problem trought proxy

2010-08-10 Thread Bob Kerns
If you need PCI-compliance, IMO, you should be placing the data and operations involved within their own network, and requiring the affected data to stay within those bounds. Software development should occur outside those boundaries. This avoids screwing up the entire company's communications AND

Re: [android-developers] Re: Location from cell site or from Triangulation

2010-08-10 Thread Ajmer singh
Hi Coryat Thanks for your reply.However can you please let me know how we can do that in android i mean is there any code that you can send or a link to that code packet. On Wed, Aug 11, 2010 at 12:09 AM, Maps.Huge.Info (Maps API Guru) < cor...@gmail.com> wrote: > Yes, it can. > > -- > You rece

[android-developers] Getting list of all resources or assets in my APK

2010-08-10 Thread Vibhor Mahajan
Hello All, I am trying to get list of all raw resources or assets packaged in my APK. This is required because i have written code and i am generating APK's after changing only resources. So, I want to know how many resources exists in my APK. But i am not able to find any API from which I can ge

[android-developers] Re: Do we need to call System.gc() ?

2010-08-10 Thread Bob Kerns
This has been discussed a fair bit in the past, if you want to try to look for more details, but the basic issue is that there's a cascade effect... (This was a couple releases ago; it's possible it has been improved since). You call System.gc(). Some finalizers run. This enables other stuff to b

Re: [android-developers] Re: OpenSource REST Client for Android

2010-08-10 Thread Kevin Duffey
You can use HTTPClient very easily to make REST calls. That is what I use and its part of the Android platform. I am not sure if any others can comment on why/how restlet may be better.. I'd be interested to know as well. On Tue, Aug 10, 2010 at 9:01 PM, Streets Of Boston wrote: > I'm using REST

[android-developers] Re: Looper doubt

2010-08-10 Thread Bob Kerns
If you have to ask, you probably don't need it. It's used by other parts of the toolkit, such as the UI thread. That covers the vast majority of the times you'd want to use it. There are cases when doing your own threading when you need to know about its existence, but those are rare. Certainly,

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-10 Thread sunrises
Hi Thanks for your suggestions, but I should kept the images within phone only again thanks to all On Aug 10, 12:07 pm, Alessandro Pellizzari wrote: > On Mon, 09 Aug 2010 23:02:23 -0700, sunrises wrote: > > I have got the solution please refer the link > >http://groups.google.com/group/androi

[android-developers] About Promo code concept in android

2010-08-10 Thread raju bhusani
Hi All, Can any one tell me, is there any promo code concept in android for our apps like in the iPhone. If yes please provide me the necessary information how to do that? -- Thanks & Regards B.NagaRaju Software Engineer 9966990732 WWW.arijasoft.com -- You received this message beca

[android-developers] Re: Do we need to call System.gc() ?

2010-08-10 Thread DanH
As I mentioned earlier, many JVMs disable System.gc by default, since the function is so often abused, and since doing unnecessary GCs is a major performance drag. When inserting GC calls in your code you should be sensitive to this and use only the bare minimum necessary to achieve "correct' (in

Re: [android-developers] Re: Possible to increase size of hit area for a View?

2010-08-10 Thread Connick
That'll do it, thanks! On Tue, Aug 10, 2010 at 11:56 PM, Sarwar Erfan wrote: > > > On Aug 11, 7:35 am, Connick wrote: > > Users are finding it difficult to register clicks on text links ...is > there > > any way I can increase the hit area for a given view? > > Hi, > You can consider this: > >

[android-developers] Re: Do we need to call System.gc() ?

2010-08-10 Thread DanH
It's kind of abusing the concept. There should be a separate way to clean up the image data (and it seems to me it should be self- policing, vs having to manually do this). But more obscene things have been done in many phones, certainly. On Aug 10, 5:16 pm, Streets Of Boston wrote: > I agree w

[android-developers] Re: OpenSource REST Client for Android

2010-08-10 Thread Streets Of Boston
I'm using RESTlet for my work's project. It works great. On Aug 10, 11:01 pm, Bob Kerns wrote: > I haven't written any code myself yet, though I've worked a bit with > code written by others: > > http://restlet.org > > There's specifically an Android edition. I'm not sure what > distinguishes the

[android-developers] Re: Possible to increase size of hit area for a View?

2010-08-10 Thread Sarwar Erfan
On Aug 11, 7:35 am, Connick wrote: > Users are finding it difficult to register clicks on text links ...is there > any way I can increase the hit area for a given view? Hi, You can consider this: http://developer.android.com/reference/android/view/TouchDelegate.html Regards Sarwar Erfan >

[android-developers] Re: Unable to create new Android project

2010-08-10 Thread Sarwar Erfan
On Aug 10, 9:44 am, "andy.android" wrote: > Hi All, > > I am using Eclipse and had downloaded all necessary updates. In "all necessary updates", did you include ADT? If not, then refer to this page: http://developer.android.com/sdk/eclipse-adt.html#installing After you install ADT and configure

Re: [android-developers] Possible to increase size of hit area for a View?

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 8:35 PM, Connick wrote: > Users are finding it difficult to register clicks on text links ...is > there any way I can increase the hit area for a given view? > Can't you just increase the text size ... ? Or add some padding so the overall view is bigger ... ? ---

[android-developers] Re: ZoomButtonsController problem

2010-08-10 Thread Tom
Sheesh, you are correct - it is right in front of my face! Thanks treking. On Aug 10, 5:41 pm, TreKing wrote: > On Mon, Aug 9, 2010 at 12:09 PM, Tom wrote: > > How do I unregister it?  The javadoc for ZoomButtonsController does not > > mention this. > > It mentions this, which I'm sure you've t

Re: [android-developers] Re: How to know the home launcher app packagename through programming?

2010-08-10 Thread manoj
HI Mark, thanks for the help. I implemented as you suggested. But it is giving the list of activities which contains those categories (DEFAULT, HOME, ...etc). But I want only one activity's package name (because only one home theme will be launched at a time). is there any otherway to get the hom

[android-developers] Help understanding ANR trace?

2010-08-10 Thread Moto
I have a ANR trace below but I'm not understanding what the issue is? Or where to start looking... Can someone help me? Cause ANR keyDispatchingTimedOut Trace: DALVIK THREADS: "main" prio=5 tid=1 NATIVE | group="main" sCount=1 dsCount=0 s=N obj=0x4001d8d0 self=0xccc8 | sysTid=5166 nice=0 sc

[android-developers] Openfire client

2010-08-10 Thread Tsolmon Narantsogt
Hello everybody How to create new account from Openfire client (such as android client) Can anyone help me ? -- Best Regards Tsolmon -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

Re: [android-developers] How to remove an activity from the navigation stack (without finishing)

2010-08-10 Thread Jenus Dong
Just override OnKeyup of back key up event, you could mimic to start your wanted activity, try it! Streets Of Boston show us a reasonable deal with the condition :). On Wed, Aug 11, 2010 at 8:16 AM, TreKing wrote: > On Tue, Aug 10, 2010 at 4:48 PM, Matt Quigley > wrote: > >> The problem with

[android-developers] Re: native UDP implementation for android

2010-08-10 Thread Bob Kerns
Typically, overflowing a buffer that's allocated on the stack. 2.1 may be better at detecting them than 1.5, or there could be other differences behind the difference in behavior. You might also get it by mis-declaring the number of arguments -- that is, the function takes N arguments but you nam

[android-developers] Re: OpenSource REST Client for Android

2010-08-10 Thread Bob Kerns
I haven't written any code myself yet, though I've worked a bit with code written by others: http://restlet.org There's specifically an Android edition. I'm not sure what distinguishes the different editions. On Aug 10, 7:32 am, SAMPATH KUMAR wrote: > Hi All, > Is there any Opensource REST / RE

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
Awesome, I was actually planning on running two seprate tests and see which gives me better performance, but I agree starting it up probably does use a good chunk of the battery but I guess it would depend on how often it is set to start up. I have a feeling that using the way it was intended to be

[android-developers] about XMPP (Openfire)

2010-08-10 Thread Tsolmon Narantsogt
Hello everybody How to create new account from android client Can anyone help me ? -- Best Regard Tsolmon -- 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 unsubsc

[android-developers] Re: POJO junit test in an Android project

2010-08-10 Thread doug
Thanks for the reply. Test cases derived from Android junit.framework.TestCase still need the emulator to run. But I should have known better. Dalvik is not a JVM so of course it would be impossible to test Android code with tools written for JVM because Java class engineering would not apply to

[android-developers] Re: Strange out of memory on bitmap but there is free heap space

2010-08-10 Thread Eric F
I had a similar problem. I have mostly solved it by switching to a cache of softreferences to the actual compressed image bytes (not the bitmap). And then I use bitmapfactory to create the fully exploded bitmap as needed. The phones have very little memory for how big their screens are. Do some ba

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Eric F
I am running CM6 RC2 on my Droid, and one thing I think about is whether or not the extra overhead per dalvik process of the JIT on the limited RAM of the device (only 256M for an hdpi device). So even though the rules about process killing may not have changed the device could get into low memory

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Dianne Hackborn
On Tue, Aug 10, 2010 at 5:41 PM, Streets Of Boston wrote: > I have no empirical evidence for it, but i did notice that non- > foreground background services were being killed more aggresively. But > i could be mistaken. > It could be more memory. Oh and also there is now a limit on the maximum n

[android-developers] Re: Are there any LDPI or HDPI devices running 1.5?

2010-08-10 Thread Greg
Thanks for elaborating : ) -Greg On Aug 10, 9:46 pm, Dianne Hackborn wrote: > Sorry yeah that is what I meant.  Prior to 1.6 the platform did not have any > APIs to deal correctly with different screen sizes, so it is impossible to > build a compatible device with such a screen on 1.5. > > It ca

[android-developers] HDPI and LDPI Emulators Not Identifying Correctly?

2010-08-10 Thread Greg
I have spent days trying to debug my method of screen compatibility and it turns out all my problems were just the emulator sporadically not deciding to use its set hw.lcd.density configuration. I have tried to manually edit the .ini files and refresh/resave them, but that had no effect. The emul

[android-developers] Re: start AlertDialog from AppWidgetProvider

2010-08-10 Thread Stephen
I got the solution. Probably you might already know but if anyone dont want your started activity display when user long press "home", put android:excludeFromRecents="true" for the activity. Otherwise, user might launched wrong activity from the recent list. Regards, Stephen On 8月9日, 上午10時08分, S

Re: [android-developers] Re: Are there any LDPI or HDPI devices running 1.5?

2010-08-10 Thread Dianne Hackborn
Sorry yeah that is what I meant. Prior to 1.6 the platform did not have any APIs to deal correctly with different screen sizes, so it is impossible to build a compatible device with such a screen on 1.5. It can be confusing because when talking about "what android devices there are," there are at

[android-developers] Possible to increase size of hit area for a View?

2010-08-10 Thread Connick
Users are finding it difficult to register clicks on text links ...is there any way I can increase the hit area for a given view? Thanks, Stace -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-de

Re: [android-developers] Reboot bug?

2010-08-10 Thread Romain Guy
This permission can only be granted to system apps or applications with the same signature as the default firmware. On Tue, Aug 10, 2010 at 6:17 PM, songs wrote: > I'm trying to use the new reboot function defined here: > > http://developer.android.com/reference/android/os/PowerManager.html#reboo

[android-developers] Reboot bug?

2010-08-10 Thread songs
I'm trying to use the new reboot function defined here: http://developer.android.com/reference/android/os/PowerManager.html#reboot%28java.lang.String%29 but I'm running into permissions issues even though I have the REBOOT permission in my manifest: The error I see in logcat is: E/AndroidRunti

[android-developers] Conversion to Dalvik format failed with error 1

2010-08-10 Thread Hiko
Hi, I faced to the serious problem when building my environment. I use below software for compiling. android SDK(android 2.1) eclipse 3.5.2 At first , this problem occurred on eclipse 3.6. I looked for the reason and countermeasure on the web. As the result, I re-installed eclipse 3.5.2. howeve

[android-developers] Re: Are there any LDPI or HDPI devices running 1.5?

2010-08-10 Thread Greg
@Diane I wasn't talking about the Android software definition of ldpi or hdpi I simply meant hardware devices that had lower or higher pixel density than mdpi. I said these features were not in 1.5 in my post. I guess my question was silly enough that it was confusing... Thanks both of you, that

Re: [android-developers] Re: ZoomButtonsController example

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 5:38 PM, Tom wrote: > No one knows of any useful examples for ZoomButtonsController??? > If you've searched online and not found anything and no one has responded, then I guess not ... --

Re: [android-developers] ZoomButtonsController problem

2010-08-10 Thread TreKing
On Mon, Aug 9, 2010 at 12:09 PM, Tom wrote: > How do I unregister it? The javadoc for ZoomButtonsController does not > mention this. > It mentions this, which I'm sure you've tried: "If you are using this with a custom View, please call setVisible(false)

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Streets Of Boston
:) I have no empirical evidence for it, but i did notice that non- foreground background services were being killed more aggresively. But i could be mistaken. On Aug 10, 8:07 pm, Dianne Hackborn wrote: > On Tue, Aug 10, 2010 at 3:11 PM, Streets Of Boston > wrote: > > > Froyo is much more aggress

Re: [android-developers] With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 4:56 PM, Greg Siano wrote: > Is there anything I can do to stop this? You can post some actual information that explains what you're doing so people can actually help you. -

Re: [android-developers] Re: Multiple calls to SimpleCursorAdapater#bindView

2010-08-10 Thread Mark Murphy
On Tue, Aug 10, 2010 at 8:25 PM, Open wrote: > I'm seeing the same thing and wondering the same. In my case I'm > fetching an internet resource in setViewValues so calling it three > times is very expensive. Do not do network I/O on the main application thread. Do that work in an AsyncTask. >> I

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 4:40 PM, Tommy wrote: > So if I were to set requestLocationUpdates(String provider, 6, 0, > LocationListener listener, Looper looper) it would be the same on the batter > as if I were to set a timer for every 1 minute or whatever to call up the > GPS again? Yes, or b

Re: [android-developers] Re: Multiple calls to SimpleCursorAdapater#bindView

2010-08-10 Thread Romain Guy
That's probably because your ListView has a height set to wrap_content. Which is a bad idea. Also, there is absolutely NO guarantee that getView() will be called only once per item or in the right order. On Tue, Aug 10, 2010 at 5:25 PM, Open wrote: > I'm seeing the same thing and wondering the sa

[android-developers] Re: Multiple calls to SimpleCursorAdapater#bindView

2010-08-10 Thread Open
I'm seeing the same thing and wondering the same. In my case I'm fetching an internet resource in setViewValues so calling it three times is very expensive. On Jul 30, 3:39 pm, William Ferguson wrote: > Hi all, I have a ListView populated using a SimpleCursorAdapter that > has a ViewBinder, and

Re: [android-developers] How to remove an activity from the navigation stack (without finishing)

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 4:48 PM, Matt Quigley wrote: > The problem with using finish() is that I don't want the activity removed > from memory. > I'm utterly confused as to why you would need an Activity removed from the stack but remaining in memory ... -

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Greg Siano
Its not a force close, it just gets stopped by the system. On Tue, Aug 10, 2010 at 5:07 PM, Dianne Hackborn wrote: > On Tue, Aug 10, 2010 at 3:11 PM, Streets Of Boston < > flyingdutc...@gmail.com> wrote: > >> Froyo is much more aggressive in killing non-foreground services that >> older Android v

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Dianne Hackborn
On Tue, Aug 10, 2010 at 3:11 PM, Streets Of Boston wrote: > Froyo is much more aggressive in killing non-foreground services that > older Android versions. > It is? News to me! :) For the original poster -- if by "force close" you mean the app error dialog, the #1 thing to do is look at the sta

Re: [android-developers] With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Greg Siano
Its a sound playing in the background continuously. On Tue, Aug 10, 2010 at 3:12 PM, Tommy wrote: > What exactly are your running in the background? Is it something that run's > continuously or is it something that run ever X minutes? If its something > that runs every X minutes you could try us

Re: [android-developers] Are there any LDPI or HDPI devices running 1.5?

2010-08-10 Thread Dianne Hackborn
These features were introduced in 1.6. Such a device running 1.5 is by definition not a compatible device. On Tue, Aug 10, 2010 at 4:34 PM, Mark Murphy wrote: > On Tue, Aug 10, 2010 at 7:20 PM, Greg wrote: > > This is probably a dumb question, but I am making the assumption that > > there are n

[android-developers] On multi-accounts setting, LVL returns NOT_LICENSED.

2010-08-10 Thread magpad
Hi I was cheking my app implemented LVL to publish market. But I had some concern below before publishing. - APP_FOO * paid application * LVL implemented * uploaded to Amdroid Market * installed from local apk(This apk is same as uploaded on Market.) - ACCOUNT_1 * bought APP_FOO - ACCO

Re: [android-developers] Are there any LDPI or HDPI devices running 1.5?

2010-08-10 Thread Mark Murphy
On Tue, Aug 10, 2010 at 7:20 PM, Greg wrote: > This is probably a dumb question, but I am making the assumption that > there are not since 1.5 doesn't support resource qualifiers. The only supported devices for 1.5 are mdpi. There were some (e.g., original ARCHOS 5 Android tablet) that shipped wi

[android-developers] Are there any LDPI or HDPI devices running 1.5?

2010-08-10 Thread Greg
This is probably a dumb question, but I am making the assumption that there are not since 1.5 doesn't support resource qualifiers. -- 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@googl

[android-developers] Re: How safe is emailing a signed App apk?

2010-08-10 Thread Moto
When ever I get requests from china or korea to localize they always ask for strings.xml. That is all they need... So I suggest if you haven't start putting al your strings in an strings.xml file :) First time sucks but there after is good practice :) -Moto On Aug 10, 2:47 pm, Rootko wrote:

Re: [android-developers] Eclipse problems

2010-08-10 Thread georges pierre
Thank you very mutch adal for your answer ! Thanks :) 2010/8/9 Adal > Could it be that you've tried to run with an xml file open an with focus? > > If it's the case, delete the extra .xml file that eclipse have created, > then go to problems, and "delete the problem". > > On Mon, Aug 9, 2010 at

[android-developers] Re: ZoomButtonsController example

2010-08-10 Thread Tom
No one knows of any useful examples for ZoomButtonsController??? On Aug 9, 9:17 am, Tom wrote: > Could someone please refer me to a reasonably complete example that > shows how to create and destroy aZoomButtonsController- I have been > unable to find anything.  Thanks, Tom -- You received this

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
Yeah I completly agree, I plan on putting that option in plus options on how often to track so they can choose what they want. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Frank Weiss Sent: Tuesday, August 10, 2010 6

[android-developers] Re: Strange out of memory on bitmap but there is free heap space

2010-08-10 Thread Streets Of Boston
If the user has a class 6 SD-card, the sd-card is faster than the on- board phone-storage in many cases. In my app, i'm using memory (RAM) as the main cache (fastest) and the SD-card as a backup cache (slower). Network loading is usually much slower than either of them. But if you always have the

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Frank Weiss
It may also be good practice to give the user the option to turn GPS off for your application. That is, when the option is off, your application removes location updates. The idea is that the user can still use your application, but can control the battery usage. Of course, in this case, the user

[android-developers] Re: Do we need to call System.gc() ?

2010-08-10 Thread Streets Of Boston
I agree with you, but since the dalvik-vm does not 'see' the raw binary image data in Bitmaps, it may not kick of the garbage collector when process memory gets low. Calling System.gc() explicitly does work- around this problem and it seems to work, in my experience. On Aug 10, 4:43 pm, DanH wro

[android-developers] Re: How to remove an activity from the navigation stack (without finishing)

2010-08-10 Thread Streets Of Boston
Load the network data from a background thread or even a (background) service, not from your activity. For an even better user-experience, you may want to consider caching the data as well (if that's possible). On Aug 10, 5:48 pm, Matt Quigley wrote: > Let's say you have a TabActivity with activi

RE: [android-developers] With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Tommy
What exactly are your running in the background? Is it something that run's continuously or is it something that run ever X minutes? If its something that runs every X minutes you could try using AlaramManager. I'm not sure if this second way would work but on the onStop method you could restart th

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Streets Of Boston
Does your service issue a call to request it'll be run in the foreground? If so, look at this link: http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.html and look at the deprecated startForeground and stopForeground methods. Froyo is much more aggressive in killing

RE: RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
Everyone, Thank you all for your input,time, and suggestions. I figured out why I was having the issue as Kostya Vasilyev suggested I was creating a threading problem! It is always the small things that cause me the big issues. Again thanks to everyone who responded to this thread. As always th

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Costantinos Costa
Friend Tommy, I understand that your goal is to reduce energy consuption by reduce GPS connection needed energy . I believe and i did a little search about this that if you have a connection with the satellite and just don't transfer any data the energy consumption is smaller than turn off and tur

[android-developers] With the new Froyo update, my app is being killed instead of running in the background

2010-08-10 Thread Greg Siano
With the new Froyo update, my app is being killed instead of running in the background. Is there anything I can do to stop 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@google

RE: RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
O SHOOT! I wonder if your rightI'll give the handler or the RunOnUI thread a try once I get back to the office!!! Thanks for mentioning that !!! From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Tuesday, August 10, 2010

Re: RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Kostya Vasilyev
I wonder if this is a threading issue. Your code uses Timer to schedule the next time you request a location update. I believe it's a Java SDK class, and can invoke your runnable on its own thread. Have you tried using a Handler? It's an Android class, and will invoke your runnable on the UI threa

[android-developers] How to remove an activity from the navigation stack (without finishing)

2010-08-10 Thread Matt Quigley
Let's say you have a TabActivity with activities A1, A2, A3, and A4. When you click on the different tabs, no matter how many times you navigate between them, when you press the back key you leave the entire tab group, instead of navigating to a previous tab. My problem is, I am not using an actual

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
So if I were to set requestLocationUpdates(String provider, 6, 0, LocationListener listener, Looper looper) it would be the same on the batter as if I were to set a timer for every 1 minute or whatever to call up the GPS again? I just don't want it in constant communication with the GPS satelli

[android-developers] Re: Can I freely use the Android source?

2010-08-10 Thread kevin0228ca
ok thank you. After I see those cool auto-google stuff and reading through some of the links, I am thinking the answer is yes to my original question. On 10 Aug, 07:46, TreKing wrote: > On Tue, Aug 10, 2010 at 12:58 AM, kevin0228ca wrote: > > Can I freely use the Android source? > > http://tinyu

Re: [android-developers] Overlay a transparent bitmap on Camera

2010-08-10 Thread Pedro Teixeira
Thank you very much. Worked fine. The setAlpha also worked. At least on the simulator. Ill have to try on the device itself. thanks On Aug 10, 2010, at 6:34 PM, Mark Murphy wrote: On Tue, Aug 10, 2010 at 1:27 PM, Pedro Teixeira wrote: I'm passing a bitmap through a bundle to an activity whic

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread TreKing
> > On Tue, Aug 10, 2010 at 4:13 PM, Tommy wrote: > >> Is this something that I can't do in a MapView? >> > Sorry - I misread this, I think. You can certainly get GPS updates for a MapView (specifically a MapActivity). But it's not a function of the MapView itself, is what I mean. On Tue, Aug 10,

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Mark Murphy
On Tue, Aug 10, 2010 at 5:27 PM, Tommy wrote: > Ok, but when I do RequestLocationUpdates with a 5 minute or 1 mile parameter > the GPS signal stays on all the time(or at least the image stays up in the > task bar, and it kills my battery). it only turns off when I call the > RemoveUpdates Correct

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Costantinos Costa
Dear Tommy, The function requestLocationUpdates is offering the utility to set the interval time for gps to collect a location requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener, Looper looper) You can see more details at: http://developer.android.

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
Ok, but when I do RequestLocationUpdates with a 5 minute or 1 mile parameter the GPS signal stays on all the time(or at least the image stays up in the task bar, and it kills my battery). it only turns off when I call the RemoveUpdates From: android-developers@googlegroups.com [mailto:android-d

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 4:13 PM, Tommy wrote: > Is this something that I can't do in a MapView? > No. MapView is to view a map. It has no concept of GPS in and of itself. > Does the GPS have to be on all the time in order to work? > No. That's precisely what the parameters to requesetLocation

[android-developers] Re: Microsphone cannot be recorded on android emulator

2010-08-10 Thread aftershock
Sorry I forgot to mention that I tried that setting too and I have still a problem. -- 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, sen

[android-developers] Re: Microsphone cannot be recorded on android emulator

2010-08-10 Thread aftershock
Sorry I forgot to mention that I tried that setting too. It is not working for that either. On Aug 10, 5:36 pm, niko20 wrote: > Hi, > > The emulator only support 8Khz 16bit. > > -niko > > On Aug 9, 11:39 pm, aftershock wrote: > > > > > Hi, > > > A small program that I wrote cannot record the mic

[android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
Hi everyone, I am currently working with the MapView. When the MapView is loaded I request a GPS fix, when I get the GPS fix I plot it on the MapView. After that I set a timer for 1 minute. When the timer Ticks I tell it to get my GPS location again and plot it but for some reason locationManager.

Re: [android-developers] Re: ANDROID_ID - when is it set?

2010-08-10 Thread Wayne Wenthin
There is an android id on the emulator now. It was added in the 2.1 update I think. I know it broke my code because I relied on NULL. On Tue, Aug 10, 2010 at 11:30 AM, Maps.Huge.Info (Maps API Guru) < cor...@gmail.com> wrote: > I don't know for certain but I believe the Android ID is set when t

[android-developers] Re: Do we need to call System.gc() ?

2010-08-10 Thread DanH
However, System.gc is so commonly abused that most implementations ignore it. On Aug 10, 3:28 pm, TreKing wrote: > On Tue, Aug 10, 2010 at 3:22 PM, Kumar Bibek wrote: > > I think calling System.gc() doesn't immediately trigger the > > garbage collection. So, relying on this all the time might no

Re: [android-developers] Re: Getting the updated array of data from a ListView/Adapter

2010-08-10 Thread Chris Stewart
I was able to get this to work. Now I'm facing a different issue with the list recycling and reloading the original data. Anyway, he's the "blah" method from above that works: private void blah() { int count = adapter.getCount(); ListView lv = (ListView)this.findViewById(R.id.lvList);

[android-developers] Re: Do we need to call System.gc() ?

2010-08-10 Thread DanH
I'll add that if you need to call System.gc to prevent an error then there's a bug in the JVM. (Not saying that there's no bug and hence no need to call it, just saying that, per the Java spec, the system should automatically do a GC before raising any "hard" out-of-heap error. The observations b

[android-developers] Re: how to close activity from service

2010-08-10 Thread Kumar Bibek
Generate a broadcast which your Activity is registered for. Depending on the message, do whatever you want. -Kumar Bibek http://techdroid.kbeanie.com On Aug 8, 1:24 pm, Jacky wrote: > Is it possible to close/finish activities in activity stack  from a > backgorund service. -- You received this

[android-developers] Re: Posting Toast From Worker Thread to UI Thread

2010-08-10 Thread Kumar Bibek
Do you get an error? Check your logcat for some hints. -Kumar Bibek http://techdroid.kbeanie.com On Aug 9, 8:30 am, Inder wrote: > Hi > I was trying to post a toast notification in case something goes wrong > in a worker thread. > I do this by putting a handler.post(funcFailed) in the catch bloc

Re: [android-developers] Re: Do we need to call System.gc() ?

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 3:22 PM, Kumar Bibek wrote: > I think calling System.gc() doesn't immediately trigger the > garbage collection. So, relying on this all the time might not be a good > idea. > http://download.oracle.com/javase/1.4.2/docs/api/java/lang/System.html#gc()

Re: [android-developers] Re: Strange out of memory on bitmap but there is free heap space

2010-08-10 Thread Davide
2010/8/10 Streets Of Boston : > The raw binary data of your image (e.g. RGB_565 or ARGB_) is not > part of the java heap. The dalvik-vm does not 'see' this heap. But the > raw binary is counted towards the total heap allowed for your app's > linux-process. That's where you see the discrepancy.

  1   2   3   >