[android-developers] Re: Feedback Experiment active in the developer console

2010-05-20 Thread Kevin Gaudin

Maybe a date based activation ?

Kevin

On 20 mai, 02:55, Zsolt Vasvari zvasv...@gmail.com wrote:
 I am in Singapore and it appeared for me as well.  I was just thinking
 yesterday how incredible it was that I had never noticed it earlier.

 But how did it get added?  I didn't install any updates, nor am I on a
 plan where I would be receiving updates from the carrier.  Curious...

 On May 19, 10:10 pm, Kevin Gaudin kevin.gau...@gmail.com wrote:

  And the button appeared in the Force Close dialog.

  Kevin

  On May 19, 3:58 pm, TreKing treking...@gmail.com wrote:

   On Wed, May 19, 2010 at 8:54 AM, Kevin Gaudin 
   kevin.gau...@gmail.comwrote:

I know of two devices (including mine) where the report button
has appeared.

   Where, exactly?

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

   --
   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 
   athttp://groups.google.com/group/android-developers?hl=en

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en-Hide quoted text -

  - Show quoted text -

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] how to add a lisener to a image which in the overlay

2010-05-20 Thread 徐洪跃
hi.all,i want to add a listner to a image which in the overlay  so thata
dialog will exists   after i  click the image int the map, 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

[android-developers] Re: Buttons looking weird when they are too small

2010-05-20 Thread skink


On May 20, 3:03 am, Divkis divick.kish...@gmail.com wrote:
  On May 19, 11:24 pm, skink psk...@gmail.com wrote:

   when you use standard button drawables, they specify that extra
   margins you are talking about, see btn_default*.* fIles under your sdk
   root - btn_default.xml in particular which defines default Button
   drawable

  I did have a look earlier at the btn_default.xml files as you
  suggested earlier as well, but even there I don't seem to find any xml
  tag for margins. It only lists the various kind of button image to use
  for different states of the button.

 Just to be sure that I am on the same page as you, my btn_default.xml
 looks something like this, wherein I don't see any property for
 margins:


margins/paddings are defined in .9.png images, see for example in
PhotoShop or any bitmap drawing tool:

android:drawable=@drawable/btn_default_normal

and you will see 3 pixels of left/right margin and even more at the
bottom

pskink

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


[android-developers] Problem while passing aray list to next activity in widget application

2010-05-20 Thread sunita
 Hi all...

 I am trying to create app widget.In this widget I have added one
image button.If i click on this button i should pass list of object to
next activity.Before passing this list to activity I am converting it
to parceable list and adding it to bunddle and puting that bundle to
intent.This logic is working fine in android 1.6, but this is not
working in Android 2.1.
 In android 2.1. I am getting Null pointer excepion when I try to
access this list in next activity.
 To solve this problem I tried to pass only String data through
bundle,in next activity String is displaying properly,but when I try
to pass list,then only i am not getting list in next activity.
 Please give me suggestions for this 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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Signal strength icon in Android status bar - what does it represent and how?

2010-05-20 Thread Mathias Lin
I want to show a signal strength icon in my application with the same
logic as the icon is doing in the standard Android status bar. But I
am wondering, what exactly does this icon represent and what kind of
scale is it using?
Does it represent the gsm signal strength as of
signalStrength.getGsmSignalStrength();
?

As read in the Android docs, the range for the gsm signal strength is
0..31, but how is that reflected in the icon (if it actually reflects
the gsm signal strength, does it?)? The icon has 4 bars, and in my
case right now they're all filled even with an asu value of only 18
(when I check in the settings/phone status of my device / Nexus One
2.1). So it doesn't seem to be reflected proportional. I would expect
that with asu (that's the gsm signal strength, right?) of 18, it would
max. show 3 bars - but it shows full signal (4 bars).

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


RE: [android-developers] Problem while passing aray list to next activity in widget application

2010-05-20 Thread Tommy
Why not save the object to a global variable and access it in your next
activity? Something like

public class myArrayList extends Application{
private ArrayListWhatever myList;

public ArrayListWhatever getList(){
return myList;
}
public void setArrayList(ArrayListWhatever ArrayListFromActivity){
this.myList=ArrayListFromActivity;
}
}

((xmlName)this.getApplication()).getList(); and
((xmlName)this.getApplication()).setArrayList(yourArrayList);

hope this helps

you can set and get this by using: 
-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of sunita
Sent: Thursday, May 20, 2010 3:09 AM
To: Android Developers
Cc: sunita.mahadevkhil...@wipro.com
Subject: [android-developers] Problem while passing aray list to next
activity in widget application

 Hi all...

 I am trying to create app widget.In this widget I have added one
image button.If i click on this button i should pass list of object to
next activity.Before passing this list to activity I am converting it
to parceable list and adding it to bunddle and puting that bundle to
intent.This logic is working fine in android 1.6, but this is not
working in Android 2.1.
 In android 2.1. I am getting Null pointer excepion when I try to
access this list in next activity.
 To solve this problem I tried to pass only String data through
bundle,in next activity String is displaying properly,but when I try
to pass list,then only i am not getting list in next activity.
 Please give me suggestions for this 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, 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 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


[android-developers] Re: Is Google working on the Bluetooth bug? Any estimated date of completion?

2010-05-20 Thread frankentux
I updated my firmware to the latest available version from
http://samsung-firmwares.com and bluetooth spp (as checked with the
HxM heart rate monitor) worked out of the box.

Ciaran

On May 16, 7:01 pm, frankentux cfarrell1...@googlemail.com wrote:
 Dan,

 what is the build id that you mean? Can you elaborate on what the fix
 is?

 Ciaran

 On 14 Mai, 01:12, danraaka danra...@gmail.com wrote:

  Newer build sud fix this.

  -Dan

  On Mon, May 10, 2010 at 7:29 AM, frankentux 
  cfarrell1...@googlemail.comwrote:

   The same problem seems to be detailed here:
  http://forum.samdroid.net/threads/598
   Looks like SPP is completely broken on the i5700 - possibly because of
   the Broadcom BCM4325.
   On the positive side, that chip has a FM module :-)

   On May 3, 6:56 pm, frankentux cfarrell1...@googlemail.com wrote:
   http://stackoverflow.com/questions/2661932http://pastebin.org/199621

could also be interesting

On May 2, 2:32 am, DonFrench dcfre...@gmail.com wrote:

 Nexus One.  No experience with spica.

 On May 1, 6:35 am, frankentux cfarrell1...@googlemail.com wrote:

  My device is a i5700 Samsung spica. The stackoverflow links and the
  logcats i pasted to pastebin.com (again, see my last post above) all
  relate to the issue on the spica. Do you have a similar issue with a
  spica?

  On 1 Mai, 00:13, dan raaka danra...@gmail.com wrote:

   is the device being referred here Spica (i5700)?

   -Dan

   On Fri, Apr 30, 2010 at 12:10 PM, DonFrench dcfre...@gmail.com
   wrote:
I am not sure if it is the same issue but it sounds related.  My
   app
was eventually able to connect to the device I was having 
trouble
   with
but only after I manually unpaired it.  I never deliberately
   paired it
in the first place and I was never asked for a pin during the
   time it
was failing to connect.  The device had apparently been
   automatically
paired by Android when it was first detected, as are other 
nearby
laptops and phones and PDAs.   After unpairing it, I did not
   re-pair
through the Android utility but ran my app again and attempted 
to
connect to it, at which time I was prompted to enter the pin and
   to
pair.  This request to pair did not come directly from my code
   but
resulted from a call to BluetoothSocket.connect( ).  At this
   point it
successfully connected and continues to connect.  So it seems
   like the
automatic pairing does something that prevents later connection.
    I
wonder if once it is automatically paired without a pin, future
attempts to connect recognize that it has been paired but 
doesn't
recognize that no pin was ever requested and so fails for lack 
of
   a
valid pin.  Just a guess.

On Apr 29, 9:21 am, frankentux cfarrell1...@googlemail.com
   wrote:
 Is this related to:

  http://stackoverflow.com/questions/2661932/problem-with-bluetooth-on-...

  http://pastebin.org/191806http://pastebin.org/191824http://pastebin.o...

 It sounds like the same issue...

 On Apr 29, 2:09 am, DonFrench dcfre...@gmail.com wrote:

  (sorry, premature Send of previous message)

  As I was saying, the two devices have the same name but
   different MAC
  addresses.  Whether this was related to the problem I am not
   sure.
  But simply unpairing the device that would not connect 
  solved
   the
  problem.  It re-paired the next time my code tried to 
  connect
   and from
  then on I could connect to either device without doing any
   more
  unpairing.

  On Apr 28, 5:03 pm, DonFrench dcfre...@gmail.com wrote:

   Update to this problem:  I discovered that the device that
   could not
   be connected to had been paired at some time in the past.
    Both
   devices have the same name but different MAC

   On Apr 24, 4:30 pm, DonFrench dcfre...@gmail.com wrote:

There is an apparentbugin theBluetoothservice discovery
   code, as
has been mentioned by several people on several forums.
    The upshot
is
that the BluetoothSocket.connect( ) method consistently
   fails to
discover a valid SPP service on some devices that are
   discoverable
with non-Android devices while it consistently succeeds
   to discover
the SPP service on seemingly identical devices.
    Obviously, the two
devices are not identical but the fact is that I
   manufacture two
such
devices and there is nothing obviously different about
   them.  I can
consistently connect to both devices from a Windows
   Mobile app.   I
hope thatGooglewill address thisbugin the very near
   future.  I
will be willing to test any 

[android-developers] trouble with TARGET_BUILD_TYPE=debug and buildspec.mk

2010-05-20 Thread NimeshChanchani
i'm having trouble with buildspec.mk .
i copied buildspec.mk.default to buildspec.mk . added
And I changed TARGET_BUILD_TYPE to
debug.
but when i make cleaned and then gave
make , I got the following :(see below) .It has got
TARGET_BUILD_TYPE=release
instead of debug. This makes me wonder if the changes that i did in
buildspec.mk are being effected?  does anyone know how to build with
TARGET_BUILD_TYPE= debug? basically I want to build in debug mode

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.1-update1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR

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


[android-developers] How to force Activity to call finalize()?

2010-05-20 Thread Jiang
My application contains 2 activities A and B. B is opened with 
startActivity(intent) in A, when B is closed with finish(), I found the method 
finalize() of B is not called.

My question is:
How to force Activity to call finalize() when it is closed with finish()?

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

[android-developers] Re: Addition of controls dynamically

2010-05-20 Thread Kumar Bibek
Each Layout has a few methods to add child views to it at run time.

Check out those methods. It's farely easy to do it.

Thanks and Regards,
Kumar Bibek

On May 20, 9:55 am, Soumya soumyakanti...@gmail.com wrote:
 Hi,

 Can anyone tell me how to add controls dynamically in a layout similar
 to the one in contacts edit screen where pressing on + button adds a
 button and edit text and on pressing the - button, the last button and
 edit text are removed.

 Can anyone point me out the code.

 Thank you,
 Soumya

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: starting application using a URL or other method?

2010-05-20 Thread Kumar Bibek
From a simple HTML URL ?? I don't think it is possible.

Even the Context menu doesn't provide you with an option to generate
or trigger an event which your application can capture.

Thanks and Regards,
Kumar Bibek

On May 14, 11:47 pm, Latoune lato...@gmail.com wrote:
 Hi all,
 I would like to be able to start an application (ideally a function
 within the application - like start to play for instance)  on my phone
 from a simple URL in an email.
 1 - Do you know if this is possible?
 2 - If not possible, do you know what alternative options I have if I
 want to start an application from an email?

 Thank you,
 Antoine

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] google finance autosuggestion on query on ticker symbol

2010-05-20 Thread puneet dhami
hi I am looking to replicate the functions of the google Get Quote
search. Example on http://www.google.com/finance?q=TSE%3ATCS : when
you start typing in the the company ticker or name it will give
suggestions and you can click on one and go to the page 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


[android-developers] Re: how to add new table for a existing database

2010-05-20 Thread Kumar Bibek
For a production app, you will need to write the create query for the
new table in onUpgrade method.

You need to change the Database version as well.

Thanks and regards,
Kumar bibek

On May 20, 3:47 am, Brion Emde brione2...@gmail.com wrote:
 If you are talking about during development, perhaps the easiest thing
 might be to uninstall your application from the emulator/phone via
 Settings. Or you could start your emulator with the Wipe User Data
 checkbox selected. Or you could use adb to delete the database. Or
 sqlite. There are many options.

 If you are talking about a production database in a released app,
 that's another story.

 What are you asking?

 On May 12, 11:33 pm, SK Bhat sharath...@gmail.com wrote:

  hi please reply me. i have already having 2 tables in a database now i
  want to create a new table in that database it self how can i create.
  please reply

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Search Query Returns 0 rows

2010-05-20 Thread mike
hi guys,

this is my Query

String name = Mike
;   Cursor cursor = getContentResolver().query(Phones.CONTENT_URI,
null, Phones.NAME + =' + name + ', 
null,
Phones.NAME +  ASC);


and name exists in the database but it always returns nothing. could
you tell me whats wrong with this???

regards,
Randika

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


[android-developers] Search Query Returns 0 rows

2010-05-20 Thread mike
hi guys,

this is my Query

