[android-developers] cannot remove listview items

2010-04-01 Thread kavitha
Hi all,,

Can somebody please give me an example code of removing all ListView items
and replacing with new items.

I tried replacing the adapter items.Still no results.

my code is

at first i am calling

populateList(){

   results -populated arraylist with strings

   ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, results);
 listview.setAdapter(adapter);
 adapter.notifyDataSetChanged();
 listview.setOnItemClickListener(this);



}

// now populating list again

repopulateList(){

 results1-populated arraylist with strings

  ArrayAdapter adapter1 = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, results1);
 listview.setAdapter(adapter1);
 adapter1.notifyDataSetChanged();
 listview.setOnItemClickListener(this);
}


Here replpulateList() method will add to listview items. It doent
remove/replace all listview items.

Please Help.


Thanks
Kavitha

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: storing an array of objects

2010-04-01 Thread ko5tik


On Mar 31, 6:42 pm, Kumar Bibek  wrote:
> You can serialize these objects, store it in files and retrieve it.
> Read up some articles on Serialization in Java.

If they are Serializable  - yes. But this is not suitable for long
term storage or
transfer to other destinations.  What is FQN of those timer objects?
( BTW, java.util.Timer is NOT serializable, so you will need some data
binding)

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] cannot remove listview items

2010-04-01 Thread kavitha
Hi all,,

Can somebody please give me an example code of removing all ListView items
and replacing with new items.

I tried replacing the adapter items.Still no results.

my code is

at first i am calling

populateList(){

   results -populated arraylist with strings

   ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, results);
 listview.setAdapter(adapter);
 adapter.notifyDataSetChanged();
 listview.setOnItemClickListener(this);



}

// now populating list again

repopulateList(){

 results1-populated arraylist with strings

  ArrayAdapter adapter1 = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, results1);
 listview.setAdapter(adapter1);
 adapter1.notifyDataSetChanged();
 listview.setOnItemClickListener(this);
}


Here replpulateList() method will add to listview items. It doent
remove/replace all listview items.

Please Help.


Thanks
Kavitha

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] cannot remove listview items

2010-04-01 Thread kavitha
Hi all,,

Can somebody please give me an example code of removing all ListView items
and replacing with new items.

I tried replacing the adapter items.Still no results.

my code is

at first i am calling

populateList(){

   results -populated arraylist with strings

   ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, results);
 listview.setAdapter(adapter);
 adapter.notifyDataSetChanged();
 listview.setOnItemClickListener(this);



}

// now populating list again

repopulateList(){

 results1-populated arraylist with strings

  ArrayAdapter adapter1 = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, results1);
 listview.setAdapter(adapter1);
 adapter1.notifyDataSetChanged();
 listview.setOnItemClickListener(this);
}


Here replpulateList() method will add to listview items. It doent
remove/replace all listview items.

Please Help.


Thanks
Kavitha

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: setImageResource fails and closes the application unexpectedly !

2010-04-01 Thread madmax
Can u put the error log here please so that i can know what the actual
error u get is...


   Peace,
Prafull.

On Apr 1, 4:35 am, Sasi  wrote:
> Hi-
>
> I am trying to display the image on the ImageView object. But the
> setImageResource fails to display the image. If it succeeds, I would
> like to update image on ImageView object based on some criteria.
>
> Here is my XML layout file looks like:
>
>  xml version="1.0" encoding="utf-8"?>
> http://schemas.android.com/apk/res/
> android"
> android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent">
>  android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:layout_weight="1">
>  id="@+id/batteryLevelview"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_gravity="center"/>
> 
> 
>
> Here is my code:
>
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
> ImageView batteryLevelImage = (ImageView)
> findViewById(R.id.batteryLevelview);
> batteryLevelImage.setImageResource(R.drawable.notconnected);
>
> }
>
> I could not find what's wrong. I tried using the LinearLayout and that
> did not help. Please help me what's wrong.
>
> 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Integrate IPhone Safari like view in Android?

2010-04-01 Thread javame_android
Hello Everyone,

Thanks a lot to everyone who tried to understand this question and
took the time to reply.

I have managed to do this by using View.draw and View.getDrawingCache
methods.

It returns the Bitmap of the View and then I can pass those bitmaps to
Gallery so that it can be displayed as images are displayed in
Gallery.



Thanks & Regards
Sunil

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Weird Thing with my posts

2010-04-01 Thread javame_android
Hi,

Just to join you guys and let you know that even I am receiving this
mails.

Its really annoying that we cannot do anything in this regard.

Hope it gets sorted out quickly.



Regards
Sunil

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Regarding language change notification

2010-04-01 Thread Dilip Dilip
Hi All,
  Thanks for all the replys. Is there any other method to recieve
notification. My Service is not actually a service, it runs as a thread in
other service, so i am not able to override it.
like subscribing for an event ??

Thanks and Regards,
  Vivek R

On Wed, Mar 31, 2010 at 5:12 AM, Paul Turchenko wrote:

> override onConfigurationChanged()
>
> On Mar 30, 11:51 am, Dilip Dilip  wrote:
> > Hi All,
> >  How to recieve the language change notification in my service?
> > I want to get a notification to my service whenever the user changes the
> > phone language.
> >
> > Thanks and Regards,
> >   Dileep
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 Checkout or Paypal Integration into Android using its Web Services?

2010-04-01 Thread javame_android
Hi,

I have already asked this question regarding Payment Gateway
Integration into Android, but didn't got any satisfactory answers.

Can someone let me know is it actually possible to integrate any of
the above mentioned Payment Gateways into Android?

Mostly I think we can call their Web Services and then consume those
services which will be in XML.

I will like to know if someone has done the same thing or is
absolutely sure about this.

I want to develop a shopping cart type application where the user
needs to purchase the products from the list of products. Once the
user selects the product, the payment should be made directly from the
same application only and not by opening Google Checkout or Paypal
mobile website.

Please let me know what you people think about this.

Hope to get the answer quickly.


Thanks & Regards
Sunil

-- 
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: conditional compilation

2010-04-01 Thread Dilip Dilip
Hi All,
  Thanks for the reply.
I will try out.

Thanks and Regards,
  Dileep


On Thu, Apr 1, 2010 at 5:20 AM, Emmanuel  wrote:

> Waooo...
>
> I think you are a little bit expeditive on this one !
>
> I really think #ifdef are a very important thing in C / C++, and I
> missed so much in any other languages I am using !
>
> Using static / constant data can't achieve the same thing : for
> instance you can't have different data in a class without ifdef...
> It makes programs more difficult to read, but you really can switch
> from different versions of your programs much more easily, and it's a
> real gain of time !
>
> Emmanuel
> http://androidblogger.blogspot.com/
> http://www.alocaly.com/
>
> On Mar 30, 12:36 pm, Bob Kerns  wrote:
> > You do not do that in Java.
> >
> > I suggest you should not do that in C++, as there are better ways to
> > do it.
> >
> > I suggest you do not use C.
> >
> > On Mar 30, 2:57 am, Dilip Dilip  wrote:
> >
> >
> >
> > > Hi All,
> > >  How to do conditional compilation in JAVA.
> >
> > > something like in C, C++ :
> >
> > > #ifdef TRUE_CONDITION
> >
> > > #else
> >
> > > #endif
> >
> > > Thanks and Regards,
> > >   Dileep
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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: Ads in apps... How to successfully generate a larger revenue?

2010-04-01 Thread Kevin Duffey
So help clarify something to me if you ad guys don't mind.. if you just
display an ad.. do you get paid? Or does a user have to click on the ad for
you to make any money? If it's both.. I am guessing you get more money when
they click on the ad?

What measures are in place to avoid "bots" from simulating users looking at
ads?


On Wed, Mar 31, 2010 at 7:12 PM, Marc Lester Tan  wrote:

> Yeah that is true. I have an app that's ~15k active installs and is gaining
> $20/day while my other apps where active installs are > 20k are just gaining
> ~ $1 a day. It really depends whether your users are actually using your
> application very often.
>
> marc
>
> On Thu, Apr 1, 2010 at 5:23 AM, Greg Donald  wrote:
>
>> On Wed, Mar 31, 2010 at 3:15 PM, Abdul Mateen  wrote:
>> > I said, if Moto having a 60K earning $150, why should not I earn $10/day
>> > with 10k install base?
>>
>> Because there are many other variables you probably aren't
>> considering.. ones such as quality of the app/game, placement of the
>> ads, content of the ad, fill rates, etc.  I seriously doubt you will
>> find a definitive correlation between any two apps with regards to ad
>> revenue.  Some of my free apps make more than my paid ones (exact same
>> apps just with and without ads), and vice versa.
>>
>> I seriously doubt 60K users make anyone $150/day, especially using
>> AdMob.  I've been using them for about 6 months now, so I'd have to
>> see it to believe it.
>>
>>
>> --
>> 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
>>
>
>  --
> 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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Digest for android-developers@googlegroups.com - 23 Messages in 18 Topics

2010-04-01 Thread aswani kumar tholeti
Hi all,


how to develop chat application in android please suggest me  for using
layouts and all

Regards

Aswan

-- 
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] Sending email with attachment does not include the attachment

2010-04-01 Thread powder
Hi,

I never got this to work on a real device, got the email but no
attachment, when installing K9 on a emulator and
then sending the email I see the mail in the outbox with a size of 0
bytes:


public static void sendFile(Context context) {
File exportDir = new 
File(Environment.getExternalStorageDirectory(),
"file.csv");
if (!exportDir.exists()) {
exportDir.mkdirs();
}
String csvFile = exportDir + "/file.csv";
File file = new File(csvFile);
if(file.exists()) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "CSV file");
sendIntent.setType("text/csv");
//
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
sendIntent.putExtra(Intent.EXTRA_STREAM, 
Uri.parse("file:///sdcard/
mydir/file.csv"));
context.startActivity(Intent.createChooser(sendIntent, 
"Send CSV
file"));
} else {
Util.displayToast(context, R.string.no_csv_file);
}
}

Anyone got it to work to send email with attachment?

Any help appreciated.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Sending email with attachment

2010-04-01 Thread powder
Hi,

I never got this to work on a real device, got the email but no
attachment, also when installing K9 on a emulator and
then sending the email I see the mail in the outbox with a size of 0
bytes:

public static void sendFile(Context context) {
  File exportDir = new File(Environment.getExternalStorageDirectory(),
"mydir");
  if (!exportDir.exists()) {
exportDir.mkdirs();
  }
  String csvFile = exportDir + "/file.csv";
  File file = new File(csvFile);
  if(file.exists()) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "CSV file");
sendIntent.setType("text/csv");
//sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
//sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" +
Environment.getExternalStorageDirectory() + "/mydir/file.csv"));
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/
mydir/file.csv"));
context.startActivity(Intent.createChooser(sendIntent, "Send CSV
file"));
  } else {
Util.displayToast(context, R.string.no_csv_file);
  }
}

Any help appreciated.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Sqlite and SimpleCursorAdapter

2010-04-01 Thread elham

 Hello , I want to create a table whose primary key will  be some
other field and not _id . The below table gets created but the value
of _id remains null  :

"create table accounts ("+BaseColumns._ID+" integer , profile_name
text primary key"
+" name text not null);";

My doubt is wont _id get auto incremented if we do not place
"+BaseColumns._ID integer primary key autoincrement+" .

Kindly assist .

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Making money through advertising in an Android Application

2010-04-01 Thread jax
Does anyone know if there is any money to be made in Android
Advertising inside an app?

1.  Is anyone making any money?
2.  If so how much and what is your average downloads per day from the
Market?
3.  Is AppMobile the best choice?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: super.onResume() at beginning or end of method? Does it matter?

2010-04-01 Thread HippoMan
Thanks to all. I also have generally been sticking with the pattern
that's described here. I guess that will be mostly safe, taking Bob
Kerns' exception into account.

And thanks to Bob Kerns for submitting that issue. I hadn't realized
that there was no known contract for this. I hadn't found such a
contract documented anywhere, myself, but I thought that I just didn't
know where to look.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] including my .so files in sdk.

2010-04-01 Thread srikanth tangirala
Hi all,

 I am building my sdk in which i want to include my own
libraries. I want to do this by including my  own .so files. Is that
possible?
Can i place my own .so files and use that  in my sdk. And how can i
use them in any application.

Any suggestions are welcomed.

Thanks in advance.

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] HttpsUrlConnection and OpenSSL freeing session

2010-04-01 Thread Michael Rueger

On 3/30/2010 1:18 PM, Lee wrote:

I've got a problem with my application when I make a number of
requests using the HttpsUrlConnection class.


It might be related to this:
http://code.google.com/p/android/issues/detail?id=7074

Michael

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Problem with Intent.

2010-04-01 Thread thetuxracer
Hi,
I have two unrelated questions:
1. I have this code, where I use putExtra(), and create an intent, and
use getExtra() in the new intent. This happens on a menu press.
But when I use the menus repeatedly, a lot of intents are created. and
pressing the back button of emulator cycles through all the intents.
Is there any way to limit my program between the intents I have
created? or is there any function I need to use?

