[android-developers] Android Tablet Devlopment

2013-03-04 Thread Rahul Kaushik
Hi Team,

I am developing an hybrid app in android ,I want this app for my android
phone and tablet also which Build SDKAnd Minimum  Required SDK(API) i
should use

Thank's
RK

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] how to download several apps automatically from the play-store

2013-03-04 Thread BearTi
Hey,

how can i download several apps automatically from the play-store, like the 
top 10 of all categories.
Is there something like a crawler?

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Problem with gradle build version 0.3 and signing (signingConfigs)

2013-03-04 Thread Daniel Rindt
2013/3/1 Jonathan S xfsuno...@gmail.com

 Okay, I fixed this.

 signingConfigs {
 myConfig {
 storeFile file(signingStoreLocation)
 storePassword signingStorePassword
 keyAlias signingKeyAlias
 keyPassword signingKeyPassword
 }
 }

 buildTypes {
 release {
 signingConfig signingConfigs.myConfig

 }
 }


Thank you, that fixes my issue.
Daniel

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] how to download several apps automatically from the play-store

2013-03-04 Thread Kristopher Micinski
I hate to say it, but if you just google android market crawler
you'll find tons of material.

Whether that works with the most recent version of Google Play I'm not sure.

http://code.google.com/p/android-marketplace-crawler/
https://www.bionicspirit.com/blog/2011/12/15/crawling-the-android-marketplace-155200-apps.html

etc...

I'm not sure how many of those still work, but I'm guessing at least one does.

Kris

On Mon, Mar 4, 2013 at 5:50 AM, BearTi mlrti...@gmail.com wrote:
 Hey,

 how can i download several apps automatically from the play-store, like the
 top 10 of all categories.
 Is there something like a crawler?

 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Is there any way of knowing the screen size before rotation occurs?

2013-03-04 Thread AndroidCompile
Hi,
I am trying to figure out the screen size I will have in portrait and in 
landscape at the beginning of my app.
I can get the real display size using Display.getRealSize() and then 
calculate the navigation bar height in case there is one.
However, in devices with 600dp or less the navigation bar can have 
different heights (depending on orientation) and may even move to the right 
in landscape mode.
My app would needs to know these paramters when it begins (the app is 
connected to a cloud server that receives these dimensions when it connects 
- so I really need to know these before the app starts doing things).

My current solution is this:
id = res.getIdentifier(navigation_bar_height, dimen, android);
int navigation_bar_height = res.getDimensionPixelSize(id);

Although this works, it is never a good practice to use android's internal 
resources.
Is there any other way of knowing the dimensions of the screen in a 
different orientation BEFORE you rotate the device?

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] request.queue crashing

2013-03-04 Thread Marta Ribeiro
Hi!

I am trying an USB host connection, and so far I've managed to make 
connection with a interrupt endpoint. The problem lays on trying to read 
data from this endpoint. Everytime i call request.queue the application 
crash. The code is as folllows:

@Override
public void run() {
 // STARTS EXECUTING THE CONNECTION
 ByteBuffer buffer = ByteBuffer.allocate(5);
 // read data from the interrupt endpoint. For IN endpoints, 
// the endpoint will attempt to read the given number of bytes 
// into the specified buffer.
UsbRequest request = new UsbRequest();
 request.initialize( connection, ep );
 while (true){
 textView6.setVisibility(View.VISIBLE);
 // queue a request on the interrupt endpoint
request.queue(buffer, 5);
 // requestWait() a completed USB request, or null if an error occurred
if (connection.requestWait() == request) {
   byte[] data = buffer.array();
   String str  = new String( data);
   
   textView6.setText( str );
   
} else {
 Toast toast = Toast.makeText(getApplicationContext(), Request for data 
failed., Toast.LENGTH_SHORT);

 toast.show();
 
}
 }
 }

}

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Customizing progress Dialogs

2013-03-04 Thread bob
 

Also, you can subclass ProgressDialog and modify the onCreate method, using 
the current onCreate code as a reference.



On Tuesday, February 12, 2013 10:40:58 PM UTC-6, Ansh wrote:

 Hi Guys ,

 I want to customize the progress dialog for my app.I want to show only 
 spinner spinning without the black background.I have googled a lot but 
 nothings seems to be working.Please tell me how can i achieve that effect. 


-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Wifi signal strength

2013-03-04 Thread bob
 