String name = Mike
;   Cursor cursor = getContentResolver().query(Phones.CONTENT_URI,
null, Phones.NAME + =' +
name + ', null,
Phones.NAME +  ASC);

and name exists in the database but it always returns nothing. could
you tell me whats wrong with this???

i'm just doing a simple search

main class

abstract public class mine extends ListActivity {
/** Called when the activity is first created. */
abstract SimpleCursorAdapter myAdapter(Intent intent);

Cursor cursor;
TextView stat;
String[] columns;
int[] names;

// abstract SimpleCursorAdapter makeMeAnAdapter(Intent intent);

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// setContentView(R.layout.main);
stat = (TextView) findViewById(R.id.label);
viewContacts();
setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
onNewIntent(getIntent());
}

public void viewContacts() {
cursor = getContentResolver().query(Phones.CONTENT_URI, null,
null, null, Phones.NAME +  ASC);
startManagingCursor(cursor);
int x = cursor.getCount();
if (cursor == null || x == 0) {
// alert(Address Book, Empty Address Book);
}
columns = new String[] { People.NAME };
names = new int[] { R.id.label };
/*
 * myAdapter = new SimpleCursorAdapter(this, R.layout.main, 
cursor,
 * columns, names); setListAdapter(myAdapter);
 */
}

@Override
protected void onNewIntent(Intent intent) {
// TODO Auto-generated method stub
SimpleCursorAdapter adapter = myAdapter(intent);

if (adapter == null) {
finish();
} else {
setListAdapter(adapter);
}
}
}


Display class

public class Display extends mine {

@Override
SimpleCursorAdapter myAdapter(Intent intent) {
// TODO Auto-generated method stub

return (new
SimpleCursorAdapter(this,R.layout.main,cursor,columns,names));
}
}


search class


public class Search extends mine {
String[] str;
int id[];

@Override
SimpleCursorAdapter myAdapter(Intent intent) {
// TODO Auto-generated method stub
SimpleCursorAdapter adapter = null;
if (intent.getAction().equals(Intent.ACTION_SEARCH)) {
String query = 
intent.getStringExtra(SearchManager.QUERY);
Cursor c = searchItems(query);
Log.d(CURSOR_LENGHT, Integer.toString(c.getCount()));
adapter = new SimpleCursorAdapter(this, R.layout.main, 
c, str, id);
}
return (adapter);
}

private Cursor searchItems(String query) {
Cursor cur = getContentResolver().query(People.CONTENT_URI, 
null,
People.NAME + =' + query + ', null, null);
startManagingCursor(cur);
int x = cur.getCount();
if (cur == null || x == 0) {
// alert(Address Book, Empty Address Book);
}
if (cur.moveToNext()) {
do {
Log.d(CURSOR_, Integer.toString(x));
} while (cur.moveToNext());
}
str = new String[] { People.NAME };
id = new int[] { R.id.label };
return cur;
}
}

androidmanifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.test android:versionCode=1 android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name android:debuggable=true
activity android:name=.Display 
android:label=@string/app_name
intent-filter
action 
android:name=android.intent.action.MAIN /
category 
android:name=android.intent.category.LAUNCHER /
/intent-filter
meta-data android:name=android.app.default_searchable
 android:value=.Search /
/activity

activity
android:name=.Search
android:label=Search
android:launchMode=singleTop
intent-filter

[android-developers] Re: Installation date of an application in a device

2010-05-20 Thread Isidoro Castell
I see that /data/app directory have information about date and time of
installed applications. But the bad news is that this directory is not
accesible through code. Anyone knows how I can get this information or
how I can access to this directory (/data/app/)?

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


[android-developers] Re: Addition of controls dynamically

2010-05-20 Thread Soumya
Hi,

I have tried some sample code but I always get force close menu. Can
you please provide some sample code on how to do it. I am not able to
make it work properly.

On May 20, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:
 Each Layout has a few methods to add child views to it at run time.

 Check out those methods. It's farely easy to do it.

 Thanks and Regards,
 Kumar Bibek

 On May 20, 9:55 am, Soumya soumyakanti...@gmail.com wrote:



  Hi,

  Can anyone tell me how to add controls dynamically in a layout similar
  to the one in contacts edit screen where pressing on + button adds a
  button and edit text and on pressing the - button, the last button and
  edit text are removed.

  Can anyone point me out the code.

  Thank you,
  Soumya

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] When Activity is closed, its fields is not release, how to resolve this issue.

2010-05-20 Thread Jiang
In the followingscenario, the fields of 
Activity is not released when the Activity is closed with calling finish().
Class MyClass
{
}

public MyActivity extends Activity
{
    private MyClass obj;

    public void onCreate(xxx)
    {
        
        obj = new MyClass();
    }
}

when Activity is closed, the field 'obj' is not released. Certainly, we can add 
statement obj = null in onDestroy() to release it explicitly, but I'm curious 
that other fields of Activity is not released, is there memory leak?

I tried following test: 
1, Start Activity A
2, Start Activity B from A with calling startActivity
3, Close Activity B with calling finish();
4, Start Activity B in method onResume() of Activity A
When B is started about 2000 times, Android system report out of memory, it 
seems that memory leaks during the processes, how to resolve this issue?


Thanks very much.



  

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

[android-developers] Problem with light sensor

2010-05-20 Thread qvark
Hi there, I'm having some troubles with the light sensor on the Nexus
One.

AFAIK, the proper way to read the measures of a sensor is registering
a SensorListener through the SensorManager and then wait for the
readings on the onSensorChanged method.

My main problem is that the light sensor don't seem very accurate (the
readings jump a lot) and I don't get the first reading until the
lighting conditions change. I have to change the phone orientation, go
outdoors or hide the sensor with my fingers or otherwise I don't
receive any value. Is there any way to increase the accuracy or, even
more important,  to force an initial reading?

BTW, I have tried with SensorManager.SENSOR_DELAY_FASTEST but I
haven't noticed any change.

Thanks,

Jose Luis.

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


[android-developers] Re: Petitions to Google

2010-05-20 Thread blackbitshi...@googlemail.com
On 20 mayo, 03:11, Indicator Veritatis mej1...@yahoo.com wrote:
 Concerning your proposal of conditional compilation: I had an
 interesting conversation with someone who had worked at Javasoft for
 many years. I asked him specifically what they were thinking when they
 decided not to include conditional compilation in Java. His answer was
 that the proper Java, OOP approach to the main use of conditional
 compilation, accomodating a variety of platforms, is different
 implementations of the same interface.

 Now concerning your example, beta vs. non-beta, personally, I would
 not dream of making this distinction by using conditional compilation.
 Rather, this is a natural task for revision control: once the Beta has
 been released, that code must be checked in/committed to a definite
 revision in the depository, so that you can revert to it at any time.

 OTOH, using the computer's camera as the emulator's camera sounds like
 a great idea.

 On May 19, 2:41 pm, blackbitshi...@googlemail.com


Thanks for the answer,.I will read it carefully to fully understand it.

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


[android-developers] Re: Addition of controls dynamically

2010-05-20 Thread Soumya
I have been able to find the code. It was an example part of the SDK.
It specified on how to add the controls. Removal of controls are to be
done in the same manner. The example was scrollview2.java.

Here is the snippet:
LinearLayout layout = (LinearLayout)findViewById(R.id.layout);
EditText et = new EditText(getApplicationContext());
layout.addView(et);

Thank you,
Soumya

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


[android-developers] Re: Addition of controls dynamically

2010-05-20 Thread Soumya
I have been able to find the code. It was an example part of the SDK.
It specified on how to add the controls. Removal of controls are to be
done in the same manner. The example was scrollview2.java.

Here is the snippet:
LinearLayout layout = (LinearLayout)findViewById(R.id.layout);
EditText et = new EditText(getApplicationContext());
layout.addView(et);

Thank you,
Soumya

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


[android-developers] Re: ToggleButton has broken.

2010-05-20 Thread Sasaki
I found DateWidgets also broken.

http://www.downspade.com/images/device2.png

I have checked ToggleButton image in resource file using getResource
Method,
But, ToggleButton image named button_onoff_indicator_off has not
broken.
What's happen in my device?
Some one give me advice.

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


[android-developers] Re: Petitions to Google

2010-05-20 Thread blackbitshi...@googlemail.com


On 20 mayo, 05:49, Xavier Ducrohet x...@android.com wrote:
 Making petition to make us do something is an absolute waste of time.

 Filing reasonable feature request (http://b.android.com) with a
 concise explanation why the feature is needed has a much better chance
 of success.


Thanks addressing the question.

 Contributing is even better! See the newhttp://source.android.comand
 be aware that the dev tools development has moved 100% to the open, so
 you can see real time what we're doing.


I'll have a try

 On Wed, May 19, 2010 at 2:41 PM, blackbitshi...@googlemail.com

 blackbitshi...@googlemail.com wrote:
  I thinkGoogleshould make an effort to improve the android developer
  tools. Here I write some things I think need to take in account:

  - Fix problems of communication between IDE and emulators

 Yes this is annoying.

  - Add support to conditional compilation #IF,#ELSE,#ENDIF (I wan't to
  have 2 versions in the same proyect ... beta and non beta, free and
  paid, etc.)

 Free and paid apps shouldn't be done by a preprocessor for several
 reasons: You want to change the content of XML file. an XML
 pre-processor is going to be harder. Also you probably won't have the
 same files at all and a pre-processor won't really let you
 exclude/include whole files.

 We will introduce a new build mechanism that will allow you to easily
 share code and resources across 2+ application projects that will be
 much better at handling this case.

 As for the beta vs. final version, yeah, as someone else said, this
 makes no sense.

True. I didn't think about the XML. The reasons I need more time and
reading to understand.

  - Add support to add custom views to viewlist in IDE

 We're working on a new layout editor that will allow that and more.
Great.

  - Is there any way to add voice recognition? It is a feature that I
  would love to have to experiment with, but I can't since I don't have
  an Android mobile yet. I would REALLY love to have it.

 I think voice recognition isgooglespecific and requiresgoogle
 components that are not (and won't ever be) on the SDK system image.

  - Add support to C/C++ by adapting the eclipse or using another IDE. I
  feel guilty for wasting so many resources by using an intermediate
  code. I would not like to have a 1GHz processor and use it as if it
  where a 100MHz. And yes, leakage memory problems in C, C++ ... it is a
  problem, but it is worth the effort, and having in count how much code
  there is for C/C++

 Yes, better integrating the NDK into the SDK, and into the Eclipse
 plug-in is one of our goals.
great!

  - I would be nice that I could use the camera of my Computer in the
  emulator :)

 yes, it would be nice, wouldn't it?

  PS. If you agree sign up please or add things you see it would be
  useful to have.
Sorry ... I won't post anything like that anymore.


 Again, no don't sign uppetitions. All it does is noise on the
 (already too noisy) mailing list and we'll ignore it anyway.

 Xav
 --
 Xavier Ducrohet
 Android SDK Tech LeadGoogleInc.

 Please do not send me questions directly. Thanks!

 --
 You received this message because you are subscribed to theGoogle
 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 
 athttp://groups.google.com/group/android-developers?hl=en

Thanks for the answer. I will think and detail more carefully before
next posts.

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


[android-developers] How to find memory leak?

2010-05-20 Thread Jiang
When start Activity A, I found the memory usage of application is about 5MB,

Then start Activity B from A via startActivity. In Activity B, I created a 
thread, and  traverse file system in this 
thread, after traversing completed, call finish() and to return to Activity A. 
at this time, I found the memory usage of application is about 8MB (GC is 
forced before check memory usage).

How to find Where memory leaks?

By the way, I checked the memory usage with DDMS.

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

[android-developers] Do I need to buy Google Maps license?

2010-05-20 Thread Samuh
I am embedding a MapView in my application which is used as a canvas
to pin point a location.

My question is do I need to buy a license if I publish my application
as paid app in market? What is my app is free?

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


[android-developers] Browser localization issue

2010-05-20 Thread Uander
Hi All ,

I want to know whether my following observation is a issue on my android  or
just an existing feature in eclair 2.1

Click Main menu-settings-LanguageText-Dutch
open browser application (web Image Local News  are there in English)
Click on Images
Now  web Image Local News can be seen translates (in dutch ) as Internet
Afbeeldingen Lokaal Nieuws 


Now Change language to English or other .
Open Browser - Images.
See web Image Local News  are still in dutch .

I noticed that Browser data is stored in language that was set when I open
browser first time .

Plz help me out .


Thanks :
Uander

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

Re: [android-developers] Do I need to buy Google Maps license?

2010-05-20 Thread Carlos Silva
On Thu, May 20, 2010 at 11:31, Samuh samuh.va...@gmail.com wrote:

 I am embedding a MapView in my application which is used as a canvas
 to pin point a location.

 My question is do I need to buy a license if I publish my application
 as paid app in market? What is my app is free?


No, and No. You just have to have one, and it's free. (AFAIK)

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

[android-developers] Re: Locate services offered?

2010-05-20 Thread redders
Android offers two location services:

GPS  Network (mobile cell).

The developer can choose to register to receive location updates for
one or both of these.
You have raised a question I was wondering about though - does the
network location use WiFi to increase accuraccy? I have noticed I
sometimes get pretty good accuraccies (~75m) from network location.