2. Is there anyway to create this, on a MapView? 
http://i44.tinypic.com/105y5n7.gif

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Notification manager question

2010-04-01 Thread guru
Hi TreKing/Mark,

In my scenario, after completion of one notification, another
notification should start

updateCompletedNotification {--1


notificationmgr.nofify(120,intent);
}


updateIncomingFileConfirmNotification { --2


notificationmgr.nofify(120,intent);
}

after 2nd function notiifes, then 1st function should start... how
this can be handled? can I use same ID 120 for both functions?

if i update number field, it is not updating the status bar

Here they are using cursors to access and primary key of database as
notification ID... so i have to use only one in my case...

Regards
Gururaja B O

On Mar 31, 8:28 pm, "~ TreKing"  wrote:
> On Wed, Mar 31, 2010 at 6:36 AM, guru  wrote:
> > first time it is not displaying number. if i restart my application then it
> > will display the number.
>
> To add to what Mark already posted, it's amazing what you can learn by
> reading the official 
> documentation:http://developer.android.com/intl/fr/reference/android/app/Notificati...
>
> -
> 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 at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: setImageResource fails and closes the application unexpectedly !

2010-04-01 Thread nayana urs
h all
am doing photo editting application am able to edit images but not getting
how to save it can anyone please let me know how to do it
with regards
   Nayana


On Thu, Apr 1, 2010 at 12:10 AM, madmax  wrote:

> Can u put the error log here please so that i can know what the actual
> error u get is...
>
>
>   Peace,
>Prafull.
>
> On Apr 1, 4:35 am, Sasi  wrote:
> > Hi-
> >
> > I am trying to display the image on the ImageView object. But the
> > setImageResource fails to display the image. If it succeeds, I would
> > like to update image on ImageView object based on some criteria.
> >
> > Here is my XML layout file looks like:
> >
> >  > xml version="1.0" encoding="utf-8"?>
> > http://schemas.android.com/apk/res/
> > android"
> > android:orientation="vertical"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent">
> >  > android:orientation="vertical"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:layout_weight="1">
> >  > id="@+id/batteryLevelview"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content"
> > android:layout_gravity="center"/>
> > 
> > 
> >
> > Here is my code:
> >
> > @Override
> > public void onCreate(Bundle savedInstanceState) {
> > super.onCreate(savedInstanceState);
> > setContentView(R.layout.main);
> > ImageView batteryLevelImage = (ImageView)
> > findViewById(R.id.batteryLevelview);
> > batteryLevelImage.setImageResource(R.drawable.notconnected);
> >
> > }
> >
> > I could not find what's wrong. I tried using the LinearLayout and that
> > did not help. Please help me what's wrong.
> >
> > 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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: Problem with Intent.

2010-04-01 Thread Kumar Bibek
1. Well, if you are executing the same piece of code everytime, the
code will get executed. :)
Can you please explain a bit in detail what you want to achieve.

2. You can create Overlays on a MapView to create this kind of effect.
Search for some tutorials on Map Overlays.

Thanks and Regards,
Kumar Bibek

On Apr 1, 3:12 pm, thetuxracer  wrote:
> Hi,
> I have two unrelated questions:
> 1. I have this code, where I use putExtra(), and create an intent, and
> use getExtra() in the new intent. This happens on a menu press.
> But when I use the menus repeatedly, a lot of intents are created. and
> pressing the back button of emulator cycles through all the intents.
> Is there any way to limit my program between the intents I have
> created? or is there any function I need to use?
>
> 2. Is there anyway to create this, on a 
> MapView?http://i44.tinypic.com/105y5n7.gif
>
> 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Sending email with attachment

2010-04-01 Thread Kumar Bibek
Some logcat logs will be helpful in trying to figure out what went
wrong.

Thanks and Regards,
Kumar Bibek

On Apr 1, 2:10 pm, powder  wrote:
> Hi,
>
> I never got this to work on a real device, got the email but no
> attachment, also when installing K9 on a emulator and
> then sending the email I see the mail in the outbox with a size of 0
> bytes:
>
> public static void sendFile(Context context) {
>   File exportDir = new File(Environment.getExternalStorageDirectory(),
> "mydir");
>   if (!exportDir.exists()) {
>     exportDir.mkdirs();
>   }
>   String csvFile = exportDir + "/file.csv";
>   File file = new File(csvFile);
>   if(file.exists()) {
>     Intent sendIntent = new Intent(Intent.ACTION_SEND);
>     sendIntent.putExtra(Intent.EXTRA_SUBJECT, "CSV file");
>     sendIntent.setType("text/csv");
>     //sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
>     //sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" +
> Environment.getExternalStorageDirectory() + "/mydir/file.csv"));
>     sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/
> mydir/file.csv"));
>     context.startActivity(Intent.createChooser(sendIntent, "Send CSV
> file"));
>   } else {
>     Util.displayToast(context, R.string.no_csv_file);
>   }
>
> }
>
> Any help appreciated.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] MediRecorder query

2010-04-01 Thread Anandi
HI all,

Can anyone please tell me the location where the audioflinger,
surfaceflinger and cameraservice talk to MediaRecorder's APIs?

Is there any relation between MediaRecorder and AudioRecord?

Please do reply

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: including my .so files in sdk.

2010-04-01 Thread James Wang
add commands like below in build/target/product/sdk:
PRODUCT_COPY_FILES += \
   $(proprietary)/libaudioeq.so:system/lib/libaudioeq.so

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: My location not getting in real device

2010-04-01 Thread Mark Murphy
Vaikunth wrote:
> Hi Mark,
> 
>> Here is a sample application demonstrating obtaining your location via GPS:
>>
>> http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/
>>
> The same thing happen the sample provided by you.
> In my device it is not working and in emulator it is working fine
> (when I send the lat and long).
> I am using eclips Ganymede.
> 
>> Assuming you have the proper permissions in your manifest, it should
>> just work.
> 
> I have set all the permission for the GPS in my application.
> 
> Waiting for your response.

Add some logging statements to confirm whether you are actually getting
a GPS fix, as you may not get an actual forecast unless you are in the
United States.

If that is not your problem, then your device may be broken. The code in
question has been used extensively and is known to work.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Beginning Android 2_ from Apress Now Available!

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Sqlite and SimpleCursorAdapter

2010-04-01 Thread Mark Murphy
elham wrote:
>  Hello , I want to create a table whose primary key will  be some
> other field and not _id . The below table gets created but the value
> of _id remains null  :
> 
> "create table accounts ("+BaseColumns._ID+" integer , profile_name
> text primary key"
> +" name text not null);";
> 
> My doubt is wont _id get auto incremented if we do not place
> "+BaseColumns._ID integer primary key autoincrement+" .
> 
> Kindly assist .

You have two choices that I can see:

1. Use integer primary key autoincrement and deal with the fact that you
have two distinct primary keys

2. Do not use CursorAdapter or its subclasses, but create your own
Adapter that uses your own primary key

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Beginning Android 2_ from Apress Now Available!

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Ads in apps... How to successfully generate a larger revenue?

2010-04-01 Thread Justin Giles
On Thu, Apr 1, 2010 at 3:13 AM, Kevin Duffey  wrote:

> So help clarify something to me if you ad guys don't mind.. if you just
> display an ad.. do you get paid? Or does a user have to click on the ad for
> you to make any money? If it's both.. I am guessing you get more money when
> they click on the ad?
>
>
This depends on the ad company.  With Greystripe you get money for every ad
viewed regardless of clicking.  With most other ad companies (AdMob,
Mobclix, Google, etc.) they have the more traditional approach of you only
get paid for clicks.  Payout per click and, with Greystripe, depends on many
factors including how many ads did it show before a user clicked, cost of
the ad campaign, etc.  No ad company will ever go into the details of this.



> What measures are in place to avoid "bots" from simulating users looking at
> ads?
>
>
Again, no ad company will divulge the details of how to trick the system.
 But, they do have mechanisms in place to find this and in most cases
suspend your account if fraud is found.  Best case is to play nice and to
never, never, never, never you yourself click on ads in your own
applications.

Justin

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: My location not getting in real device

2010-04-01 Thread Vaikunth
Hi Mark,
Thanks for reply.


My observation over my Samsung Galaxy Spika
I have installed one application from market which shows me my
location so there is no problem in my device.

Now in my app:
I have set all the permission like
 
 
 
 

And it is running fine in emulator using mock location.

So what else remaining.

Please reply.

Thanks,
Vaikunth


On Apr 1, 4:52 pm, Mark Murphy  wrote:
> Vaikunth wrote:
> > Hi Mark,
>
> >> Here is a sample application demonstrating obtaining your location via GPS:
>
> >>http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/
>
> > The same thing happen the sample provided by you.
> > In my device it is not working and in emulator it is working fine
> > (when I send the lat and long).
> > I am using eclips Ganymede.
>
> >> Assuming you have the proper permissions in your manifest, it should
> >> just work.
>
> > I have set all the permission for the GPS in my application.
>
> > Waiting for your response.
>
> Add some logging statements to confirm whether you are actually getting
> a GPS fix, as you may not get an actual forecast unless you are in the
> United States.
>
> If that is not your problem, then your device may be broken. The code in
> question has been used extensively and is known to work.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Beginning Android 2_ from Apress Now Available!

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: My location not getting in real device

2010-04-01 Thread Vaikunth
Hi Mark,
Thanks for reply.

I am in India.

So my observation over my Samsung Galaxy Spika
I have installed one application from Android Market which shows me my
location so I think there is no problem in my device.

Now in my app:
I have set all the permission





And it is running fine in emulator using mock location.

So what else remaining.

Please reply.

Thanks,
Vaikunth

On Apr 1, 4:52 pm, Mark Murphy  wrote:
> Vaikunth wrote:
> > Hi Mark,
>
> >> Here is a sample application demonstrating obtaining your location via GPS:
>
> >>http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/
>
> > The same thing happen the sample provided by you.
> > In my device it is not working and in emulator it is working fine
> > (when I send the lat and long).
> > I am using eclips Ganymede.
>
> >> Assuming you have the proper permissions in your manifest, it should
> >> just work.
>
> > I have set all the permission for the GPS in my application.
>
> > Waiting for your response.
>
> Add some logging statements to confirm whether you are actually getting
> a GPS fix, as you may not get an actual forecast unless you are in the
> United States.
>
> If that is not your problem, then your device may be broken. The code in
> question has been used extensively and is known to work.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Beginning Android 2_ from Apress Now Available!

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: My location not getting in real device

2010-04-01 Thread Mark Murphy
Vaikunth wrote:
> Hi Mark,
> Thanks for reply.
> 
> I am in India.
> 
> So my observation over my Samsung Galaxy Spika
> I have installed one application from Android Market which shows me my
> location so I think there is no problem in my device.
> 
> Now in my app:
> I have set all the permission
>  permission>
>  android:name="android.permission.ACCESS_FINE_LOCATION" />
>  android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
>  android:name="android.permission.ACCESS_COARSE_LOCATION" />
> 
> And it is running fine in emulator using mock location.
> 
> So what else remaining.

I have no further advice, other than to get rid of
ACCESS_LOCATION_EXTRA_COMMANDS.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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: My location not getting in real device

2010-04-01 Thread Vaikunth
By logging i can find that LocationListener() not called.

So is there any issue in that.

On Apr 1, 5:26 pm, Mark Murphy  wrote:
> Vaikunth wrote:
> > Hi Mark,
> > Thanks for reply.
>
> > I am in India.
>
> > So my observation over my Samsung Galaxy Spika
> > I have installed one application from Android Market which shows me my
> > location so I think there is no problem in my device.
>
> > Now in my app:
> > I have set all the permission
> >  > permission>
> >  > android:name="android.permission.ACCESS_FINE_LOCATION" />
> >  > android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
> >  > android:name="android.permission.ACCESS_COARSE_LOCATION" />
>
> > And it is running fine in emulator using mock location.
>
> > So what else remaining.
>
> I have no further advice, other than to get rid of
> ACCESS_LOCATION_EXTRA_COMMANDS.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] enable LOG for native WebKit

2010-04-01 Thread allstars
hi
recently i tried to see logs in native WebKit
but in the end found nothing in ddms

finally i found the cause is that
in WebCore/config.h , it includes 
which defines LOG macro

therefore the LOG{VDIEW} macro will be redirected to WTFLog
instead of android_log

try to do #undef LOG before you including "utils/Log.h" or "cutils/
log.h"

and try not to include them before including "config.h"

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread timedilation
Somehow I didn't have to do any activation of my Droid. Not sure if
this is done automatically as soon as you connect to a wi-fi. But I am
able to see my phone number and make calls too. I dont have a verizon
plan (I am on AT&T). Will this service simply stop working after 30
days?