Is there a way to programmatically strengthen a Wifi signal on an Android 
device?


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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Is there any way of knowing the screen size before rotation occurs?

2013-03-04 Thread Piren
If you dont want to base on pre-existing values you can just measure your 
existing views. This will need to happen AFTER the rotation... so your best 
bet is to refactor your code to work after rotations and not before (which 
is kind how it should be).

Why is doing it before the rotation is important to you?

On Monday, March 4, 2013 5:40:02 PM UTC+2, AndroidCompile wrote:

 Hi,
 I am trying to figure out the screen size I will have in portrait and in 
 landscape at the beginning of my app.
 I can get the real display size using Display.getRealSize() and then 
 calculate the navigation bar height in case there is one.
 However, in devices with 600dp or less the navigation bar can have 
 different heights (depending on orientation) and may even move to the right 
 in landscape mode.
 My app would needs to know these paramters when it begins (the app is 
 connected to a cloud server that receives these dimensions when it connects 
 - so I really need to know these before the app starts doing things).

 My current solution is this:
 id = res.getIdentifier(navigation_bar_height, dimen, 
 android);
 int navigation_bar_height = res.getDimensionPixelSize(id);

 Although this works, it is never a good practice to use android's internal 
 resources.
 Is there any other way of knowing the dimensions of the screen in a 
 different orientation BEFORE you rotate the device?


-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Wifi signal strength

2013-03-04 Thread TreKing
On Mon, Mar 4, 2013 at 10:31 AM, bob b...@coolfone.comze.com wrote:

 Is there a way to programmatically strengthen a Wifi signal on an Android
 device?


You're joking ... right?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: request.queue crashing

2013-03-04 Thread Marta Ribeiro
I just found out it crashes due to while (true). Can someone explain me why?

And if I want the application to receive code forever how do I do it?

On Monday, March 4, 2013 3:52:18 PM UTC, Marta Ribeiro wrote:

 Hi!

 I am trying an USB host connection, and so far I've managed to make 
 connection with a interrupt endpoint. The problem lays on trying to read 
 data from this endpoint. Everytime i call request.queue the application 
 crash. The code is as folllows:

 @Override
 public void run() {
  // STARTS EXECUTING THE CONNECTION
  ByteBuffer buffer = ByteBuffer.allocate(5);
  // read data from the interrupt endpoint. For IN endpoints, 
 // the endpoint will attempt to read the given number of bytes 
 // into the specified buffer.
 UsbRequest request = new UsbRequest();
  request.initialize( connection, ep );
  while (true){
  textView6.setVisibility(View.VISIBLE);
  // queue a request on the interrupt endpoint
 request.queue(buffer, 5);
  // requestWait() a completed USB request, or null if an error occurred
 if (connection.requestWait() == request) {
byte[] data = buffer.array();
String str  = new String( data);

textView6.setText( str );

 } else {
  Toast toast = Toast.makeText(getApplicationContext(), Request for data 
 failed., Toast.LENGTH_SHORT);
 
  toast.show();
  
 }
  }
  }

 }


-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Setting up APK Expansion files for update releases

2013-03-04 Thread jb
Hi,

I need some clarification on using APK Expansion files.

I have tested and will be releasing my Android app using APK Expansion 
files for the first time.

My app versionCode is 61.
My main expansion file is main.61.com.my.package.obb.
There is no patch file.

In planning ahead for my first update with expansion files, I'm a little 
unclear on the numbering for the expansion files and what I would load to 
Google Play.

My next releases versionCode will be 62.
There will be no changes to the main expansion file, but I need the main 
file. 
Do I use main.61.com.my.package.obb? 

There will be a patch file: patch.62.com.my.package.obb.

Any clarification will be most appreciated.

jb

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: ARM EABI v7a System Image

2013-03-04 Thread bob
 

I think it is for the emulator.  I think it enables you to create an *Android 
Virtual Device *with API 17 on it.




On Friday, March 1, 2013 2:03:37 PM UTC-6, bob wrote:

 Can someone help me understand what this update is:


 ARM EABI v7a System Image


 https://lh4.googleusercontent.com/-RJK_rDi0Ygw/UTEJizEjuqI/APE/0OrIPb5ouBo/s1600/sysimage.png


 I'm wondering exactly what is in that package.


 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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] problem in detecting samsung android tablet 2 P5100