Cheers,
~redders.

On May 13, 9:19 pm, Jeremy Patrick jermpatr...@gmail.com wrote:
 What are the types of locating services offered by android? Does it
 offer GPS, cell-site/geolocation and WiFi?

 Can a developer choose which service to use or does the android
 choose?

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] capture outgoing sms in android

2010-05-20 Thread Nandan .
Hii.

In android there is a broadcast Receiver for incoming SMS.

but in my application i want to capture outgoing SMS through code it
is possible in android.
There is no any Receiver for outgoing SMS.

 how can i implement to capture outgoing SMS.

if any one have idea plz reply me..

Thank you very much

With Regrads
Bhavesh

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

[android-developers] Re: Android eclair: playing videos

2010-05-20 Thread Darshan
Hi,

Can you please provide the details of the solution?

Thanks,
Darshan


On May 19, 12:05 pm, petter havlenap...@gmail.com wrote:
 nevermind i solved it

 On May 6, 9:39 am, petter havlenap...@gmail.com wrote:



  Hi I have compiledandroideclairversion 2.1 on my htc sapphire 32A
  and everything works great up toplayingvideos. When I ranplayinga
  any video on device,androidplayer starts and I see only black
  screen. Sound is working properly, but something happens when bites
  from video are copied to share memory with kernel. In logcat I see
  this lines:
  E/copybit (   73): copyBits failed (Invalid argument)
  D/copybit (   73): 0: src={w=480, h=320, f=0, rect={0,0,480,320}}
  D/copybit (   73):     dst={w=480, h=320, f=0, rect={0,0,480,320}}
  D/copybit (   73):     flags=00020008
  E/SurfaceFlinger(   73): GL error 0x0502

  Please help somebody, I am already desperate.

  --
  You received this message because you are subscribed to the Google
  Groups AndroidDevelopers group.
  To post to this group, send email toandroid-develop...@googlegroups.com
  To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups AndroidDevelopers group.
 To post to this group, send email toandroid-develop...@googlegroups.com
 To unsubscribe from this group, send email 
 toandroid-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: How to find memory leak?

2010-05-20 Thread pacoder
I've been using Eclipse MAT (http://www.eclipse.org/mat/) to look at
heap dumps. My phone isn't rooted so I run my app in the emulator then
use adb to do a kill -10 which forces a heap dump. I then do an adb
pull to grab the file (your logcat will give you the name of the heap
dump output file when it runs). Then I use the android hprof-conv tool
to convert the heap dump to one that MAT can read. Then just open it
up in MAT and you can look around through the dump. It will also
suggest leak candidates to you, it's a nice tool. Also, you will need
to grant write permissions to the output directory in your emulator. I
just go do a chmod 777 /user/data.

hth,

Sean Overby

On May 20, 6:27 am, Jiang webs...@yahoo.cn wrote:
 When start Activity A, I found the memory usage of application is about 5MB,

 Then start Activity B from A via startActivity. In Activity B, I created a 
 thread, and                                  traverse file system in this 
 thread, after traversing completed, call finish() and to return to Activity 
 A. at this time, I found the memory usage of application is about 8MB (GC is 
 forced before check memory usage).

 How to find Where memory leaks?

 By the way, I checked the memory usage with DDMS.

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] When Activity is closed, its fields is not release, how to resolve this issue.

2010-05-20 Thread Mark Murphy

 In the following  scenario, the fields of 
 Activity is not released
 when the Activity is closed with calling finish().
 Class MyClass
 {
 }

 public MyActivity extends Activity
 {
     private MyClass obj;

     public void onCreate(xxx)
     {
         
         obj = new MyClass();
     }
 }

 when Activity is closed, the field 'obj' is not released.

I am going to assume that by not released, you mean not garbage
collected.

 Certainly, we
 can add statement obj = null in onDestroy() to release it explicitly,
 but I'm curious that other fields of Activity is not released, is there
 memory leak?

If something in your code is keeping your instance of MyActivity in memory
-- such as holding onto an instance of it or something referring to it in
a static context -- then you will have a memory leak.

 I tried following test:
 1, Start Activity A
 2, Start Activity B from A with calling startActivity
 3, Close Activity B with calling finish();
 4, Start Activity B in method onResume() of Activity A
 When B is started about 2000 times, Android system report out of memory,
 it seems that memory leaks during the processes, how to resolve this
 issue?

You are creating an infinite loop. Activity A be called with onResume() as
part of Activity B finishing, so you are restarting Activity B right away.
Do not create an infinite loop, and you will not run out of memory.

There are tools in Android to diagnose true memory leaks, such as the
Allocation Tracker and VM Heap in DDMS, or the dump HPROF file button in
DDMS in Android 2.x. Those will help you track down your memory leak.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


[android-developers] Re: How to find memory leak?

2010-05-20 Thread Mathias Lin
Yourkit, http://yourkit.com/overview/index.jsp, is another profiler
tool that could be used.

In sdk2.1, you can also do it on a non-rooted device - you can create
a hprov from within the app and write it to sdcard.

Debug.dumpHprofData(/sdcard/myapp.hprov);

At least in v2.1, possible that this wasn't availabe in 1.x sdk.



On May 20, 8:10 pm, pacoder sove...@gmail.com wrote:
 I've been using Eclipse MAT (http://www.eclipse.org/mat/) to look at
 heap dumps. My phone isn't rooted so I run my app in the emulator then
 use adb to do a kill -10 which forces a heap dump. I then do an adb
 pull to grab the file (your logcat will give you the name of the heap
 dump output file when it runs). Then I use the android hprof-conv tool
 to convert the heap dump to one that MAT can read. Then just open it
 up in MAT and you can look around through the dump. It will also
 suggest leak candidates to you, it's a nice tool. Also, you will need
 to grant write permissions to the output directory in your emulator. I
 just go do a chmod 777 /user/data.

 hth,

 Sean Overby

 On May 20, 6:27 am, Jiang webs...@yahoo.cn wrote:



  When start Activity A, I found the memory usage of application is about 5MB,

  Then start Activity B from A via startActivity. In Activity B, I created a 
  thread, and                                  traverse file system in this 
  thread, after traversing completed, call finish() and to return to Activity 
  A. at this time, I found the memory usage of application is about 8MB (GC 
  is forced before check memory usage).

  How to find Where memory leaks?

  By the way, I checked the memory usage with DDMS.

  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] rounded rectangle for TextView

2010-05-20 Thread Adrian Vintu
Hi all,

Does anyone know how to obtain the rounded rectangle effect from this
picture?
http://developer.android.com/intl/de/resources/articles/images/list_fade_4.png

Is it somewhere in samples?

Thank you,
BR,
Adrian Vintu

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

[android-developers] Re: Application Crash Reporting made easy - needs testers

2010-05-20 Thread Kevin Gaudin
Thanks Tobias for using the lib !

All the sources are available on GoogleCode's SVN:
http://code.google.com/p/acra/source/checkout.

The main help we need now is developers to test the v2 stability with
its different notification modes and on different android hardware/
versions so that we can go out of the testing phase ;-).

I'm also waiting for details about the official reporting which
should be announced today at Google I/O. This might lead to some
adaptation in the code of ACRA depending on the availability of this
new reporting across android versions.

Though, the acra-2.0.0-test version is already clean enough to coexist
with the new reporting feature which is activated on my Nexus One
since yesterday... the behaviour I implemented is to disable the
default Force Close dialog when ACRA is configured with Toast or
Status bar notification mode. This prevents the user from beeing
offered several error reporting systems.

Kevin


On May 19, 9:59 pm, Clankrieger tob...@googlemail.com wrote:
 Hi Kevin,

 I includedACRAin my app - it was easy to implement and your HowTo is
 absolutely excellent. I already got two crash reports that gave me a
 much better glue than the usual crashes on foo-phone-1-star-
 comments. :)
 I'm eager to take a look into the sources as well, they should be
 available by google code subversion access, isn't it? If you need any
 specific feedback, help or similar, please let me know!

 Cheers,
 Tobias

 On 19 Mai, 07:59, Kevin Gaudin kevin.gau...@gmail.com wrote:



  Hello,

  Just to inform you that there was a missing configuration item in the
  usage guide for v2 when using the status bar notification mode. You
  have to add an activity (provided byACRA) with specific attributes in
  your android manifest.

  The usage guide for v2 has been 
  updated:http://code.google.com/p/acra/wiki/ACRAHowTo2

  Kevin

  On 18 mai, 02:57, Kevin Gaudin kevin.gau...@gmail.com wrote:

   It is and will stay published as an open source project under Apache
   license. So you are free to use it in any app, free or not, open
   source or not.

   Please test it and let us know your feedback/issues ! ;-)

   Kevin

   On 17 mai, 22:18, String sterling.ud...@googlemail.com wrote:

On May 17, 8:39 pm, Yahel kaye...@gmail.com wrote:

 What licence do you release it under ?

The project says it's Apache-licensed. Unless they're planning a
change of license for v2, we should be OK.

String

--
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 
athttp://groups.google.com/group/android-developers?hl=en

   --
   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 
   athttp://groups.google.com/group/android-developers?hl=en

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] how browser decides html size on 2.1

2010-05-20 Thread James Wang
We have one html page whose backgroud is an image(1024px*600px) with
no-repeat.
We displayed it in Browser rightly on 1.6 HVGA(160) and WVGA(240)
emulator and scrollbar displaed on both sides.
But we got different result when testing on 2.1 HVGA(160) and
WVGA(240) emulator.
On 2.1 HVGA(160), the background image is scaled smaller and we saw
large wide margin on the right.
On 2.1WVGA (240), There are two margins on right and bottom sides.
There is no scrollbar displayed on 2.1. And we put few small element
in our html page.

Is this Browser's bug?

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


Re: [android-developers] how to get a onClick() event from a marker int map?

2010-05-20 Thread Mark Murphy

 hi all,i want to add a marker to a position int the map ,so i add a image
  through canvas by overwrite overlay .But i want to get the other activity
  through clicking the image,who can tell me what can i do ? thanks!

Use ItemizedOverlay, and override the onTap() method. See:

http://github.com/commonsguy/cw-android/tree/master/Maps/NooYawk/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


[android-developers] Issue with WifiManager.calculateSignalLevel(RSSI, 5)

2010-05-20 Thread draf...@gmail.com
I am trying to use the Wifimanager to calculate the Signal Level of
the access points found during a scan.

I am using the following method:

http://developer.android.com/intl/de/reference/android/net/wifi/WifiManager.html#calculateSignalLevel%28int,%20int%29

But it appears to always return the same int no matter what the RSSI
level is.

Here is my code:

---

public int calculateQoS(int aRSSI){

signalLevel = WifiManager.calculateSignalLevel(RSSI, 5);

return signalLevel;

}


---


public void testCalculateQoS(){

Log.d(signal, signal = : 
+ connMonitor.calculateQoS(-44)
+   + connMonitor.calculateQoS(-80)
+   + connMonitor.calculateQoS(-120)
+   + connMonitor.calculateQoS(-20));

}

The logging outputs 1 for all the test cases for calculateQoS(int).

Am I missing something simple here? Why is the SignalLevel always 1?

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


[android-developers] Re: rounded rectangle for TextView

2010-05-20 Thread greg
Have you seen Graphics/RoundRects in APIDemos?

On May 20, 8:30 am, Adrian Vintu adrianvi...@gmail.com wrote:
 Hi all,

 Does anyone know how to obtain the rounded rectangle effect from this
 picture?http://developer.android.com/intl/de/resources/articles/images/list_f...

 Is it somewhere in samples?

 Thank you,
 BR,
 Adrian Vintu

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Screen lock problem in SurfaceView

2010-05-20 Thread Eong
Hi,
   I need some help on SurfaceView for games. I use a SurfaceView in
my game and set a render for it. In the render I use some native call
from my native lib to draw the screen using opengl. This game uses
landscape mode and I lock the mode in my manifest.
   But ifI press powerbutton on my phone when I was in the game, the
phone will shut off the screen and get into the locked mode. So I
active it again, the screen will be back in portrait mode and locked.
If I press menu to unlock, only part of the screen will be rendered,
and the other part is dark.
   This happenes when I was testing on G2, but G1 seems to be working
fine.
   If anyone has idea about this?

Thank you.

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


Re: [android-developers] Re: rounded rectangle for TextView

2010-05-20 Thread Adrian Vintu
Nope. I will ckeck it out. Thank you very much :)

BR,
Adrian Vintu


On Thu, May 20, 2010 at 3:06 PM, greg sep...@eduneer.com wrote:

 Have you seen Graphics/RoundRects in APIDemos?

 On May 20, 8:30 am, Adrian Vintu adrianvi...@gmail.com wrote:
  Hi all,
 
  Does anyone know how to obtain the rounded rectangle effect from this
  picture?
 http://developer.android.com/intl/de/resources/articles/images/list_f...
 
  Is it somewhere in samples?
 
  Thank you,
  BR,
  Adrian Vintu
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@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 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

[android-developers] Re: Participate in app promotion experiment

2010-05-20 Thread Maps.Huge.Info (Maps API Guru)
Latest results of the experiment:

  campaign  | impressions | clicks | ctr