On Mar 31, 9:48 am, timedilation  wrote:
> Got DROID in Boca Raton FL this morning. Anyone willing to swap their
> N1?
> My pkg was delivered by FedEx from BrightPoint
>
> On Mar 31, 8:49 am, Warren  wrote:
>
>
>
> > Got a Droid from FedEx near Des Moines Iowa today.
>
> > Thanks Google.
>
> > Curiously, when I called FedEx last week trying to track the package
> > (as many of us did) they said they didn't have a package for me.
>
> > On Mar 30, 5:14 pm, Andrei  wrote:
>
> > > got Droid in FL today
> > > Thank you Google
>
> > > On Mar 30, 5:47 pm, Breezy  wrote:
>
> > > > Received my Droid in Alabama today.

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread Disconnect
I can't speak specifically to the droid (I haven't turned mine on yet,
hoping to swap it for an N1) but the way the google io devices worked was
basically that - they "just worked" for a month, and then you had to set up
an actual plan.

ISTR t-mobile actually left it on an extra few days for people, although I
don't know if they sent any reminder sms's or anything.

On Thu, Apr 1, 2010 at 8:57 AM, timedilation  wrote:

> Somehow I didn't have to do any activation of my Droid. Not sure if
> this is done automatically as soon as you connect to a wi-fi. But I am
> able to see my phone number and make calls too. I dont have a verizon
> plan (I am on AT&T). Will this service simply stop working after 30
> days?
>
>
> On Mar 31, 9:48 am, timedilation  wrote:
> > Got DROID in Boca Raton FL this morning. Anyone willing to swap their
> > N1?
> > My pkg was delivered by FedEx from BrightPoint
> >
> > On Mar 31, 8:49 am, Warren  wrote:
> >
> >
> >
> > > Got a Droid from FedEx near Des Moines Iowa today.
> >
> > > Thanks Google.
> >
> > > Curiously, when I called FedEx last week trying to track the package
> > > (as many of us did) they said they didn't have a package for me.
> >
> > > On Mar 30, 5:14 pm, Andrei  wrote:
> >
> > > > got Droid in FL today
> > > > Thank you Google
> >
> > > > On Mar 30, 5:47 pm, Breezy  wrote:
> >
> > > > > Received my Droid in Alabama today.
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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: Network connectivity checking without wakelock

2010-04-01 Thread Tako Au
Maybe I should make my question clearer: that Wi-fi sleep policy can
be controlled using an API or is set by users?

On 4月1日, 上午2時27分, magpad  wrote:
> I've had the same issue(maybe) about my widget app.
> If device goes sleep, my widget couldn't get data from internet
> whether wake-lock uses or not.
> So I set "Wi-Fi sleep policy" to "Never", I got data appropriately
> while device is sleeping.
> Since I published that app to Android Market, I didn't get any
> complaints from users.
> BUT this is not underlying solution, sorry...
>
> On 4月1日, 午前2:57, Tako Au  wrote:
>
> > Thanks Magpad for your kindly help
>
> > So you're saying that my application's behaviour depends on the user's
> > setting?
>
> > On 4月1日, 上午1時49分, magpad  wrote:
>
> > > Hi
>
> > > How about "Wi-Fi sleep policy" setting?
> > > Did you set "Never" value?
>
> > > On 3月26日, 午後11:30, Tako Au  wrote:
>
> > > > I have a terrible bug in my widget.  The widget is waken up using an
> > > > AlarmManager (the update interval is chosen by users, ranging from 30
> > > > mins to 2 hours) to grab some data from the Internet and display it on
> > > > the widget.  I do not hold a wakelock since if the phone sleeps, just
> > > > let it sleeps.  There's no way to update the information since nobody
> > > > will see it.
> > > > If I put the phone in the basement (has no wi-fi or cell signal) for
> > > > about an hour. the phone will definitely not update anything.
> > > > However, when I get it back from the basement, the cell network could
> > > > never be recovered again no matter how long I have waited (it just get
> > > > an X on the cell signal icon on the notification bar) that I must
> > > > restart the phone.  May I know if a partial wake lock must be held on
> > > > checking network availability?
>
> > > > Your help is highly appreciated.  Please find the code skeleton as
> > > > below:
>
> > > >         public void onReceive(Context context, Intent intent) {
> > > >                 ..
> > > >                 Intent intent = new Intent(context, 
> > > > UpdateAppWidget.class);
> > > >                 context.startService(intent);
> > > >                 ..
> > > >         }
>
> > > >         public static class UpdateAppWidget extends Service {
> > > >                 @Override
> > > >                 public void onStart(Intent intent, int startId) {
> > > >                         ..
> > > >                         ConnectivityManager cm =  (ConnectivityManager)
> > > > context.getSystemService(Context.CONNECTIVITY_SERVICE);
> > > >                         if
> > > > (cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).isAvailable() ||
> > > >                                 
> > > > cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isAvailable()) {
> > > >                                 ..Grab something in the net...
> > > >                         }
>
> > > >                         ..
> > > >                         //  Make another alarm for next update
> > > >                         Intent widgetUpdate = new Intent();
> > > >                         
> > > > widgetUpdate.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
> > > >                         
> > > > widgetUpdate.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, new
> > > > int[]{widgetId});
> > > >                         
> > > > widgetUpdate.setData(Uri.withAppendedPath(Uri.parse(URI_HEADER),
> > > > String.valueOf(widgetId)));
> > > >                         PendingIntent newPending = 
> > > > PendingIntent.getBroadcast(this, 0,
> > > > widgetUpdate, pendingIntent.FLAG_UPDATE_CURRENT);
> > > >                         AlarmManager alarm = (AlarmManager)
> > > > this.getSystemService(Context.ALARM_SERVICE);
> > > >                                         alarm.set(AlarmManager.RTC, 
> > > > System.currentTimeMillis() + 1000 *
> > > > currentValue, newPending);
>
> > > >                         //  Refresh the widget
> > > >                         manager.updateAppWidget(widgetId, views);
>
> > > >                         //  Kill the service after done
> > > >                         this.stopSelf();
> > > >                 }
> > > >         }
>
>

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Setting size of image in Gallery widget from xml

2010-04-01 Thread Geefer
Hi,
Does anyone know how to set the size of the images in a Gallery view
from an xml file rather than setting in java using:
imageView.setLayoutParams(new Gallery.LayoutParams(120, 120));

I have tried inflating the imageView from an xml file (with
layout_height=120 etc.) in the adapter getView method but this does
not appear to work.

Thanks, Paul

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread android app
Can you use 3G for web?

I haven't figure out how?

On Apr 1, 8:57 am, timedilation  wrote:
> Somehow I didn't have to do any activation of my Droid. Not sure if
> this is done automatically as soon as you connect to a wi-fi. But I am
> able to see my phone number and make calls too. I dont have a verizon
> plan (I am on AT&T). Will this service simply stop working after 30
> days?
>
> On Mar 31, 9:48 am, timedilation  wrote:
>
> > Got DROID in Boca Raton FL this morning. Anyone willing to swap their
> > N1?
> > My pkg was delivered by FedEx from BrightPoint
>
> > On Mar 31, 8:49 am, Warren  wrote:
>
> > > Got a Droid from FedEx near Des Moines Iowa today.
>
> > > Thanks Google.
>
> > > Curiously, when I called FedEx last week trying to track the package
> > > (as many of us did) they said they didn't have a package for me.
>
> > > On Mar 30, 5:14 pm, Andrei  wrote:
>
> > > > got Droid in FL today
> > > > Thank you Google
>
> > > > On Mar 30, 5:47 pm, Breezy  wrote:
>
> > > > > Received my Droid in Alabama today.

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Notification manager question

2010-04-01 Thread ~ TreKing
On Thu, Apr 1, 2010 at 5:46 AM, guru  wrote:

> after 2nd function notiifes, then 1st function should start... how
> this can be handled? can I use same ID 120 for both functions?
>
> if i update number field, it is not updating the status bar
>

I'm confused on what you're asking and what you're trying to do but 

1 - You create a Notification object with all the properties you want to
show up in the notification area (title, subtitle, flags, intent to launch,
(if any) when clicked, etc.) This is where you set the number that should
show up overlayed on the notification when the notification window is
collapsed.

2 - You call NotificationManager.notify() with the Notification object you
created with a specific ID. This ID tells the system to either create a new
item in the notification window or update an existing one with the same ID.
If you update an existing one (by passing ID 120 as in your example) the
properties, including the number, should update to reflect the new
Notification.

Hope that helps some.

-
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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Not sure if this is possible

2010-04-01 Thread Kumar Bibek
I don't think it is possible without rooting your phone. The private
internal classes cannot be accessed by your app with the default
installation.

Thanks and Regards,
Kumar Bibek

On Mar 31, 10:15 pm, Isaac Wagner  wrote:
> I want to write an app that would just be for my phone.  I don't
> intend to distribute it.  Basically, what I want to do is write a
> replacement phone app.  However, all the phone API's that the existing
> phone app uses are all internal non-public API's.
>
> So, my questions:
>
> 1. I've seen time and time again on this list that the Android
> developers don't like people using internal Android classes, but since
> this will just be for my phone I don't see a big deal here.  So, how
> do I get access to those internal classes.  I'm not looking at the
> code now, but off the top of my head I believe the PhoneFactory and
> Phone classes are what I need.
>
> 2. I don't really want to root my phone, but to do something like this
> do I need to root the phone?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: storing an array of objects

2010-04-01 Thread Kumar Bibek
You can extend the Timer classes and implement the Serializable
interface to achieve serialization.

Thanks and Regards,
Kumar Bibek
http://tech-droid.blogspot.com

On Apr 1, 12:01 pm, ko5tik  wrote:
> On Mar 31, 6:42 pm, Kumar Bibek  wrote:
>
> > You can serialize these objects, store it in files and retrieve it.
> > Read up some articles on Serialization in Java.
>
> If they are Serializable  - yes. But this is not suitable for long
> term storage or
> transfer to other destinations.  What is FQN of those timer objects?
> ( BTW, java.util.Timer is NOT serializable, so you will need some data
> binding)

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread timedilation
I didn't do anything specific on the device. Just turned on wi-fi.
Then some time later I saw the 3G icon displayed. After that I turned
off wi-fi and the 3G data plan tookover - maps, market, youtube etc...


On Apr 1, 10:22 am, android app  wrote:
> Can you use 3G for web?
>
> I haven't figure out how?
>
> On Apr 1, 8:57 am, timedilation  wrote:
>
>
>
> > Somehow I didn't have to do any activation of my Droid. Not sure if
> > this is done automatically as soon as you connect to a wi-fi. But I am
> > able to see my phone number and make calls too. I dont have a verizon
> > plan (I am on AT&T). Will this service simply stop working after 30
> > days?
>
> > On Mar 31, 9:48 am, timedilation  wrote:
>
> > > Got DROID in Boca Raton FL this morning. Anyone willing to swap their
> > > N1?
> > > My pkg was delivered by FedEx from BrightPoint
>
> > > On Mar 31, 8:49 am, Warren  wrote:
>
> > > > Got a Droid from FedEx near Des Moines Iowa today.
>
> > > > Thanks Google.
>
> > > > Curiously, when I called FedEx last week trying to track the package
> > > > (as many of us did) they said they didn't have a package for me.
>
> > > > On Mar 30, 5:14 pm, Andrei  wrote:
>
> > > > > got Droid in FL today
> > > > > Thank you Google
>
> > > > > On Mar 30, 5:47 pm, Breezy  wrote:
>
> > > > > > Received my Droid in Alabama today.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Writing Current Time

2010-04-01 Thread Kumar Bibek
Using the calendar object and get time in different formats. The best
format to save , according to me is in milliseconds. That would make
the retrieval of the same easier.

Thanks and Regards,
Kumar Bibek

On Mar 31, 1:14 pm, grace  wrote:
> ya u can use the calendar for that
>
> On Mar 31, 11:45 am, perumal316  wrote:
>
> > Hi All,
>
> > In my application I will be writing messages to a text file. When I am
> > writing the messages I also want to include the time in it.
>
> > How do i write in the current date and time? Must I use Calendar now =
> > Calendar.getInstance() ?
>
> > Thanks In Advance,
> > Perumal

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Google Checkout or Paypal Integration into Android using its Web Services?

2010-04-01 Thread Kumar Bibek
Google Checkout and Paypal, both have apis that you can use with your
apps.

Thanks and Regards,
Kumar Bibek

On Apr 1, 12:54 pm, javame_android  wrote:
> Hi,
>
> I have already asked this question regarding Payment Gateway
> Integration into Android, but didn't got any satisfactory answers.
>
> Can someone let me know is it actually possible to integrate any of
> the above mentioned Payment Gateways into Android?
>
> Mostly I think we can call their Web Services and then consume those
> services which will be in XML.
>
> I will like to know if someone has done the same thing or is
> absolutely sure about this.
>
> I want to develop a shopping cart type application where the user
> needs to purchase the products from the list of products. Once the
> user selects the product, the payment should be made directly from the
> same application only and not by opening Google Checkout or Paypal
> mobile website.
>
> Please let me know what you people think about this.
>
> Hope to get the answer quickly.
>
> Thanks & Regards
> Sunil

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread android app
Thanks.  Mine works now.