2013-03-04 Thread |-NK-|
Hello,
I bought a samsung android tablet 2 P5100. I am developing an application and 
wanted to debug it on this tablet using eclipse.
However my device did not get detected as android device( saw it in the list of 
connected android device in command prompt).

I downloaded the samsung kies from samsung website but still no success.

Does anyone know why my device is not getting detected.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: problem in detecting samsung android tablet 2 P5100

2013-03-04 Thread Jonathan S
on Windows, you need ADB Drivers for your tablet.
on tablet, USB Debugging needs to be enabled.

On Monday, March 4, 2013 3:16:18 PM UTC-5, |-NK-| wrote:

 Hello,
 I bought a samsung android tablet 2 P5100. I am developing an application 
 and wanted to debug it on this tablet using eclipse.
 However my device did not get detected as android device( saw it in the 
 list of connected android device in command prompt).

 I downloaded the samsung kies from samsung website but still no success.

 Does anyone know why my device is not getting detected.

 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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] What is the maximum range allowed when querying CalendarContract.Instances?

2013-03-04 Thread littledot
When querying the `CalendarContracts.Instances` table, a time range in the 
form of milliseconds since epoch must be supplied.

What is the largest accepted value?

I've tried `Long.MAX_VALUE` and `(long) Integer.MAX_VALUE * 1000` but the 
returned 
results are incorrect.

(http://developer.android.com/guide/topics/providers/calendar-provider.html#query-instances
 
link for those who don't know what I am talking about)

Thank you for your time.=D

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] LocationManager.NETWORK_PROVIDER is not triggering onLocationChanged()

2013-03-04 Thread Karthik Rajaram
Hi, I'm currently working on a project where I need to find the user 
current location during start up of the application. I used 
LocationManager.NETWORK_PROVIDER as I'm not worried about the accuracy in 
street level. onLocationChanged() call back is not getting(on few devices 
mostly ICS and Above) called even though I have given permission in my 
application manifest file and also enabled WIFI and Mobile network Location 
under settings.

Please help me out in this issue.

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: What is the maximum range allowed when querying CalendarContract.Instances?

2013-03-04 Thread RichardC
What do you mean by incorrect?

The Calendar only syncs so many days forward and backward of today (set in 
preferences somewhere).