--
 Punching for Health|   1 |125 | 1.25
 ArmaBoing  |2341 | 36 | 1.54
 My College Life Beta  |   1 |176 | 1.76
 Google Voice Call Adva  |   1 |179 | 1.79
 PuzzleQube|   1 |206 | 2.06
 What Zip Code?  |5805 |168 | 2.89

Oddly enough, my own app What Zip Code? (free) has the highest CTR.
Download numbers for What Zip Code? for a Wednesday average about
80, yesterday it was more than double that: 179, I expect this is from
the ad.

-John Coryat

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


[android-developers] Experience with GoAPK.com

2010-05-20 Thread Jason Van Anden
I received an email from goapk.com - offering to translate my apps for
Chinese market.  Has anyone here have an experience with this?  I am curious
about your experience.

Thanks,
Jason Van Anden
http://www.BubbleBeats.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

[android-developers] Re: Picassa Like Pictures Album Zoom

2010-05-20 Thread greg
Have you seen the View/Seek Bar sample in API Demos?

You may also want to look at ImageView.setImageMatrix().

On May 17, 8:10 am, Tabman tabishfay...@gmail.com wrote:
 Hi,

 I want to implement a custom UI component that acts in a similar
 manner to picassa web albums for zooming in-out of pictures. If you
 open an album in picassa there is a horizontal slider that is used to
 increase decrease zoom of the thumbnails. So I want to make a similar
 UI control for Android. Can anyone please guide me to what direction
 to take in going about to implement such a component ?

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Avoid restarting background threads on orientation change

2010-05-20 Thread Jeff
Ok, I believe I have made a little progress on this. It looks like I
can use onRetainNonConfigurationInstance() to save an instance of my
thread objects and then call getLastNonConfigurationInstance() to get
them back when the Activity is restarted.

This leads me to a new questionwhen do I actually destroy the
threads then? Part of me is wondering if I even need to bother
destroying the threads - won't the OS do that automatically when it
needs to? One of the threads has an open database connection. I
imagine that should be handled more gracefully. The question is when
should I do this?

When an Activity starts, there is a way for you to tell if you have
saved state. When the Activity ends, I wish there was some reliable
way to determine whether the Activity is going to restart right away
or if its being destroyed for good.

Perhaps I am overlooking a fundamental aspect of the Activity
lifecycle in relation to background threads.

Any advice would be greatly appreciated.


On May 19, 5:45 pm, Jeff jeff.th...@gmail.com wrote:
 I start a number of background threads in my Activity onCreate that do
 work to keep the UI free. I was originally destroying these threads in
 onDestroy. However, the idea of shutting down and restarting these
 background threads every time there is an orientation change seems
 like a waste of time to me.

 What is the preferred way of avoiding the shutdown of my background
 threads on an orientation change? I supposed I could set a flag in
 onSaveInstanceState and then not destroy my threads if this flag is
 set. Is this a valid approach or is there a more standard framework
 approach that I am overlooking?

 Thanks,
 Jeff

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Bluetooth socket to non Android device

2010-05-20 Thread Chris
1) I get Failed to connect to SDP server on 00:12:F3:04:80:80:
Connection timed out, but if I run sdptool records:
$ sdptool records 00:12:F3:04:80:80
sdptool records 00:12:F3:04:80:80
Service Name: SPP
Service RecHandle: 0x10001
Service Class ID List:
  Serial Port (0x1101)
Protocol Descriptor List:
  L2CAP (0x0100)
  RFCOMM (0x0003)
Channel: 1

Failed to connect to SDP server on 00:12:F3:04:80:80: Connection timed
out

I tried the link and that method still fails although there was
success posted here
http://stackoverflow.com/questions/2660968/

my code
public void test(BluetoothDevice d) throws Exception
{
BluetoothSocket tmpsock = null;
OutputStream out = null;
InputStream in = null;

Method m = d.getClass().getMethod(createRfcommSocket, new
Class[] { int.class });
tmpsock = (BluetoothSocket)m.invoke(d, 1);
Log.d(BT, CONNECTING);
tmpsock.connect();
Log.d(BT, CONNECTED!);
...
}

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


Re: [android-developers] Re: Avoid restarting background threads on orientation change

2010-05-20 Thread Mark Murphy
 This leads me to a new questionwhen do I actually destroy the
 threads then?

As soon as their work is done. All else being equal, choose a model where
you do not keep your own threads hanging out forever (e.g., use AsyncTask
rather than forking your own threads).

 Part of me is wondering if I even need to bother
 destroying the threads - won't the OS do that automatically when it
 needs to?

No, it will not, except by terminating the process, which may not happen
for quite some time after your activity is destroyed. This yet another
reason to use AsyncTask rather than forking your own threads -- threads
*Android* forks *Android* is responsible to clean up.

Moreover, please bear in mind that your activity may be in a stopped state
for an extended period of time (a.k.a., days). Your goal, while stopped,
should be to avoid doing anything much. This is yet another reason to
design your application to avoid forking your own threads that hang around
indefinitely, but rather do your background work in short discrete chunks
in AsyncTasks.

 One of the threads has an open database connection. I
 imagine that should be handled more gracefully. The question is when
 should I do this?

As soon as your work is done.

 When an Activity starts, there is a way for you to tell if you have
 saved state.

In your case, if getLastNonConfigurationInstance() is not null, you have
saved state, in the form of the object returned from
getLastNonConfigurationInstance().

 When the Activity ends, I wish there was some reliable
 way to determine whether the Activity is going to restart right away
 or if its being destroyed for good.

Call isFinishing().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


Re: [android-developers] Re: Avoid restarting background threads on orientation change

2010-05-20 Thread Jeff Thorn
As always, thanks Mark!

I definitely see your point - its better to do short chunks of work in an
AsyncTask than creating long running background threads.

My app makes a lot of http requests. After the download is complete, it
updates a database. I thought it would be better to create a single
background thread that does this work and then notifies the UI when its
finished. I thought this would be more efficient than opening a network
connection, opening the database, doing work, closing the database, etc.
each and every time. I suppose I could open the database in the main
Activity thread and close that in onDestroy and pass it to the AsyncTask
each time.



On Thu, May 20, 2010 at 9:58 AM, Mark Murphy mmur...@commonsware.comwrote:

  This leads me to a new questionwhen do I actually destroy the
  threads then?

 As soon as their work is done. All else being equal, choose a model where
 you do not keep your own threads hanging out forever (e.g., use AsyncTask
 rather than forking your own threads).

  Part of me is wondering if I even need to bother
  destroying the threads - won't the OS do that automatically when it
  needs to?

 No, it will not, except by terminating the process, which may not happen
 for quite some time after your activity is destroyed. This yet another
 reason to use AsyncTask rather than forking your own threads -- threads
 *Android* forks *Android* is responsible to clean up.

 Moreover, please bear in mind that your activity may be in a stopped state
 for an extended period of time (a.k.a., days). Your goal, while stopped,
 should be to avoid doing anything much. This is yet another reason to
 design your application to avoid forking your own threads that hang around
 indefinitely, but rather do your background work in short discrete chunks
 in AsyncTasks.

  One of the threads has an open database connection. I
  imagine that should be handled more gracefully. The question is when
  should I do this?

 As soon as your work is done.

  When an Activity starts, there is a way for you to tell if you have
  saved state.

 In your case, if getLastNonConfigurationInstance() is not null, you have
 saved state, in the form of the object returned from
 getLastNonConfigurationInstance().

  When the Activity ends, I wish there was some reliable
  way to determine whether the Activity is going to restart right away
  or if its being destroyed for good.

 Call isFinishing().

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 Android App Developer Books: http://commonsware.com/books.html


 --
 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.comandroid-developers%2bunsubscr...@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 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

[android-developers] Re: How to force Activity to call finalize()?

2010-05-20 Thread Streets Of Boston
Don't rely on finalize() being called (at an even somewhat predictable
time).

Finalize is called by the garbage collector of every java Object. It
may be quite a while before finalize is called by the garbage
collector. Instead, implement the onDestroy.


On May 20, 3:42 am, Jiang webs...@yahoo.cn wrote:
 My application contains 2 activities A and B. B is opened with 
 startActivity(intent) in A, when B is closed with finish(), I found the 
 method finalize() of B is not called.

 My question is:
 How to force Activity to call finalize() when it is closed with finish()?

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Petitions to Google

2010-05-20 Thread Leigh McRae



On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:

Making petition to make us do something is an absolute waste of time.

Filing reasonable feature request (http://b.android.com) with a
concise explanation why the feature is needed has a much better chance
of success.

Contributing is even better! See the new http://source.android.com and
be aware that the dev tools development has moved 100% to the open, so
you can see real time what we're doing.

On Wed, May 19, 2010 at 2:41 PM, blackbitshi...@googlemail.com
blackbitshi...@googlemail.com  wrote:
   

I think Google should make an effort to improve the android developer
tools. Here I write some things I think need to take in account:

- Fix problems of communication between IDE and emulators
 

Yes this is annoying.

   

- Add support to conditional compilation #IF,#ELSE,#ENDIF (I wan't to
have 2 versions in the same proyect ... beta and non beta, free and
paid, etc.)
 

Free and paid apps shouldn't be done by a preprocessor for several
reasons: You want to change the content of XML file. an XML
pre-processor is going to be harder. Also you probably won't have the
same files at all and a pre-processor won't really let you
exclude/include whole files.

We will introduce a new build mechanism that will allow you to easily
share code and resources across 2+ application projects that will be
much better at handling this case.

As for the beta vs. final version, yeah, as someone else said, this
makes no sense.

   


First the OP didn't talk about using a preprocessor for xml.  I would 
agree that that would be odd and there are better tools for that.  Still 
a preprocessor could be used to conditionally include a resource by id.  
How about I give you some concrete examples and you can help me see the 
light?



Example 1

//#if BETA
if ( hasBetaExpired() )
System.exit( 0 )
//#endif

Example 2

public final class Assert
{
public static final void RIP( final String msg )
{
//#if BETA
sendReport( msg );
//#endif
System.exit( 0 );
}
}

Example 3

public class Debug
{
void Println( String msg )
{
//#if !RELEASE  
Log.d( TAG, msg );
//#endif
}
}

Example 4

//#if PLATFORM_BLACKBERRY   
//@	omega = (float)MathUtilities.acos( cosom );
//#else   
	omega = (float)java.lang.Math.acos( cosom );
//#endif   


Example 5

public static final float VecToHeading( float x, float y )
{
//#if PLATFORM_BLACKBERRY
//@ floatfAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f), (int)(y 
* 65536.0f) )) / 65536.0f;
//#else
floatfAngle = ((float)Math.atan2( x, y )) * 
57.295779513082320876798154814105f;
//#endif
if ( fAngle  0.0f )
return fAngle + 360.0f;

return fAngle;
}


--
Leigh McRae
www.lonedwarfgames.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


[android-developers] Re: Functional testing multiple activities (ActivityInstrumentationTestCase2)

2010-05-20 Thread Streets Of Boston
Buehler, anyone? Buehler...? :-)

On May 18, 11:33 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
 Hi,

 I'm trying to write some functional unit-tests that involve multiple
 activities (end-to-end testing).
 I have great trouble to write stable tests, especially when
 ActivityMonitors are involved.

 When my root-activity starts another activity, i try to use
 ActivityMonitors to check if the other activity has started. I use the
 activityMonitor.waitForActivityWithTimeout(timeout) (where
 activityMonitor is a non-blocking activity monitor for
 'AnotherActivity.class.getName()'). The problem is that
 waitForActivityWithTimeout sometimes works fine and returns the
 instance of AnotherActivity. However, often it just waits for
 'timeout' milliseconds and returns null and my root-activity is still
 considered the 'active' or 'last' activity. But when i check the
 screen, the AnotherActivity has been showing!

 Should i be using ActivityInstrumentationTestCase2? Or some other test-
 case class?
 How does one write reliable, non-fragile, functional unit-tests
 spanning multiple activities?

 Thank you!

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Petitions to Google

2010-05-20 Thread Romain Guy
The Java language specifications do not include a preprocessor syntax,
so we won't. You can use other languages that compile to .class or
.dex though.