There was no 3G icon.  I first tried the airplane mode and turned off
wifi.  After turning off airplane mode, there was a warning sign
saying "lost data connectivity ...leaving home network".  Then I
enabled data roaming. 3G is working now.  :-)

Just one more questions.  There is always an empty triangle icon (or
symbol "Delta") in the status bar.  Does your phone have it? What does
it mean?

On Apr 1, 10:58 am, timedilation  wrote:
> I didn't do anything specific on the device. Just turned on wi-fi.
> Then some time later I saw the 3G icon displayed. After that I turned
> off wi-fi and the 3G data plan tookover - maps, market, youtube etc...
>
> On Apr 1, 10:22 am, android app  wrote:
>
> > Can you use 3G for web?
>
> > I haven't figure out how?
>
> > On Apr 1, 8:57 am, timedilation  wrote:
>
> > > Somehow I didn't have to do any activation of my Droid. Not sure if
> > > this is done automatically as soon as you connect to a wi-fi. But I am
> > > able to see my phone number and make calls too. I dont have a verizon
> > > plan (I am on AT&T). Will this service simply stop working after 30
> > > days?
>
> > > On Mar 31, 9:48 am, timedilation  wrote:
>
> > > > Got DROID in Boca Raton FL this morning. Anyone willing to swap their
> > > > N1?
> > > > My pkg was delivered by FedEx from BrightPoint
>
> > > > On Mar 31, 8:49 am, Warren  wrote:
>
> > > > > Got a Droid from FedEx near Des Moines Iowa today.
>
> > > > > Thanks Google.
>
> > > > > Curiously, when I called FedEx last week trying to track the package
> > > > > (as many of us did) they said they didn't have a package for me.
>
> > > > > On Mar 30, 5:14 pm, Andrei  wrote:
>
> > > > > > got Droid in FL today
> > > > > > Thank you Google
>
> > > > > > On Mar 30, 5:47 pm, Breezy  wrote:
>
> > > > > > > Received my Droid in Alabama today.

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Google Checkout or Paypal Integration into Android using its Web Services?

2010-04-01 Thread Kevin Duffey
Right.. but are they RESTful apis that can be used... or are they android
SDK (or java sdk) that you have to download and include in your app to work?
I'd personally rather have a complete RESTful api to use over an SDK
implementation.. RESTful api makes my code much more lightweight, and I can
use just the calls I want.


On Thu, Apr 1, 2010 at 8:35 AM, Kumar Bibek  wrote:

> Google Checkout and Paypal, both have apis that you can use with your
> apps.
>
> Thanks and Regards,
> Kumar Bibek
>
> On Apr 1, 12:54 pm, javame_android  wrote:
> > Hi,
> >
> > I have already asked this question regarding Payment Gateway
> > Integration into Android, but didn't got any satisfactory answers.
> >
> > Can someone let me know is it actually possible to integrate any of
> > the above mentioned Payment Gateways into Android?
> >
> > Mostly I think we can call their Web Services and then consume those
> > services which will be in XML.
> >
> > I will like to know if someone has done the same thing or is
> > absolutely sure about this.
> >
> > I want to develop a shopping cart type application where the user
> > needs to purchase the products from the list of products. Once the
> > user selects the product, the payment should be made directly from the
> > same application only and not by opening Google Checkout or Paypal
> > mobile website.
> >
> > Please let me know what you people think about this.
> >
> > Hope to get the answer quickly.
> >
> > Thanks & Regards
> > Sunil
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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] Making money through advertising in an Android Application

2010-04-01 Thread Kevin Duffey
Yes.. many people are making money, although not nearly as much as iPhone
developers right now. Some make ok money, some just a little bit. AdMob,
Greystripe and others allow in-app ads that will produce money. We've
recently discussed and finally were filled in that you can also have your
own virtual goods payment in your own app. So if you're willing to do the
leg work, you can provide in-app goods, that players can buy (if they are
willing to) as well and make money that way.


On Thu, Apr 1, 2010 at 2:26 AM, jax  wrote:

> Does anyone know if there is any money to be made in Android
> Advertising inside an app?
>
> 1.  Is anyone making any money?
> 2.  If so how much and what is your average downloads per day from the
> Market?
> 3.  Is AppMobile the best choice?
>
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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] AlarmManager - Listening to Alarms set/cancel method

2010-04-01 Thread Kumaravel Kandasami
Hi

I am designing an app that would  listen to alarms being set/cancelled on
the phone (
android.app.AlarmManager) based on that event occurance, would do some
specific set of operations.

At this point, I am not sure how to listen to the AlarmManager operations
being invoked(specifically set*() & cancel() operations),
do my app need to listen for any "PendingIntent"
(android.app.PendingIntent).
 Any thoughts or suggestions around this is very much appreciated.

Thank You.
Kumar_/|\_
www.saisk.com
ku...@saisk.com
"making a profound difference with knowledge and creativity..."

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] AlarmManager - Listening to Alarms set/cancel method

2010-04-01 Thread Mark Murphy
Kumaravel Kandasami wrote:
> I am designing an app that would  listen to alarms being
> set/cancelled on the phone (
> android.app.AlarmManager) based on that event occurance, would do some
> specific set of operations.
>  
> At this point, I am not sure how to listen to the AlarmManager
> operations being invoked(specifically set*() & cancel() operations),

You do not listen for those operations.

> do my app need to listen for any "PendingIntent"
> (android.app.PendingIntent). 

You define the PendingIntent, and you need to arrange to respond to the
Intent that is raised. Usually, you will create a broadcast
PendingIntent and so need to watch for your Intent to be broadcast.

Here is a sample project demonstrating the technique, from a receiver
registered to get control at boot time:

http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Online Training: 10-14 May 2010: http://onlc.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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: conditional compilation

2010-04-01 Thread Bob Kerns
My first response was to say "OF COURSE YOU CAN!" -- but then I
realized you must be talking about including or excluding data
members, rather than the actual data.

All I can say is, if you're doing that in C++, you're doing it wrong,
and you should read up on object-oriented design patterns.

C++ goes out of its way to make #ifdef unnecessary. But a lot of C++
programmers come from a C background, or read a lot of C in the
process of learning C++, that they never learn to properly use it. It
doesn't help that the language is insanely complicated, and it takes a
LOT of time and effort to become really proficient.

Adding or not adding fields and methods to classes should be handled
through subclassing and/or interfaces. And you should consider
refactoring into collaborations of separate objects, rather than large
flat classes.

Guy Steele, the author of the Java standard, cowrote a popular book on
C, and was a key member of Tartan Laboratories, which created
optimizing C compilers for a wide range of platforms. James Gossling
had a huge amount of C experience as well, implementing Gossling
Emacs, and of course, Java. Hell, Guy used to write maintain a huge
amount of ITS PDP-10 macro assembler, code that I also worked on as
part of the same group at MIT, so I can say with absolute certainty --
the designers of the Java language and its standard are VERY aware of
conditional compilation, and the reasons it is not in the language are
to make it a better language.

I can also speak from my own personal experience. It's hard to
quantify my C/C++ experience, but it goes back to the 1970's, long
before there was even a dream of C++, and Java since relatively soon
after it came out in 1995. I've mentored a lot of people both in C++
and Java. I've also participated in language standardization efforts,
maintained and written compilers and language runtimes.

Now, all that constitutes "argument by authority", and proves nothing,
of course.  But I'm not trying to get you to switch off your mind and
just believe what I'm telling you. On the contrary -- when there's a
consensus of experts, you should poke around, kick the tires, explore,
try things, look for counter-examples, etc.

One of the best type of counter-example is "X is a real gain of time",
as you put it. My guess is that it's a gain of time for you because
you're not familiar with other techniques, but if you'd like to post a
more concrete example, we can discuss it and alternatives.

I won't waste your time with examples of how conditional compilation
can waste your time, as the solution is generally "don't use it that
way".

But I'm generally in favor of things that save you time. Sometimes,
even things that save you time up front but cost you more time later.

On Mar 31, 4:50 pm, Emmanuel  wrote:
> Waooo...
>
> I think you are a little bit expeditive on this one !
>
> I really think #ifdef are a very important thing in C / C++, and I
> missed so much in any other languages I am using !
>
> Using static / constant data can't achieve the same thing : for
> instance you can't have different data in a class without ifdef...
> It makes programs more difficult to read, but you really can switch
> from different versions of your programs much more easily, and it's a
> real gain of time !
>
> Emmanuelhttp://androidblogger.blogspot.com/http://www.alocaly.com/
>
> On Mar 30, 12:36 pm, Bob Kerns  wrote:
>
>
>
> > You do not do that in Java.
>
> > I suggest you should not do that in C++, as there are better ways to
> > do it.
>
> > I suggest you do not use C.
>
> > On Mar 30, 2:57 am, Dilip Dilip  wrote:
>
> > > Hi All,
> > >  How to do conditional compilation in JAVA.
>
> > > something like in C, C++ :
>
> > > #ifdef TRUE_CONDITION
>
> > > #else
>
> > > #endif
>
> > > Thanks and Regards,
> > >   Dileep

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] onSignalStrengthsChanged bug?

2010-04-01 Thread Ken H
I have an app for measuring a lot of phone stats including signal
strength, and it works fine. I'm using the new
onSignalStrengthsChanged method in Eclair (the old
onSignalStrengthChanged was depracated in v2.0.1) and I've updated my
app to include a service to continue recording that rssi value after
you've exited the app (mostly to save the battery, but also for
monitoring the phone state while making calls, etc.)

Anyway, I've tested the service out on my way to work and notice that
if I let the phone go to sleep (hit the power button and the screen
goes off) the signal strength value does not change -- it continues to
hold the value it had when the phone went to sleep. I know the
PhoneStateListener is working because I'm seeing updates for the
cellID which comes from the onCellLocationChanged method in the
PhoneStateListener.

This services works as expected if I keep the phone awake by using
Google Maps or just tapping the screen periodically while at the
desktop -- in other words not letting the phone fall asleep. When I do
that the data collected shows the cellID being updated *and* the
signal strength changing as I drive.

I know not a lot of people do this sort of thing (RF stuff), but has
anybody else seen this? Is this a bug?

Ken

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
We have an app thats running on 1.6 and higher but we want it to be
able to run on 1.5 also. So I tested the app with 1.5 and everything
works fine. So if I want to release this app can I release it as an
update for my older app with just changing

 to
?

Will there be any problems if I do so?
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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Michael Rueger

On 4/1/2010 6:36 PM, Achanta wrote:

We have an app thats running on 1.6 and higher but we want it to be
able to run on 1.5 also. So I tested the app with 1.5 and everything
works fine. So if I want to release this app can I release it as an
update for my older app with just changing

   to
 ?

Will there be any problems if I do so?


We did that with our app it seems to work fine.

Michael

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Writing Current Time

2010-04-01 Thread Ken H
Just pulling stuff outta my code...