On Monday, March 4, 2013 9:10:35 PM UTC, littledot wrote:

 When querying the `CalendarContracts.Instances` table, a time range in the 
 form of milliseconds since epoch must be supplied.

 What is the largest accepted value?

 I've tried `Long.MAX_VALUE` and `(long) Integer.MAX_VALUE * 1000` but the 
 returned results are incorrect.

 (
 http://developer.android.com/guide/topics/providers/calendar-provider.html#query-instanceslink
  for those who don't know what I am talking about)

 Thank you for your time.=D


-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: What is the maximum range allowed when querying CalendarContract.Instances?

2013-03-04 Thread Chang Sheng-Dean 章聖典
Sorry for disturbing the peace around here.

I don't know what I did but suddenly everything became correct.

Before this, the dates of the events shown all dated pre-1970 for some
reason


On Mon, Mar 4, 2013 at 5:17 PM, RichardC richard.crit...@googlemail.comwrote:

 What do you mean by incorrect?

 The Calendar only syncs so many days forward and backward of today (set in
 preferences somewhere).


 On Monday, March 4, 2013 9:10:35 PM UTC, littledot wrote:

 When querying the `CalendarContracts.Instances` table, a time range in
 the form of milliseconds since epoch must be supplied.

 What is the largest accepted value?

 I've tried `Long.MAX_VALUE` and `(long) Integer.MAX_VALUE * 1000` but the
 returned results are incorrect.

 (http://developer.android.com/**guide/topics/providers/**
 calendar-provider.html#query-**instanceshttp://developer.android.com/guide/topics/providers/calendar-provider.html#query-instanceslink
  for those who don't know what I am talking about)

 Thank you for your time.=D

  --
 --
 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, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/YcNh7bM_8Yc/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Thank you for your time.

Yours truly,
Sheng-Dean Chang 章聖典
(s39ch...@uwaterloo.ca, littledot5...@gmail.com)

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] how to tell why Activity.onPause() is called

2013-03-04 Thread Latimerius
Hello,

I would like to be able to tell if Activity.onPause() was called because
the user is leaving the app, or simply because another Activity within the
same app is coming up.

I have a main Activity and a PreferenceActivity.  The main Activity needs
to handle onPause() differently depending on why it's called.  If the user
is leaving the app, it needs to stop helper threads, close various things
like analytics session, deal with GL, save data to SD card etc.  However,
if onPause() is just to display prefs most of that should happen, and a
bunch of other things should be done instead.

I'm wondering if there's a framework-supported way to handle this, or at
least an idiomatic solution, as in a (semi)standard way of managing an
Activity with heavy set-up and tear-down?

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: how to tell why Activity.onPause() is called

2013-03-04 Thread RichardC
http://developer.android.com/reference/android/app/Activity.html#isFinishing()

On Monday, March 4, 2013 11:14:29 PM UTC, latimerius wrote:

 Hello,

 I would like to be able to tell if Activity.onPause() was called because 
 the user is leaving the app, or simply because another Activity within the 
 same app is coming up.

 I have a main Activity and a PreferenceActivity.  The main Activity needs 
 to handle onPause() differently depending on why it's called.  If the user 
 is leaving the app, it needs to stop helper threads, close various things 
 like analytics session, deal with GL, save data to SD card etc.  However, 
 if onPause() is just to display prefs most of that should happen, and a 
 bunch of other things should be done instead.

 I'm wondering if there's a framework-supported way to handle this, or at 
 least an idiomatic solution, as in a (semi)standard way of managing an 
 Activity with heavy set-up and tear-down?
  

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: how to tell why Activity.onPause() is called

2013-03-04 Thread Lew
RichardC wrote:


 http://developer.android.com/reference/android/app/Activity.html#isFinishing()

  latimerius wrote:

 Hello,

 I would like to be able to tell if Activity.onPause() was called because 
 the user is leaving the app, or simply because another Activity within the 
 same app is coming up.

 I have a main Activity and a PreferenceActivity.  The main Activity needs 
 to handle onPause() differently depending on why it's called.  If the user 
 is leaving the app, it needs to stop helper threads, close various things 
 like analytics session, deal with GL, save data to SD card etc.  However, 
 if onPause() is just to display prefs most of that should happen, and a 
 bunch of other things should be done instead.

 I'm wondering if there's a framework-supported way to handle this, or at 
 least an idiomatic solution, as in a (semi)standard way of managing an 
 Activity with heavy set-up and tear-down?


Also:
onDestroy(): Called before the activity is destroyed. This is the final 
call that the activity will receive. 
It could be called either because the activity is finishing (someone called 
finish()http://developer.android.com/reference/android/app/Activity.html#finish()
 on it), or because 
the system is temporarily destroying this instance of the activity to save 
space. You can distinguish 
between these two scenarios with the 
isFinishing()http://developer.android.com/reference/android/app/Activity.html#isFinishing()
 method.
http://developer.android.com/guide/components/activities.html#Lifecycle 

This passage doesn't reveal that 'isFinishing()' is available during 
'onPause()', so it's good to have that 
Javadoc reference that RichardC shared.

-- 
Lew

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: two activities running at same time

2013-03-04 Thread Indicator Veritatis
No, Kristopher is right. You came into a free forum asking for free help 
without providing much detail, and then told the unpaid assistance they 
could see the app itself only if they paid a few bucks. That IS 
unprofessional. It certainly does not encourage people to help you.

On Saturday, March 2, 2013 3:57:46 PM UTC-8, ga...@deanblakely.com wrote:

 Kris
 It's a broadcast receiver it runs on receipt of an sms message and runs 
 for less than a second.  Just sends the phone location back to the sender.
  
 Re: trying to get money out of them?  I'm a capitalist.  I build 
 products and sell them for money.  Nobody has to buy them.  Sounds like you 
 are a little left of me.
  

 On Saturday, March 2, 2013 9:46:30 AM UTC-7, Kristopher Micinski wrote:

 Your app can't run unless you actually run it the first time, that's a 
 security feature.  (Yes, I know you're catching on boot.) 

 Doesn't it seem unprofessional to start out asking developers a 
 question and then trying to get money out of them? 

 Kris 

 On Sat, Mar 2, 2013 at 11:36 AM, ga...@deanblakely.com 
 ga...@deanblakely.com wrote: 
  Well, the app reliably works while other activities are running and 
 when the 
  phone is locked.  I will have it on Google Play next week and you can 
 try it 
  for yourselves (for a couple bucks).  It's called SignalBeacon.  You 
 send 
  the phone a text and you get back the phones location.  It doesn't have 
 to 
  be running.  In fact it never has to run.  It just has to be installed 
 on 
  the phone. 
  Gary 
  
  On Thursday, February 28, 2013 8:53:21 AM UTC-7, ga...@deanblakely.com 
  wrote: 
  
  I have an app with a main activity that has no visible interface 
  (android:theme=@android:style/Theme.NoDisplay).  The app is  started 
 by 
  receipt of an SMS message in a BroadCast activity which kicks off 
 another 
  activity (also no GUI) that does work and then sends an SMS message. 
  It 
  works very well; actually better than I had expected because it runs 
 even if 
  other apps are running a foreground activity. 
  
  Now I'm familiar with the Android Activity Lifecycle but I guess this 
  means that Android (I'm using 2.33) can run many activities at 
 once. 
  Even when I'm running a very active GPS tracking application that is 
 writing 
  layers on a mapview, my no-display app starts does his work and 
 sends the 
  results out on an SMS message.  The tracking app that was running 
 never even 
  blinked. 
  
  I don't have any problem (at least not programming related), I'm just 
  curious why this works. 
  Regards, 
  Gary 
  
  
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to android-d...@googlegroups.com 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 
  --- 
  You received this message because you are subscribed to the Google 
 Groups 
  Android Developers group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: two activities running at same time

2013-03-04 Thread Indicator Veritatis
A Service is a lot like an Activity w/o a UI, but the lifecycle is 
different: you have to override a rather different set of callbacks, for 
example. Especially for a bound service.The rules for keeping the hosting 
process alive are different, too. Services do not go on the Activity Stack 
either.

On Sunday, March 3, 2013 7:54:52 AM UTC-8, Kristopher Micinski wrote:

 Well, since a Service is just an Activity without a UI, you still get 
 the same behavior... 

 You shouldn't be running blocking operations in a service either (even 
 if they're scheduled a bit more nicely), it just coordinates things. 

 Kris 

 On Sun, Mar 3, 2013 at 3:47 AM, Piren gpi...@gmail.com javascript: 
 wrote: 
  i think everyone just forgot to mention the obvious and what you seemed 
 to 
  get wrong: 
  At no point what so ever were your activity and the other acitvity 
 running 
  at the same time. 
  
  Only one activity can be running (as in Resumed state) at a time. 
  Android 
  has one UI thread, if you're using it, someone else is waiting. 
  
  In your instance what happens is that your activity is launching, 
 pausing 
  the other app and then giving control back once it is done. It doesn't 
  matter that it has no UI. I've used such activities myself and they have 
 the 
  nasty habit of making the phone appear unresponsive - even without a UI, 
 it 
  is still the top app, thus whatever app is behind it, while appearing 
 to 
  run, will not recieve any input commands and most likely have the UI 
 itself 
  hault.  Since its only for a brief state, no one is the wiser. 
  
  Either way, you should take TreKing's suggestion, you should not be 
 using a 
  activity for this, rather a Service (which btw, is an activity without a 
 UI) 
  with a background thread. 
  
  
  On Sunday, March 3, 2013 2:00:25 AM UTC+2, ga...@deanblakely.com wrote: 
  
  TreKing.  You gressed it.  Broadcast receiver.  It's an activity that 
 runs 
  for about 600 - 700 mills. 
  On Saturday, March 2, 2013 11:05:23 AM UTC-7, TreKing wrote: 
  
  
  On Sat, Mar 2, 2013 at 10:36 AM, ga...@deanblakely.com 
  ga...@deanblakely.com wrote: 
  
  Well, the app reliably works while other activities are running and 
 when 
  the phone is locked. 
  
  
  This may be the case in your testing, but this is not guaranteed. Your 
  app can and will be killed at any point while it's in the background 
 to make 
  room for other components as the system requires. You will find this 
 out 
  quite quickly once you release the app users who manage to get into 
 these 
  type of edge-cases. 
  
  It sounds like you should be using a Service. 
  
  
  You send the phone a text and you get back the phones location.  It 
  doesn't have to be running.  In fact it never has to run.  It just 
 has to be 
  installed on the phone. 
  
  
  Obviously it does have to run at some point to do anything. Maybe it 
 runs 
  in response to a Broadcast instead of user interaction but it doesn't 
 just 
  magically work without actually running some code. 
  
  
  
 -
  

  TreKing - Chicago transit tracking app for Android-powered devices 
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 
  --- 
  You received this message because you are subscribed to the Google 
 Groups 
  Android Developers group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  


-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] custom tab

2013-03-04 Thread Greenhand
I have read about the TabHost (
http://developer.android.com/reference/android/widget/TabHost.html). 
However, I still do not know how to make a custom style tab like the 
attachment. Is there a way to do so?  

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


attachment: custom tab.png

[android-developers] Re: problem in detecting samsung android tablet 2 P5100

2013-03-04 Thread |-NK-|
I have enabled Usb debugging.
However i am not sure whether installing kies will install adb drivers.
So do u know where can I find adb drivers for that specific tablet.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: two activities running at same time

2013-03-04 Thread Kristopher Micinski
You're right, and I've corrected my explanation about services in
subsequent posts (with an eye to exactly this scheduling behavior!).

That was misworded, but even so I think people conflate activities vs.
services as having different threading semantics (they don't, things
both run on the main thread).  *This* is really what the OP fails to
get right in his app, regardless of it being run in a service,
broadcast receiver, activity.  The point is that you really shouldn't
be running blocking operations on a main thread.

Kris


On Mon, Mar 4, 2013 at 9:56 PM, Indicator Veritatis mej1...@yahoo.com wrote:
 A Service is a lot like an Activity w/o a UI, but the lifecycle is
 different: you have to override a rather different set of callbacks, for
 example. Especially for a bound service.The rules for keeping the hosting
 process alive are different, too. Services do not go on the Activity Stack
 either.


 On Sunday, March 3, 2013 7:54:52 AM UTC-8, Kristopher Micinski wrote:

 Well, since a Service is just an Activity without a UI, you still get
 the same behavior...

 You shouldn't be running blocking operations in a service either (even
 if they're scheduled a bit more nicely), it just coordinates things.

 Kris

 On Sun, Mar 3, 2013 at 3:47 AM, Piren gpi...@gmail.com wrote:
  i think everyone just forgot to mention the obvious and what you seemed
  to
  get wrong:
  At no point what so ever were your activity and the other acitvity
  running
  at the same time.
 
  Only one activity can be running (as in Resumed state) at a time.
  Android
  has one UI thread, if you're using it, someone else is waiting.
 
  In your instance what happens is that your activity is launching,
  pausing
  the other app and then giving control back once it is done. It doesn't
  matter that it has no UI. I've used such activities myself and they have
  the
  nasty habit of making the phone appear unresponsive - even without a UI,
  it
  is still the top app, thus whatever app is behind it, while appearing
  to
  run, will not recieve any input commands and most likely have the UI
  itself
  hault.  Since its only for a brief state, no one is the wiser.
 
  Either way, you should take TreKing's suggestion, you should not be
  using a
  activity for this, rather a Service (which btw, is an activity without a
  UI)
  with a background thread.
 
 
  On Sunday, March 3, 2013 2:00:25 AM UTC+2, ga...@deanblakely.com wrote:
 
  TreKing.  You gressed it.  Broadcast receiver.  It's an activity that
  runs
  for about 600 - 700 mills.
  On Saturday, March 2, 2013 11:05:23 AM UTC-7, TreKing wrote:
 
 
  On Sat, Mar 2, 2013 at 10:36 AM, ga...@deanblakely.com
  ga...@deanblakely.com wrote:
 
  Well, the app reliably works while other activities are running and
  when
  the phone is locked.
 
 
  This may be the case in your testing, but this is not guaranteed. Your
  app can and will be killed at any point while it's in the background
  to make
  room for other components as the system requires. You will find this
  out
  quite quickly once you release the app users who manage to get into
  these
  type of edge-cases.
 
  It sounds like you should be using a Service.
 
 
  You send the phone a text and you get back the phones location.  It
  doesn't have to be running.  In fact it never has to run.  It just
  has to be
  installed on the phone.
 
 
  Obviously it does have to run at some point to do anything. Maybe it
  runs
  in response to a Broadcast instead of user interaction but it doesn't
  just
  magically work without actually running some code.
 
 
 
  -
  TreKing - Chicago transit tracking app for Android-powered devices
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google
  Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

 --
 --
 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, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving 

[android-developers] Samsung S2 Support For Dynamic Layout

2013-03-04 Thread Krishna Mahadik
Hello Guys,

I have programmatically created a layout (on create) using Linear Layout
and Table Layout. This layout appears on normal phones and tablets, but
Samsung S2 does not support this layout, leading to crashing of application.

Has anyone come across such problem, or anyone can enlighten me as to why
this problem occur and solution for the same.

Thanks  Regards,
Krishna V. Mahadik

-- 
-- 
. \\\///
.   /\
.   | \\   // |
. ( | (.) (.) |)
--o00o--(_)--o00o-

Yesterday is not ours to recover, but
tomorrow is ours to win or to lose.

---ooo0---
.   (   )   0ooo
.\ (  (   )
. \_) ) /
.(_/

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] cost of view instantiation versus memory bloat

2013-03-04 Thread momo
I have a widget that potentially uses many Views.  In looking at the source 
for other view-intensive widgets (like ListView), I understand that it's a 
fairly computationally expensive process to instantiate Views.  I see 
they're recycling children - creating them on demand, then caching them, 
and re-using them with updated properties when one is required.

My concern is that in my case (with so many potential Views) that the cost 
of keeping references to them in memory might be worse than the cost of 
instantiating them.  I'm tracking the total number of Views in the cache 
and see it reach as much as 60-70 at times.

The requirement is such that I can't reduce the number of Views used.

When the number is as high as I've mentioned, is caching and recycling 
Views still a better prospect than new instantiation on-demand?  I 
believe that if I did not cache, the unused Views would be 
garbage-collected properly (there shouldn't be any references that I'm not 
catching).

TYIA.

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Is there any way of knowing the screen size before rotation occurs?

2013-03-04 Thread Android Compile
It is important since the cloud server I am working with needs to know the
layout I am using before I start my session.


On Mon, Mar 4, 2013 at 6:37 PM, Piren gpi...@gmail.com wrote:

 If you dont want to base on pre-existing values you can just measure your
 existing views. This will need to happen AFTER the rotation... so your best
 bet is to refactor your code to work after rotations and not before (which
 is kind how it should be).

 Why is doing it before the rotation is important to you?


 On Monday, March 4, 2013 5:40:02 PM UTC+2, AndroidCompile wrote:

 Hi,
 I am trying to figure out the screen size I will have in portrait and in
 landscape at the beginning of my app.
 I can get the real display size using Display.getRealSize() and then
 calculate the navigation bar height in case there is one.
 However, in devices with 600dp or less the navigation bar can have
 different heights (depending on orientation) and may even move to the right
 in landscape mode.
 My app would needs to know these paramters when it begins (the app is
 connected to a cloud server that receives these dimensions when it connects
 - so I really need to know these before the app starts doing things).

 My current solution is this:
 id = res.getIdentifier(navigation_**bar_height, dimen,
 android);
 int navigation_bar_height = res.getDimensionPixelSize(id);

 Although this works, it is never a good practice to use android's
 internal resources.
 Is there any other way of knowing the dimensions of the screen in a
 different orientation BEFORE you rotate the device?

  --
 --
 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, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/hnjklrR_IdU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: cost of view instantiation versus memory bloat

2013-03-04 Thread Piren
Your best bet is to just analyze your app memory and processing wise... see 
how long it takes you to initialize a view and how much memory they all 
use.. then find a proper balance between the two that makes sure your app 
is both responsive and without a risk of memory issues.

My guess - unless initializing your views is something very complicated 
that takes a while (which might mean you'll need to redesign them since 
they might not be done the best), re-using will be the proper way to go.

On Tuesday, March 5, 2013 6:57:24 AM UTC+2, momo wrote:

 I have a widget that potentially uses many Views.  In looking at the 
 source for other view-intensive widgets (like ListView), I understand that 
 it's a fairly computationally expensive process to instantiate Views.  I 
 see they're recycling children - creating them on demand, then caching 
 them, and re-using them with updated properties when one is required.

 My concern is that in my case (with so many potential Views) that the cost 
 of keeping references to them in memory might be worse than the cost of 
 instantiating them.  I'm tracking the total number of Views in the cache 
 and see it reach as much as 60-70 at times.

 The requirement is such that I can't reduce the number of Views used.

 When the number is as high as I've mentioned, is caching and recycling 
 Views still a better prospect than new instantiation on-demand?  I 
 believe that if I did not cache, the unused Views would be 
 garbage-collected properly (there shouldn't be any references that I'm not 
 catching).

 TYIA.


-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.