On Thu, May 20, 2010 at 7:12 AM, Leigh McRae
leigh.mc...@lonedwarfgames.com wrote:


 On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:

 Making petition to make us do something is an absolute waste of time.

 Filing reasonable feature request (http://b.android.com) with a
 concise explanation why the feature is needed has a much better chance
 of success.

 Contributing is even better! See the new http://source.android.com and
 be aware that the dev tools development has moved 100% to the open, so
 you can see real time what we're doing.

 On Wed, May 19, 2010 at 2:41 PM, blackbitshi...@googlemail.com
 blackbitshi...@googlemail.com  wrote:


 I think Google should make an effort to improve the android developer
 tools. Here I write some things I think need to take in account:

 - Fix problems of communication between IDE and emulators


 Yes this is annoying.



 - Add support to conditional compilation #IF,#ELSE,#ENDIF (I wan't to
 have 2 versions in the same proyect ... beta and non beta, free and
 paid, etc.)


 Free and paid apps shouldn't be done by a preprocessor for several
 reasons: You want to change the content of XML file. an XML
 pre-processor is going to be harder. Also you probably won't have the
 same files at all and a pre-processor won't really let you
 exclude/include whole files.

 We will introduce a new build mechanism that will allow you to easily
 share code and resources across 2+ application projects that will be
 much better at handling this case.

 As for the beta vs. final version, yeah, as someone else said, this
 makes no sense.



 First the OP didn't talk about using a preprocessor for xml.  I would agree
 that that would be odd and there are better tools for that.  Still a
 preprocessor could be used to conditionally include a resource by id.  How
 about I give you some concrete examples and you can help me see the light?

 
 Example 1
 
 //#if BETA
    if ( hasBetaExpired() )
        System.exit( 0 )
 //#endif
 
 Example 2
 
 public final class Assert
 {
        public static final void RIP( final String msg )
        {
 //#if BETA
                sendReport( msg );
 //#endif
                System.exit( 0 );
        }
 }
 
 Example 3
 
 public class Debug
 {
        void Println( String msg )
        {
 //#if !RELEASE
                Log.d( TAG, msg );
 //#endif
        }
 }
 
 Example 4
 
 //#if PLATFORM_BLACKBERRY               //@     omega =
 (float)MathUtilities.acos( cosom );
 //#else                 omega = (float)java.lang.Math.acos( cosom );
 //#endif               
 Example 5
 
 public static final float VecToHeading( float x, float y )
 {
 //#if PLATFORM_BLACKBERRY
 //@     float    fAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f),
 (int)(y * 65536.0f) )) / 65536.0f;
 //#else
        float    fAngle = ((float)Math.atan2( x, y )) *
 57.295779513082320876798154814105f;
 //#endif
        if ( fAngle  0.0f )
                return fAngle + 360.0f;

        return fAngle;
 }


 --
 Leigh McRae
 www.lonedwarfgames.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




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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


Re: [android-developers] Re: Avoid restarting background threads on orientation change

2010-05-20 Thread Mark Murphy
 My app makes a lot of http requests. After the download is complete, it
 updates a database. I thought it would be better to create a single
 background thread that does this work and then notifies the UI when its
 finished. I thought this would be more efficient than opening a network
 connection, opening the database, doing work, closing the database, etc.
 each and every time.

IMHO, that's a premature optimization. Moreover, it does not preclude the
use of AsyncTask:

 I suppose I could open the database in the main
 Activity thread and close that in onDestroy and pass it to the AsyncTask
 each time.

Likewise, if you use an HttpClient with a ThreadSafeConnectionManager, you
can do the same thing for your HTTP connections:

http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/httpclient/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java

(or http://bit.ly/cKW7ws if that URL is too long)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


[android-developers] App causing crash/reboot cycle

2010-05-20 Thread kec6227
So I have 2 reports now of my app causing a crash/reboot cycle the
user can't always break from. I cannot reproduce this on my phone, and
I am wondering what might be causing something like this? Would
running out of memory or something cause this? Because I can't
reproduce it, I can't look at the logs or anything.

Has anyone experiences anything similar? For reference, my app runs a
foreground service which utilizes the AlarmManager. It starts
automatically on boot_completed (which is probably why the cycle
happens). One of the users who reported this, said it only happened
when they plugged their phone into a PC.

So, anyone have any ideas?

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


Re: [android-developers] Petitions to Google

2010-05-20 Thread mike

On 05/20/2010 07:14 AM, Romain Guy wrote:

The Java language specifications do not include a preprocessor syntax,
so we won't. You can use other languages that compile to .class or
.dex though.
   


What I don't understand is why people who want this don't just
use /usr/bin/cpp in their build process. It's not like it's an undocumented
API or something.

Mike


On Thu, May 20, 2010 at 7:12 AM, Leigh McRae
leigh.mc...@lonedwarfgames.com  wrote:
   


On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:
 

Making petition to make us do something is an absolute waste of time.

Filing reasonable feature request (http://b.android.com) with a
concise explanation why the feature is needed has a much better chance
of success.

Contributing is even better! See the new http://source.android.com and
be aware that the dev tools development has moved 100% to the open, so
you can see real time what we're doing.

On Wed, May 19, 2010 at 2:41 PM, blackbitshi...@googlemail.com
blackbitshi...@googlemail.comwrote:

   

I think Google should make an effort to improve the android developer
tools. Here I write some things I think need to take in account:

- Fix problems of communication between IDE and emulators

 

Yes this is annoying.


   

- Add support to conditional compilation #IF,#ELSE,#ENDIF (I wan't to
have 2 versions in the same proyect ... beta and non beta, free and
paid, etc.)

 

Free and paid apps shouldn't be done by a preprocessor for several
reasons: You want to change the content of XML file. an XML
pre-processor is going to be harder. Also you probably won't have the
same files at all and a pre-processor won't really let you
exclude/include whole files.

We will introduce a new build mechanism that will allow you to easily
share code and resources across 2+ application projects that will be
much better at handling this case.

As for the beta vs. final version, yeah, as someone else said, this
makes no sense.


   

First the OP didn't talk about using a preprocessor for xml.  I would agree
that that would be odd and there are better tools for that.  Still a
preprocessor could be used to conditionally include a resource by id.  How
about I give you some concrete examples and you can help me see the light?


Example 1

//#if BETA
if ( hasBetaExpired() )
System.exit( 0 )
//#endif

Example 2

public final class Assert
{
public static final void RIP( final String msg )
{
//#if BETA
sendReport( msg );
//#endif
System.exit( 0 );
}
}

Example 3

public class Debug
{
void Println( String msg )
{
//#if !RELEASE
Log.d( TAG, msg );
//#endif
}
}

Example 4

//#if PLATFORM_BLACKBERRY   //@ omega =
(float)MathUtilities.acos( cosom );
//#else omega = (float)java.lang.Math.acos( cosom );
//#endif   
Example 5

public static final float VecToHeading( float x, float y )
{
//#if PLATFORM_BLACKBERRY
//@ floatfAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f),
(int)(y * 65536.0f) )) / 65536.0f;
//#else
floatfAngle = ((float)Math.atan2( x, y )) *
57.295779513082320876798154814105f;
//#endif
if ( fAngle0.0f )
return fAngle + 360.0f;

return fAngle;
}


--
Leigh McRae
www.lonedwarfgames.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 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


Re: [android-developers] App causing crash/reboot cycle

2010-05-20 Thread Mark Murphy

 So I have 2 reports now of my app causing a crash/reboot cycle the
 user can't always break from. I cannot reproduce this on my phone, and
 I am wondering what might be causing something like this? Would
 running out of memory or something cause this? Because I can't
 reproduce it, I can't look at the logs or anything.

There are at least a half-dozen solutions for sending you the logs. Google
may be rolling out one now, based on some reports. And there's DroidDrop,
Flurry, android-log-collector, plus others that have been reported on this
list. For example, I seem to recall somebody just posting on here having a
crash reporter that pushed the data into Google Docs for you.

Add one of these, get the crash data, and you won't have to guess. Or, at
least, you'll be guessing in a narrower range of possibilities.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


Re: [android-developers] Re: Turning off the screen

2010-05-20 Thread mike

On 05/19/2010 07:55 PM, Peter Eastman wrote:

After investigating this a bit further, I've determined that the
program is still running.  For example, if I set a Timer, that keeps
getting invoked.  It's just SensorEventListeners that don't get
invoked when the screen is turned off.  That's good to know, but
doesn't get me any closer to a solution.  Any suggestions for what I
can do?  Surely it can't be the intended behavior that it's impossible
to turn of the screen without also turning off all sensors.
   


We haven't got a straight answer about this, AFAIK. This works
fine on the G1, but doesn't work on the N1. If you search the
archives, I think that somebody said that it used to work on the
N1 as well but at some point it stopped working. If true, that
at least says that it's not a hardware issue. But who knows about
other platforms? I know that the iPhone behaves the same way,
so it's possible that it's a hardware related limitation on some
platforms. Pulling up the kernel sources maybe the only way to
settle this, and then only if the accelerometer driver is exposed.

Mike

PS: filing a bug on b.android.com is probably the right thing to do here.
  if this is really an attempt to save battery, it's a poor 
implementation

  because the alternative is to keep the display on, which is grotesque

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


[android-developers] Re: Android 2.1 SQL Server

2010-05-20 Thread Tim
At MobiForms we use the jTDS JDBC driver to support JDBC access to SQL
Server from apps developed using our MobiForms Developer.  In fact
Android supports full JDBC syntax and access to a range of databases.
With MobiForms you do not need to learn Java, XML, Eclipse or the
Android SDK.  Instead MobiForms offers one intuitive drag and drop
development and deployment tool.  All JDBC cursor and recordset
management is done automatically for a range of industry databases
including SQL Server and Oracle.  MobiForms is ideal for novice or
advanced programmers who do not want to spend hours debugging low
level code.  With MobiForms just about any mobile application can be
developed in minutes rather than hours or days.  Additionally, a
MobiForms app developed for Android will work on a range of other
platforms including Windows Mobile without the need for rewriting the
app.

For more information have a look at our web site at http://www.mobiforms.com.

On May 11, 2:46 pm, Mark vbreneg...@sbcglobal.net wrote:
 Hello everyone,

 Well about 3 weeks ago I switched to a Droid phone from a Windows phone (and
 love it). I'm getting into the programming side now. I have a MCSD  MCSE
 from Microsoft so I know programming. Now my question is. I can't seem to
 find any information on connecting to a SQL Server DB to retrieve  add
 data. It was easy on the Windows phone.

 Please Help

 Mark

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Help!!!! Live streaming (from DSS to android)

2010-05-20 Thread Jez
Does anyone know if the latest 2.1 SDK supports LIVE video streaming
playback in Android.

My setup is using a video decoder which receives a Live video stream
to VLC, which in turn sends this to Darwin Streaming Server, I then
open (android emulator) the media player demo on  rtsp://server ip/
stream.sdp.

DSS shows that the Android emulator is connected and has requested the
stream.sdp, however the buffering on Android shows repeatedly as 0%
with no output of the live video stream shown.

The Question---
Does this mean that Android (as standard) does not support LIVE rtsp
video streaming ?

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


Re: [android-developers] Petitions to Google

2010-05-20 Thread Leigh McRae
It's my understanding that Android isn't Java compliant so I don't 
understand this comment.  Perhaps I am wrong.


I also don't understand what this has to do with the specification 
anyway as it's a tool issue really.If we are to talk about Java and 
hence Sun, well they have a preprocessor for their j2me stuff as they 
have come to the conclusion that it adds value.  C# uses a preprocessor. 
RIM has a one also.  I really don't understand why it couldn't be added 
and the people that it offends can just not use it.


Perhaps you should try and write an app that isn't an SDK sample?

Leigh

On 5/20/2010 10:14 AM, Romain Guy wrote:

The Java language specifications do not include a preprocessor syntax,
so we won't. You can use other languages that compile to .class or
.dex though.

On Thu, May 20, 2010 at 7:12 AM, Leigh McRae
leigh.mc...@lonedwarfgames.com  wrote:
   


On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:
 

Making petition to make us do something is an absolute waste of time.

Filing reasonable feature request (http://b.android.com) with a
concise explanation why the feature is needed has a much better chance
of success.

Contributing is even better! See the new http://source.android.com and
be aware that the dev tools development has moved 100% to the open, so
you can see real time what we're doing.

On Wed, May 19, 2010 at 2:41 PM, blackbitshi...@googlemail.com
blackbitshi...@googlemail.comwrote:

   

I think Google should make an effort to improve the android developer
tools. Here I write some things I think need to take in account:

- Fix problems of communication between IDE and emulators

 

Yes this is annoying.


   

- Add support to conditional compilation #IF,#ELSE,#ENDIF (I wan't to
have 2 versions in the same proyect ... beta and non beta, free and
paid, etc.)

 

Free and paid apps shouldn't be done by a preprocessor for several
reasons: You want to change the content of XML file. an XML
pre-processor is going to be harder. Also you probably won't have the
same files at all and a pre-processor won't really let you
exclude/include whole files.

We will introduce a new build mechanism that will allow you to easily
share code and resources across 2+ application projects that will be
much better at handling this case.

As for the beta vs. final version, yeah, as someone else said, this
makes no sense.


   

First the OP didn't talk about using a preprocessor for xml.  I would agree
that that would be odd and there are better tools for that.  Still a
preprocessor could be used to conditionally include a resource by id.  How
about I give you some concrete examples and you can help me see the light?


Example 1

//#if BETA
if ( hasBetaExpired() )
System.exit( 0 )
//#endif

Example 2

public final class Assert
{
public static final void RIP( final String msg )
{
//#if BETA
sendReport( msg );
//#endif
System.exit( 0 );
}
}

Example 3

public class Debug
{
void Println( String msg )
{
//#if !RELEASE
Log.d( TAG, msg );
//#endif
}
}

Example 4

//#if PLATFORM_BLACKBERRY   //@ omega =
(float)MathUtilities.acos( cosom );
//#else omega = (float)java.lang.Math.acos( cosom );
//#endif   
Example 5

public static final float VecToHeading( float x, float y )
{
//#if PLATFORM_BLACKBERRY
//@ floatfAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f),
(int)(y * 65536.0f) )) / 65536.0f;
//#else
floatfAngle = ((float)Math.atan2( x, y )) *
57.295779513082320876798154814105f;
//#endif
if ( fAngle0.0f )
return fAngle + 360.0f;