/* create a date format object that you like */
SimpleDateFormat tsFormat = new SimpleDateFormat("d MMM 
HH:mm:ss");

/* get the time */
Calendar timeStamp = Calendar.getInstance();

/* convert that time to a string */
String ts = tsFormat.format(timeStamp.getTime());

That's it. Using this method you would end up with a string that looks
like this:

"1 Apr 2010 07:41:10"

Remember, most of this junk is just Java. There are gobs of
'cookbooks' out on the web for this sort of thing.

Ken H

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Achanta
I just posted a message on this group and got this back to my mail
from some dreamhost.com.

Hope someone at Google looks into this.

But the fact is that it has been successfully posted and also got a
reply for it.
http://groups.google.com/group/android-developers/browse_thread/thread/9eb9d8803e88709a?hl=en#

Its annoying.

===
fromMail Delivery Subsystem 
to  k.@gmail.com
dateThu, Apr 1, 2010 at 10:37 AM
subject Your message was NOT received by android-
develop...@googlegroups.com!
mailed-by   kitty.g.dreamhost.com

hide details 10:37 AM (3 minutes ago)

We're sorry.. your email was unable to be processed by our automatic
support system, and so is being returned to you.

We could not find your email address in our customer database and so
couldn't accept your email. Due to the HUGE volume of spam we receive
at this address, we've been forced to implement this new policy.

Therefore, please just re-submit your message at:

  http://www.dreamhost.com/contact.cgi

All messages submitted through that form are guaranteed to be
received,
even if you aren't currently a customer!

Our apologies for the inconvenience,
--
The Happy DreamHost Support Team!

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Ads in apps... How to successfully generate a larger revenue?

2010-04-01 Thread polyclefsoftware
On Apr 1, 7:08 am, Justin Giles  wrote:
> On Thu, Apr 1, 2010 at 3:13 AM, Kevin Duffey  wrote:
> > So help clarify something to me if you ad guys don't mind.. if you just
> > display an ad.. do you get paid? Or does a user have to click on the ad for
> > you to make any money? If it's both.. I am guessing you get more money when
> > they click on the ad?
>
> This depends on the ad company.  With Greystripe you get money for every ad
> viewed regardless of clicking.  With most other ad companies (AdMob,
> Mobclix, Google, etc.) they have the more traditional approach of you only
> get paid for clicks.

Well, I thought that until recently. I'm in the Google AdSense for
Mobile Application beta.

Actually, AdSense pays for both impressions and clicks. They don't
break this out in the
reporting, at least that I can tell, though from my observations it
looks as though much more
of my revenue is generated by clicks, rather than impressions.

> Payout per click and, with Greystripe, depends on many
> factors including how many ads did it show before a user clicked, cost of
> the ad campaign, etc.  No ad company will ever go into the details of this.

Yes, the whole process is very opaque.

As far as advice, mine would be to experiment, try different ad
placements.

When I started out, I was serving ads in pop-ups between rounds. My
revenue was good, but
very quickly tapered off. I think people initially looked at the ads,
but very quickly habituated to
just clicking the window away. So I switched to a persistent banner ad
at the top of particular screens.
That has yielded better sustained results, although click-rates did
still taper off.

You have to be careful about attributing better performance to simply
switching ad providers. There is
a novelty effect. There's a whole new batch of ads being served by the
new provider when you switch,
but your results could quickly taper off if they keep serving the same
ads over an extended period of time.

Performance is also difficult to judge since, unlike websites, when we
update an app the effect is not instantaneous.
New users will have the updated version, but current users might be
slow to download the update (or not update at all).
I normally give at least a few days for an update to trickle through
the user base.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Achanta
I got another mail saying this has not been delivered too and I don't
undertstand how someone else other than Google groups is sending me a
mail in reply to the mail I have sent.

On Apr 1, 10:45 am, Achanta  wrote:
> I just posted a message on this group and got this back to my mail
> from some dreamhost.com.
>
> Hope someone at Google looks into this.
>
> But the fact is that it has been successfully posted and also got a
> reply for 
> it.http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Its annoying.
>
> ===
> from    Mail Delivery Subsystem 
> to      k.@gmail.com
> date    Thu, Apr 1, 2010 at 10:37 AM
> subject Your message was NOT received by android-
> develop...@googlegroups.com!
> mailed-by       kitty.g.dreamhost.com
>
> hide details 10:37 AM (3 minutes ago)
>
> We're sorry.. your email was unable to be processed by our automatic
> support system, and so is being returned to you.
>
> We could not find your email address in our customer database and so
> couldn't accept your email. Due to the HUGE volume of spam we receive
> at this address, we've been forced to implement this new policy.
>
> Therefore, please just re-submit your message at:
>
>      http://www.dreamhost.com/contact.cgi
>
> All messages submitted through that form are guaranteed to be
> received,
> even if you aren't currently a customer!
>
> Our apologies for the inconvenience,
> --
> The Happy DreamHost Support Team!

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread David Scott
A triangle usually represents the fact that you are roaming. In this
case it seems to be because it has connected to a network that is not
the default.

On Apr 1, 4:58 pm, android app  wrote:
> Thanks.  Mine works now.
>
> There was no 3G icon.  I first tried the airplane mode and turned off
> wifi.  After turning off airplane mode, there was a warning sign
> saying "lost data connectivity ...leaving home network".  Then I
> enabled data roaming. 3G is working now.  :-)
>
> Just one more questions.  There is always an empty triangle icon (or
> symbol "Delta") in the status bar.  Does your phone have it? What does
> it mean?
>
> On Apr 1, 10:58 am, timedilation  wrote:
>
>
>
> > I didn't do anything specific on the device. Just turned on wi-fi.
> > Then some time later I saw the 3G icon displayed. After that I turned
> > off wi-fi and the 3G data plan tookover - maps, market, youtube etc...
>
> > On Apr 1, 10:22 am, android app  wrote:
>
> > > Can you use 3G for web?
>
> > > I haven't figure out how?
>
> > > On Apr 1, 8:57 am, timedilation  wrote:
>
> > > > Somehow I didn't have to do any activation of my Droid. Not sure if
> > > > this is done automatically as soon as you connect to a wi-fi. But I am
> > > > able to see my phone number and make calls too. I dont have a verizon
> > > > plan (I am on AT&T). Will this service simply stop working after 30
> > > > days?
>
> > > > On Mar 31, 9:48 am, timedilation  wrote:
>
> > > > > Got DROID in Boca Raton FL this morning. Anyone willing to swap their
> > > > > N1?
> > > > > My pkg was delivered by FedEx from BrightPoint
>
> > > > > On Mar 31, 8:49 am, Warren  wrote:
>
> > > > > > Got a Droid from FedEx near Des Moines Iowa today.
>
> > > > > > Thanks Google.
>
> > > > > > Curiously, when I called FedEx last week trying to track the package
> > > > > > (as many of us did) they said they didn't have a package for me.
>
> > > > > > On Mar 30, 5:14 pm, Andrei  wrote:
>
> > > > > > > got Droid in FL today
> > > > > > > Thank you Google
>
> > > > > > > On Mar 30, 5:47 pm, Breezy  wrote:
>
> > > > > > > > Received my Droid in Alabama today.- 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 at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
thank you Michael.

Still looking for someone to confirm it that it does not cause any
problems.

On Apr 1, 10:39 am, Michael Rueger  wrote:
> On 4/1/2010 6:36 PM, Achanta wrote:
>
> > We have an app thats running on 1.6 and higher but we want it to be
> > able to run on 1.5 also. So I tested the app with 1.5 and everything
> > works fine. So if I want to release this app can I release it as an
> > update for my older app with just changing
>
> >        to
> >      ?
>
> > Will there be any problems if I do so?
>
> We did that with our app it seems to work fine.
>
> Michael

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Michael Rueger

On 4/1/2010 6:49 PM, Achanta wrote:

I got another mail saying this has not been delivered too and I don't
undertstand how someone else other than Google groups is sending me a
mail in reply to the mail I have sent.


could be one of the subscribers has an email that bounces with dreamhost 
and then is returned to the sender of the message.

Same occasionally happens with vacation messages.

Michael

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: conditional compilation

2010-04-01 Thread Frank Weiss
A concrete example from the OP would help. I can think of cases where
conditional compilation (as done in C/C++) is and is not needed in Java.

On Apr 1, 2010 9:28 AM, "Bob Kerns"  wrote:

My first response was to say "OF COURSE YOU CAN!" -- but then I
realized you must be talking about including or excluding data
members, rather than the actual data.

All I can say is, if you're doing that in C++, you're doing it wrong,
and you should read up on object-oriented design patterns.

C++ goes out of its way to make #ifdef unnecessary. But a lot of C++
programmers come from a C background, or read a lot of C in the
process of learning C++, that they never learn to properly use it. It
doesn't help that the language is insanely complicated, and it takes a
LOT of time and effort to become really proficient.

Adding or not adding fields and methods to classes should be handled
through subclassing and/or interfaces. And you should consider
refactoring into collaborations of separate objects, rather than large
flat classes.

Guy Steele, the author of the Java standard, cowrote a popular book on
C, and was a key member of Tartan Laboratories, which created
optimizing C compilers for a wide range of platforms. James Gossling
had a huge amount of C experience as well, implementing Gossling
Emacs, and of course, Java. Hell, Guy used to write maintain a huge
amount of ITS PDP-10 macro assembler, code that I also worked on as
part of the same group at MIT, so I can say with absolute certainty --
the designers of the Java language and its standard are VERY aware of
conditional compilation, and the reasons it is not in the language are
to make it a better language.

I can also speak from my own personal experience. It's hard to
quantify my C/C++ experience, but it goes back to the 1970's, long
before there was even a dream of C++, and Java since relatively soon
after it came out in 1995. I've mentored a lot of people both in C++
and Java. I've also participated in language standardization efforts,
maintained and written compilers and language runtimes.

Now, all that constitutes "argument by authority", and proves nothing,
of course.  But I'm not trying to get you to switch off your mind and
just believe what I'm telling you. On the contrary -- when there's a
consensus of experts, you should poke around, kick the tires, explore,
try things, look for counter-examples, etc.

One of the best type of counter-example is "X is a real gain of time",
as you put it. My guess is that it's a gain of time for you because
you're not familiar with other techniques, but if you'd like to post a
more concrete example, we can discuss it and alternatives.

I won't waste your time with examples of how conditional compilation
can waste your time, as the solution is generally "don't use it that
way".

But I'm generally in favor of things that save you time. Sometimes,
even things that save you time up front but cost you more time later.


On Mar 31, 4:50 pm, Emmanuel  wrote:
> Waooo...
>
> I think you are a li...
> Emmanuelhttp://androidblogger.blogspot.com/http://www.alocaly.com/

>
> On Mar 30, 12:36 pm, Bob Kerns  wrote:
>
>
>
> > You do not do that in Java.
>
> >...

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Achanta
That sucks,

But its does not sound right, because it says that it has not been
delivered to android-developers@googlegroups.com and then it links
back to their site. If its bounces of that email it should be received
by everyone in this group.

And moreover mine was a new post. So if it was a subscriber its to the
group and not to my post.


On Apr 1, 10:57 am, Michael Rueger  wrote:
> On 4/1/2010 6:49 PM, Achanta wrote:
>
> > I got another mail saying this has not been delivered too and I don't
> > undertstand how someone else other than Google groups is sending me a
> > mail in reply to the mail I have sent.
>
> could be one of the subscribers has an email that bounces with dreamhost
> and then is returned to the sender of the message.
> Same occasionally happens with vacation messages.
>
> Michael

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Mark Murphy
Achanta wrote:
> But its does not sound right, because it says that it has not been
> delivered to android-developers@googlegroups.com and then it links
> back to their site. If its bounces of that email it should be received
> by everyone in this group.

And it is.

> And moreover mine was a new post. So if it was a subscriber its to the
> group and not to my post.

And it is.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in US: 14-18 June 2010: http://bignerdranch.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: running an online streaming Media player in background as a service .

2010-04-01 Thread rizwan
Can anyone suggest me anything ? please