return fAngle;
}


--
Leigh McRae
www.lonedwarfgames.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

 



   


--
Leigh McRae
www.lonedwarfgames.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


Re: [android-developers] Petitions to Google

2010-05-20 Thread Leigh McRae
I hear you Mike. I have done this in the past for stuff like PS2 vu asm 
code and even with lua.  The thing is that the only real choice that I 
have seen is to use Eclipse for Android if you want to have support to 
debug.  My Eclipse Fu isn't strong by any means so maybe I am wrong.


Can you give a brief overview as to you dev setup?

Leigh

On 5/20/2010 10:20 AM, mike wrote:

On 05/20/2010 07:14 AM, Romain Guy wrote:

The Java language specifications do not include a preprocessor syntax,
so we won't. You can use other languages that compile to .class or
.dex though.


What I don't understand is why people who want this don't just
use /usr/bin/cpp in their build process. It's not like it's an 
undocumented

API or something.

Mike


On Thu, May 20, 2010 at 7:12 AM, Leigh McRae
leigh.mc...@lonedwarfgames.com  wrote:


On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:

Making petition to make us do something is an absolute waste of time.

Filing reasonable feature request (http://b.android.com) with a
concise explanation why the feature is needed has a much better chance
of success.

Contributing is even better! See the new http://source.android.com and
be aware that the dev tools development has moved 100% to the open, so
you can see real time what we're doing.

On Wed, May 19, 2010 at 2:41 PM, blackbitshi...@googlemail.com
blackbitshi...@googlemail.comwrote:


I think Google should make an effort to improve the android developer
tools. Here I write some things I think need to take in account:

- Fix problems of communication between IDE and emulators


Yes this is annoying.



- Add support to conditional compilation #IF,#ELSE,#ENDIF (I wan't to
have 2 versions in the same proyect ... beta and non beta, free and
paid, etc.)


Free and paid apps shouldn't be done by a preprocessor for several
reasons: You want to change the content of XML file. an XML
pre-processor is going to be harder. Also you probably won't have the
same files at all and a pre-processor won't really let you
exclude/include whole files.

We will introduce a new build mechanism that will allow you to easily
share code and resources across 2+ application projects that will be
much better at handling this case.

As for the beta vs. final version, yeah, as someone else said, this
makes no sense.


First the OP didn't talk about using a preprocessor for xml.  I 
would agree

that that would be odd and there are better tools for that.  Still a
preprocessor could be used to conditionally include a resource by 
id.  How
about I give you some concrete examples and you can help me see the 
light?



Example 1

//#if BETA
if ( hasBetaExpired() )
System.exit( 0 )
//#endif

Example 2

public final class Assert
{
public static final void RIP( final String msg )
{
//#if BETA
sendReport( msg );
//#endif
System.exit( 0 );
}
}

Example 3

public class Debug
{
void Println( String msg )
{
//#if !RELEASE
Log.d( TAG, msg );
//#endif
}
}

Example 4

//#if PLATFORM_BLACKBERRY   //@ omega =
(float)MathUtilities.acos( cosom );
//#else omega = (float)java.lang.Math.acos( cosom );
//#endif   
Example 5

public static final float VecToHeading( float x, float y )
{
//#if PLATFORM_BLACKBERRY
//@ floatfAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f),
(int)(y * 65536.0f) )) / 65536.0f;
//#else
floatfAngle = ((float)Math.atan2( x, y )) *
57.295779513082320876798154814105f;
//#endif
if ( fAngle0.0f )
return fAngle + 360.0f;

return fAngle;
}


--
Leigh McRae
www.lonedwarfgames.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








--
Leigh McRae
www.lonedwarfgames.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


[android-developers] How soon is isFinishing() triggered?

2010-05-20 Thread Jeremiah Sellars
...or when is the earliest I can detect it? Here's my situation...

I've got an OpenGL game in the works. When the activity is ended
(however this happens either by Android or user quitting) I'd like
like to do some cleanup. I'm already calling a native function to free
some memory that was allocated and those calls are fine, but I'm also
trying to call glDeleteTextures(). I've tried a few things and
currently I have this in OnPause()...

@Override
protected void onPause() {
super.onPause();
mGSGLView.onPause();

if(isFinishing()){
GSNFreeMem(); //Native cleanup function
}

}

Logcat complains that I'm calling an OpenGL ES API when there is no
current context. I've read some threads about what to look for and
checking for back button presses, etc... seems bad so I want to let
Android tell me when to do 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@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


[android-developers] Pushing up views above soft keyboard

2010-05-20 Thread abhi
hi,

I am trying to push up the views in my activity whenever a soft
keyboard comes up. I have been partially successful in this, except
that certain views remain hidden behind the soft keyboard.

My XML looks like the below. I am specifying the last RelativeLayout
RL3 containing buttons with the attribute:
android:layout_alignParentBottom=true so that they stay above the
soft keyboard when it comes up. However. the scrollview SV1 which is
above the last RelativeLayout RL3 is not scrolling up completely and
so a part of the scroll view remains hidden behind the soft keyboard.
I have tried to set paddingBottom=70px but that still does not make
the scroll view go up. Any ideas why this is happening?

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@drawable/bg1

ScrollView android:id=@+id/SV1
android:layout_width=fill_parent
android:layout_height=wrap_content

RelativeLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:paddingBottom=70dip

RelativeLayout android:id=@+id/RL1
android:layout_width=fill_parent
android:layout_height=wrap_content 
[]
RelativeLayout android:id=@+id/RL2
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_below=@+id/TV1 
 []
/RelativeLayout

/RelativeLayout

EditText android:id=@+id/RT1
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_below=@+id/RL2/

/RelativeLayout

/ScrollView

   RelativeLayout android:id=@+id/RL3
android:background=@drawable/BG4
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_alignParentBottom=true

Button android:id=@+id/BT1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentRight=true
android:layout_centerInParent=true/

Button android:id=@+id/BT2
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentLeft=true
android:layout_centerInParent=true/

/RelativeLayout

/RelativeLayout

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


[android-developers] Re: App causing crash/reboot cycle

2010-05-20 Thread kec6227


 There are at least a half-dozen solutions for sending you the logs. Google
 may be rolling out one now, based on some reports. And there's DroidDrop,
 Flurry, android-log-collector, plus others that have been reported on this
 list. For example, I seem to recall somebody just posting on here having a
 crash reporter that pushed the data into Google Docs for you.

 Add one of these, get the crash data, and you won't have to guess. Or, at
 least, you'll be guessing in a narrower range of possibilities.


I will try one of these, but it sounds like the phone does not stay on
long enough to have any sort of log sending capabilities, and as far
as I know, it does not show a force close window.

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


Re: [android-developers] Custom ListAdapter questions

2010-05-20 Thread TreKing
On Mon, May 17, 2010 at 4:39 AM, Primal primal...@gmail.com wrote:

 I have 3 questions

 I tried registering a context menu for the list view by adding the line
 after setting the list adapter

 `registerforContextMenu(getListView())`;

 But on long-click the menu doesnt get displayed. I cannot understand
 what I am doing wrong!


You have, of course, overwritten onCreateContextMenu ... right? And you
inflate or create your menu in there?


 Is it possible to display a textview above the listview? I tried it by
 adding the code for textview above the listview. But then, only the textview
 gets displayed.


Try:
http://developer.android.com/intl/fr/reference/android/widget/ListView.html#addHeaderView(android.view.View)


 I have seen in many twitter clients that on clicking post a window pops up
 from the top covering only some portion of the screen and rest of the
 timeline is visible. How can this be done possibly without starting a new
 activity?


Read this:
http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html


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

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

Re: [android-developers] Petitions to Google

2010-05-20 Thread Greg Donald
On Wed, May 19, 2010 at 10:49 PM, Xavier Ducrohet x...@android.com wrote:
 We will introduce a new build mechanism that will allow you to easily
 share code and resources across 2+ application projects that will be
 much better at handling this case.

This is great news.  Would you care to ballpark a rough ETA for us?


-- 
Greg Donald
destiney.com | gregdonald.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


[android-developers] help: Multiple broadcast receivers in the same process: Do they all run in the main thread??

2010-05-20 Thread Satya Komatineni
The application fundamentals page at the android site states that

By default, all components of the application run in that process and thread

Is this true for a broadcast receiver as well?

if I have multiple broadcast receivers in a single apk file and do
they all run on the main thread one after the other??

Appreciate looking into this
Thanks
Satya

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


[android-developers] Re: Pushing up views above soft keyboard

2010-05-20 Thread abhi
I have tried to use android:windowSoftInputMode=stateUnspecified|
adjustResize in the activity manifest, but that does not work either.

On May 20, 10:32 am, abhi rkabhi1...@gmail.com wrote:
 hi,

 I am trying to push up the views in my activity whenever a soft
 keyboard comes up. I have been partially successful in this, except
 that certain views remain hidden behind the soft keyboard.

 My XML looks like the below. I am specifying the last RelativeLayout
 RL3 containing buttons with the attribute:
 android:layout_alignParentBottom=true so that they stay above the
 soft keyboard when it comes up. However. the scrollview SV1 which is
 above the last RelativeLayout RL3 is not scrolling up completely and
 so a part of the scroll view remains hidden behind the soft keyboard.
 I have tried to set paddingBottom=70px but that still does not make
 the scroll view go up. Any ideas why this is happening?

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         android:background=@drawable/bg1

 ScrollView android:id=@+id/SV1
         android:layout_width=fill_parent
         android:layout_height=wrap_content

         RelativeLayout
             android:layout_width=fill_parent
             android:layout_height=wrap_content
             android:paddingBottom=70dip

             RelativeLayout android:id=@+id/RL1
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content 
                     []
                 RelativeLayout android:id=@+id/RL2
                     android:layout_width=fill_parent
                     android:layout_height=wrap_content
                     android:layout_below=@+id/TV1 
                      []
                 /RelativeLayout

             /RelativeLayout

             EditText android:id=@+id/RT1
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:layout_below=@+id/RL2/

         /RelativeLayout

     /ScrollView

    RelativeLayout android:id=@+id/RL3
         android:background=@drawable/BG4
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:layout_alignParentBottom=true

         Button android:id=@+id/BT1
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_alignParentRight=true
             android:layout_centerInParent=true/

         Button android:id=@+id/BT2
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_alignParentLeft=true
             android:layout_centerInParent=true/

     /RelativeLayout

 /RelativeLayout

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Throwing an event in an Application, handling it in an Activity

2010-05-20 Thread TreKing
On Mon, May 17, 2010 at 11:14 AM, Leigh leigh.herb...@gmail.com wrote:

 In other environments, I would achieve this by having the Application cause
 an Event, and have the activities listen for and handle the event. Is this
 an option?


Sure. All of your activities have access to the one application
(getApplication()), so they can register and unregister themselves with it
in onCreate and onDestroy.)

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

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

Re: [android-developers] Re: Maintaining the state when changing the orientation

2010-05-20 Thread Alok Kulkarni
Hi guys , thanks for the replys,
@Sanjay , i have taken care in case of ArrayAdapter for ListViews
I could successfully do save the state of application and also the handlers
problem was solved. What i did is that i used a Main class which extends
Application, whenever onCreate of my Activity gets called , i assign the
Activity reference to a Main class Activity variable.This happens each time
onCreate is called.
@JP, Actually the application is very huge currently. So i will slowly move
towards Service implementation, but for current releases i need to do
changes in the current architecture itself.
But currently i am  facing the issue of going OutOfMemory if i keep on
changing the layout from landscape to portratit and vice versa.
I have to take all the drawable images from a runtime folder under my
application as i have themes implementation and themes images come from
server. So i assign drawables at runtime to all the widgets.
When the orientation changes , i reassign the drawables to all widgets.I
have taken care of making the objects null.. And  views get null when
onDestroy is called. Also i havent kept the reference of activity anywhere
after onDestroy is called.. IS there anything wrong thats striking to anyone
right now ?
Thanks ,
Alok.

On Thu, May 20, 2010 at 5:42 AM, JP joachim.pfeif...@gmail.com wrote:



 On May 14, 2:54 am, Alok Kulkarni kulsu...@gmail.com wrote:
  I need to save many objects so basically onSavedInstanceState is not of
 full
  use .

 Like in your case, I have apps that need to keep (hundreds of) objects
 and state variables that require retention regardless of what's going
 on at the UI level. What I've done in order to pick up where I left
 off after a rotation change (or, for that matter, when the user calls
 the app from the main screen) is to start and bind a Service that I
 bind again when the app comes out at the other end. Implement getters
 and setters like you normally would to access the relevant data. The
 SDK contains a pretty good example how to do all that which you can
 use as a blueprint.
 The downside is that there's a risk the service gets killed as the
 system is scraping for resources, but personally I haven't seen this
 happen for a service that's bound to an UI thread. There's people on
 the list who know much more about what's going on under the hood in
 that regard, perhaps they can chime in.

 --
 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.comandroid-developers%2bunsubscr...@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 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

Re: [android-developers] how to get inputstream of an xml file which is placed under /res/xml

2010-05-20 Thread TreKing
On Sun, May 16, 2010 at 9:59 PM, tiany lonelin...@gmail.com wrote:

 but when the xml file is under /res/xml,how can I do it?


Don't think you can. For those files, use getXml() (or something) to get an
XmlPullParser instance (I think, I'm going off memory).

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

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

[android-developers] Android Programming Class

2010-05-20 Thread joshbeck
Hello everyone:

I've been developing a curriculum designed to teach middle school
students Android programming this year.
Here's an end of the year article that covers it really well.

http://linuxclassroom.com

Thanks to the dev community. Big support over the last few years!

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


[android-developers] Re: USB problem after 2.1 upgrade of HTC Eris

2010-05-20 Thread FrankG
You can check in the Device Manager for the device properties |
Details tab
the hardware ids. Maybe the Vendor and/or Product ID has changed ?

Maybe you have to change the android_winusb.inf ?

Good luck !

  Frank


On 17 Mai, 03:13, vad vad.ad...@gmail.com wrote:
 Hello,

 after installing official Android 2.1 upgrade from Verizon on my HTC
 Eris I cannot use the phone for development anymore.

 On my Windows XP I am getting The hardware was not installed because
 the wizard cannot find the necessary software error message. I do
 have USB driver for Windows r3 installed along with Android 2.1
 Platform.

 It used to work with the original Android 1.5 on the phone.

 Does anyone have any ideas what is going on?

 Thank you,
    vad...

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: samsung app store

2010-05-20 Thread Gabriel Simões
. something to think about ...

Why would users need another App Store for the same plataform if it
doesn´t add anything better than the ones we have already?
I´m trying to imagine what will happen if every manufacturer/carrier
decides not to include android market on their custom Android OS
compilations and use their own market. Fragmentation is the smaller of
the problems.
As a developer, I don´t want to have to register my apps in a lot of
places ... check all of them to see comments, reviews, to update
versions, to receive money, to check for issues, etc.
Also, for users this will be terrible since no store (but android
market maybe) will have all the apps available. Also, the user won´t
be able to choose which store to use since market apps normaly aren´t
available for download (for security reasons).
And all this for what? Every manufacturer now want´s to get it´s part
of the standard 30% stores take. Also, every carrier want´s it, so we
will end in an even more fragmented scenario.
This is something the alliance should discuss as a decision for a
future scenario of Android. Also, I hope users opt for devices with
Android Market, as here in Brazil some carriers are already selling
devices without Android Market and have already informed that this
decision is related to the launch of their own markets. This can lead
to a decline in the plataform, for sure.

In the end, I hope Google stops closing it´s eyes and start to improve
Android Market imediately: security problems, web portal´s lack of
features (including search), small description and only 2 screenshots
for developers, etc are just a few of the complains we hear every
single day.

Well, I wish samsung doesn´t take android market off of their
devices  but I don´t believe it can be stopped since it seems
their market won´t be any better so users won´t use it unless they
have to. Business decisions ... and the concept of an integrated app
store goes down the water.

Gabriel

On 19 maio, 23:24, Nathan critter...@crittermap.com wrote:
 SamsungApps.com is apparently registered to Samsung Electronics CO.,
 Ltd. according to WHOIS information.

 So they want Android apps? I heard Samsung wanted to do their own
 operating system.

 Nathan

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Google TV - Developer Device Seeding

2010-05-20 Thread cpick
Hello,
   I would be interested in any Developer Device Seeding program that
Google has with regards to their TV.

Chris.

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


[android-developers] Re: samsung app store

2010-05-20 Thread Nathan
I'm with you on this. I don't want more fragmentation.

Profit is not the only motive, though. They want a market that works
on their HDTVs and DVD players. I don't know if they will be running
Android, but Google doesn't support running the market on non
smartphone devices. Samsung also makes Windows Mobile devices and
other OS devices.

I still think the Android Market would be a better choice where it is
usable, though.

Nathan

On May 20, 9:40 am, Gabriel Simões gsim...@gmail.com wrote:
 . something to think about ...

 Why would users need another App Store for the same plataform if it
 doesn´t add anything better than the ones we have already?
 I´m trying to imagine what will happen if every manufacturer/carrier
 decides not to include android market on their custom Android OS
 compilations and use their own market. Fragmentation is the smaller of
 the problems.
 As a developer, I don´t want to have to register my apps in a lot of
 places ... check all of them to see comments, reviews, to update
 versions, to receive money, to check for issues, etc.
 Also, for users this will be terrible since no store (but android
 market maybe) will have all the apps available. Also, the user won´t
 be able to choose which store to use since market apps normaly aren´t
 available for download (for security reasons).
 And all this for what? Every manufacturer now want´s to get it´s part
 of the standard 30% stores take. Also, every carrier want´s it, so we
 will end in an even more fragmented scenario.
 This is something the alliance should discuss as a decision for a
 future scenario of Android. Also, I hope users opt for devices with
 Android Market, as here in Brazil some carriers are already selling
 devices without Android Market and have already informed that this
 decision is related to the launch of their own markets. This can lead
 to a decline in the plataform, for sure.

 In the end, I hope Google stops closing it´s eyes and start to improve
 Android Market imediately: security problems, web portal´s lack of
 features (including search), small description and only 2 screenshots
 for developers, etc are just a few of the complains we hear every
 single day.

 Well, I wish samsung doesn´t take android market off of their
 devices  but I don´t believe it can be stopped since it seems
 their market won´t be any better so users won´t use it unless they
 have to. Business decisions ... and the concept of an integrated app
 store goes down the water.

 Gabriel

 On 19 maio, 23:24, Nathan critter...@crittermap.com wrote:

  SamsungApps.com is apparently registered to Samsung Electronics CO.,
  Ltd. according to WHOIS information.

  So they want Android apps? I heard Samsung wanted to do their own
  operating system.

  Nathan

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] how to add a lisener to a image which in the overlay

2010-05-20 Thread TreKing
On Thu, May 20, 2010 at 1:39 AM, 徐洪跃 xhyg...@gmail.com wrote:

 hi.all,i want to add a listner to a image which in the overlay  so thata
 dialog will exists   after i  click the image int the map, thanks !


Start by looking at the onTap() methods in the Maps API documentation.

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

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

[android-developers] Protect against broken intent - How ?

2010-05-20 Thread Anthoni
Hello,

In my application I am going to be allowing the ability to call and
start other activities, just like the Android spec allows.
To this extent I use the following code :-

Intent myIntent = new Intent();
myIntent.setClassName(IntentPackage, Fully Qualified Intent);

Now I found out quite by accident if the intent fails to be found, I
accidentally misspelled my intent, it totally crashes my application
not only that nullifies my application object as well (I have a class
that extends Application). I've tried to trap this but it still always
crashes.

Can someone please advise me on how to protect my app against broken
intents (misspelled or otherwise) ?

Regards
Anthoni

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


Re: [android-developers] Problem while passing aray list to next activity in widget application

2010-05-20 Thread TreKing
On Thu, May 20, 2010 at 2:08 AM, sunita sunita.mahadevkhil...@wipro.comwrote:

 Please give me suggestions for this problem.


Post the relevant code that's not working.

On Thu, May 20, 2010 at 2:18 AM, Tommy droi...@gmail.com wrote:

 Why not save the object to a global variable and access it in your
 next activity?


Because this is hack that goes against the Android way of data and message
passing and will lead to problems - like if you press Home after going to
the second activity, get booted from memory, and come back to that activity.
Your static data will be null and your second activity will die a horrible
death.

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

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

Re: [android-developers] Re: Installation date of an application in a device

2010-05-20 Thread TreKing
On Thu, May 20, 2010 at 3:50 AM, Isidoro Castell
salud.rebel...@gmail.comwrote:

 Anyone knows how I can get this information or how I can access to this
 directory (/data/app/)?


I really doubt you can get this info. Sorry.

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

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

[android-developers] Re: Protect against broken intent - How ?

2010-05-20 Thread Anthoni
 Now I found out quite by accident if the intent fails to be found, I
 accidentally misspelled my intent, it totally crashes my application
 not only that nullifies my application object as well (I have a class
 that extends Application). I've tried to trap this but it still always
 crashes.

OK for some reason when I wrapped the startActivity method in a
try...catch block it wasn't working. However, I've just done a clean
and re-build on my source code and it's working now. Go figure!!

Anyway, thanks for reading...just happy I got it solved.

Regards
Anthoni

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


[android-developers] Re: Android Dev Phone with 2.x?

2010-05-20 Thread Tomáš Hubálek
Once I saw today's IO 2010 keynote, I think this question starts even
more important. Currently available Dev Phones are totally outdated.

Tom


On 14 kvě, 15:36, Tomáš  Hubálek tom.huba...@gmail.com wrote:
 Hello,

 I'm owner of ADP1 (1.6 device) but majority of my users have 2.x
 version. Does anybody have any idea whether there will be 2.x
 developer devices? Currently there is just something like HTC Hero
 available that is still IMHO 1.x device.

 Also I have one suggestion regarding pricing: Android Device Seeding
 program is over but Google could support developers while upgrading
 their dev phones according success of their apps (like  1
 downloads with rating   50% discount,  25 downloads with
 rating * 100% discount etc). I believe that this can be small
 support to developers in countries where it is prohibited to sell apps
 (which is IMHO majority of the world) and they are doing good job for
 Android.

 I'm currently providing free apps (as I can't buy and sell on Android
 Market from my country) and to buy multiple phones to cover various
 flavors of Android is quite expensive hobby ;-)

 Have a good day
 Tom

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Petitions to Google

2010-05-20 Thread mike

On 05/20/2010 08:07 AM, Leigh McRae wrote:
I hear you Mike. I have done this in the past for stuff like PS2 vu 
asm code and even with lua.  The thing is that the only real choice 
that I have seen is to use Eclipse for Android if you want to have 
support to debug.  My Eclipse Fu isn't strong by any means so maybe I 
am wrong.


Can you give a brief overview as to you dev setup?


Sorry, I can't help as I haven't actually wanted to do this. But ant
building is certainly well documented (I use it to do my releases),
and I imagine that googling around for eclipse/android's build mechanism
will probably turn up something (which is optional ultimately). The larger
point is that if you want cpp, it's there and not a criminal act to use.

Mike



Leigh

On 5/20/2010 10:20 AM, mike wrote:

On 05/20/2010 07:14 AM, Romain Guy wrote:

The Java language specifications do not include a preprocessor syntax,
so we won't. You can use other languages that compile to .class or
.dex though.


What I don't understand is why people who want this don't just
use /usr/bin/cpp in their build process. It's not like it's an 
undocumented

API or something.

Mike


On Thu, May 20, 2010 at 7:12 AM, Leigh McRae
leigh.mc...@lonedwarfgames.com  wrote:


On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:

Making petition to make us do something is an absolute waste of time.

Filing reasonable feature request (http://b.android.com) with a
concise explanation why the feature is needed has a much better 
chance

of success.

Contributing is even better! See the new http://source.android.com 
and
be aware that the dev tools development has moved 100% to the 
open, so

you can see real time what we're doing.

On Wed, May 19, 2010 at 2:41 PM, blackbitshi...@googlemail.com
blackbitshi...@googlemail.comwrote:

I think Google should make an effort to improve the android 
developer

tools. Here I write some things I think need to take in account:

- Fix problems of communication between IDE and emulators


Yes this is annoying.


- Add support to conditional compilation #IF,#ELSE,#ENDIF (I 
wan't to

have 2 versions in the same proyect ... beta and non beta, free and
paid, etc.)


Free and paid apps shouldn't be done by a preprocessor for several
reasons: You want to change the content of XML file. an XML
pre-processor is going to be harder. Also you probably won't have the
same files at all and a pre-processor won't really let you
exclude/include whole files.

We will introduce a new build mechanism that will allow you to easily
share code and resources across 2+ application projects that will be
much better at handling this case.

As for the beta vs. final version, yeah, as someone else said, this
makes no sense.


First the OP didn't talk about using a preprocessor for xml.  I 
would agree

that that would be odd and there are better tools for that.  Still a
preprocessor could be used to conditionally include a resource by 
id.  How
about I give you some concrete examples and you can help me see the 
light?



Example 1

//#if BETA
if ( hasBetaExpired() )
System.exit( 0 )
//#endif

Example 2

public final class Assert
{
public static final void RIP( final String msg )
{
//#if BETA
sendReport( msg );
//#endif
System.exit( 0 );
}
}

Example 3

public class Debug
{
void Println( String msg )
{
//#if !RELEASE
Log.d( TAG, msg );
//#endif
}
}

Example 4

//#if PLATFORM_BLACKBERRY   //@ omega =
(float)MathUtilities.acos( cosom );
//#else omega = (float)java.lang.Math.acos( cosom );
//#endif   
Example 5

public static final float VecToHeading( float x, float y )
{
//#if PLATFORM_BLACKBERRY
//@ floatfAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f),
(int)(y * 65536.0f) )) / 65536.0f;
//#else
floatfAngle = ((float)Math.atan2( x, y )) *
57.295779513082320876798154814105f;
//#endif
if ( fAngle0.0f )
return fAngle + 360.0f;

return fAngle;
}


--
Leigh McRae
www.lonedwarfgames.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 

Re: [android-developers] Petitions to Google