On Apr 1, 10:15 am, rizwan  wrote:
> Hi,
> I am working on streaming player application and the streaming player
> is perfectly working fine when run as an activity. now I am trying to
> run it as a service and I have to control the progress bar through it
> as well .for that purpose I have coded  a MediaService Class extended
> it from service.from the logcat I can see service being created and
> destroyed.but still this is not working . please advise how can
> acheive my goal ? any alternate solution. how can control
> UserInterface on Activity re-start or refocus ?
>
> I have initied MediaService class from my main activity like this
>
>  Intent myIntent = new Intent(Application.this, X96MediaPlayer.class);
>
> MediaService.setUpdateListener(this,txtstream,imgbtn,playbtn,streambtn,progressbar);
>         startActivityForResult(myIntent, 00)  ;
>
> Note I m attaching my UIUpdataListener through static Method
>
> here is my MediaService class
>
> public class MediaService extends Service {
>
>         private static Application MAIN_ACTIVITY;
>         StreamingMediaPlayer audioStreamer ;
>     private static TextView textStreamed;
>         private static ImageButton playButton;
>         private static ProgressBar      progressBar;
>         private static Button streamButton;
>         private static Context context;
>
>         public static void setUpdateListener(Context  lcontext,TextView
> ltextStreamed, ImageButton      lplayButton, Button
> lstreamButton,ProgressBar       lprogressBar) {
>                 context = lcontext;
>                 textStreamed = ltextStreamed;
>                 playButton = lplayButton;
>                 progressBar = lprogressBar;
>                 streamButton = lstreamButton ;
>
>                 }
>
>         @Override
>         public IBinder onBind(Intent arg0) {
>                 // TODO Auto-generated method stub
>                 return null;
>         }
>
>         @Override public void onCreate() {
>                   super.onCreate();
>
>                   // init the service here
>                   _startService();
>
>                 }
>
>                 @Override public void onDestroy() {
>                   super.onDestroy();
>                   Log.e("Streaming Media", ""Media Service Killed");
>                   _shutdownService();
>
>                 }
>                 private void _startService() {
>                         try {
>                                 Log.e("MediaService", "Media service 
> started");
>                                 audioStreamer = new 
> StreamingMediaPlayer(this,textStreamed,
> playButton, streamButton,progressBar);
>
> audioStreamer.startStreaming(IStreamPlayer.songUrl,IStreamPlayer.mediaLengthInKb,
> IStreamPlayer.mediaLengthInSeconds);
>
>                 } catch (IOException e) {
>                         // TODO Auto-generated catch block
>                         e.printStackTrace();
>                 }
>
>                 }
>                 private void _shutdownService() {
>                         if(audioStreamer !=null)
>                         audioStreamer.interrupt();
>
>                 }
>
> 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] custom Preference work

2010-04-01 Thread eburke
Hi all -- I've been digging around trying to find a solution to my two
issues with Preference, but no luck.  Maybe someone out there has
encountered this.

ISSUE 1

Our designers want a custom header at the top of each preference
screen.  I've tried setting android:layout but that doesn't work the
same for the toplevel PreferenceScreen as it does for child screens.
What I really need to do is subclass PreferenceScreen and change the
ContentView, but sadly, it's sealed.

Basically, I want to have my own UI, with a ListView with id =
"@android:id/list" so that the PreferenceScreen can find where to put
its items.

I looked through the source code to see whether I could simply
override the style for PreferenceScreen, but it appears they use
com.android.internal.R.attr.preferenceScreenStyle when creating the
PreferenceScreen.  Can I somehow override that?  If so, that might be
the way to go.

Does anyone have any other ideas?


ISSUE 2

In our app, we have the ability to "sign in" with your "ID".  We have
the requirement that preferences for each separate ID be stored
indpendently in our database.  I'd like to continue to use the built-
in preference mechanisms.  I was thinking that I might be able to
simply override getSharedPreferences() on the Context that invokes the
preference screen (probably the Application subclass) and return a
custom SharedPreferences class instance.  In my custom instance, I
would simply read and write to the database based on the given user's
ID rather than allowing the base SharedPreferences class to store the
settings itself.

Is this the correct approach?  Are there other solutions that have
worked for anyone?

Thanks!!

-E

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Google Checkout or Paypal Integration into Android using its Web Services?

2010-04-01 Thread Kumar Bibek
Well, you can just go and check what kind of apis are available. It
they are restful, then good for you, else, you have to download the
client jars and use it. Do you have any alternative if the apis are
such?

Thanks and Regards,
Kumar Bibek

On Apr 1, 9:15 pm, Kevin Duffey  wrote:
> Right.. but are they RESTful apis that can be used... or are they android
> SDK (or java sdk) that you have to download and include in your app to work?
> I'd personally rather have a complete RESTful api to use over an SDK
> implementation.. RESTful api makes my code much more lightweight, and I can
> use just the calls I want.
>
> On Thu, Apr 1, 2010 at 8:35 AM, Kumar Bibek  wrote:
> > Google Checkout and Paypal, both have apis that you can use with your
> > apps.
>
> > Thanks and Regards,
> > Kumar Bibek
>
> > On Apr 1, 12:54 pm, javame_android  wrote:
> > > Hi,
>
> > > I have already asked this question regarding Payment Gateway
> > > Integration into Android, but didn't got any satisfactory answers.
>
> > > Can someone let me know is it actually possible to integrate any of
> > > the above mentioned Payment Gateways into Android?
>
> > > Mostly I think we can call their Web Services and then consume those
> > > services which will be in XML.
>
> > > I will like to know if someone has done the same thing or is
> > > absolutely sure about this.
>
> > > I want to develop a shopping cart type application where the user
> > > needs to purchase the products from the list of products. Once the
> > > user selects the product, the payment should be made directly from the
> > > same application only and not by opening Google Checkout or Paypal
> > > mobile website.
>
> > > Please let me know what you people think about this.
>
> > > Hope to get the answer quickly.
>
> > > Thanks & Regards
> > > Sunil
>
> > --
> > 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
>
> > To unsubscribe, reply using "remove me" as the subject.

-- 
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: Ads in apps... How to successfully generate a larger revenue?

2010-04-01 Thread Kevin Duffey
Good info.. so you can integrate google adsense into android apps too? IS
there info on how to do that?

What are the benefits of using 2 or 3 different ones? Just the different ads
that are available? I mean, how do you even know what ads are provided by
each service?

The one that surprises me is people actually click on these things? I can't
imagine during a game I would click on an ad to be taken out of my game to
the device browser to view the ad? That surprises me that anyone would
actually do that.


On Thu, Apr 1, 2010 at 9:47 AM, polyclefsoftware  wrote:

> On Apr 1, 7:08 am, Justin Giles  wrote:
> > On Thu, Apr 1, 2010 at 3:13 AM, Kevin Duffey 
> wrote:
> > > So help clarify something to me if you ad guys don't mind.. if you just
> > > display an ad.. do you get paid? Or does a user have to click on the ad
> for
> > > you to make any money? If it's both.. I am guessing you get more money
> when
> > > they click on the ad?
> >
> > This depends on the ad company.  With Greystripe you get money for every
> ad
> > viewed regardless of clicking.  With most other ad companies (AdMob,
> > Mobclix, Google, etc.) they have the more traditional approach of you
> only
> > get paid for clicks.
>
> Well, I thought that until recently. I'm in the Google AdSense for
> Mobile Application beta.
>
> Actually, AdSense pays for both impressions and clicks. They don't
> break this out in the
> reporting, at least that I can tell, though from my observations it
> looks as though much more
> of my revenue is generated by clicks, rather than impressions.
>
> > Payout per click and, with Greystripe, depends on many
> > factors including how many ads did it show before a user clicked, cost of
> > the ad campaign, etc.  No ad company will ever go into the details of
> this.
>
> Yes, the whole process is very opaque.
>
> As far as advice, mine would be to experiment, try different ad
> placements.
>
> When I started out, I was serving ads in pop-ups between rounds. My
> revenue was good, but
> very quickly tapered off. I think people initially looked at the ads,
> but very quickly habituated to
> just clicking the window away. So I switched to a persistent banner ad
> at the top of particular screens.
> That has yielded better sustained results, although click-rates did
> still taper off.
>
> You have to be careful about attributing better performance to simply
> switching ad providers. There is
> a novelty effect. There's a whole new batch of ads being served by the
> new provider when you switch,
> but your results could quickly taper off if they keep serving the same
> ads over an extended period of time.
>
> Performance is also difficult to judge since, unlike websites, when we
> update an app the effect is not instantaneous.
> New users will have the updated version, but current users might be
> slow to download the update (or not update at all).
> I normally give at least a few days for an update to trickle through
> the user base.
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

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

2010-04-01 Thread Kumar Bibek
Ummm, I am not sure how is it going to help you. However, other than
pulling out the file, I don't think you have an alternative to find
out info about the certificates.

Thanks and Regards,
Kumar Bibek

On Mar 29, 7:57 pm, joern  wrote:
> Hi,
>
> i'm surching a while but i still find no answere for my question.
> In the file  adb pull /system/etc/security/cacerts.bks i found the
> installed rootCA certificates on my phone.
> But do i have a alternative way to find all roots that are installed
> on my Android 2.1 Phone?
>
> I need to know which root CA certificates are installed default with
> version 2.1.
>
> Thanks for you help

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: hangup outgoing call programmatically - is this even possible?

2010-04-01 Thread Kumar Bibek
This question has already been asked and replied to on this forum many
times. Please do a search before posting a questions.

Thanks and Regards,
Kumar Bibek

On Mar 29, 5:05 pm, choon  wrote:
> Hi,
>
> I am new to Android. I would like to create an application that will
> hang up an outgoing call after it has been ringing for several
> seconds.
>
> Based on what I have read in the discussions so far, we can abort a
> call that has just been initiated by using setResultData(null) on the
> BroadcastReceiver. This just means we can effectively censor calls
> only. Not exactly what I am trying to achieve.
>
> If the ability to abort a call after it has started ringing is not
> supported by the SDK, what other means is there for me to achieve
> this? Are there any internal functions that I can use?
>
> Thank you in advance.
>
> Kind regards,
> choon

-- 
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: Ads in apps... How to successfully generate a larger revenue?

2010-04-01 Thread Greg Donald
On Thu, Apr 1, 2010 at 11:35 AM, Kevin Duffey  wrote:
> The one that surprises me is people actually click on these things? I can't
> imagine during a game I would click on an ad to be taken out of my game to
> the device browser to view the ad? That surprises me that anyone would
> actually do that.

Advertising works.  Greystripe is making me rich.


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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Ads in apps... How to successfully generate a larger revenue?

2010-04-01 Thread ~ TreKing
On Thu, Apr 1, 2010 at 12:35 PM, Kevin Duffey  wrote:

> I can't imagine during a game I would click on an ad to be taken out of my
> game to the device browser to view the ad? That surprises me that anyone
> would actually do that.


You're assuming they all do so on purpose ...

-
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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Ads in apps... How to successfully generate a larger revenue?

2010-04-01 Thread Justin Giles
On Thu, Apr 1, 2010 at 11:35 AM, Kevin Duffey  wrote:

> Good info.. so you can integrate google adsense into android apps too? IS
> there info on how to do that?
>
>
You need to apply to and get accepted to the google adsense for mobile
applications.

http://www.google.com/ads/mobileapps

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread ~ TreKing
On Thu, Apr 1, 2010 at 11:51 AM, Achanta  wrote:

> Still looking for someone to confirm it that it does not cause
> any problems.
>

Um ... didn't Michael just do that?
There is no specific problem with what you're doing, except of course
properly testing all supported versions and being careful if / how you use
APIs that did not exist on 1.5.

-
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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread mike

On 04/01/2010 10:53 AM, ~ TreKing wrote:
On Thu, Apr 1, 2010 at 11:51 AM, Achanta > wrote:


Still looking for someone to confirm it that it does not cause
any problems.


Um ... didn't Michael just do that?
There is no specific problem with what you're doing, except of course 
properly testing all supported versions and being careful if / how you 
use APIs that did not exist on 1.5.


Here's the question I have: define "be careful". If "be careful" means
inspecting every class/method call you make against SDK level, I think
you're setting yourself up for failure, as it's extremely easy to miss that,
and the only time you find it is at run time, which for a seldom run piece
of code could be pretty elusive.

It's would be a lot better to "be careful" by having some tool -- maybe in
the android dev tool chain or the eclipse plugin -- that "carefully" goes
through your code looking for method/classes that are below the current
SDK level. I'm sure there are even better ways to "be careful".

But as it right now, "be careful" is just a big smelly hack.

Mike

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Dianne Hackborn
"Be careful" means to test and run the app on the oldest version of the
platform you support to make sure it works.

Just doing automated tests to make sure you are not calling any older APIs
is not a guarantee you will work.

In addition, it is typical for an application to take advantage of Java
class loading to be able to use newer APIs if they are available (see for
example my blog post on the new service APIs), and I don't see any way an
automated tool could accurately determine whether that code is safe on an
older platform.

You just need to make sure you test your app in the key environments it will
run.

On Thu, Apr 1, 2010 at 11:05 AM, mike  wrote:

> On 04/01/2010 10:53 AM, ~ TreKing wrote:
>
>  On Thu, Apr 1, 2010 at 11:51 AM, Achanta > krishna.acha...@gmail.com>> wrote:
>>
>>Still looking for someone to confirm it that it does not cause
>>any problems.
>>
>>
>> Um ... didn't Michael just do that?
>> There is no specific problem with what you're doing, except of course
>> properly testing all supported versions and being careful if / how you use
>> APIs that did not exist on 1.5.
>>
>
> Here's the question I have: define "be careful". If "be careful" means
> inspecting every class/method call you make against SDK level, I think
> you're setting yourself up for failure, as it's extremely easy to miss
> that,
> and the only time you find it is at run time, which for a seldom run piece
> of code could be pretty elusive.
>
> It's would be a lot better to "be careful" by having some tool -- maybe in
> the android dev tool chain or the eclipse plugin -- that "carefully" goes
> through your code looking for method/classes that are below the current
> SDK level. I'm sure there are even better ways to "be careful".
>
> But as it right now, "be careful" is just a big smelly hack.
>
> Mike
>
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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

[android-developers] Re: super.onResume() at beginning or end of method? Does it matter?

2010-04-01 Thread patbenatar
Very interesting. Thanks for pointing out this strange behavior, Bob!



On Mar 31, 8:49 pm, Bob Kerns  wrote:
> It's a good pattern, but I've found some exceptions. For example, the
> theme I wanted to apply to my PreferenceActivity wouldn't take effect
> unless I put it before the superclass's onCreate().
>
> To avoid future compatibility issues, the contract really needs to be
> documented.
>
> I've submitted an issue 
> athttp://code.google.com/p/android/issues/detail?id=7483
>
> On Mar 31, 1:19 pm, Dianne Hackborn  wrote:
>
>
>
> > Yeah this is a good pattern.  In most cases it probably doesn't matter, but
> > it's a general rule: during any kind of initialization, let the super class
> > do their work first; during any kind of finalization, you do your work
> > first.
>
> > On Wed, Mar 31, 2010 at 12:14 PM, patbenatar  wrote:
> > > I'm not positive about this, but I have never run into any issues
> > > doing it the following way: In any method that runs when something
> > > starts [ie: onCreate, onResume], I call through to super FIRST,
> > > allowing the system to start up whatever it needs to before I do
> > > anything. On methods that run when it closes [ie: onPause] I call
> > > through to super AFTER all my closing logic. This way just makes sense
> > > to me... Maybe someone with more technical knowledge could explain
> > > this more accurately :)
>
> > > -Nick
>
> > > On Mar 31, 2:49 am, HippoMan  wrote:
> > > > In general, does it matter in an Activity if I put the call to
> > > > super.onResume() at the beginning or the end of my own onResume()
> > > > method?
>
> > > > In other words, I can do this ...
>
> > > > @Override
> > > > public void onResume() {
> > > >     super.onResume();
> > > >     // do my stuff
>
> > > > }
>
> > > > ... or this ...
>
> > > > @Override
> > > > public void onResume() {
> > > >     // do my stuff
> > > >     super.onResume();
>
> > > > }
>
> > > > Does it matter which one I choose? And if so, why?
>
> > > > Obvously, this probably depends on what "do my stuff" actually
> > > > entails. However, I'm looking for an explanation of what
> > > > super.onResume() actually does, so I can make an intelligent decision
> > > > as to where is the best place to put it in my own onResume method.
>
> > > > I guess the same question would also apply to the position of
> > > > super.onPause(), super.onStart(), super.onRestart(), etc., in the
> > > > appropriate method calls, but let's at least start this discussion
> > > > with super.onResume().
>
> > > > Thanks in advance.
>
> > > --
> > > 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 > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > > To unsubscribe, reply using "remove me" as the subject.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  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: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread mike

On 04/01/2010 11:33 AM, Dianne Hackborn wrote:
"Be careful" means to test and run the app on the oldest version of 
the platform you support to make sure it works.


"Works" is the key word here. I'm guessing that "works" doesn't mean
"the app started!". I assume that this means in reality full regression
testing against every sdk.

Just doing automated tests to make sure you are not calling any older 
APIs is not a guarantee you will work.


No, sorry I didn't mean to imply it would. I was thinking more of a profiler
that highlighted potentially unsafe areas so that you can check them to
make certain that they're properly protected. What I'm most concerned
about is inadvertent introduction of later sdk calls. Sort of an SDK lint.



In addition, it is typical for an application to take advantage of 
Java class loading to be able to use newer APIs if they are available 
(see for example my blog post on the new service APIs), and I don't 
see any way an automated tool could accurately determine whether that 
code is safe on an older platform.


You just need to make sure you test your app in the key environments 
it will run.


Full regression testing is really onerous. The problem here is that it's
really really easy to fall into the pit trap here that you find out too late
(ie, in the field). And the problem is only going to get worse and worse
as time goes on.

I'll look for your article.

Mike



On Thu, Apr 1, 2010 at 11:05 AM, mike > wrote:


On 04/01/2010 10:53 AM, ~ TreKing wrote:

On Thu, Apr 1, 2010 at 11:51 AM, Achanta
mailto:krishna.acha...@gmail.com>
>> wrote:

   Still looking for someone to confirm it that it does not cause
   any problems.


Um ... didn't Michael just do that?
There is no specific problem with what you're doing, except of
course properly testing all supported versions and being
careful if / how you use APIs that did not exist on 1.5.


Here's the question I have: define "be careful". If "be careful" means
inspecting every class/method call you make against SDK level, I think
you're setting yourself up for failure, as it's extremely easy to
miss that,
and the only time you find it is at run time, which for a seldom
run piece
of code could be pretty elusive.

It's would be a lot better to "be careful" by having some tool --
maybe in
the android dev tool chain or the eclipse plugin -- that
"carefully" goes
through your code looking for method/classes that are below the
current
SDK level. I'm sure there are even better ways to "be careful".

But as it right now, "be careful" is just a big smelly hack.

Mike


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

To unsubscribe, reply using "remove me" as the subject.




--
Dianne Hackborn
Android framework engineer
hack...@android.com 

Note: please don't send private questions to me, as I don't have time 
to provide private support, and so won't reply to such e-mails.  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 


--
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: Fastest and most reliable Location provider

2010-04-01 Thread patbenatar
Mike-

Sorry, I didn't mean that it just "hangs".. My bad, incorrect
terminology... I have a loader Activity that first acquires their
location then sends that to my Web API and waits for response data. It
shows a nice graphic and displays a spinning loader accompanied with
relevant text based on the current action "Acquiring your
location...", "Download data...", etc. So it's not that the app hangs
or that it appears to be broken or anything.. It just waits on the
loader screen for a bit while obtaining a location.

I have definitely noticed severe lags with GPS and Network locations,
especially when inside [as you addressed].. Basically I'm looking for
the best and most efficient way to write a custom Location manager
class [not a sub-class, just a custom class that handles all the
Location ish for me, cause the built-in Android LocationManager is a
little too low-level to use directly in my main Activities [basically
I'm working on writing my own Location manager that is similar to the
iPhone's version in usability (meaning that my main activities don't
really care/distinguish between GPS/network, the Location manager
class will take care of all that requesting bestProvider and getting
updates from it and what-not).]

It seems the Maps app acquires the user's location much quicker than
my app.. Why is this? Well, I suppose the simple answer is: "Because
it was made by Google." hahah... But really, it all must be
replicable...

Thanks!
Nick



On Mar 31, 2:02 pm, mike  wrote:
> On 03/31/2010 01:50 PM, patbenatar wrote:
>
> > Hey all-
>
> > I am working on an app that fetches localized data from the Web based
> > on the user's long/lat. Currently I am querying the system for the
> > best enabled provider [my criteria defines best basically as most
> > precise--not sure if this is the best idea for my application, as at
> > the point where I fetch data it really doesn't matter if the user is
> > here or 3 miles from here.].. But anyhow, I'm curious as to what is
> > most reliably the fastest Location provider? Network or GPS? My app
> > hangs a bit "Acquiring your location" on my loading screen and I'd
> > like to cut this wait time down as much as possible.
>
>  From experience, you're setting yourself up for trouble if
> you hang until you get location information. For GPS, it can
> take quite a while -- if ever if you're indoors -- before you get
> a fix. I've also seen far too many times where glitches in firmware
> and other phase-of-moon kinds of problems severely lengthen
> the first point acquired. As far as network based location, you
> may not have any to get anything from for one. Even in places
> where you'd expect it, like oh say, San Francisco.
>
> My advise would be to find something else to entertain your
> users until you get a fix. Hanging would look to me like a broken
> app.
>
> Mike

-- 
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: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
Thank you all for the replies.

I did test my app on a device working on 1.5 and it seems to be
working[so far]. Will do more testing though.

I was also searching for the blog post that Dianne was talking about
but could not find it. Can someone post a link for that blogpost.

Thank you.

On Apr 1, 12:56 pm, mike  wrote:
> On 04/01/2010 11:33 AM, Dianne Hackborn wrote:
>
> > "Be careful" means to test and run the app on the oldest version of
> > the platform you support to make sure it works.
>
> "Works" is the key word here. I'm guessing that "works" doesn't mean
> "the app started!". I assume that this means in reality full regression
> testing against every sdk.
>
> > Just doing automated tests to make sure you are not calling any older
> > APIs is not a guarantee you will work.
>
> No, sorry I didn't mean to imply it would. I was thinking more of a profiler
> that highlighted potentially unsafe areas so that you can check them to
> make certain that they're properly protected. What I'm most concerned
> about is inadvertent introduction of later sdk calls. Sort of an SDK lint.
>
>
>
> > In addition, it is typical for an application to take advantage of
> > Java class loading to be able to use newer APIs if they are available
> > (see for example my blog post on the new service APIs), and I don't
> > see any way an automated tool could accurately determine whether that
> > code is safe on an older platform.
>
> > You just need to make sure you test your app in the key environments
> > it will run.
>
> Full regression testing is really onerous. The problem here is that it's
> really really easy to fall into the pit trap here that you find out too late
> (ie, in the field). And the problem is only going to get worse and worse
> as time goes on.
>
> I'll look for your article.
>
> Mike
>
>
>
> > On Thu, Apr 1, 2010 at 11:05 AM, mike  > > wrote:
>
> >     On 04/01/2010 10:53 AM, ~ TreKing wrote:
>
> >         On Thu, Apr 1, 2010 at 11:51 AM, Achanta
> >         mailto:krishna.acha...@gmail.com>
> >          >         >> wrote:
>
> >            Still looking for someone to confirm it that it does not cause
> >            any problems.
>
> >         Um ... didn't Michael just do that?
> >         There is no specific problem with what you're doing, except of
> >         course properly testing all supported versions and being
> >         careful if / how you use APIs that did not exist on 1.5.
>
> >     Here's the question I have: define "be careful". If "be careful" means
> >     inspecting every class/method call you make against SDK level, I think
> >     you're setting yourself up for failure, as it's extremely easy to
> >     miss that,
> >     and the only time you find it is at run time, which for a seldom
> >     run piece
> >     of code could be pretty elusive.
>
> >     It's would be a lot better to "be careful" by having some tool --
> >     maybe in
> >     the android dev tool chain or the eclipse plugin -- that
> >     "carefully" goes
> >     through your code looking for method/classes that are below the
> >     current
> >     SDK level. I'm sure there are even better ways to "be careful".
>
> >     But as it right now, "be careful" is just a big smelly hack.
>
> >     Mike
>
> >     --
> >     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
>
> >     To unsubscribe, reply using "remove me" as the subject.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com 
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support, and so won't reply to such e-mails.  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
>
>

-- 
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...@goog

Re: [android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread ~ TreKing
On Thu, Apr 1, 2010 at 2:10 PM, Achanta  wrote:

>  was also searching for the blog post that Dianne was talking about
> but could not find it. Can someone post a link for that blogpost.
>

http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Got my free DROID, who's paying for service?

2010-04-01 Thread joshv
So as part of the Google device seeding program I recently recieved my
free Droid.  Great phone, and it appears to have wireless and data
service.  I've done nothing to activate it and I can make calls and
surf the web over 3G.

My question is, who's paying for it?  I tried to activate the phone in
my name.  No dice.  I called Verizon and they said it was on a
corporate or "concession" account.

So do I just have a totally free phone with free calls/data?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Got my free DROID, who's paying for service?

2010-04-01 Thread SizzlingSkizzorsProgrammer
Probably like the IONs given away at Google IO (I think it was
there)...free for 1 month...

On Apr 1, 1:30 pm, joshv  wrote:
> So as part of the Google device seeding program I recently recieved my
> free Droid.  Great phone, and it appears to have wireless and data
> service.  I've done nothing to activate it and I can make calls and
> surf the web over 3G.
>
> My question is, who's paying for it?  I tried to activate the phone in
> my name.  No dice.  I called Verizon and they said it was on a
> corporate or "concession" account.
>
> So do I just have a totally free phone with free calls/data?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Got my free DROID, who's paying for service?

2010-04-01 Thread joshv
Ok, but then what?  The letter that came with it said that I could
activate it and get a free month, or just use it over wi-fi.  But that
appears not to be the case.  It's already been activated by somebody
else, and Verizon customer support can't do seem to do anything with
this phone.  They said I had to have a corporate contact to be able to
manage the account.  Will that change after the month is up?  Will I
be able to activate it in my own name then?

On Apr 1, 3:33 pm, SizzlingSkizzorsProgrammer 
wrote:
> Probably like the IONs given away at Google IO (I think it was
> there)...free for 1 month...
>
> On Apr 1, 1:30 pm, joshv  wrote:
>
>
>
> > So as part of the Google device seeding program I recently recieved my
> > free Droid.  Great phone, and it appears to have wireless and data
> > service.  I've done nothing to activate it and I can make calls and
> > surf the web over 3G.
>
> > My question is, who's paying for it?  I tried to activate the phone in
> > my name.  No dice.  I called Verizon and they said it was on a
> > corporate or "concession" account.
>
> > So do I just have a totally free phone with free calls/data?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Fastest and most reliable Location provider

2010-04-01 Thread Maps.Huge.Info (Maps API Guru)
The method I use, which seems fairly effective, is to start two
listeners, one for coarse and one for fine and let them both try and
get a position. The first one to get it, "wins." One of my apps
continues to report location updates to move a location pin on a map,
as far as I can tell, it is just as fast as the Google map.

-John Coryat

"Radar Now!"

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Fastest and most reliable Location provider

2010-04-01 Thread mike

On 04/01/2010 12:40 PM, Maps.Huge.Info (Maps API Guru) wrote:

The method I use, which seems fairly effective, is to start two
listeners, one for coarse and one for fine and let them both try and
get a position. The first one to get it, "wins." One of my apps
continues to report location updates to move a location pin on a map,
as far as I can tell, it is just as fast as the Google map.
   


The other thing that google maps might be doing is saving the
last location it saw as at least a guess. That may be better than
nothing depending on your app.

Mike

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: storing an array of objects

2010-04-01 Thread Simone Russo
That is what I was gonna do ;)
Simone

On Thu, Apr 1, 2010 at 4:58 PM, Kumar Bibek  wrote:

> You can extend the Timer classes and implement the Serializable
> interface to achieve serialization.
>
> Thanks and Regards,
> Kumar Bibek
> http://tech-droid.blogspot.com
>
> On Apr 1, 12:01 pm, ko5tik  wrote:
> > On Mar 31, 6:42 pm, Kumar Bibek  wrote:
> >
> > > You can serialize these objects, store it in files and retrieve it.
> > > Read up some articles on Serialization in Java.
> >
> > If they are Serializable  - yes. But this is not suitable for long
> > term storage or
> > transfer to other destinations.  What is FQN of those timer objects?
> > ( BTW, java.util.Timer is NOT serializable, so you will need some data
> > binding)
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
Its regarding the same issue but also related to analytics tracking.

So I analytics referrals work for android 1.6 and higher[from the
documentation]. So will this part cause any issues on 1.5.
  

  

  
I have added the jar and this code to my manifest but I am not sure if
this will cause any problems after releasing it into market.



On Apr 1, 1:10 pm, Achanta  wrote:
> Thank you all for the replies.
>
> I did test my app on a device working on 1.5 and it seems to be
> working[so far]. Will do more testing though.
>
> I was also searching for the blog post that Dianne was talking about
> but could not find it. Can someone post a link for that blogpost.
>
> Thank you.
>
> On Apr 1, 12:56 pm, mike  wrote:
>
> > On 04/01/2010 11:33 AM, Dianne Hackborn wrote:
>
> > > "Be careful" means to test and run the app on the oldest version of
> > > the platform you support to make sure it works.
>
> > "Works" is the key word here. I'm guessing that "works" doesn't mean
> > "the app started!". I assume that this means in reality full regression
> > testing against every sdk.
>
> > > Just doing automated tests to make sure you are not calling any older
> > > APIs is not a guarantee you will work.
>
> > No, sorry I didn't mean to imply it would. I was thinking more of a profiler
> > that highlighted potentially unsafe areas so that you can check them to
> > make certain that they're properly protected. What I'm most concerned
> > about is inadvertent introduction of later sdk calls. Sort of an SDK lint.
>
> > > In addition, it is typical for an application to take advantage of
> > > Java class loading to be able to use newer APIs if they are available
> > > (see for example my blog post on the new service APIs), and I don't
> > > see any way an automated tool could accurately determine whether that
> > > code is safe on an older platform.
>
> > > You just need to make sure you test your app in the key environments
> > > it will run.
>
> > Full regression testing is really onerous. The problem here is that it's
> > really really easy to fall into the pit trap here that you find out too late
> > (ie, in the field). And the problem is only going to get worse and worse
> > as time goes on.
>
> > I'll look for your article.
>
> > Mike
>
> > > On Thu, Apr 1, 2010 at 11:05 AM, mike  > > > wrote:
>
> > >     On 04/01/2010 10:53 AM, ~ TreKing wrote:
>
> > >         On Thu, Apr 1, 2010 at 11:51 AM, Achanta
> > >         mailto:krishna.acha...@gmail.com>
> > >          > >         >> wrote:
>
> > >            Still looking for someone to confirm it that it does not cause
> > >            any problems.
>
> > >         Um ... didn't Michael just do that?
> > >         There is no specific problem with what you're doing, except of
> > >         course properly testing all supported versions and being
> > >         careful if / how you use APIs that did not exist on 1.5.
>
> > >     Here's the question I have: define "be careful". If "be careful" means
> > >     inspecting every class/method call you make against SDK level, I think
> > >     you're setting yourself up for failure, as it's extremely easy to
> > >     miss that,
> > >     and the only time you find it is at run time, which for a seldom
> > >     run piece
> > >     of code could be pretty elusive.
>
> > >     It's would be a lot better to "be careful" by having some tool --
> > >     maybe in
> > >     the android dev tool chain or the eclipse plugin -- that
> > >     "carefully" goes
> > >     through your code looking for method/classes that are below the
> > >     current
> > >     SDK level. I'm sure there are even better ways to "be careful".
>
> > >     But as it right now, "be careful" is just a big smelly hack.
>
> > >     Mike
>
> > >     --
> > >     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
>
> > >     To unsubscribe, reply using "remove me" as the subject.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com 
>
> > > Note: please don't send private questions to me, as I don't have time
> > > to provide private support, and so won't reply to such e-mails.  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

[android-developers] android-gdocs-api

2010-04-01 Thread Rootko
Hello everyone.

Did anyone successfully used this library (android-gdocs-api) for
retrieving spreadsheet's cells values? I'm trying for days now, but
still without any success. Library is located in 
http://code.google.com/p/android-gdocs-api/
but without any usable samples.

Or is there some other kind of access to google spreadsheets from
android? Best way for me would be to access shared spreadsheet's cells
something like I have shared here:
http://spreadsheets.google.com/feeds/cells/0ArA3SeTMuh9gdHpMTkh4YkhGWTJwUFEzaWh3bnN2TFE/od6/private/full
. I tried several ways of reading it (socket, httppost, httpget,
URL.getContent()) but I only get either 404 or No-content errors. In
browser this address works, but I failed miserably when trying to read
raw xml in my code :(

Any help is appreciated. Thanks,
Rudo

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Got my free DROID, who's paying for service?

2010-04-01 Thread Streets Of Boston
It's strange that it already had been activated

I received a free droid about 2 months ago (and i just received
another one) and it had a one-month subscription. If the month runs
out, the 'signal' indicator will still indicate that all is fine and
dandy (you can still call 911), but as soon as you try to make a call
or access the internet, you won't succeed (error messages)

The one month subscription is a bit longer than one month, though. I
could use my previous Droid for about 6 weeks before they shut the
voice and data down for my phone.

If you want to extend the contract for longer, just give Verizon
customer service a call (before the month's up).



On Apr 1, 3:40 pm, joshv  wrote:
> Ok, but then what?  The letter that came with it said that I could
> activate it and get a free month, or just use it over wi-fi.  But that
> appears not to be the case.  It's already been activated by somebody
> else, and Verizon customer support can't do seem to do anything with
> this phone.  They said I had to have a corporate contact to be able to
> manage the account.  Will that change after the month is up?  Will I
> be able to activate it in my own name then?
>
> On Apr 1, 3:33 pm, SizzlingSkizzorsProgrammer 
> wrote:
>
>
>
> > Probably like the IONs given away at Google IO (I think it was
> > there)...free for 1 month...
>
> > On Apr 1, 1:30 pm, joshv  wrote:
>
> > > So as part of the Google device seeding program I recently recieved my
> > > free Droid.  Great phone, and it appears to have wireless and data
> > > service.  I've done nothing to activate it and I can make calls and
> > > surf the web over 3G.
>
> > > My question is, who's paying for it?  I tried to activate the phone in
> > > my name.  No dice.  I called Verizon and they said it was on a
> > > corporate or "concession" account.
>
> > > So do I just have a totally free phone with free calls/data?- 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 at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread ~ TreKing
On Thu, Apr 1, 2010 at 2:54 PM, Achanta  wrote:

> I have added the jar and this code to my manifest but I am not sure if
> this will cause any problems after releasing it into market.
>

Did this cause any problems on an emulator or device running 1.5?

-
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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Krishna Achanta
No it did not cause any problems on either the device[htc hero] or the
emulator.
I am asking because this part of the code may come into picture when the app
is being downloaded from the market and i am not sure if that causes any
problems.

On Thu, Apr 1, 2010 at 2:33 PM, ~ TreKing  wrote:

> On Thu, Apr 1, 2010 at 2:54 PM, Achanta  wrote:
>
>> I have added the jar and this code to my manifest but I am not sure if
>> this will cause any problems after releasing it into market.
>>
>
> Did this cause any problems on an emulator or device running 1.5?
>
>
>
> -
> 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
>

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread Sundog

My Droid arrived in El Paso today. Thanks Google! I already have one
but I'm sure I'll think of something to do with 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Setting each pixel quickly?

2010-04-01 Thread paladin
I am using the following code to flip each pixel in a bitmap to black
or white:

for(int x = 0; x < newBitmap.getWidth(); x++) {
for(int y = 0; y < newBitmap.getHeight(); y++) {
int point = newBitmap.getPixel(x, y);
if(point < Color.GRAY) {
paint.setColor(Color.BLACK);
c.drawPoint(x, y, paint);
} else {
paint.setColor(Color.WHITE);
c.drawPoint(x, y, paint);
}
}
}

It works, but it is extraordinarily slow for the size image I'm using
(half the resolution of the camera, 1296x972). I have also tried
setPixel, and I'm getting about the same performance. Anyone out there
know of a faster way 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: setImageResource fails and closes the application unexpectedly !

2010-04-01 Thread Sasi
Can you please let me know where can I find the error log? I am new to
android development.

thanks,
Sasi

On Apr 1, 12:10 am, madmax  wrote:
> Can u put the error log here please so that i can know what the actual
> error u get is...
>
>    Peace,
>     Prafull.
>
> On Apr 1, 4:35 am, Sasi  wrote:
>
>
>
> > Hi-
>
> > I am trying to display the image on the ImageView object. But the
> > setImageResource fails to display the image. If it succeeds, I would
> > like to update image on ImageView object based on some criteria.
>
> > Here is my XML layout file looks like:
>
> >  > xml version="1.0" encoding="utf-8"?>
> > http://schemas.android.com/apk/res/
> > android"
> > android:orientation="vertical"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent">
> >  > android:orientation="vertical"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:layout_weight="1">
> >  > id="@+id/batteryLevelview"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content"
> > android:layout_gravity="center"/>
> > 
> > 
>
> > Here is my code:
>
> > @Override
> > public void onCreate(Bundle savedInstanceState) {
> > super.onCreate(savedInstanceState);
> > setContentView(R.layout.main);
> > ImageView batteryLevelImage = (ImageView)
> > findViewById(R.id.batteryLevelview);
> > batteryLevelImage.setImageResource(R.drawable.notconnected);
>
> > }
>
> > I could not find what's wrong. I tried using the LinearLayout and that
> > did not help. Please help me what's wrong.
>
> > thanks,- 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 at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Setting each pixel quickly?

2010-04-01 Thread Streets Of Boston
Google this:
ColorMatrix threshold

Here is a link that may be useful:
http://keywon.com/wiki/index.php?title=ColorMatrix

Draw your bitmap (newBitmap) into a bitmap-backed canvas (c) that has
a ColorMatrixColorFilter set with a ColorMatrix that represents a so-
called 'threshold' filter (see above link).

On Apr 1, 5:14 pm, paladin  wrote:
> I am using the following code to flip each pixel in a bitmap to black
> or white:
>
>             for(int x = 0; x < newBitmap.getWidth(); x++) {
>                 for(int y = 0; y < newBitmap.getHeight(); y++) {
>                     int point = newBitmap.getPixel(x, y);
>                     if(point < Color.GRAY) {
>                         paint.setColor(Color.BLACK);
>                         c.drawPoint(x, y, paint);
>                     } else {
>                         paint.setColor(Color.WHITE);
>                         c.drawPoint(x, y, paint);
>                     }
>                 }
>             }
>
> It works, but it is extraordinarily slow for the size image I'm using
> (half the resolution of the camera, 1296x972). I have also tried
> setPixel, and I'm getting about the same performance. Anyone out there
> know of a faster way 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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: setImageResource fails and closes the application unexpectedly !

2010-04-01 Thread Mark Murphy
Sasi wrote:
> Can you please let me know where can I find the error log? I am new to
> android development.

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to view the
Java stack trace associated with unhandled exceptions.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Fastest and most reliable Location provider

2010-04-01 Thread Ken H
That's not a bad idea actually. I was going to ask what happens when
the "loser" gets a solution but answered myself while typing :)

Not to get off topic, but would you know what the difference is
between POWER_LOW, POWER_MEDIUM, and POWER_HIGH...besides the obvious?

Ken

On Apr 1, 12:40 pm, "Maps.Huge.Info (Maps API Guru)"
 wrote:
> The method I use, which seems fairly effective, is to start two
> listeners, one for coarse and one for fine and let them both try and
> get a position. The first one to get it, "wins." One of my apps
> continues to report location updates to move a location pin on a map,
> as far as I can tell, it is just as fast as the Google map.
>
> -John Coryat
>
> "Radar Now!"

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Playlist Content Provider

2010-04-01 Thread Ken H
Here are a couple links that solved this mystery for me:

http://www.anddev.org/viewtopic.php?p=12404

http://androidsamples.blogspot.com/2009/06/displaying-list-of-music-files-stored.html

Ken

On Mar 31, 9:58 am, Fossum  wrote:
> I'm making a media player, but my code doesn't show all my playlists
> and for many others it does not show any...
> Why doesn't the code below work completely?
>
> cursor = getContentResolver().query(
>
> android.provider.MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI,
>         null, null, null, null);

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Installing apps to Nexus One device

2010-04-01 Thread Ken H
Also you can lookup "Apps Installer" on the Android Market. No
hassels.

On Mar 31, 5:08 am, oriharel  wrote:
> IT WORKS
> Thanks (again) Mark!
>
> On Mar 31, 2:47 pm, Mark Murphy  wrote:
>
>
>
> > oriharel wrote:
> > > it was turned on (even before the first time I installed the driver)
> > > still doesn't work
>
> > adb kill-server
> > adb start-server
> > adb devices
>
> > See if that helps. If not, reboot and see if that helps.
>
> > If not, plug in your N1 and see if you see any evidence that Windows is
> > actually recognizing it and associating the driver to it.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android App Developer Books:http://commonsware.com/books

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

To unsubscribe, reply using "remove me" as the subject.


  1   2   >