2010-05-20 Thread Xavier Ducrohet
On Thu, May 20, 2010 at 7:12 AM, Leigh McRae
leigh.mc...@lonedwarfgames.com wrote:
 First the OP didn't talk about using a preprocessor for xml.  I would agree
 that that would be odd and there are better tools for that.  Still a
 preprocessor could be used to conditionally include a resource by id.  How
 about I give you some concrete examples and you can help me see the light?

The main reason I mentioned XML was for the package of the app that
needs to change to ship both a free/lite and a paid/pro version of an
app.

This is a typical use case that was problematic before since changing
the package name required refactoring (due to the new package for the
R class).

Now, if you use the newly released tools r6 and ADT 0.9.7 you can
create library projects and share code/resources between your paid and
free versions.

Xav
-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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


Re: [android-developers] Petitions to Google

2010-05-20 Thread Xavier Ducrohet
We just released it this morning with the 2.2 SDK.

On Thu, May 20, 2010 at 8:42 AM, Greg Donald gdon...@gmail.com wrote:
 On Wed, May 19, 2010 at 10:49 PM, Xavier Ducrohet x...@android.com wrote:
 We will introduce a new build mechanism that will allow you to easily
 share code and resources across 2+ application projects that will be
 much better at handling this case.

 This is great news.  Would you care to ballpark a rough ETA for us?


 --
 Greg Donald
 destiney.com | gregdonald.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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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


[android-developers] Where can I find the Android Cloud to Device Messaging API?

2010-05-20 Thread rtreffer
So Android 2.2 is out, we've got a new SDK, and a promising new
feature Android Cloud to Device Messaging.
But I just can't find any traces of this in the API diff.

Did anyone find an API? Or some further docs?

Thanks in advance,
  Rene Treffer

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


[android-developers] Multitouch / Pinch To Zoom in Android 2.2?

2010-05-20 Thread Mariano Kamp
Hi.

In Android 2.1 update 1 multitouch was silently added. Unfortunately
it is only available when also the zoom picker is **active**?! I am
sure there are cases where that setting makes sense, but it was not
possible to separately turn on one or the other.
I thought they didn't want to change the API with with an update-1
and would now surface the API in Android 2.2.
At least my initial check didn't turn up anything in that respect though ;-(.

Also I don't know if multi-touch pinch/zoom still works in Android
2.2, because I don't know how to test it on the emulator. Does anybody
know or has other insights to share?

On a sidebar. Do I see this right? The developers get the new Android
version before their users? Loving it! Thanks.

Cheers,
Mariano

Btw. OT, but the first 45 minutes of the keynote totally rocked. Much
better than the latest three Steve Notes combined.

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


Re: [android-developers] Where can I find the Android Cloud to Device Messaging API?

2010-05-20 Thread Michael Elsdörfer

It's part of the Google-addons:

http://code.google.com/android/c2dm/index.html


On 05/20/2010 08:53 PM, rtreffer wrote:

So Android 2.2 is out, we've got a new SDK, and a promising new
feature Android Cloud to Device Messaging.
But I just can't find any traces of this in the API diff.

Did anyone find an API? Or some further docs?

Thanks in advance,
   Rene Treffer



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


Re: [android-developers] Google TV - Developer Device Seeding

2010-05-20 Thread TreKing
On Thu, May 20, 2010 at 12:05 PM, cpick cp...@vmenu.com wrote:

 Hello,
   I would be interested in any Developer Device Seeding program that
 Google has with regards to their TV.

 Chris.


OK

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

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

Re: [android-developers] Petitions to Google

2010-05-20 Thread Greg Donald
On Thu, May 20, 2010 at 1:16 PM, Xavier Ducrohet x...@android.com wrote:
 We just released it this morning with the 2.2 SDK.

And here are the docs if anyone was wondering:

http://developer.android.com/intl/fr/guide/developing/eclipse-adt.html#libraryProject


-- 
Greg Donald
destiney.com | gregdonald.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


[android-developers] Re: Application Crash Reporting made easy - needs testers

2010-05-20 Thread Justin Edwards
I have also added the logging into my application. Within 10 minutes I
had my first bug report..  :(   (Even before I got the update
installed on my device.)

I had no problems getting everything added into my application again
thanks to your HowTo.  (Only issue I had was uploading the csv file...
i was looking for a Import option but within docs it is called Upload
(stupid I know))

Since I have put this in I have found about a total of 10 bugs..  All
of them are small and silly bugs but 1.  So I got them all fixed
up For now.  :)

I do have one question when you use the:

ErrorReporter.getInstance().handleException(e);

Is the report that is sent silent to the user?  Is there a way to send
a silent report? Or will the user get notified event though we are in
a try catch?

Thank you!
Justin

On May 20, 8:35 am, Kevin Gaudin kevin.gau...@gmail.com wrote:
 Thanks Tobias for using the lib !

 All the sources are available on GoogleCode's 
 SVN:http://code.google.com/p/acra/source/checkout.

 The main help we need now is developers to test the v2 stability with
 its different notification modes and on different android hardware/
 versions so that we can go out of the testing phase ;-).

 I'm also waiting for details about the officialreportingwhich
 should be announced today at Google I/O. This might lead to some
 adaptation in the code of ACRA depending on the availability of this
 newreportingacross android versions.

 Though, the acra-2.0.0-test version is already clean enough to coexist
 with the newreportingfeature which is activated on my Nexus One
 since yesterday... the behaviour I implemented is to disable the
 default Force Close dialog when ACRA is configured with Toast or
 Status bar notification mode. This prevents the user from beeing
 offered several errorreportingsystems.

 Kevin

 On May 19, 9:59 pm, Clankrieger tob...@googlemail.com wrote:





  Hi Kevin,

  I includedACRAin my app - it waseasyto implement and your HowTo is
  absolutely excellent. I already got twocrashreports that gave me a
  much better glue than the usual crashes on foo-phone-1-star-
  comments. :)
  I'm eager to take a look into the sources as well, they should be
  available by google code subversion access, isn't it? If you need any
  specific feedback, help or similar, please let me know!

  Cheers,
  Tobias

  On 19 Mai, 07:59, Kevin Gaudin kevin.gau...@gmail.com wrote:

   Hello,

   Just to inform you that there was a missing configuration item in the
   usage guide for v2 when using the status bar notification mode. You
   have to add an activity (provided byACRA) with specific attributes in
   your android manifest.

   The usage guide for v2 has been 
   updated:http://code.google.com/p/acra/wiki/ACRAHowTo2

   Kevin

   On 18 mai, 02:57, Kevin Gaudin kevin.gau...@gmail.com wrote:

It is and will stay published as an open source project under Apache
license. So you are free to use it in any app, free or not, open
source or not.

Please test it and let us know your feedback/issues ! ;-)

Kevin

On 17 mai, 22:18, String sterling.ud...@googlemail.com wrote:

 On May 17, 8:39 pm, Yahel kaye...@gmail.com wrote:

  What licence do you release it under ?

 The project says it's Apache-licensed. Unless they're planning a
 change of license for v2, we should be OK.

 String

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

--
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 
athttp://groups.google.com/group/android-developers?hl=en

   --
   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 
   athttp://groups.google.com/group/android-developers?hl=en

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are 

[android-developers] Android Market Developer Console Bugs feature

2010-05-20 Thread Zanshin
The new bugs feature is a great move forward to empower devs and users
both, kudos Google.

However, the reports don't tell me which version of my app the report
is from, which is critical for me to properly triage.

Is there any feedback channel to Google other than this group we could
use to get this feature added?

-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


Re: [android-developers] Android Market Developer Console Bugs feature

2010-05-20 Thread TreKing
On Thu, May 20, 2010 at 2:27 PM, Zanshin zanshin...@gmail.com wrote:

 However, the reports don't tell me which version of my app the report is
 from, which is critical for me to properly triage.


Yes it does - expand the bug report and the section that says Stack Trace
(assuming there is one), shows the version(s) and date.

I already have one report that's been generated both from my current and the
previous version of my app.

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

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

[android-developers] javascript on android

2010-05-20 Thread siddarth
hi.

i am suhas. I am new to android


i am actually trying to load javascript onto the webview, i made use
of both webview.loadUrl(); and webview.loadData(); but i does not work
for the below script
plz. help me with this.

script type=text/javascript
window.googleAfmcRequest = {
  client: 'ca-mb-pub-7387556283738751',
  ad_type: 'text_image',
  output: 'html',
  channel: '',
  format: '320x50_mb',
  oe: 'utf8',
  color_border: '336699',
  color_bg: 'FF',
  color_link: 'FF',
  color_text: '00',
  color_url: '008000',
};
/script
script type=text/javascript
   src=http://pagead2.googlesyndication.com/pagead/show_afmc_ads.js
(this
link goes outside odesk.com)/script

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


[android-developers] Re: Issue with setBuiltInZoomControls on HTC Incredible

2010-05-20 Thread Stormtap Studios
I'm noticing a trend here.  We too are experiencing issues with
WebViews on the HTC Incredible.

We're having problems with the content being strangely zoomed in when
it loads up.  We're also experiencing a strange behaviour where when
the user scrolls the view a gray or black square grows from the top of
the view downwards as you scroll.  When you reach the bottom of the
view it completely fills the view.

Also, sometimes our app will crash when the user clicks on links for
the view.

I think this is starting to show that there's definitely something
wrong with WebViews on the HTC Incredible as we also don't detect this
behaviour on an unmodified Android Dev Phone 2, or the Nexus One.

Robert Hawkey

On May 3, 8:21 pm, Felix fel...@gmail.com wrote:
 I use aWebViewto display JPGs to users. TheWebViewallows me to
 easily add zooming functionality without having to write the code to
 actually do it.

 Anyway, I've been getting a lot of Bug reports from users with an 
 HTCIncrediblethat the zooming is broken. I bought an HTCIncredible, and
 tested and sure enough zooming causes theWebViewto be surrounded by
 a box. It's difficult to explain, but basically panning and zooming is
 not possible. The only way I can get theWebViewto properly display
 the JPG is by setting setBuiltInZoomControls(false).

 I ran the app on another 2.1 phone (Droid), and it works fine. Works
 fine on my Nexus One, and even in the 2.1 Simulator.

 Anyone else run into this problem?

 Here's the code i have for myWebView:

 webview= (WebView) 
 findViewById(R.id.webview);webview.getSettings().setLoadsImagesAutomatically(true);webview.getSettings().setJavaScriptEnabled(true);webview.getSettings().setBuiltInZoomControls(true);webview.setInitialScale(initialScale);

 Then I just do:

 webview.loadUrl(file:// + getFilesDir() + / + filename);

 Thanks,
 Felix

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-20 Thread Zanshin
You're correct, but that's only for crashes.  ANRs don't show version
in the report.

Again, date and version # are critical for developers to have with
reports.

On May 20, 12:32 pm, TreKing treking...@gmail.com wrote:
 On Thu, May 20, 2010 at 2:27 PM, Zanshin zanshin...@gmail.com wrote:
  However, the reports don't tell me which version of my app the report is
  from, which is critical for me to properly triage.

 Yes it does - expand the bug report and the section that says Stack Trace
 (assuming there is one), shows the version(s) and date.

 I already have one report that's been generated both from my current and the
 previous version of my app.

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

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Android Market Developer Console Bugs feature

2010-05-20 Thread TreKing
On Thu, May 20, 2010 at 3:17 PM, Zanshin zanshin...@gmail.com wrote:

  ANRs don't show version in the report.


I see: This report was sent in by a pre-Froyo client, which did not include
an ANR stack trace.

So it looks like it requires the device to be running the new platform
to support it for ANRs. So the feature is there, it's just not backwards
compatible.

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

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

[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-20 Thread Mr Pants
Ironically, I just get Server error. Try again when I click on the
bugs link :(

Teething problems perhaps?

On May 20, 9:27 pm, TreKing treking...@gmail.com wrote:
 On Thu, May 20, 2010 at 3:17 PM, Zanshin zanshin...@gmail.com wrote:
   ANRs don't show version in the report.

 I see: This report was sent in by a pre-Froyo client, which did not include
 an ANR stack trace.

 So it looks like it requires the device to be running the new platform
 to support it for ANRs. So the feature is there, it's just not backwards
 compatible.

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

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Avoid restarting background threads on orientation change

2010-05-20 Thread Jeff Thorn
I took your advice and refactored my code to replace any long living
background threads with AsyncTasks. Wow!!! I cannot begin to tell you how
much it simplified my code. Thank you so much for the very valuable advice.


On Thu, May 20, 2010 at 10:17 AM, Mark Murphy mmur...@commonsware.comwrote:

  My app makes a lot of http requests. After the download is complete, it
  updates a database. I thought it would be better to create a single
  background thread that does this work and then notifies the UI when its
  finished. I thought this would be more efficient than opening a network
  connection, opening the database, doing work, closing the database, etc.
  each and every time.

 IMHO, that's a premature optimization. Moreover, it does not preclude the
 use of AsyncTask:

  I suppose I could open the database in the main
  Activity thread and close that in onDestroy and pass it to the AsyncTask
  each time.

 Likewise, if you use an HttpClient with a ThreadSafeConnectionManager, you
 can do the same thing for your HTTP connections:


 http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/httpclient/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java

 (or http://bit.ly/cKW7ws if that URL is too long)

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 Android App Developer Books: http://commonsware.com/books.html


 --
 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.comandroid-developers%2bunsubscr...@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 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

  1   2   >