[android-developers] Re: How to build 2 projects in on apk?

2010-03-31 Thread Bob Kerns
If you don't specify in the manifest that the components should have
different process names, they'll be in the same process.

You can even put components from different .apk's into the same
process by giving them the same process name -- so long as they're
signed by the same cert. Or maybe the same key; I forget which way
they set it up. Generally the same thing either way.

A component dying (say, a GUI) will not take out other components
(e.g. a service). It's not like C++ where a small bug in one component
will corrupt memory.  That's not to say that bugs in one can't affect
another, but not nearly to the same degree.

On Mar 30, 9:22 pm, Kevin Duffey andjar...@gmail.com wrote:
 Hey Mark, what about if you want a UI component to the service.. say for
 configuration and such, but otherwise don't want the UI normally running,
 just the background service? IF you only launch the service, but also offer
 an icon to launch a GUI, will they still share the same process? Not even
 sure if/how you can do that, but just curious if you can, what happens.

 On Tue, Mar 30, 2010 at 6:12 PM, Mark Murphy mmur...@commonsware.comwrote:



  zhiqiang wang wrote:
   I know they can stay in one APK,but will they run in different
   process? that is,is the UI dead,will the service dead too?

  By default they will run in the same process. You want them to run in
  the same process. Using more than one process takes up more RAM.

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

  _Android Programming Tutorials_ Version 2.0 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.comandroid-developers%2Bunsubs 
  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.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread Dan Sherman
I would very seriously suspect that they report it.  I remember having to
give a social-security/tax-id to Adsense when signing up.  And just thinking
through their tax predicament (bringing in tons of money, and seeing a lot
of it go straight back out), they're going to need to keep records, and
report as to where that money went out to.  Mostly so they don't have to pay
taxes on it (was your profits, not theirs).

- Dan

On Tue, Mar 30, 2010 at 10:54 PM, Kevin Duffey andjar...@gmail.com wrote:

 Well, yes, you *should* report it.. but if google and admob and so forth
 don't report anything to the IRS, then it's basically on good faith. There
 isn't presently any way for them to track how much you make. I would imagine
 eventually something will come into play.


 On Tue, Mar 30, 2010 at 7:00 PM, Wayne Wenthin wa...@fuligin.com wrote:

 I'll chime in on this.  I have switched from admob to mobclix recently.
 (actually I can control which one I use base on a network check)  I have
 noticed my CTR jump from around 2-3 a day to around 7.  This makes me more
 inclined to hang with them.  But I only changed after I watch admob drop
 from around 7 a day to 1-2.  Now 150 a day is my new goal ;-)  But I figure
 if I can bring in 100 a month or so it's still better than nothing.

 As for the IRS thing this is all income and it will need to be reported in
 some way.

 On Tue, Mar 30, 2010 at 12:36 PM, Abdul Mateen abmat...@gmail.comwrote:


 Yes Really Moto $150/day is a damn good income from Ads, I am only making
 $1-$2/day , and I am using Admob + Greystripe..


 On Wed, Mar 31, 2010 at 12:31 AM, Kevin Duffey andjar...@gmail.comwrote:

 I am interested in this as well. First, Moto.. $150 a day? Holy crap!
 I'd love to have that much 7 days a week coming in. That would supplement 
 my
 income nicely. :) Second, slightly off topic, but directly related to
 revenue.. with that much coming in, or say even more if you had like $1000 
 a
 day coming in, what do you do about income taxes? I was told by some that
 google doesn't send any money making info to IRS.. so essentially there is
 no way for IRS or any tax/government to track how much you make. I am
 probably a long ways off from earning $1 a day.. but I am curious how you
 handle this issue. Is it on faith that you pay taxes... and mind you, you
 can shoot a private email if this is something that you wouldn't want to
 make public. :) I am not trying to cheat the IRS out of money by any 
 means..
 I would rather be legit... but am interested in how this is done. Living in
 California I already lose half my paycheck to taxes between state and
 federal.

 The ads that are done in games, don't they have to be clicked on to earn
 money? You said you have 60,000 users, do a lot of them click the ads while
 playing a game? Or even in a splash screen or game-over screen? Or do you
 earn money just by showing the ad? I would hope both.. clicks == more 
 money,
 showing == very little. But if you get nothing from displaying the ad.. 
 that
 seems ridiculous... because you are advertising for that ad.. the user is
 seeing that ad.. even if they don't click it, it may trigger them later to
 look it up, etc. If you do make some money off of each ad displayed... how
 does it work? I mean, you could write a robot app that made it seem like
 10's of 1000's of people were at least seeing the ad. There must be some 
 way
 that admob and others avoid cheating and losing money.

 Lastly, I thought things like admob required an ad all the time? You can
 control when/where you display it? I thought admob was a small banner ad at
 the bottom of the screen all the time.. and it's sdk/api controlled how
 often an ad was displayed? What level of control do you have over say..
 putting ads during game play, or just on the splash screen and 
 end-game/high
 score screens? As well, how targeted are the ads? Do you send data to admob
 about the user playing the game that helps them target ads?

 Thanks.



 On Tue, Mar 30, 2010 at 6:50 AM, Ahmed majaat amaj...@gmail.comwrote:

 try this,
 http://www.aditic.com/demo, it may helps you to improve your CTR and
 Revenue.

 They have more ad formats, splashscreen, interstial, 2/3 banner,
 strech banner and more for Android.

 Just for your information I used intro/splashscreen Banner and
 retractable banner, my CTR is around 0.67.

 Ahmed,

 On Mar 16, 2:22 am, Wayne Wenthin wa...@fuligin.com wrote:
  There is AdWhirl that will allow you to serve up from different
 providers.
  I have not tried it yet but since I have both admob, which was doing
 very
  well for me, and Mobclix I may try to do them both.  I found it
 interesting
  that while keeping the ad rotation interval the same between the two
 I was
  serving around 30K impression with mobclix and about 17K with admob.
  My CTR on admob was significantly higher.  Now that I switched back
 to admob
  I found a glitch that I had not noticed before and wonder if my
 mobclix
  CTR could have 

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

2010-03-31 Thread Kevin Duffey
I would think the same thing. Maybe it's the google market that doesn't
report it? I had asked about this some time ago, for those selling apps and
making their 70%, at tax time do they get some 1099 or something, and
several said no. So I am unclear as to how the market handles taxes... as
well, if you do micro transactions in your app, where you charge $1 for some
virtual item, using paypal/google, who take a cut, how is that handled? Does
google/paypal send in info on how much was paid to you.. that is not clear
to me at all.


On Tue, Mar 30, 2010 at 11:06 PM, Dan Sherman impact...@gmail.com wrote:

 I would very seriously suspect that they report it.  I remember having to
 give a social-security/tax-id to Adsense when signing up.  And just thinking
 through their tax predicament (bringing in tons of money, and seeing a lot
 of it go straight back out), they're going to need to keep records, and
 report as to where that money went out to.  Mostly so they don't have to pay
 taxes on it (was your profits, not theirs).

 - Dan

 On Tue, Mar 30, 2010 at 10:54 PM, Kevin Duffey andjar...@gmail.comwrote:

 Well, yes, you *should* report it.. but if google and admob and so forth
 don't report anything to the IRS, then it's basically on good faith. There
 isn't presently any way for them to track how much you make. I would imagine
 eventually something will come into play.


 On Tue, Mar 30, 2010 at 7:00 PM, Wayne Wenthin wa...@fuligin.com wrote:

 I'll chime in on this.  I have switched from admob to mobclix recently.
 (actually I can control which one I use base on a network check)  I have
 noticed my CTR jump from around 2-3 a day to around 7.  This makes me more
 inclined to hang with them.  But I only changed after I watch admob drop
 from around 7 a day to 1-2.  Now 150 a day is my new goal ;-)  But I figure
 if I can bring in 100 a month or so it's still better than nothing.

 As for the IRS thing this is all income and it will need to be reported
 in some way.

 On Tue, Mar 30, 2010 at 12:36 PM, Abdul Mateen abmat...@gmail.comwrote:


 Yes Really Moto $150/day is a damn good income from Ads, I am only
 making $1-$2/day , and I am using Admob + Greystripe..


 On Wed, Mar 31, 2010 at 12:31 AM, Kevin Duffey andjar...@gmail.comwrote:

 I am interested in this as well. First, Moto.. $150 a day? Holy crap!
 I'd love to have that much 7 days a week coming in. That would supplement 
 my
 income nicely. :) Second, slightly off topic, but directly related to
 revenue.. with that much coming in, or say even more if you had like 
 $1000 a
 day coming in, what do you do about income taxes? I was told by some that
 google doesn't send any money making info to IRS.. so essentially there is
 no way for IRS or any tax/government to track how much you make. I am
 probably a long ways off from earning $1 a day.. but I am curious how you
 handle this issue. Is it on faith that you pay taxes... and mind you, you
 can shoot a private email if this is something that you wouldn't want to
 make public. :) I am not trying to cheat the IRS out of money by any 
 means..
 I would rather be legit... but am interested in how this is done. Living 
 in
 California I already lose half my paycheck to taxes between state and
 federal.

 The ads that are done in games, don't they have to be clicked on to
 earn money? You said you have 60,000 users, do a lot of them click the ads
 while playing a game? Or even in a splash screen or game-over screen? Or 
 do
 you earn money just by showing the ad? I would hope both.. clicks == more
 money, showing == very little. But if you get nothing from displaying the
 ad.. that seems ridiculous... because you are advertising for that ad.. 
 the
 user is seeing that ad.. even if they don't click it, it may trigger them
 later to look it up, etc. If you do make some money off of each ad
 displayed... how does it work? I mean, you could write a robot app that 
 made
 it seem like 10's of 1000's of people were at least seeing the ad. There
 must be some way that admob and others avoid cheating and losing money.

 Lastly, I thought things like admob required an ad all the time? You
 can control when/where you display it? I thought admob was a small banner 
 ad
 at the bottom of the screen all the time.. and it's sdk/api controlled how
 often an ad was displayed? What level of control do you have over say..
 putting ads during game play, or just on the splash screen and 
 end-game/high
 score screens? As well, how targeted are the ads? Do you send data to 
 admob
 about the user playing the game that helps them target ads?

 Thanks.



 On Tue, Mar 30, 2010 at 6:50 AM, Ahmed majaat amaj...@gmail.comwrote:

 try this,
 http://www.aditic.com/demo, it may helps you to improve your CTR and
 Revenue.

 They have more ad formats, splashscreen, interstial, 2/3 banner,
 strech banner and more for Android.

 Just for your information I used intro/splashscreen Banner and
 retractable banner, my CTR is around 0.67.

 

[android-developers] Re: conditional compilation

2010-03-31 Thread Bob Kerns
There is a much better way to do this. I have outlined it in a prior
post, but I don't have time to dig it out or recreate it tonight.

I'm planning to turn it into a blog post at some point.

Basically, you do not need conditional compilation. The *only* Java
code which needs to change is the generated R.java file -- and even
that you should be able to generate correctly, though I wasn't able to
get it to work.

It can all be done with an ant script. The manifest needs to be
processed. It's helpful to process some resource files -- for example,
to embed the version number, etc. XSLT is your friend here, it's much
easier to manipulate XML than to deal with all the issues with
preprocessing -- including completely screwing up line numbers, in
most cases, but commenting out rather than omitting lines should avoid
that!

To avoid screwing up the debug cycle, I produce by default a dev
version, which gives access to both free and pro functionality for
test and debug.

It works really well, but there's a few quirks I wish I had time to
explain just now; I hope I covered them in my earlier message, which I
hope you can find...

Feel free to bug me more on the topic after April 1.

On Mar 30, 5:45 pm, John Seghers jsegh...@cequint.com wrote:
 In the J2ME world of wildly non-conforming implementations,
 conditional compilation is the norm. Sun even admited it by adding
 configurations (IIRC) to NetBeans 5. EclipseMe (Now the official
 Eclipse Mobile Tools for Java project--MTJ) has support for it, as
 does the Antenna extension to Ant.

 The most common method currently is to use a construction such as
 //#if CONDITIONAL
 ...
 //#endif
 This shields the conditional statement from language-aware but
 conditional-unaware editors. The build system then comments out the
 intervening lines of code if the condition is not met. I've used
 everything from ant processing to running the full Java code (and even
 XML files) through the C++ preprocessor for macro expansion.

 In Android, especially when trying to maintain two versions of a
 product (Free vs. Paid, for example) conditional compilation (or
 parallel code trees) is mandatory because the package names must
 change (at least in the manifest).  This is one case where the if
 (const) blocks will not work.  If there is a better way of handling
 this, please enlighten us.

 I haven't yet tackled this problem in the Android dev environment
 because it tends to disrupt the debug part of the edit-compile-debug-
 edit cycle. What I have done is to add an eclipse builder to run a
 perl script to generate a Java interface (in the gen/ directory) that
 defines constants for build time/number pulled from Team Foundation
 Server. This allows automatic version stamping for the about screen--
 though does not yet modify the version name/number in the manifest.

 On Mar 30, 9:42 am, Bob Kerns r...@acm.org wrote:



  You can download a Java decompiler and investigate yourself. I suggest
  this one:http://java.decompiler.free.fr/?q=jdgui

  You'll see that it does indeed optimize when it can.

  However, unlike a C file which gets linked into a .so or .dll or an
  executable, Java classes may be combined in different ways.

  So it cannot optimize away static final references in other classes,
  because those may change.

  However, tools like ProGuard can do so, because they work on an entire
  application.

  But remember, once you do something like this, that code can never be
  used in a context with a different valiue.

  It virtually never makes sense to do this for conditional compilation
  reasons. Sometimes it makes sense to generate code (the Android tools
  do in fact generate a couple of files). In the rare case you do need
  to eliminate code due to extremely tight performance constraints or
  size constraints, I'd recommend the ProGuard route, as it will do a
  FAR more thorough job than you can do manually with conditional
  compilation.

  On Mar 30, 8:12 am, Kevin S. dada...@gmail.com wrote:

     It really isn't very easy to do this.  In general, you can do
   something like

   public class MyClass
   {
      public static final boolean  HAS_CHEEZBURGER=true;

      public void someMethod()
      {
          if( MyClass.HAS_CHEEZBURGER)
          {
              doCheezburger();
          } else
          {
              noCheezBurger();
          }
      }

   }

      The compiler I think will see that HAS_CHEEZBURGER is constant and
   can never change, and may optimize away the branch not taken.  Perhaps
   some more knowledgeable folk could comment on that.

     If on the otherhand, you really really think you need to do
   preprocessing using eclipse and Java, you can.   See the following
   link.

  http://www.boldinventions.com/index.php?option=com_contentview=artic...

   -Kevin

   On Mar 30, 5:57 am, Dilip Dilip dileep2m...@gmail.com wrote:

Hi All,
 How to do conditional compilation in JAVA.

something like in C, C++ :

#ifdef 

[android-developers] Re: restarting the application

2010-03-31 Thread Menion
Hi Asik
  I'm trying to find solutin for similar problem, how to restart an
application. Your slution is little funny but functional of course.
In my code, to force close app I use this

In my main activity I call
[code]
ActivityManager aM = (ActivityManager)
getApplicationContext().getSystemService(ACTIVITY_SERVICE);

// Setup one-short alarm to restart my application in 3 seconds - TODO
need use another context
AlarmManager alarmMgr = (AlarmManager)
getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent(Const.SMARTMAPS_SCREEN_PATH);
PendingIntent pi = PendingIntent.getBroadcast(Main.this, 0, intent,
PendingIntent.FLAG_ONE_SHOT);
alarmMgr.set(AlarmManager.ELAPSED_REALTIME, System.currentTimeMillis()
+ 3000, pi);

aM.restartPackage(getPackageName());
finish();
[/code]

unfortunatelly AlarmManager do not work, and as I wrote as comment, I
think that is needed to use some Intent independent on application.
But any help will be appreciated- But rest of code (part with
activityManager) works and have for me same effect that your force
close (but without error message of course).

Hope this helps

On Mar 30, 7:48 am, Asif k asifk1...@gmail.com wrote:
 Hi All,

   I have kept the title bar in my application. But I have also given
 an option in the menu to invisible title bar. If someone clicks that
 menu option then my application need to restart and clear all the
 activities from the task.

   For time being, I had thrown an unhandled exception menually using
 following code,
 ***
 after clicking  no title bar option
 String s = hello
 char c = s.charAt(10); // this line throw the exection which is not
 handled, so app. restarts

  Thus  application stopped dialog comes and after clicking  force
 close button app. restarts and settings are applicable.

   But is there any android APIs availble which will restart the
 application clearing all the activity on the task and moves back to
 root activity.

 Thanks,
 Asif

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

2010-03-31 Thread Menion
Hi Asik
  I'm trying to find solutin for similar problem, how to restart an
application. Your slution is little funny but functional of course.
In my code, to force close app I use this

In my main activity I call
[code]
ActivityManager aM = (ActivityManager)
getApplicationContext().getSystemService(ACTIVITY_SERVICE);

// Setup one-short alarm to restart my application in 3 seconds - TODO
need use another context
AlarmManager alarmMgr = (AlarmManager)
getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent(Const.SMARTMAPS_SCREEN_PATH);
PendingIntent pi = PendingIntent.getBroadcast(Main.this, 0, intent,
PendingIntent.FLAG_ONE_SHOT);
alarmMgr.set(AlarmManager.ELAPSED_REALTIME, System.currentTimeMillis()
+ 3000, pi);

aM.restartPackage(getPackageName());
finish();
[/code]

unfortunatelly AlarmManager do not work, and as I wrote as comment, I
think that is needed to use some Intent independent on application.
But any help will be appreciated- But rest of code (part with
activityManager) works and have for me same effect that your force
close (but without error message of course).

Hope this helps

On Mar 30, 7:48 am, Asif k asifk1...@gmail.com wrote:
 Hi All,

   I have kept the title bar in my application. But I have also given
 an option in the menu to invisible title bar. If someone clicks that
 menu option then my application need to restart and clear all the
 activities from the task.

   For time being, I had thrown an unhandled exception menually using
 following code,
 ***
 after clicking  no title bar option
 String s = hello
 char c = s.charAt(10); // this line throw the exection which is not
 handled, so app. restarts

  Thus  application stopped dialog comes and after clicking  force
 close button app. restarts and settings are applicable.

   But is there any android APIs availble which will restart the
 application clearing all the activity on the task and moves back to
 root activity.

 Thanks,
 Asif

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread Dan Sherman
I would imagine their tax lines look something like this:

Client -- Google :: $1.00
Google -- Developer :: $0.70

Google's taxable income: $0.30

Note that they don't explicitly tell the government We paid XXX to
developer Y, they just note that the money left their hands, and that they
shouldn't be taxed on it.  Essentially, its your responsibility to mention
that you received the money.  If they wanted to track that cash, should be
very easy to see :)

- Dan

On Wed, Mar 31, 2010 at 12:16 AM, Kevin Duffey andjar...@gmail.com wrote:

 I would think the same thing. Maybe it's the google market that doesn't
 report it? I had asked about this some time ago, for those selling apps and
 making their 70%, at tax time do they get some 1099 or something, and
 several said no. So I am unclear as to how the market handles taxes... as
 well, if you do micro transactions in your app, where you charge $1 for some
 virtual item, using paypal/google, who take a cut, how is that handled? Does
 google/paypal send in info on how much was paid to you.. that is not clear
 to me at all.



 On Tue, Mar 30, 2010 at 11:06 PM, Dan Sherman impact...@gmail.com wrote:

 I would very seriously suspect that they report it.  I remember having to
 give a social-security/tax-id to Adsense when signing up.  And just thinking
 through their tax predicament (bringing in tons of money, and seeing a lot
 of it go straight back out), they're going to need to keep records, and
 report as to where that money went out to.  Mostly so they don't have to pay
 taxes on it (was your profits, not theirs).

 - Dan

 On Tue, Mar 30, 2010 at 10:54 PM, Kevin Duffey andjar...@gmail.comwrote:

 Well, yes, you *should* report it.. but if google and admob and so forth
 don't report anything to the IRS, then it's basically on good faith. There
 isn't presently any way for them to track how much you make. I would imagine
 eventually something will come into play.


 On Tue, Mar 30, 2010 at 7:00 PM, Wayne Wenthin wa...@fuligin.comwrote:

 I'll chime in on this.  I have switched from admob to mobclix recently.
 (actually I can control which one I use base on a network check)  I have
 noticed my CTR jump from around 2-3 a day to around 7.  This makes me more
 inclined to hang with them.  But I only changed after I watch admob drop
 from around 7 a day to 1-2.  Now 150 a day is my new goal ;-)  But I figure
 if I can bring in 100 a month or so it's still better than nothing.

 As for the IRS thing this is all income and it will need to be reported
 in some way.

 On Tue, Mar 30, 2010 at 12:36 PM, Abdul Mateen abmat...@gmail.comwrote:


 Yes Really Moto $150/day is a damn good income from Ads, I am only
 making $1-$2/day , and I am using Admob + Greystripe..


 On Wed, Mar 31, 2010 at 12:31 AM, Kevin Duffey andjar...@gmail.comwrote:

 I am interested in this as well. First, Moto.. $150 a day? Holy crap!
 I'd love to have that much 7 days a week coming in. That would 
 supplement my
 income nicely. :) Second, slightly off topic, but directly related to
 revenue.. with that much coming in, or say even more if you had like 
 $1000 a
 day coming in, what do you do about income taxes? I was told by some that
 google doesn't send any money making info to IRS.. so essentially there 
 is
 no way for IRS or any tax/government to track how much you make. I am
 probably a long ways off from earning $1 a day.. but I am curious how you
 handle this issue. Is it on faith that you pay taxes... and mind you, you
 can shoot a private email if this is something that you wouldn't want to
 make public. :) I am not trying to cheat the IRS out of money by any 
 means..
 I would rather be legit... but am interested in how this is done. Living 
 in
 California I already lose half my paycheck to taxes between state and
 federal.

 The ads that are done in games, don't they have to be clicked on to
 earn money? You said you have 60,000 users, do a lot of them click the 
 ads
 while playing a game? Or even in a splash screen or game-over screen? Or 
 do
 you earn money just by showing the ad? I would hope both.. clicks == more
 money, showing == very little. But if you get nothing from displaying the
 ad.. that seems ridiculous... because you are advertising for that ad.. 
 the
 user is seeing that ad.. even if they don't click it, it may trigger them
 later to look it up, etc. If you do make some money off of each ad
 displayed... how does it work? I mean, you could write a robot app that 
 made
 it seem like 10's of 1000's of people were at least seeing the ad. There
 must be some way that admob and others avoid cheating and losing money.

 Lastly, I thought things like admob required an ad all the time? You
 can control when/where you display it? I thought admob was a small 
 banner ad
 at the bottom of the screen all the time.. and it's sdk/api controlled 
 how
 often an ad was displayed? What level of control do you have over say..
 putting ads during game play, or just on the splash 

[android-developers] Re: Communication between android Emulator and Real Device !!!

2010-03-31 Thread AJ
Hi Anthoni,

Can you please throw some-light on what you have said. How can I do
that?

Thanks,
AJ

On Mar 30, 10:23 pm, AJ ajeet.invinci...@gmail.com wrote:
 Hi Anthoni,

 Thanks for the reply.
 I got the overview what you have said. But can you please tell me more
 about that. How can I achieve that.

 Thanks,
 AJ

 On Mar 30, 5:25 pm, Anthoni anthoni.gard...@gmail.com wrote:

  Hi,

  I don't think that you can actually get the emulator to talk to a real
  device.

  However, if you use a server where they both connect, you can use that
  as a proxy mechanism. So the emulator sends a signal to the server
  which then relays it to the real device and vica versa. I know this is
  possible because it's what I am doing at the moment.

  Regards
  Anthoni

  On Mar 30, 12:47 pm, AJ ajeet.invinci...@gmail.com wrote:

   Any clue please?

   - AJ

   On Mar 29, 10:37 pm, AJ ajeet.invinci...@gmail.com wrote:

Hi group,

I know we can communicate between 2 instances of Emulator. But Is it
possible to communicate between the a read Device and Emulator?

Thanks in Advance for your inputs.

- AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] Installing apps to Nexus One device

2010-03-31 Thread oriharel
Hi,
Im running Win XP 32 bit, SP3.
I have Nexus one device. and I develop on Eclipse.
I'm trying to install my app to test it on a real device - my own
Nexus one.

after downloading and installing the USB driver - the devices charges
just fine. after I mount the USB storage (from the device) I can even
see the phone's file system from the computer (thus able to move files
in and out of the SD card).

however - adb devices command returns an empty list.
also, Eclipse Device Chooser doesn't show the device (it shows
emulators I previously configured).

anyone has an answer?

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] Writing Current Time

2010-03-31 Thread perumal316
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] Installing apps to Nexus One device

2010-03-31 Thread oriharel
Hi,
Im running Win XP 32 bit, SP3.
I have Nexus one device. and I develop on Eclipse.
I'm trying to install my app to test it on a real device - my own
Nexus one.

after downloading and installing the USB driver - the devices charges
just fine. after I mount the USB storage (from the device) I can even
see the phone's file system from the computer (thus able to move files
in and out of the SD card).

however - adb devices command returns an empty list.
also, Eclipse Device Chooser doesn't show the device (it shows
emulators I previously configured).

anyone has an answer?

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: Application as root

2010-03-31 Thread manjunath
I'm trying to run the factory application i.e. GlobalTime where one
EGL API eglCreateWindowSurface is used. The Vendor provided EGL
library call is only working with root access. It is not a third party
application.

Also the SystemServer  initiates SurfaceFlinger. In this case the
above EGL API is working fine in SurfaceFlinger. I believe this is
because SystemServer is started as root.

Regards,
Manjunath


On Mar 29, 3:46 pm, a2ronus aaron.jan...@gmail.com wrote:
 Hello Dianne, I have a question related to this. Is it possible to use
 sharedUserId=android.uid.system in combination with (re-)signing a
 (newly) built Android and the app with the same key to achieve having
 more permissions for an app?

 Thanks in advance.

 On 26 mrt, 22:10, Dianne Hackborn hack...@android.com wrote:

  You can't as a third partyapplication(in fact you can't at all without
  hacking the platform or possibly running in factory test mode).  Modifying
  the platform is more appropriate for android-porting.

  On Fri, Mar 26, 2010 at 5:22 AM, manjunath phc2h5nh3.ma...@gmail.comwrote:

   Hi,

   I want to run aapplicationasrootto check one of my API
   functionality. I know that Android won't permit applications withroot
   access i.e. setting UID = 0.  Can anyone provide a hack so that I can
   run myapplicationasroot.

   I saw in Process.java file that FIRST_APPLICATION_UID is set to 1
   and so on. If I set it to 0 my homescreen doesn't come up.
   Can anyone tell me where this security check is done.

   I also want to know the actual flow for anyapplicationto run on
   android.

   Thanks,
   Manjunath

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

   To unsubscribe from this group, send email to android-developers+
   unsubscribegooglegroups.com or reply to this email with the words 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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: need someone to try my app on htc hero

2010-03-31 Thread ko5tik
German HTC Hero also works
(downloads and installs,  I do not have time to check
emulation quality though )

regards,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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: need someone to try my app on htc hero

2010-03-31 Thread Dan Sherman
Downloads, installs, and runs on USA's Sprint HTC Hero as well.


- Dan




On Wed, Mar 31, 2010 at 12:58 AM, ko5tik kpriblo...@yahoo.com wrote:

 German HTC Hero also works
 (downloads and installs,  I do not have time to check
 emulation quality though )

 regards,

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

 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: GLSurfaceView on app widget?

2010-03-31 Thread Musafir

hi ,

ok but let me know how can i put 3d drawings using opengl in an app
widget. if GLSurfaceView is not supported then its impossible to do?
am right?

thanks for ur reply:)

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Application as root

2010-03-31 Thread Dianne Hackborn
On Mon, Mar 29, 2010 at 3:46 AM, a2ronus aaron.jan...@gmail.com wrote:

 Hello Dianne, I have a question related to this. Is it possible to use
 sharedUserId=android.uid.system in combination with (re-)signing a
 (newly) built Android and the app with the same key to achieve having
 more permissions for an app?


Not for a third party app, which is what this group is about.

Of course if you are building your app into the system, you can do a lot of
things and signing it with the platform cert of that system gives you access
to the system permissions.

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Application as root

2010-03-31 Thread Dianne Hackborn
SystemServer does not run as root.

On Tue, Mar 30, 2010 at 11:51 PM, manjunath phc2h5nh3.ma...@gmail.comwrote:

 I'm trying to run the factory application i.e. GlobalTime where one
 EGL API eglCreateWindowSurface is used. The Vendor provided EGL
 library call is only working with root access. It is not a third party
 application.

 Also the SystemServer  initiates SurfaceFlinger. In this case the
 above EGL API is working fine in SurfaceFlinger. I believe this is
 because SystemServer is started as root.

 Regards,
 Manjunath


 On Mar 29, 3:46 pm, a2ronus aaron.jan...@gmail.com wrote:
  Hello Dianne, I have a question related to this. Is it possible to use
  sharedUserId=android.uid.system in combination with (re-)signing a
  (newly) built Android and the app with the same key to achieve having
  more permissions for an app?
 
  Thanks in advance.
 
  On 26 mrt, 22:10, Dianne Hackborn hack...@android.com wrote:
 
   You can't as a third partyapplication(in fact you can't at all without
   hacking the platform or possibly running in factory test mode).
  Modifying
   the platform is more appropriate for android-porting.
 
   On Fri, Mar 26, 2010 at 5:22 AM, manjunath phc2h5nh3.ma...@gmail.com
 wrote:
 
Hi,
 
I want to run aapplicationasrootto check one of my API
functionality. I know that Android won't permit applications withroot
access i.e. setting UID = 0.  Can anyone provide a hack so that I can
run myapplicationasroot.
 
I saw in Process.java file that FIRST_APPLICATION_UID is set to 1
and so on. If I set it to 0 my homescreen doesn't come up.
Can anyone tell me where this security check is done.
 
I also want to know the actual flow for anyapplicationto run on
android.
 
Thanks,
Manjunath
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
To unsubscribe from this group, send email to android-developers+
unsubscribegooglegroups.com or reply to this email with the words
 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.comandroid-developers%2bunsubscr...@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: GLSurfaceView on app widget?

2010-03-31 Thread Dianne Hackborn
You can't.  The closest you can come is rendering into an off-screen bitmap
and updating the widget with that.  Of course you need to be very careful
about the size of the bitmap and update rate.

On Wed, Mar 31, 2010 at 12:09 AM, Musafir musafir4frie...@gmail.com wrote:


 hi ,

 ok but let me know how can i put 3d drawings using opengl in an app
 widget. if GLSurfaceView is not supported then its impossible to do?
 am right?

 thanks for ur reply:)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: GLSurfaceView on app widget?

2010-03-31 Thread Dianne Hackborn
Btw, we very strongly avoid looking at widgets as mini applications which
is where people often are coming from when they ask these questions.  That
is not what they are for.  If you want to do something highly interactive
with the user, you should be doing it in your own activity.  You could have
a widget for a low-fidelity summary on the home screen that the user can tap
to enter your high-fidelity activity.  You can put your activity on the
wallpaper to have a very clean transition from the home screen to the
activity (very much feeling like they are part of the same thing).

On Wed, Mar 31, 2010 at 12:14 AM, Dianne Hackborn hack...@android.comwrote:

 You can't.  The closest you can come is rendering into an off-screen bitmap
 and updating the widget with that.  Of course you need to be very careful
 about the size of the bitmap and update rate.


 On Wed, Mar 31, 2010 at 12:09 AM, Musafir musafir4frie...@gmail.comwrote:


 hi ,

 ok but let me know how can i put 3d drawings using opengl in an app
 widget. if GLSurfaceView is not supported then its impossible to do?
 am right?

 thanks for ur reply:)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.




-- 
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] Monkey automation script documentation

2010-03-31 Thread md zafar ziya
Hi,

To automate system application testing, trying to use android monkey
tool.But monkey tool use only default setting for testing particular
application.

Is there any documentation or help to write user own android monkey
tool script to automate monkey tool for application testing.

Any suggestions will be highly appreciated.

Regards

md zafar ziya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] Monkey automation script documentation

2010-03-31 Thread md zafar ziya
Hi,

To automate system application testing, trying to use android monkey
tool.But monkey tool use only default setting for testing particular
application.

Is there any documentation or help to write user own android monkey
tool script to automate monkey tool for application testing.

Any suggestions will be highly appreciated.

Regards

md zafar ziya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] the behavior of singleTask not consistent with the document?

2010-03-31 Thread Dianne Hackborn
I suggest you don't use singleTask.  And very strongly suggest you don't use
singleInstance.  These are for very specialized cases, and at the very least
if your app isn't being launched from other apps it makes little sense to
use them and is likely to cause you trouble.

On Tue, Mar 30, 2010 at 10:49 PM, focuser linto...@gmail.com wrote:

 Hi,

 I have an app with two activities, one of which the launchmode is set
 to singleTask.  From the Android dev guide, I got the impression
 that my SingleTaskActivity should start a new task (or reuse an old
 task) and always sit at the root of the stack when launched.  However,
 it's inconsistent with the behavior of the app if I follow the steps
 below:
 - launch StandardActivity from home
 - click the home key
 - launch SingleTaskActivity from home, you will see it's in the
 foreground as expected
 - click the Back key, StandardActivity comes to the foreground
 whereas I expect to see the home screen because SingleTaskActivity is
 supposed to be at the ROOT of the stack.  It appears
 SingleTaskActivity was launched into the task that StandardActivity
 started, rather than starting its own task.

 Is my understanding about the singleTask launch mode correct?
 Thanks,

 -

 PS:

 === The Android Dev guide (http://developer.android.com/guide/topics/
 manifest/activity-element.html#lmode) says:

 In contrast, singleTask and singleInstance activities can only
 begin a task. They are always at the root of the activity stack.
 Moreover, the device can hold only one instance of the activity at a
 time — only one such task.

 === My AndroidManifest.xml file:
application android:icon=@drawable/icon android:label=@string/
 app_name
activity android:name=.StandardActivity
  android:label=Standard
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:name=.SingleTaskActivity
  android:label=ActivitySingleTask
  android:launchMode=singleTask
  
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application

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

 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: Integrate IPhone Safari like view in Android?

2010-03-31 Thread javame_android
Hi,

I have been able to minimize the View using animation. I have set the
animation for 500 duration, so the animation disappear after that
period.

Can someone let me know is it possible to have that shrunken view
permanently till someone clicks on it?

Please reply so that I can sort this User Interface as soon as
possible.

Also, let me know if its difficult to understand what I want.

Hope to get a quick reply.


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: Deploying shared resources

2010-03-31 Thread Jargon
On Mar 24, 7:03 pm, Mark Murphy mmur...@commonsware.com wrote:
 Jargon wrote:
  We are investigating the possibilities to package  deploy platform UI
  extensions which can contain both Java code andresources- which then
  can be (re-)used by applications using uses-library tag in the
  AndroidManifest.xml.

 You and me both, though I'm not trying to use uses-library.

Can you explain more of your strategy - and how to avoid platform
changes?
My initial plan is to do very small changes in the platform to enable
vendors
to build their own resource packages, just as framework-res.apk, since
most
of the stuff already seems to be there. Then looking into a more long-
term solution
which eliminates the unique package identifier issue which in
inevitable,
basically by replacing the top 8 package bits in the resource
identifier with a
namespace identifier, e.g. com.vendor.foo. Such a solution would
enable
introduction of third party packages just by adding them into the file
system since
their resources would not clash with existing ones.


  One solution which has been discussed was to use the aapt -x option
  together with the new --custom-package option introduced in November
  to generate unique resource identifiers for the shared resource
  package.

 That's interesting -- I had not noticed --custom-package before. I will
 need to do some experiments to see if this helps with the solution I'm
 working on.

This fix enabled us to use the aapt tool as is, without any patching.
Still we
are considering another option --custom-package-id which would enable
finer
control of which package identifier is assigned to the generated
package.

  Then, just as the uses-library information in the manifest file
  would bootstrap the class loader with the listed  extension packages,
  it would add these packages to the asset manager as well - allowing
  the asset manager to locate and load the extensionresources. (This
  would require a platform extension.)

 I'm trying to avoid anything that requires modifying the SDK, and I
 agree that overloading uses-library this way would require such
 modifications AFAIK.

We were considering introducing a uses-resources tag but this would
require a lot more changes. To me, it feels natural to think that a
library
could hold both code and resources.

  So, my question is really if this is a way forward - using the 8
  package bits in the resource identifiers?

 What are the 8 package bits?

Each resource identifier consists of 32 bits were 8 top bits defines
the
package in which the resource belongs to. Platform resources are 0x01
and 0x7F are application resources. The idea is to use the remaining
253 values for extension packages.

  This solution would probably
  work initially for one vendor since the allocation of unique package
  identifiers would be an internal issue, but if extension packages
  where to be exchanged within the android community there would be a
  high risk of packages using the same identifiers.

 The issue of identifier collisions is a well-understood one for those
 who have done development before with reusable components or modular
 operating systems. Everything from Linux's apt and yum to Ruby gems
 requires unique identifiers. So long as there are a handful of popular
 repositories, first one in wins should suffice there.

 Hence, I am not that worried about that aspect of the problem too much.
 Whoever comes up with a component packaging system just needs to also
 run a repository.

With the introduction of namespace, e.g. com.vendor.foo such a
repository would
not be needed since they would eliminate resource clashing.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] Monkey automation script documentation for user own monkey script

2010-03-31 Thread md zafar ziya
Hi,

To automate system application testing, trying to use android monkey
tool.But monkey tool use only default setting for testing particular
application.

Is there any documentation or help to write user own android monkey
tool script to automate monkey tool for application testing.

Any suggestions will be highly appreciated.

Regards

md zafar ziy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] onkey automation tool script help documentation

2010-03-31 Thread md zafar ziya
Hi,

To automate system application testing, trying to use android monkey
tool.But monkey tool use only default setting for testing particular
application.

Is there any documentation or help to write user own android monkey
tool script to automate monkey tool for application testing.

Any suggestions will be highly appreciated.

Regards

md zafar ziy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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: Integrate IPhone Safari like view in Android?

2010-03-31 Thread Sean Hodges
On Wed, Mar 31, 2010 at 8:22 AM, javame_android
su...@softwebsolutions.com wrote:
 I have been able to minimize the View using animation. I have set the
 animation for 500 duration, so the animation disappear after that
 period.

 Can someone let me know is it possible to have that shrunken view
 permanently till someone clicks on it?

 Please reply so that I can sort this User Interface as soon as
 possible.

 Also, let me know if its difficult to understand what I want.

I'm not really sure what you're trying to do, but if you are trying to
mimic an effect that is present in the Android Browser (as you
suggested in your first post) then take a look at the Browser source
code, it should tell you how the layout was achieved:

https://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=tree;f=res/layout;h=412f4593d0c31af17e7b608406700ecf16b5297f;hb=HEAD

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread grace
ya u can use the calendar for that

On Mar 31, 11:45 am, perumal316 perumal...@gmail.com 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: ListView/Adapter IllegalStateException

2010-03-31 Thread ionel
I am calling notifyDataSetChanged() in update method

On Mar 30, 11:36 pm, social hub shubem...@gmail.com wrote:
 prob u need to call notifyDataSetChanged if data is changed. See if that
 helps

 On Tue, Mar 30, 2010 at 3:15 PM, ionel ionelt2...@gmail.com wrote:
  I've implemented a custom ListView and  Adapter, and sometimes I
  receive IllegalStateException exception:” ERROR/AndroidRuntime(3575):
  java.lang.IllegalStateException: The content of the adapter has
  changed but ListView did not receive a notification. Make sure the
  content of your adapter is not modified from a background thread, but
  only from the UI thread.”

  Here is some code example:

  public interface BuddyChangeListener {

      void onChange(ListBuddy buddys);

  }

  public class BuddyListView extends ListView implements
  BuddyChangeListener

    public void onChange(ListBuddy Buddy) {
      MyActivity.instance.handler.post(new Runnable() {
                  public void run() {
                      if (((BuddyAdapter) refreshListView.getAdapter()) !
  = null) {
                          ((BuddyAdapter)
  refreshListView.getAdapter()).update(Buddy);
                      }
                  }
              });
  }
  public class BuddyAdapter extends BaseAdapter {

      private ListBuddy       buddyList;

      public BuddyAdapter (Context context, ListBuddy buddyList) {
          this.buddyList= buddyList;
      }

      public void update(ListBuddy buddyList) {
          this.buddyList= buddyList;
          this.notifyDataSetChanged();
      }
  }

  Every time when the content of the list need to be updated I run from
  onChange method and I use a handler to change the adapter content,to
  update the content from UI thread.

  Can someone to tell me if I have made something wrong on update ?

  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  To unsubscribe from this group, send email to android-developers+
  unsubscribegooglegroups.com or reply to this email with the words 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] How to implement Windows Animation

2010-03-31 Thread Archana
Hi

Does anyone knows how can we implement Windows animation?

I tried like this

PreferenceScreen screen = (PreferenceScreen) preference;
Window window= screen.getDialog().getWindow();
window.setWindowAnimations(R.anim.push_left_in);

but it has no effect in 1.5..

Any help will be 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


[android-developers] Re: GLSurfaceView on app widget?

2010-03-31 Thread String
On Mar 31, 8:16 am, Dianne Hackborn hack...@android.com wrote:

 You can put your activity on the
 wallpaper to have a very clean transition from the home screen to the
 activity (very much feeling like they are part of the same thing).

And to bring this back around to the original post, there's a good
implementation for OpenGL in live wallpaper discussed here:
http://groups.google.com/group/android-developers/browse_thread/thread/1564b52d7f73bf3

I've had good success using it in 3 live wallpapers.

String

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Android market - limited distribution

2010-03-31 Thread String
On Mar 30, 10:38 pm, Mark Murphy mmur...@commonsware.com wrote:

 If you uncheck the All locations checkbox, you then get a long list of
 countries with checkboxes. The countries themselves are links -- click
 the country name and, for some countries, you get a list of carriers.

Sure enough, I'd never really noticed that those were links. Could've
used that during the recently-discussed Optus fiasco.  Thanks for the
tip!

String

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group 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-03-31 Thread David Horn
Do as I say, not as I do etc. ;-)

On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:
 Yes David I would suggest that you wait until after the deadline
 before
 whining- uh, asking where it is.

 ;-)

 On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:



  It looks to me like the system sent out US Nexus's first, then US
  Droids, and hopefully us EU yokels will get a Nexus later this week.

  I say hopefully, as I launched into a bit of an attack on someone
  whose phone hadn't turned up with 2 days of the deadline to run; and
  now I'm in that situation with a few days off work flinching every
  time a van goes past the house and wishing Google would hurry up.  Has
  anyone tried phoning Brightpoint to ask what the plan is?

  Dave.

  On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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: Ads in apps... How to successfully generate a larger revenue?

2010-03-31 Thread Abdul Mateen
I think I should also do this, i.e switch from Admob --- QW or Mobclix. If
even I made 50 per day it would be enough...but yes how to force user to
update ? I have more than 10k active installs.

On Wed, Mar 31, 2010 at 11:32 AM, Dan Sherman impact...@gmail.com wrote:

 I would imagine their tax lines look something like this:

 Client -- Google :: $1.00
 Google -- Developer :: $0.70

 Google's taxable income: $0.30

 Note that they don't explicitly tell the government We paid XXX to
 developer Y, they just note that the money left their hands, and that they
 shouldn't be taxed on it.  Essentially, its your responsibility to mention
 that you received the money.  If they wanted to track that cash, should be
 very easy to see :)

 - Dan


 On Wed, Mar 31, 2010 at 12:16 AM, Kevin Duffey andjar...@gmail.comwrote:

 I would think the same thing. Maybe it's the google market that doesn't
 report it? I had asked about this some time ago, for those selling apps and
 making their 70%, at tax time do they get some 1099 or something, and
 several said no. So I am unclear as to how the market handles taxes... as
 well, if you do micro transactions in your app, where you charge $1 for some
 virtual item, using paypal/google, who take a cut, how is that handled? Does
 google/paypal send in info on how much was paid to you.. that is not clear
 to me at all.



 On Tue, Mar 30, 2010 at 11:06 PM, Dan Sherman impact...@gmail.comwrote:

 I would very seriously suspect that they report it.  I remember having to
 give a social-security/tax-id to Adsense when signing up.  And just thinking
 through their tax predicament (bringing in tons of money, and seeing a lot
 of it go straight back out), they're going to need to keep records, and
 report as to where that money went out to.  Mostly so they don't have to pay
 taxes on it (was your profits, not theirs).

 - Dan

 On Tue, Mar 30, 2010 at 10:54 PM, Kevin Duffey andjar...@gmail.comwrote:

 Well, yes, you *should* report it.. but if google and admob and so forth
 don't report anything to the IRS, then it's basically on good faith. There
 isn't presently any way for them to track how much you make. I would 
 imagine
 eventually something will come into play.


 On Tue, Mar 30, 2010 at 7:00 PM, Wayne Wenthin wa...@fuligin.comwrote:

 I'll chime in on this.  I have switched from admob to mobclix
 recently.  (actually I can control which one I use base on a network 
 check)
 I have noticed my CTR jump from around 2-3 a day to around 7.  This makes 
 me
 more inclined to hang with them.  But I only changed after I watch admob
 drop from around 7 a day to 1-2.  Now 150 a day is my new goal ;-)  But I
 figure if I can bring in 100 a month or so it's still better than nothing.


 As for the IRS thing this is all income and it will need to be reported
 in some way.

 On Tue, Mar 30, 2010 at 12:36 PM, Abdul Mateen abmat...@gmail.comwrote:


 Yes Really Moto $150/day is a damn good income from Ads, I am only
 making $1-$2/day , and I am using Admob + Greystripe..


 On Wed, Mar 31, 2010 at 12:31 AM, Kevin Duffey 
 andjar...@gmail.comwrote:

 I am interested in this as well. First, Moto.. $150 a day? Holy crap!
 I'd love to have that much 7 days a week coming in. That would 
 supplement my
 income nicely. :) Second, slightly off topic, but directly related to
 revenue.. with that much coming in, or say even more if you had like 
 $1000 a
 day coming in, what do you do about income taxes? I was told by some 
 that
 google doesn't send any money making info to IRS.. so essentially there 
 is
 no way for IRS or any tax/government to track how much you make. I am
 probably a long ways off from earning $1 a day.. but I am curious how 
 you
 handle this issue. Is it on faith that you pay taxes... and mind you, 
 you
 can shoot a private email if this is something that you wouldn't want to
 make public. :) I am not trying to cheat the IRS out of money by any 
 means..
 I would rather be legit... but am interested in how this is done. 
 Living in
 California I already lose half my paycheck to taxes between state and
 federal.

 The ads that are done in games, don't they have to be clicked on to
 earn money? You said you have 60,000 users, do a lot of them click the 
 ads
 while playing a game? Or even in a splash screen or game-over screen? 
 Or do
 you earn money just by showing the ad? I would hope both.. clicks == 
 more
 money, showing == very little. But if you get nothing from displaying 
 the
 ad.. that seems ridiculous... because you are advertising for that ad.. 
 the
 user is seeing that ad.. even if they don't click it, it may trigger 
 them
 later to look it up, etc. If you do make some money off of each ad
 displayed... how does it work? I mean, you could write a robot app that 
 made
 it seem like 10's of 1000's of people were at least seeing the ad. There
 must be some way that admob and others avoid cheating and losing 
 money.

 Lastly, I thought things like admob required an ad 

[android-developers] 404 returned by Picasa Protocol

2010-03-31 Thread Sameer AM
Hello Everyone,

I've gotten through the ClientLogin procedure using service=lh2 for
picasa and am getting an Auth Token, with which I'm doing the
following

HttpGet mGet=new 
HttpGet(http://picasaweb.google.com/data/feed/api/
all?q=puppymax-results=10);
System.out.println( THE REQUEST URL FOR PICASA IS 
==+picasa_url);
mGet.addHeader(AUTH_HEADER_NAME, PICASA_AUTH_VALUE);  // picasa 
auth
value contains : Google Auth=blah blah
mGet.addHeader(GDATA_VERSION_NAME, GDATA_VERSION_VALUE); //Gdata
value is : 2
HttpResponse mResponse;


mResponse=getResponesForHttpGet(mGet);  // this method executes 
the
the mGet as defaultHttpClient.execute(mGet) and returns response..

but I get a

404 Not Found error saying codedata/feed/api/all?q=puppymax-
results=10/code Not found on this server. How to get through 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: Integrate IPhone Safari like view in Android?

2010-03-31 Thread javame_android
Hi,

I am trying to mimic the view of IPhone Safari. And also, if you have
looked at the TweetDeck Application in IPhone.

It is quite similar to Anrdoid Browser, since it has minimized window.

What I have been able to do is minimize the view using Animation as
below :

?xml version=1.0 encoding=utf-8?

set xmlns:android=http://schemas.android.com/apk/res/android;
android:shareInterpolator=false

scale
android:interpolator=@android:anim/
accelerate_decelerate_interpolator
android:fromXScale=1.0
android:toXScale=0.8
android:fromYScale=1.0
android:toYScale=0.6
android:pivotX=50%
android:pivotY=50%
android:fillAfter=false
android:keepScreenOn = true
android:duration = 500
/

/set

The source code for the Activity goes like this :

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.LinearLayout;

public class ShrinkAnimation extends Activity
{
private Button btnShrink = null;
private LinearLayout ll = null;
private Animation shrinkAnimation = null;
private Bitmap shrunkview = null;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

shrinkAnimation =
AnimationUtils.loadAnimation(ShrinkAnimation.this,R.anim.shrink);
btnShrink = (Button) findViewById(R.id.btnShrink);
ll = (LinearLayout) findViewById(R.id.mainLayout);


btnShrink.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
ll.startAnimation(shrinkAnimation);
}

});
}
}

And the layout is like this :

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent 

Button
android:id = @+id/btnShrink
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Shrink
/

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:id=@+id/mainLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:baselineAligned=true
android:background=#FF 

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=horizontal
android:layout_height=wrap_content
android:layout_marginLeft=5dip
android:layout_marginRight=5dip
android:layout_marginTop=25dip
android:layout_width=wrap_content
android:layout_gravity=center 

TextView android:text=Name : 
android:id=@+id/NameLable
android:layout_height=wrap_content
android:layout_width=wrap_content
android:minWidth=70dip/

EditText android:text= 
android:id=@+id/name
android:layout_width=wrap_content
android:layout_height=wrap_content
android:maxWidth=400dip
android:gravity=top
android:minWidth=230dip/EditText


/LinearLayout

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=horizontal
android:layout_height=wrap_content
android:layout_marginLeft=5dip
android:layout_marginRight=5dip
android:layout_gravity=center
android:layout_width=wrap_content

TextView android:text=Location : 
android:id=@+id/locationLabel
android:layout_width=wrap_content
android:layout_height=wrap_content
android:minWidth=70dip/

EditText android:text= 
android:id=@+id/location

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

2010-03-31 Thread HippoMan
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
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] صورة هيفاء وهبي ب البكيني في مسبح الفيلا (صورة ممنو عة ) لحقوا على....

2010-03-31 Thread روائع الاخدود
*النسخة الجديدة من برنامج جوجل ايرث الان شاهد اقرب جزء الى منزلك** Google
Earth*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=310







*رسائل جوال مضحكه** ..*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=329





*مسجات تذوووب الصخر لوم وعتاب وفراق وشوق*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=314







http://www.rishtfn.ql4h.net/vb/showthread.php?t=309*شوفوا الجنس الثالث في
الهند** ..*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=309







http://www.rishtfn.ql4h.net/vb/showthread.php?t=317*صورة هيفاء وهبي
بالبكيني في مسبح الفيلا (صورة ممنوعة ) لحقوا على***

http://www.rishtfn.ql4h.net/vb/showthread.php?t=317







http://www.rishtfn.ql4h.net/vb/showthread.php?t=319*شبيه الأمير سلطان بن
عبدالعزيز ( صوره** ) !!!*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=319





*أتحداك ما تضحك اذا شفت هالفلم** **المجنون.. نصيحه لا يفوتكم*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=321









*لمن تريد التغير في حياتها الزوجية ...لك سبعة أسرار تجعل زوجك هائم*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=316







http://www.rishtfn.ql4h.net/vb/showthread.php?t=320*مناظر طبيعية خلابة
وصور رومانسية منتقاة*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=320







http://www.rishtfn.ql4h.net/vb/showthread.php?t=313*مسجات ودااع
مسافر*

http://www.rishtfn.ql4h.net/vb/showthread.php?t=313

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] open browser bookmarks

2010-03-31 Thread extrapedestrian
I would like to open browser bookmarks directly from my app.
Is there an intent that could to this?

I tried

String packageName = com.android.browser;
String className =
com.android.browser.CombinedBookmarkHistoryActivity;
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setClassName(packageName, className);
startActivity(intent);

But I get security permission exception.

these are on:
com.android.browser.permission.READ_HISTORY_BOOKMARKS
com.android.browser.permission.WRITE_HISTORY_BOOKMARKS

I suppose only browser can open that window.
Maybe there is a way to open browser and tell him to show bookmarks
page?

thanks

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

To unsubscribe, reply using remove me as the subject.


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

2010-03-31 Thread Kumar Bibek
You need to turn on USB Debugging setting on your phone. That should
work.

Thanks and Regards,
Kumar Bibek

On Mar 31, 11:47 am, oriharel ori.ha...@gmail.com wrote:
 Hi,
 Im running Win XP 32 bit, SP3.
 I have Nexus one device. and I develop on Eclipse.
 I'm trying to install my app to test it on a real device - my own
 Nexus one.

 after downloading and installing the USB driver - the devices charges
 just fine. after I mount the USB storage (from the device) I can even
 see the phone's file system from the computer (thus able to move files
 in and out of the SD card).

 however - adb devices command returns an empty list.
 also, Eclipse Device Chooser doesn't show the device (it shows
 emulators I previously configured).

 anyone has an answer?

 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: How to have a notification icon with image + text

2010-03-31 Thread guru
Hi Mark Mruphy,

I did the same way, tried to pass same ID. it is now displaying one
icon. But the number of such notification is not displaying i.e number
is not displaying. if i turn off and on bluetooth then it will display
the number.

Why this behavior? whether have to use any flag for this?

Thanks
Gururaja  O

On Mar 29, 6:05 pm, Mark Murphy mmur...@commonsware.com wrote:
 guru wrote:
  The current implementation of the Bluetooth Notification displays icon
  on status bar for each failure condition. But i want like single icon
  and number of such notifications.

  single icon(number)

  I used .number field, it is displaying number, but it is also
  displaying the icon for each failure condition.

  How this can be handled?

 I know nothing about the Bluetooth stuff.

 If you are displaying the Notifications yourself, use the same ID value
 for each call to notify(), as in the example I showed you.

 If you are not displaying the Notifications yourself, then you do not
 have control over those Notifications at the SDK level.

 --
 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: GLSurfaceView on app widget?

2010-03-31 Thread Musafir


hi,
thanks a lot for reply, could u please tell me how can i put my
activity as live wallpaper?
can u provide any referance link ?

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.


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

2010-03-31 Thread Thomas Riley
Serious though, the FAQ says Please allow 2-4 weeks from the date of
submission of the form for delivery of the phone. If you do not
receive the phone within that timeframe, please send an email to
android-market-seed...@google.com.

Do we just need to wait, or is it worth contacting?

I'm not really bothered about waiting, but since FedEx have no pending
deliveries in their system for me I makes me thinks a mistake has been
made at Brightpoints/Brightstars end!

On Mar 31, 10:30 am, David Horn pga...@gmail.com wrote:
 Do as I say, not as I do etc. ;-)

 On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:



  Yes David I would suggest that you wait until after the deadline
  before
  whining- uh, asking where it is.

  ;-)

  On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:

   It looks to me like the system sent out US Nexus's first, then US
   Droids, and hopefully us EU yokels will get a Nexus later this week.

   I say hopefully, as I launched into a bit of an attack on someone
   whose phone hadn't turned up with 2 days of the deadline to run; and
   now I'm in that situation with a few days off work flinching every
   time a van goes past the house and wishing Google would hurry up.  Has
   anyone tried phoning Brightpoint to ask what the plan is?

   Dave.

   On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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: Device Seeding Program for Top Android Market Developers

2010-03-31 Thread Thomas Riley
What's also annoying me if everytime I post on this thread I get this
email!


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!


Argh, whats going on!

On Mar 31, 12:07 pm, Thomas Riley tomrile...@googlemail.com wrote:
 Serious though, the FAQ says Please allow 2-4 weeks from the date of
 submission of the form for delivery of the phone. If you do not
 receive the phone within that timeframe, please send an email to
 android-market-seed...@google.com.

 Do we just need to wait, or is it worth contacting?

 I'm not really bothered about waiting, but since FedEx have no pending
 deliveries in their system for me I makes me thinks a mistake has been
 made at Brightpoints/Brightstars end!

 On Mar 31, 10:30 am, David Horn pga...@gmail.com wrote:



  Do as I say, not as I do etc. ;-)

  On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:

   Yes David I would suggest that you wait until after the deadline
   before
   whining- uh, asking where it is.

   ;-)

   On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:

It looks to me like the system sent out US Nexus's first, then US
Droids, and hopefully us EU yokels will get a Nexus later this week.

I say hopefully, as I launched into a bit of an attack on someone
whose phone hadn't turned up with 2 days of the deadline to run; and
now I'm in that situation with a few days off work flinching every
time a van goes past the house and wishing Google would hurry up.  Has
anyone tried phoning Brightpoint to ask what the plan is?

Dave.

On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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: Installing apps to Nexus One device

2010-03-31 Thread oriharel
it was turned on (even before the first time I installed the driver)
still doesn't work


On Mar 31, 1:45 pm, Kumar Bibek coomar@gmail.com wrote:
 You need to turn on USB Debugging setting on your phone. That should
 work.

 Thanks and Regards,
 Kumar Bibek

 On Mar 31, 11:47 am, oriharel ori.ha...@gmail.com wrote:



  Hi,
  Im running Win XP 32 bit, SP3.
  I have Nexus one device. and I develop on Eclipse.
  I'm trying to install my app to test it on a real device - my own
  Nexus one.

  after downloading and installing the USB driver - the devices charges
  just fine. after I mount the USB storage (from the device) I can even
  see the phone's file system from the computer (thus able to move files
  in and out of the SD card).

  however - adb devices command returns an empty list.
  also, Eclipse Device Chooser doesn't show the device (it shows
  emulators I previously configured).

  anyone has an answer?

  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: Communication between android Emulator and Real Device !!!

2010-03-31 Thread Anthoni
Hey AJ,

Sorry not always at computer, so can't reply instantly.
What I've done is write my own server application (mainly because I
like doing it lol) and because I find that the easiest route.

Before I go too deeply into explaining things, I need to know what
types of languages you know first, because there are many ways to
achieve this.
Do you perhaps know how to set up a web server on your computer either
a Java Web Server (which might be best) or Apache or IIS Web Server?

Once that stumbling block is covered, you then write a Web Application
which you can use the browser on the Emulator to log into. Once done,
you get the real device to also log in. Once they are both connected,
you need to get your Web Application to then start relaying messages
back and forth. Like I mentioned there are many ways to achieve this
and most get complex very quickly, it just depends on what you want to
achieve as to what is the best option.

Regards
Anthoni

On Mar 31, 7:36 am, AJ ajeet.invinci...@gmail.com wrote:
 Hi Anthoni,

 Can you please throw some-light on what you have said. How can I do
 that?

 Thanks,
 AJ

 On Mar 30, 10:23 pm, AJ ajeet.invinci...@gmail.com wrote:



  Hi Anthoni,

  Thanks for the reply.
  I got the overview what you have said. But can you please tell me more
  about that. How can I achieve that.

  Thanks,
  AJ

  On Mar 30, 5:25 pm, Anthoni anthoni.gard...@gmail.com wrote:

   Hi,

   I don't think that you can actually get the emulator to talk to a real
   device.

   However, if you use a server where they both connect, you can use that
   as a proxy mechanism. So the emulator sends a signal to the server
   which then relays it to the real device and vica versa. I know this is
   possible because it's what I am doing at the moment.

   Regards
   Anthoni

   On Mar 30, 12:47 pm, AJ ajeet.invinci...@gmail.com wrote:

Any clue please?

- AJ

On Mar 29, 10:37 pm, AJ ajeet.invinci...@gmail.com wrote:

 Hi group,

 I know we can communicate between 2 instances of Emulator. But Is it
 possible to communicate between the a read Device and Emulator?

 Thanks in Advance for your inputs.

 - AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread Richard
That happens to me Thomas - when I post anything on this group.

I'm in the UK, and I've just checked with FedEx. They have nothing
dispatched to me in the last 2 weeks.
Can anyone confirm that it's FedEx in Europe too?

Where does it say in your confirmation email to notify them if it
hasn't arrived within 4 weeks?
Mine simply says:
If you need to make any changes to your information above, please
contact us at android-market-seed...@google.com as soon as possible.
Otherwise, you should receive your phone in 2-4 weeks!

That 4 weeks expires on Friday, and considering FedEx have nothing
dispatched yet - that's unlikely to happen.





Thanks,
Richard

On Mar 31, 12:10 pm, Thomas Riley tomrile...@googlemail.com wrote:
 What's also annoying me if everytime I post on this thread I get this
 email!

 
 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!
 

 Argh, whats going on!

 On Mar 31, 12:07 pm, Thomas Riley tomrile...@googlemail.com wrote:



  Serious though, the FAQ says Please allow 2-4 weeks from the date of
  submission of the form for delivery of the phone. If you do not
  receive the phone within that timeframe, please send an email to
  android-market-seed...@google.com.

  Do we just need to wait, or is it worth contacting?

  I'm not really bothered about waiting, but since FedEx have no pending
  deliveries in their system for me I makes me thinks a mistake has been
  made at Brightpoints/Brightstars end!

  On Mar 31, 10:30 am, David Horn pga...@gmail.com wrote:

   Do as I say, not as I do etc. ;-)

   On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:

Yes David I would suggest that you wait until after the deadline
before
whining- uh, asking where it is.

;-)

On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:

 It looks to me like the system sent out US Nexus's first, then US
 Droids, and hopefully us EU yokels will get a Nexus later this week.

 I say hopefully, as I launched into a bit of an attack on someone
 whose phone hadn't turned up with 2 days of the deadline to run; and
 now I'm in that situation with a few days off work flinching every
 time a van goes past the house and wishing Google would hurry up.  Has
 anyone tried phoning Brightpoint to ask what the plan is?

 Dave.

 On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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: Device Seeding Program for Top Android Market Developers

2010-03-31 Thread Thomas Riley
I quoted the 4 week contact thing from the original FAQ

http://sites.google.com/site/developermarketandroidgiveaway/faq

And glad i'm not the only one getting these annoying emails! It's
extremely strange...

On Mar 31, 12:24 pm, Richard rtaylor...@googlemail.com wrote:
 That happens to me Thomas - when I post anything on this group.

 I'm in the UK, and I've just checked with FedEx. They have nothing
 dispatched to me in the last 2 weeks.
 Can anyone confirm that it's FedEx in Europe too?

 Where does it say in your confirmation email to notify them if it
 hasn't arrived within 4 weeks?
 Mine simply says:
 If you need to make any changes to your information above, please
 contact us at android-market-seed...@google.com as soon as possible.
 Otherwise, you should receive your phone in 2-4 weeks!

 That 4 weeks expires on Friday, and considering FedEx have nothing
 dispatched yet - that's unlikely to happen.

 Thanks,
 Richard

 On Mar 31, 12:10 pm, Thomas Riley tomrile...@googlemail.com wrote:



  What's also annoying me if everytime I post on this thread I get this
  email!

  
  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!
  

  Argh, whats going on!

  On Mar 31, 12:07 pm, Thomas Riley tomrile...@googlemail.com wrote:

   Serious though, the FAQ says Please allow 2-4 weeks from the date of
   submission of the form for delivery of the phone. If you do not
   receive the phone within that timeframe, please send an email to
   android-market-seed...@google.com.

   Do we just need to wait, or is it worth contacting?

   I'm not really bothered about waiting, but since FedEx have no pending
   deliveries in their system for me I makes me thinks a mistake has been
   made at Brightpoints/Brightstars end!

   On Mar 31, 10:30 am, David Horn pga...@gmail.com wrote:

Do as I say, not as I do etc. ;-)

On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:

 Yes David I would suggest that you wait until after the deadline
 before
 whining- uh, asking where it is.

 ;-)

 On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:

  It looks to me like the system sent out US Nexus's first, then US
  Droids, and hopefully us EU yokels will get a Nexus later this week.

  I say hopefully, as I launched into a bit of an attack on someone
  whose phone hadn't turned up with 2 days of the deadline to run; and
  now I'm in that situation with a few days off work flinching every
  time a van goes past the house and wishing Google would hurry up.  
  Has
  anyone tried phoning Brightpoint to ask what the plan is?

  Dave.

  On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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


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

2010-03-31 Thread Richard
Okay, thanks.

I guess I'll email them when the time comes around...

I know we shouldn't really complain - we are getting these phones for
free. But if they say 2-4 weeks and it's not there, I feel like maybe
the dispatchers are being a little careless - maybe even lost some
orders.

Also Thomas: I get two emails everytime I post on this group, one from
dreamhost.com and another from naver.com - in (what I guess is)
Japanese. Very strange.

On Mar 31, 12:28 pm, Thomas Riley tomrile...@googlemail.com wrote:
 I quoted the 4 week contact thing from the original FAQ

 http://sites.google.com/site/developermarketandroidgiveaway/faq

 And glad i'm not the only one getting these annoying emails! It's
 extremely strange...

 On Mar 31, 12:24 pm, Richard rtaylor...@googlemail.com wrote:



  That happens to me Thomas - when I post anything on this group.

  I'm in the UK, and I've just checked with FedEx. They have nothing
  dispatched to me in the last 2 weeks.
  Can anyone confirm that it's FedEx in Europe too?

  Where does it say in your confirmation email to notify them if it
  hasn't arrived within 4 weeks?
  Mine simply says:
  If you need to make any changes to your information above, please
  contact us at android-market-seed...@google.com as soon as possible.
  Otherwise, you should receive your phone in 2-4 weeks!

  That 4 weeks expires on Friday, and considering FedEx have nothing
  dispatched yet - that's unlikely to happen.

  Thanks,
  Richard

  On Mar 31, 12:10 pm, Thomas Riley tomrile...@googlemail.com wrote:

   What's also annoying me if everytime I post on this thread I get this
   email!

   
   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!
   

   Argh, whats going on!

   On Mar 31, 12:07 pm, Thomas Riley tomrile...@googlemail.com wrote:

Serious though, the FAQ says Please allow 2-4 weeks from the date of
submission of the form for delivery of the phone. If you do not
receive the phone within that timeframe, please send an email to
android-market-seed...@google.com.

Do we just need to wait, or is it worth contacting?

I'm not really bothered about waiting, but since FedEx have no pending
deliveries in their system for me I makes me thinks a mistake has been
made at Brightpoints/Brightstars end!

On Mar 31, 10:30 am, David Horn pga...@gmail.com wrote:

 Do as I say, not as I do etc. ;-)

 On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:

  Yes David I would suggest that you wait until after the deadline
  before
  whining- uh, asking where it is.

  ;-)

  On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:

   It looks to me like the system sent out US Nexus's first, then US
   Droids, and hopefully us EU yokels will get a Nexus later this 
   week.

   I say hopefully, as I launched into a bit of an attack on someone
   whose phone hadn't turned up with 2 days of the deadline to run; 
   and
   now I'm in that situation with a few days off work flinching every
   time a van goes past the house and wishing Google would hurry up. 
    Has
   anyone tried phoning Brightpoint to ask what the plan is?

   Dave.

   On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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: Notification manager question

2010-03-31 Thread guru
Hi Treking,

I didnt same may as you and mark told.

first time it is not displaying number. if i restart my application
then it will display the number.

what i need to do to get desired behavior... without restarting...

Regards
gururaja B O

On Mar 30, 2:35 am, ~ TreKing treking...@gmail.com wrote:
 On Mon, Mar 29, 2010 at 4:37 AM, guru guru.nav...@gmail.com wrote:
  What I have to need to achieve single icon and number of notification
  on the status bar?

 Make sure you use the same ID when you call NotificationManager.notifiy().

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


[android-developers] Re: GsmCellLocation.getCid() returns very large numbers.

2010-03-31 Thread Murphy
I think that's the opposite: large numbers corresponds to 2G cells.
Check the network type using TelephonyManager.getNetworkType().

On 24 mar, 19:08, Curro arturo.oj...@gmail.com wrote:
 I get the same Cell IDs when I set the phone to 2G only, I still get
 very large numbers. Any other ideas?

 Thanks!

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

To unsubscribe, reply using remove me as the subject.


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

2010-03-31 Thread Thomas Riley
Yep, I also get the naver.com one, forget about that as I spammed
it...

On Mar 31, 12:36 pm, Richard rtaylor...@googlemail.com wrote:
 Okay, thanks.

 I guess I'll email them when the time comes around...

 I know we shouldn't really complain - we are getting these phones for
 free. But if they say 2-4 weeks and it's not there, I feel like maybe
 the dispatchers are being a little careless - maybe even lost some
 orders.

 Also Thomas: I get two emails everytime I post on this group, one from
 dreamhost.com and another from naver.com - in (what I guess is)
 Japanese. Very strange.

 On Mar 31, 12:28 pm, Thomas Riley tomrile...@googlemail.com wrote:



  I quoted the 4 week contact thing from the original FAQ

 http://sites.google.com/site/developermarketandroidgiveaway/faq

  And glad i'm not the only one getting these annoying emails! It's
  extremely strange...

  On Mar 31, 12:24 pm, Richard rtaylor...@googlemail.com wrote:

   That happens to me Thomas - when I post anything on this group.

   I'm in the UK, and I've just checked with FedEx. They have nothing
   dispatched to me in the last 2 weeks.
   Can anyone confirm that it's FedEx in Europe too?

   Where does it say in your confirmation email to notify them if it
   hasn't arrived within 4 weeks?
   Mine simply says:
   If you need to make any changes to your information above, please
   contact us at android-market-seed...@google.com as soon as possible.
   Otherwise, you should receive your phone in 2-4 weeks!

   That 4 weeks expires on Friday, and considering FedEx have nothing
   dispatched yet - that's unlikely to happen.

   Thanks,
   Richard

   On Mar 31, 12:10 pm, Thomas Riley tomrile...@googlemail.com wrote:

What's also annoying me if everytime I post on this thread I get this
email!


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!


Argh, whats going on!

On Mar 31, 12:07 pm, Thomas Riley tomrile...@googlemail.com wrote:

 Serious though, the FAQ says Please allow 2-4 weeks from the date of
 submission of the form for delivery of the phone. If you do not
 receive the phone within that timeframe, please send an email to
 android-market-seed...@google.com.

 Do we just need to wait, or is it worth contacting?

 I'm not really bothered about waiting, but since FedEx have no pending
 deliveries in their system for me I makes me thinks a mistake has been
 made at Brightpoints/Brightstars end!

 On Mar 31, 10:30 am, David Horn pga...@gmail.com wrote:

  Do as I say, not as I do etc. ;-)

  On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:

   Yes David I would suggest that you wait until after the deadline
   before
   whining- uh, asking where it is.

   ;-)

   On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:

It looks to me like the system sent out US Nexus's first, then 
US
Droids, and hopefully us EU yokels will get a Nexus later this 
week.

I say hopefully, as I launched into a bit of an attack on 
someone
whose phone hadn't turned up with 2 days of the deadline to 
run; and
now I'm in that situation with a few days off work flinching 
every
time a van goes past the house and wishing Google would hurry 
up.  Has
anyone tried phoning Brightpoint to ask what the plan is?

Dave.

On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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-03-31 Thread Mark Murphy
guru wrote:
 Hi Treking,
 
 I didnt same may as you and mark told.
 
 first time it is not displaying number. if i restart my application
 then it will display the number.
 
 what i need to do to get desired behavior... without restarting...

I pointed you to an app that does this.

http://github.com/commonsguy/cw-android/tree/master/Notifications/Notify1/

Press the top button, get a Notification with a count. Press the top
button again, the count increments. And so on.

-- 
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: How to have a notification icon with image + text

2010-03-31 Thread Mark Murphy
guru wrote:
 I did the same way, tried to pass same ID. it is now displaying one
 icon. But the number of such notification is not displaying i.e number
 is not displaying. if i turn off and on bluetooth then it will display
 the number.
 
 Why this behavior? 

Either your device or your application is broken.

 whether have to use any flag for this?

There is no flag for toggle Bluetooth to make the count appear.

-- 
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] CALL_PHONE permission

2010-03-31 Thread Mark Murphy
Isaac Wagner wrote:
 On Tue, Mar 30, 2010 at 10:34 PM, Mark Murphy mmur...@commonsware.com wrote:
 Isaac Wagner wrote:
 startActivity(new Intent(Intent.ACTION_CALL, tel:...));
 Yes, but that brings up the dialer.  I don't want the dialer UI to
 come up on the screen.
 No, it doesn't. ACTION_DIAL brings up the Dialer.

 
 Sorry, I'm using the wrong terminology.  I want my application to
 place a call without leaving my current activity.  When I do
 ACTION_CALL it brings up the call activity, or whatever that is
 called.

Fortunately, that is not possible.

-- 
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: Installing apps to Nexus One device

2010-03-31 Thread Mark Murphy
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


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

2010-03-31 Thread oriharel
IT WORKS
Thanks (again) Mark!

On Mar 31, 2:47 pm, Mark Murphy mmur...@commonsware.com 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.


[android-developers] Sprint Developer’s Guide for HTC EVO(tm) 4G

2010-03-31 Thread Mark Murphy
Cute Android (http://www.cuteandroid.com) published a link to a Sprint
Developer’s Guide for HTC EVO(tm) 4G document:

http://docs.google.com/View?id=dhtsnvs6_57d2hpqtgr

It's an interesting document. Assuming it is for realz, and assuming
Sprint intended to make this available, if there are any Sprint-ers
reading this post, thanks!

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread Justin Giles
On Tue, Mar 30, 2010 at 11:48 PM, Jason arm...@gmail.com wrote:

 I received a Droid and I did not see the Read Me First leaflet that
 was referenced in the Getting Started on Droid - Activation section of
 the letter. Anyone else who got a Droid know what it looks like, where
 it was packed or what it said?


I too received a Droid and I didn't get a Read Me First leaflet.  Not sure
what channel to go through to activate this thing so I can get the 2.1
update coming any day now.

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

2010-03-31 Thread Vaikunth
Hi,

I have Samsung Galaxy.
I want to find my latitude and longitude programatically.
I can get the location on emulator using eclips Emulator Controlbut,
but not able to get the latitude and longitude in device.
Is there any settings in mobile which I have to do?

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

2010-03-31 Thread Vaikunth
I have turn on the Security  Location.
And checked Use Wireles Network and Enable GPS satelites.

When i start Google maps app it shows me my location also.
So how can I get my latitude and longitude in my application?




On Mar 31, 5:36 pm, Vaikunth vaikunth.kraffs...@gmail.com wrote:
 Hi,

 I have Samsung Galaxy.
 I want to find my latitude and longitude programatically.
 I can get the location on emulator using eclips Emulator Controlbut,
 but not able to get the latitude and longitude in device.
 Is there any settings in mobile which I have to do?

 please 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: Device Seeding Program for Top Android Market Developers

2010-03-31 Thread Warren
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 gml...@gmail.com wrote:
 got Droid in FL today
 Thank you Google

 On Mar 30, 5:47 pm, Breezy mbre...@gmail.com 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: My location not getting in real device

2010-03-31 Thread Mark Murphy
Vaikunth wrote:
 I have turn on the Security  Location.
 And checked Use Wireles Network and Enable GPS satelites.
 
 When i start Google maps app it shows me my location also.
 So how can I get my latitude and longitude in my application?

Assuming you have the proper permissions in your manifest, it should
just work.

Here is a sample application demonstrating obtaining your location via GPS:

http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

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

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread David Scott
It seems no one has got anything outside of the US / Canada, so it's
not a problem with just a few people, it's everyone.

I'm in the UK and 2-4 weeks would be Saturday for me. If they are
being sent from the US you have to expect them to take longer. If they
are coming from the EU though, it shouldn't take much longer. I'm
pretty certain the 2-4 weeks estimate only applied to the US though,
as per most things...

I doubt Google will have any information so it's just playing the
waiting game.

On Mar 31, 12:36 pm, Richard rtaylor...@googlemail.com wrote:
 Okay, thanks.

 I guess I'll email them when the time comes around...

 I know we shouldn't really complain - we are getting these phones for
 free. But if they say 2-4 weeks and it's not there, I feel like maybe
 the dispatchers are being a little careless - maybe even lost some
 orders.

 Also Thomas: I get two emails everytime I post on this group, one from
 dreamhost.com and another from naver.com - in (what I guess is)
 Japanese. Very strange.

 On Mar 31, 12:28 pm, Thomas Riley tomrile...@googlemail.com wrote:



  I quoted the 4 week contact thing from the original FAQ

 http://sites.google.com/site/developermarketandroidgiveaway/faq

  And glad i'm not the only one getting these annoying emails! It's
  extremely strange...

  On Mar 31, 12:24 pm, Richard rtaylor...@googlemail.com wrote:

   That happens to me Thomas - when I post anything on this group.

   I'm in the UK, and I've just checked with FedEx. They have nothing
   dispatched to me in the last 2 weeks.
   Can anyone confirm that it's FedEx in Europe too?

   Where does it say in your confirmation email to notify them if it
   hasn't arrived within 4 weeks?
   Mine simply says:
   If you need to make any changes to your information above, please
   contact us at android-market-seed...@google.com as soon as possible.
   Otherwise, you should receive your phone in 2-4 weeks!

   That 4 weeks expires on Friday, and considering FedEx have nothing
   dispatched yet - that's unlikely to happen.

   Thanks,
   Richard

   On Mar 31, 12:10 pm, Thomas Riley tomrile...@googlemail.com wrote:

What's also annoying me if everytime I post on this thread I get this
email!


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!


Argh, whats going on!

On Mar 31, 12:07 pm, Thomas Riley tomrile...@googlemail.com wrote:

 Serious though, the FAQ says Please allow 2-4 weeks from the date of
 submission of the form for delivery of the phone. If you do not
 receive the phone within that timeframe, please send an email to
 android-market-seed...@google.com.

 Do we just need to wait, or is it worth contacting?

 I'm not really bothered about waiting, but since FedEx have no pending
 deliveries in their system for me I makes me thinks a mistake has been
 made at Brightpoints/Brightstars end!

 On Mar 31, 10:30 am, David Horn pga...@gmail.com wrote:

  Do as I say, not as I do etc. ;-)

  On Mar 30, 11:57 pm, Thomas Riley tomrile...@googlemail.com wrote:

   Yes David I would suggest that you wait until after the deadline
   before
   whining- uh, asking where it is.

   ;-)

   On Mar 30, 10:53 pm, David Horn pga...@gmail.com wrote:

It looks to me like the system sent out US Nexus's first, then 
US
Droids, and hopefully us EU yokels will get a Nexus later this 
week.

I say hopefully, as I launched into a bit of an attack on 
someone
whose phone hadn't turned up with 2 days of the deadline to 
run; and
now I'm in that situation with a few days off work flinching 
every
time a van goes past the house and wishing Google would hurry 
up.  Has
anyone tried phoning Brightpoint to ask what the plan is?

Dave.

On Mar 30, 10:47 pm, Breezy mbre...@gmail.com 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 

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

2010-03-31 Thread JDS
I really hope that we in europe do not have to wait 6 weeksor
more!! Not that I can complain getting a phone for free but this
waiting is killing meespecially when folks in the US are getting
theirs :-(

Sweden, still wating

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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: finish parent activity from child

2010-03-31 Thread Paolo
Thanks for your answer.

I have different listactivities in which user can navigate like
hierarchy views and he has the possibility to come back to the
previous listview.

I would like to terminate all the listactivity of this hierarchy, when
the user changes app's feature, for example goes to pref panel or
something else...

Do you thinks this is the case where i can use ActivityGroup or there
is a better simple solution?

On 30 Mar, 19:38, Dianne Hackborn hack...@android.com wrote:
 Parent/child refers to embedded activities (inside of an ActivityGroup), not
 one activity starting another top-level activity.





 On Tue, Mar 30, 2010 at 8:45 AM, Paolo brand...@gmail.com wrote:
  My child activity X is called from Parent activity P through
  startActivity(intent).
  I want to close P when X called its finish() method.
  I override a method finishFromChild(Activity child) in P and called
  finish() in it.
  But this functions (finishFromChild(Activity child))  is not being
  called after X finish()
  Is it a known bug or I am missing some thing? I googled and also
  searched the groups but no help.

  An alternative could be... using StartActivityForResult() and  a
  fake onActivityResult, where I can finish the parent activity, but
  this way is quite bad, i think...

  I prefer the first one, if it would work

  any solution?

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

  To unsubscribe from this group, send email to android-developers+
  unsubscribegooglegroups.com or reply to this email with the words 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

To unsubscribe, reply using remove me as the subject.


[android-developers] Launch Google Maps app

2010-03-31 Thread oriharel
Hi,
I'm trying to launch Google maps from my application.
I'm using:

GeoPoint center = _mapView.getMapCenter();
Uri uri = Uri.parse(geo:+center.getLatitudeE6()
+,+center.getLongitudeE6());
Log.d(LOG_TAG, Launching Google Maps with Uri: (+uri+));
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);


I tested it with a map centered on somewhere in NYC, however Google
maps opens not centered there.
I followed Android Developer's site reference to use:
geo:latitude,longitude pattern.

the log that you see prints:
03-31 13:01:20.126: DEBUG/CarMapActivity(248): Launching Google Maps
with Uri: (geo:40763500,-73979305)

anyone knows what can be the problem?

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.


Re: [android-developers] Launch Google Maps app

2010-03-31 Thread Mark Murphy
oriharel wrote:
 Hi,
 I'm trying to launch Google maps from my application.
 I'm using:
 
 GeoPoint center = _mapView.getMapCenter();
 Uri uri = Uri.parse(geo:+center.getLatitudeE6()
 +,+center.getLongitudeE6());
 Log.d(LOG_TAG, Launching Google Maps with Uri: (+uri+));
 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
 startActivity(intent);

The geo: Uri format does not take E6 latitude/longitude. It takes
regular decimal latitude/longitude.

 03-31 13:01:20.126: DEBUG/CarMapActivity(248): Launching Google Maps
 with Uri: (geo:40763500,-73979305)

That should be:

geo:40.763500,-73.979305

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

Android 2.x Programming 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] startActivityForResult and setResult problems

2010-03-31 Thread Lordsaibat
ok I have two classes my main class calls a menu class when the user
gets done with that they press the back button to go to the main
class. on the main class I have onActivityResult setup but no matter
what the data field is null all the time even though I setup the
bundle and attached it to an Intent. Please look over my code and see
what it going on.

Main class

import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;

public class caralarm extends Activity {



/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);


@Override
public boolean onCreateOptionsMenu(Menu menu) {
new MenuInflater(this).inflate(R.menu.menu, menu);
return(super.onCreateOptionsMenu(menu));
}


@Override
public boolean onOptionsItemSelected(MenuItem item) {

if (item.getItemId()==R.id.close) {
Toast.makeText(this, Trying to close app,
Toast.LENGTH_SHORT).show();
}

if (item.getItemId()==R.id.refresh) {
Toast.makeText(this, Trying to refresh app,
Toast.LENGTH_SHORT).show();
}

if (item.getItemId()==R.id.settings) {
Toast.makeText(this, Trying to open settings app,
Toast.LENGTH_SHORT).show();
launch_settings2();



}

return(super.onOptionsItemSelected(item));
}

 protected void onActivityResult(int requestCode, int resultCode,
Intent data){



if (data == null)
{
Log.d (data, data was null);
Number = Settings2.Number; //this works
Password = Settings2.Passwordtext;
Often = Settings2.NumMin;
return;

}

Bundle extras = data.getExtras();
String name = extras.getString(Alarm);
Toast.makeText(this, name, Toast.LENGTH_SHORT);

}

void launch_settings2(){
  Intent i = new Intent(this, Settings2.class);
  startActivityForResult(i, 0);

  }
}

Settings2 class
Import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
import android.widget.EditText;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

public class Settings2 extends PreferenceActivity{
static String Number = ;
static String Passwordtext = ;
static String NumMin = ;

protected void onCreate (Bundle savedInstanceState){
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.settings2);
}

public static String getNumber (Context context){

return
PreferenceManager.getDefaultSharedPreferences(context).getString(AlarmNumber,
Number);
}

public static String getPassword (Context context){

return
PreferenceManager.getDefaultSharedPreferences(context).getString(Password,
Passwordtext);
}

public static String getNumMin (Context context){

return
PreferenceManager.getDefaultSharedPreferences(context).getString(Often,
NumMin);
}

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


//copy data
Number = getNumber(this);
Passwordtext = getPassword(this);
NumMin = getNumMin(this);

Bundle info = new Bundle();
info.putString(Alarm, Number );
info.putString(Password, Passwordtext);
info.putString(Often, NumMin);
Intent intent = new Intent();
intent.putExtras(info);


setResult(RESULT_OK, intent);
finish();



}
}



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] Looking for definitive location finding logic

2010-03-31 Thread jgostylo
I am looking for a tutorial that explains the logic for fast, robust
location finding.

Basically I am sick of Google Maps finding my location so incredibly
fast and accurately while my own application struggles to get a
location.

I would be fine with pseudo code responses and I will explain what I
am doing so maybe I can be shown what I am doing wrong.

1. Get the locationManager object.
2. Do a 'get best provider' call.
3. Get a list of all available providers.
4. lm.requestLocationUpdates(bestProvider, 0, 0, this);   // hit the
location provider as much as I can to get my first signal
5. Send a delayed message.  If a location cannot be found in 10
seconds, switch to a different provider and try again with
lm.requestLocationUpdates(nextProvider, 0, 0, this);
6. Repeat step 5 until I have a location.
7. Once a location is found determine if it is the most accurate
provider.  If it is not try again with the most accurate provider on
an 8 second delay.  If it is the most accurate provider then set
lm.requestLocationUpdates(currentProvider, 3, 0, this); to
conserve battery
8. Make sure to lm.removeUpdates(this); before changing the
requestLocationUpdates

Now it occurs to me that it may be possible to iterate through my list
of providers and do requestLocationUpdates for all providers at once.
Is this a viable option or can you only listen to one provider at a
time?  I have seen that location from onLocationChanged has
getProvider() to let you know who provided the location information so
that I can know which provider is actually finding a signal and turn
off the others.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] startActivityForResult and setResult problems

2010-03-31 Thread Mark Murphy
Lordsaibat wrote:
 ok I have two classes my main class calls a menu class when the user
 gets done with that they press the back button to go to the main
 class. on the main class I have onActivityResult setup but no matter
 what the data field is null all the time even though I setup the
 bundle and attached it to an Intent. Please look over my code and see
 what it going on.

I would not use onPause() for your setResult()/finish() call. First, I
think that is too late for the setResult() logic. Second, onPause() will
also be invoked at other times (e.g., when the user takes a phone call).

If you want to set the result when the use presses the BACK button, then
set the result when the user presses the BACK button, by implementing
onBackPressed() in newer versions of Android or onKeyDown() in older
versions of Android.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] Looking for definitive location finding logic

2010-03-31 Thread Mark Murphy
jgostylo wrote:
 Now it occurs to me that it may be possible to iterate through my list
 of providers and do requestLocationUpdates for all providers at once.
 Is this a viable option or can you only listen to one provider at a
 time? 

AFAIK it is a viable option, but:

-- Use unique LocationListener objects not one single one

-- Be sure to call removeLocationUpdates() for all of those
LocationListener objects

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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: Looking for definitive location finding logic

2010-03-31 Thread jgostylo
Sorry, one last thing.  Getting an incorrect location is just as bad a
not getting a location for me.  That is why I am not currently
considering getLastKnownLocation.  If I am mistaken about the
usefulness of getLastKnownLocation that would also be helpful.

If the user was on the North side of town when the last location was
given to him and he travels to the South part of town and starts the
app I do not want the app to tell him he is on the North side of town
while the app is waiting 30-40 seconds to get a location.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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: How do I get the MD5 fingerprint of my application certificate through code?

2010-03-31 Thread ko5tik

I'm also gnawing on the same problem.  At the moment
I'm investigating following path:

Context - Package Manager - Package info (for name, with
signatures ) - Signatures

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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: Looking for definitive location finding logic

2010-03-31 Thread jgostylo
Thank you for the reply.  You say to use unique LocationListener
objects.  Is this because a single LocationListener is not set up to
handle multiple requestLocationUpdates or is there some other gotcha
that you are steering me from?

Jake

On Mar 31, 8:42 am, Mark Murphy mmur...@commonsware.com wrote:
 jgostylo wrote:
  Now it occurs to me that it may be possible to iterate through my list
  of providers and do requestLocationUpdates for all providers at once.
  Is this a viable option or can you only listen to one provider at a
  time?

 AFAIK it is a viable option, but:

 -- Use unique LocationListener objects not one single one

 -- Be sure to call removeLocationUpdates() for all of those
 LocationListener objects

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

 Android Consulting:http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread timedilation
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 warrenba...@gmail.com 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 gml...@gmail.com wrote:



  got Droid in FL today
  Thank you Google

  On Mar 30, 5:47 pm, Breezy mbre...@gmail.com 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: My location not getting in real device

2010-03-31 Thread Beena
Thanks for the reply.

 Assuming you have the proper permissions in your manifest, it should
 just work.

yes I have set all the permission for that.

INTERNET, ACCESS_FINE_LOCATION, ACCESS_LOCATION_EXTRA_COMMANDS,
ACCESS_COARSE_LOCATION


 Here is a sample application demonstrating obtaining your location via GPS:

 http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/


Same problem persist.
Emulator working fine after pressing send button in Emulator Control.
On the Device not working.

Again my problem:
I want to get my current latitude and longitude.
I am able to get my location in other application installed in my
device.
So it will also show me in my app also. But it is not happening.
Emulator working fine.

I am not able to understand why am I not able to get my lat and long?

Please help.

On Mar 31, 5:50 pm, Mark Murphy mmur...@commonsware.com wrote:
 Vaikunth wrote:
  I have turn on the Security  Location.
  And checked Use Wireles Network and Enable GPS satelites.

  When i start Google maps app it shows me my location also.
  So how can I get my latitude and longitude in my application?

 Assuming you have the proper permissions in your manifest, it should
 just work.

 Here is a sample application demonstrating obtaining your location via GPS:

 http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

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

 Android Development Wiki:http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread Beena
Hi Vaikunth,
Have you got the solution I am facing same problem from last 5 days.
Please help if you got the solution.

Thanks

On Mar 31, 6:57 pm, Beena swdeveloper2...@gmail.com wrote:
 Thanks for the reply.

  Assuming you have the proper permissions in your manifest, it should
  just work.

 yes I have set all the permission for that.

 INTERNET, ACCESS_FINE_LOCATION, ACCESS_LOCATION_EXTRA_COMMANDS,
 ACCESS_COARSE_LOCATION

  Here is a sample application demonstrating obtaining your location via GPS:

 http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

 Same problem persist.
 Emulator working fine after pressing send button in Emulator Control.
 On the Device not working.

 Again my problem:
 I want to get my current latitude and longitude.
 I am able to get my location in other application installed in my
 device.
 So it will also show me in my app also. But it is not happening.
 Emulator working fine.

 I am not able to understand why am I not able to get my lat and long?

 Please help.

 On Mar 31, 5:50 pm, Mark Murphy mmur...@commonsware.com wrote:

  Vaikunth wrote:
   I have turn on the Security  Location.
   And checked Use Wireles Network and Enable GPS satelites.

   When i start Google maps app it shows me my location also.
   So how can I get my latitude and longitude in my application?

  Assuming you have the proper permissions in your manifest, it should
  just work.

  Here is a sample application demonstrating obtaining your location via GPS:

 http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

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

  Android Development Wiki:http://wiki.andmob.org



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

2010-03-31 Thread subrat kumar panda
Hi all,

This is subrat. anybody plz tell me
how i run a method from background, without gui.
this is a gps application, i want 2 post
data to soap server  the communication should be
from background.
the response data updated at the client side.

any demo app will  be more helpful.

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.


Re: [android-developers] Re: Looking for definitive location finding logic

2010-03-31 Thread Mark Murphy
jgostylo wrote:
 Thank you for the reply.  You say to use unique LocationListener
 objects.  Is this because a single LocationListener is not set up to
 handle multiple requestLocationUpdates or is there some other gotcha
 that you are steering me from?

removeLocationUpdates() takes a LocationListener as its sole parameter.

That is because the implementation of LocationManager holds onto a
HashMap of listener info, keyed by LocationListener.

Hence, if you try registering several with the same LocationListener,
you are likely to run into problems. At best, last one in wins. At
worst, last one in wins and you can never remove the first ones.

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

Android Training in NYC: 30 April-2 May 2010: http://guruloft.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: My location not getting in real device

2010-03-31 Thread Vaikunth
Thanks Mark,
Let me try the link given by you.


On Mar 31, 5:50 pm, Mark Murphy mmur...@commonsware.com wrote:
 Vaikunth wrote:
  I have turn on the Security  Location.
  And checked Use Wireles Network and Enable GPS satelites.

  When i start Google maps app it shows me my location also.
  So how can I get my latitude and longitude in my application?

 Assuming you have the proper permissions in your manifest, it should
 just work.

 Here is a sample application demonstrating obtaining your location via GPS:

 http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

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

 Android Development Wiki:http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread Wayne Wenthin
I include both Jars and query my server on which ads to show.  I default to
Admob = false.  This way if my query fails I get Mobclix.   The key is to
place both ads in the same location and use the enabled and visible methods.

As for the accounting I'm sure they have to show who they are transferring
the cash to.  I don't think the IRS would let them use any blatant methods
that look like money laundering.I'm not an accountant but I do run my
own business's  and that method of accounting would trigger an audit really
quick for a company the size of google.

On Wed, Mar 31, 2010 at 2:35 AM, Abdul Mateen abmat...@gmail.com wrote:


 I think I should also do this, i.e switch from Admob --- QW or Mobclix. If
 even I made 50 per day it would be enough...but yes how to force user to
 update ? I have more than 10k active installs.

 On Wed, Mar 31, 2010 at 11:32 AM, Dan Sherman impact...@gmail.com wrote:

 I would imagine their tax lines look something like this:

 Client -- Google :: $1.00
 Google -- Developer :: $0.70

 Google's taxable income: $0.30

 Note that they don't explicitly tell the government We paid XXX to
 developer Y, they just note that the money left their hands, and that they
 shouldn't be taxed on it.  Essentially, its your responsibility to mention
 that you received the money.  If they wanted to track that cash, should be
 very easy to see :)

 - Dan


 On Wed, Mar 31, 2010 at 12:16 AM, Kevin Duffey andjar...@gmail.comwrote:

 I would think the same thing. Maybe it's the google market that doesn't
 report it? I had asked about this some time ago, for those selling apps and
 making their 70%, at tax time do they get some 1099 or something, and
 several said no. So I am unclear as to how the market handles taxes... as
 well, if you do micro transactions in your app, where you charge $1 for some
 virtual item, using paypal/google, who take a cut, how is that handled? Does
 google/paypal send in info on how much was paid to you.. that is not clear
 to me at all.



 On Tue, Mar 30, 2010 at 11:06 PM, Dan Sherman impact...@gmail.comwrote:

 I would very seriously suspect that they report it.  I remember having
 to give a social-security/tax-id to Adsense when signing up.  And just
 thinking through their tax predicament (bringing in tons of money, and
 seeing a lot of it go straight back out), they're going to need to keep
 records, and report as to where that money went out to.  Mostly so they
 don't have to pay taxes on it (was your profits, not theirs).

 - Dan

 On Tue, Mar 30, 2010 at 10:54 PM, Kevin Duffey andjar...@gmail.comwrote:

 Well, yes, you *should* report it.. but if google and admob and so
 forth don't report anything to the IRS, then it's basically on good faith.
 There isn't presently any way for them to track how much you make. I would
 imagine eventually something will come into play.


 On Tue, Mar 30, 2010 at 7:00 PM, Wayne Wenthin wa...@fuligin.comwrote:

 I'll chime in on this.  I have switched from admob to mobclix
 recently.  (actually I can control which one I use base on a network 
 check)
 I have noticed my CTR jump from around 2-3 a day to around 7.  This 
 makes me
 more inclined to hang with them.  But I only changed after I watch admob
 drop from around 7 a day to 1-2.  Now 150 a day is my new goal ;-)  But I
 figure if I can bring in 100 a month or so it's still better than 
 nothing.


 As for the IRS thing this is all income and it will need to be
 reported in some way.

 On Tue, Mar 30, 2010 at 12:36 PM, Abdul Mateen abmat...@gmail.comwrote:


 Yes Really Moto $150/day is a damn good income from Ads, I am only
 making $1-$2/day , and I am using Admob + Greystripe..


 On Wed, Mar 31, 2010 at 12:31 AM, Kevin Duffey 
 andjar...@gmail.comwrote:

 I am interested in this as well. First, Moto.. $150 a day? Holy
 crap! I'd love to have that much 7 days a week coming in. That would
 supplement my income nicely. :) Second, slightly off topic, but 
 directly
 related to revenue.. with that much coming in, or say even more if you 
 had
 like $1000 a day coming in, what do you do about income taxes? I was 
 told by
 some that google doesn't send any money making info to IRS.. so 
 essentially
 there is no way for IRS or any tax/government to track how much you 
 make. I
 am probably a long ways off from earning $1 a day.. but I am curious 
 how you
 handle this issue. Is it on faith that you pay taxes... and mind you, 
 you
 can shoot a private email if this is something that you wouldn't want 
 to
 make public. :) I am not trying to cheat the IRS out of money by any 
 means..
 I would rather be legit... but am interested in how this is done. 
 Living in
 California I already lose half my paycheck to taxes between state and
 federal.

 The ads that are done in games, don't they have to be clicked on to
 earn money? You said you have 60,000 users, do a lot of them click the 
 ads
 while playing a game? Or even in a splash screen or game-over screen? 
 Or do
 you earn 

[android-developers] Continuous Speech Recognition?

2010-03-31 Thread Gregg Reno
I understand the current speech recognition method where you can have
the user click a button to recognize a phrase.  But does anyone know
if continuous speech recognition is possible?  For example, using
voice commands control the phone (without clicking a button) to launch
apps or provide an interactive information to the visually impaired or
someone driving a car.

Thanks,
-Gregg

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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: GLSurfaceView on app widget?

2010-03-31 Thread String
In the samples directory of the 2.1 SDK download you'll find one
called CubeLiveWallpaper. Should be enough to get you started - it was
for me! :^)

String

On Mar 31, 11:58 am, Musafir musafir4frie...@gmail.com wrote:
 hi,
 thanks a lot for reply, could u please tell me how can i put my
 activity as live wallpaper?
 can u provide any referance link ?

 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] Re: Notification manager question

2010-03-31 Thread ~ TreKing
On Wed, Mar 31, 2010 at 6:36 AM, guru guru.nav...@gmail.com 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/Notification.html#number

-
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: How to have a notification icon with image + text

2010-03-31 Thread ~ TreKing
On Wed, Mar 31, 2010 at 5:52 AM, guru guru.nav...@gmail.com wrote:

 But the number of such notification is not displaying i.e number is not
 displaying.


I love when the same questions are asked over and over:
http://developer.android.com/intl/fr/reference/android/app/Notification.html#number

-
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] Can I use an AsyncTask instead of a Service for my Widget's background processing?

2010-03-31 Thread Paul Tongyoo
Just curious if there's any reason why I can't use an AsyncTask -- my
current implementation uses AsyncTask and I'm experiencing inconsistent
widget refreshing.

TIA!
PT

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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 I use an AsyncTask instead of a Service for my Widget's background processing?

2010-03-31 Thread Mark Murphy
Paul Tongyoo wrote:
 
 Just curious if there's any reason why I can't use an AsyncTask -- my
 current implementation uses AsyncTask and I'm experiencing inconsistent
 widget refreshing. 

You don't say where you are using an AsyncTask. And I'm not sure whether
widget means View or app widget.

:: insert grumble about Android confusing naming convention here ::

I am going to take a guess that you are trying to use an AsyncTask from
the AppWidgetProvider. That's a bit dangerous -- BroadcastReceivers like
an AppWidgetProvider are not supposed to run background threads
directly. I recommend using an IntentService for app widget updates.

If that's not what you are trying to do, I apologize for guessing
incorrectly, and please respond on-thread with more details.

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

_Android Programming Tutorials_ Version 2.0 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] Can I use an AsyncTask instead of a Service for my Widget's background processing?

2010-03-31 Thread Paul Tongyoo
You guessed right!  Thanks for the tips, and I'll be clearer in the future.

Best,
Paul

On Wed, Mar 31, 2010 at 8:49 AM, Mark Murphy mmur...@commonsware.comwrote:

 Paul Tongyoo wrote:
 
  Just curious if there's any reason why I can't use an AsyncTask -- my
  current implementation uses AsyncTask and I'm experiencing inconsistent
  widget refreshing.

 You don't say where you are using an AsyncTask. And I'm not sure whether
 widget means View or app widget.

 :: insert grumble about Android confusing naming convention here ::

 I am going to take a guess that you are trying to use an AsyncTask from
 the AppWidgetProvider. That's a bit dangerous -- BroadcastReceivers like
 an AppWidgetProvider are not supposed to run background threads
 directly. I recommend using an IntentService for app widget updates.

 If that's not what you are trying to do, I apologize for guessing
 incorrectly, and please respond on-thread with more details.

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

 _Android Programming Tutorials_ Version 2.0 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.comandroid-developers%2bunsubscr...@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] storing an array of objects

2010-03-31 Thread Simone
Hi, I have an array of 5 Timer objects in my app, some of wich have
been scheduled with a TimerTask.
I need to be able to store and load these 5 Timers; is there a way to
save Objects? Maybe storing the address of the array would be enough?
How could I do that?
Thanks
Simone

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

2010-03-31 Thread Kevin Duffey
Plenty of posts in this forum about it.. do a search. Some great articles
and books too.

On Wed, Mar 31, 2010 at 7:01 AM, subrat kumar panda 
evergreen.sub...@gmail.com wrote:

 Hi all,

 This is subrat. anybody plz tell me
 how i run a method from background, without gui.
 this is a gps application, i want 2 post
 data to soap server  the communication should be
 from background.
 the response data updated at the client side.

 any demo app will  be more helpful.

 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.comandroid-developers%2bunsubscr...@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-03-31 Thread Kevin Duffey
Wayne et all,

I agree.. it would look strange that they are giving that much money in
transactions to individuals, but where do we find out about this? Some of
you are selling apps... what are you doing to deal with income taxes? When
you signed up to publish your app, were you required to give some sort of
business tax id, or your social and some other info so that they know who
you are and can send info to IRS? Where is the info that explains this? I
want to be legit, but hey, if there is no process I don't mind not losing
half of that 70% to the IRS. :D I already pay way too much in taxes.

On Wed, Mar 31, 2010 at 7:42 AM, Wayne Wenthin wa...@fuligin.com wrote:

 I include both Jars and query my server on which ads to show.  I default to
 Admob = false.  This way if my query fails I get Mobclix.   The key is to
 place both ads in the same location and use the enabled and visible methods.

 As for the accounting I'm sure they have to show who they are transferring
 the cash to.  I don't think the IRS would let them use any blatant methods
 that look like money laundering.I'm not an accountant but I do run my
 own business's  and that method of accounting would trigger an audit really
 quick for a company the size of google.


 On Wed, Mar 31, 2010 at 2:35 AM, Abdul Mateen abmat...@gmail.com wrote:


 I think I should also do this, i.e switch from Admob --- QW or Mobclix.
 If even I made 50 per day it would be enough...but yes how to force user to
 update ? I have more than 10k active installs.

 On Wed, Mar 31, 2010 at 11:32 AM, Dan Sherman impact...@gmail.comwrote:

 I would imagine their tax lines look something like this:

 Client -- Google :: $1.00
 Google -- Developer :: $0.70

 Google's taxable income: $0.30

 Note that they don't explicitly tell the government We paid XXX to
 developer Y, they just note that the money left their hands, and that they
 shouldn't be taxed on it.  Essentially, its your responsibility to mention
 that you received the money.  If they wanted to track that cash, should be
 very easy to see :)

 - Dan


 On Wed, Mar 31, 2010 at 12:16 AM, Kevin Duffey andjar...@gmail.comwrote:

 I would think the same thing. Maybe it's the google market that doesn't
 report it? I had asked about this some time ago, for those selling apps and
 making their 70%, at tax time do they get some 1099 or something, and
 several said no. So I am unclear as to how the market handles taxes... as
 well, if you do micro transactions in your app, where you charge $1 for 
 some
 virtual item, using paypal/google, who take a cut, how is that handled? 
 Does
 google/paypal send in info on how much was paid to you.. that is not clear
 to me at all.



 On Tue, Mar 30, 2010 at 11:06 PM, Dan Sherman impact...@gmail.comwrote:

 I would very seriously suspect that they report it.  I remember having
 to give a social-security/tax-id to Adsense when signing up.  And just
 thinking through their tax predicament (bringing in tons of money, and
 seeing a lot of it go straight back out), they're going to need to keep
 records, and report as to where that money went out to.  Mostly so they
 don't have to pay taxes on it (was your profits, not theirs).

 - Dan

 On Tue, Mar 30, 2010 at 10:54 PM, Kevin Duffey andjar...@gmail.comwrote:

 Well, yes, you *should* report it.. but if google and admob and so
 forth don't report anything to the IRS, then it's basically on good 
 faith.
 There isn't presently any way for them to track how much you make. I 
 would
 imagine eventually something will come into play.


 On Tue, Mar 30, 2010 at 7:00 PM, Wayne Wenthin wa...@fuligin.comwrote:

 I'll chime in on this.  I have switched from admob to mobclix
 recently.  (actually I can control which one I use base on a network 
 check)
 I have noticed my CTR jump from around 2-3 a day to around 7.  This 
 makes me
 more inclined to hang with them.  But I only changed after I watch admob
 drop from around 7 a day to 1-2.  Now 150 a day is my new goal ;-)  But 
 I
 figure if I can bring in 100 a month or so it's still better than 
 nothing.


 As for the IRS thing this is all income and it will need to be
 reported in some way.

 On Tue, Mar 30, 2010 at 12:36 PM, Abdul Mateen 
 abmat...@gmail.comwrote:


 Yes Really Moto $150/day is a damn good income from Ads, I am only
 making $1-$2/day , and I am using Admob + Greystripe..


 On Wed, Mar 31, 2010 at 12:31 AM, Kevin Duffey andjar...@gmail.com
  wrote:

 I am interested in this as well. First, Moto.. $150 a day? Holy
 crap! I'd love to have that much 7 days a week coming in. That would
 supplement my income nicely. :) Second, slightly off topic, but 
 directly
 related to revenue.. with that much coming in, or say even more if 
 you had
 like $1000 a day coming in, what do you do about income taxes? I was 
 told by
 some that google doesn't send any money making info to IRS.. so 
 essentially
 there is no way for IRS or any tax/government to track how much you 
 make. I
 am probably 

[android-developers] Re: what's the best 2d engine and what's the tools I need to create a game?

2010-03-31 Thread Vladimir
I wrote a wall of text on engines and stuff, but the new shiny
transparent awesome Opera crashed before I hit Send :/ so this one
is short.

I tried Cocos2D port 2 or 3 months ago when it was WIP and not fit for
anything serious. It was a while back and things could've changed,
IMHO the project has a lot of potential and I suggest you check it
out. I went with Rokon 1.1 and it turned out to be quite good. I think
I've rewritten half of the original code, and added as much of my own,
but it still saved me a lot of time, so I recommend you take a look at
it as well. You will still need to get under the hood a lot because it
has some problems, and you'll need to know a thing or two about
OpenGL, and how to deal with Android-specific issues like said touch
event flooding and GC, and avoid certain design concepts. But it's a
good place to start. If you don't want OGL you can pick a canvas-based
engine (I've seen at least one), but start with a benchmark to see if
it can handle the amount of drawing you need, because usually it's
very hard to get good framerate, unless you plan to develop
exclusively for droids and nexuses.

On Mar 30, 10:24 am, jProg bk.1...@gmail.com wrote:
 Hi, I'm a newbie to android and I want to develop my first 2d game..:)
 I read about engines ..but what do you advice me to go with--for 2d
 game
 and what is the best tools I need to create the sprites or characters
 in addition to the map or the background?
 Thank you 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.


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

2010-03-31 Thread Kumar Bibek
You can serialize these objects, store it in files and retrieve it.
Read up some articles on Serialization in Java.

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

On Mar 31, 9:02 pm, Simone simone.russ...@gmail.com wrote:
 Hi, I have an array of 5 Timer objects in my app, some of wich have
 been scheduled with a TimerTask.
 I need to be able to store and load these 5 Timers; is there a way to
 save Objects? Maybe storing the address of the array would be enough?
 How could I do that?
 Thanks
 Simone

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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-03-31 Thread Simone Russo
Uhm ok, thank you for the tip.
Simone

On Wed, Mar 31, 2010 at 6:42 PM, Kumar Bibek coomar@gmail.com wrote:

 You can serialize these objects, store it in files and retrieve it.
 Read up some articles on Serialization in Java.

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

 On Mar 31, 9:02 pm, Simone simone.russ...@gmail.com wrote:
  Hi, I have an array of 5 Timer objects in my app, some of wich have
  been scheduled with a TimerTask.
  I need to be able to store and load these 5 Timers; is there a way to
  save Objects? Maybe storing the address of the array would be enough?
  How could I do that?
  Thanks
  Simone

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

 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] Playlist Content Provider

2010-03-31 Thread Fossum
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.


Re: [android-developers] CALL_PHONE permission

2010-03-31 Thread Isaac Wagner
On Wed, Mar 31, 2010 at 7:44 AM, Mark Murphy mmur...@commonsware.com wrote:
 Isaac Wagner wrote:
 On Tue, Mar 30, 2010 at 10:34 PM, Mark Murphy mmur...@commonsware.com 
 wrote:
 Isaac Wagner wrote:
 startActivity(new Intent(Intent.ACTION_CALL, tel:...));
 Yes, but that brings up the dialer.  I don't want the dialer UI to
 come up on the screen.
 No, it doesn't. ACTION_DIAL brings up the Dialer.


 Sorry, I'm using the wrong terminology.  I want my application to
 place a call without leaving my current activity.  When I do
 ACTION_CALL it brings up the call activity, or whatever that is
 called.

 Fortunately, that is not possible.


** START RANT **
Fortunately?  How is that fortunate?  OK, here is what I don't
understand about Android.  The API allows me to send SMS messages
without starting the messaging app, but I can't place a phone call
without going through the phone app.  I really just don't get it.
Both services cost money for the user.  Why isn't this functionality
exposed to the developers?  That seems to be a decision without a lot
of thought behind it.
** END RANT**

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

2010-03-31 Thread ~ TreKing
On Wed, Mar 31, 2010 at 9:01 AM, subrat kumar panda 
evergreen.sub...@gmail.com wrote:

 This is subrat. anybody plz tell me
 how i run a method from background, without gui.
 this is a gps application, i want 2 post
 data to soap server  the communication should be
 from background.
 the response data updated at the client side.


1 - Help is a terrible title for a post and will make it so most people
ignore it and don't help.
2 - Look up Services.

-
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-03-31 Thread Frank Weiss
If your Schedule C doesn't show a net loss, you're in the top 5% of mobile
app developers.

On Mar 31, 2010 9:18 AM, Kevin Duffey andjar...@gmail.com wrote:

Wayne et all,

I agree.. it would look strange that they are giving that much money in
transactions to individuals, but where do we find out about this? Some of
you are selling apps... what are you doing to deal with income taxes? When
you signed up to publish your app, were you required to give some sort of
business tax id, or your social and some other info so that they know who
you are and can send info to IRS? Where is the info that explains this? I
want to be legit, but hey, if there is no process I don't mind not losing
half of that 70% to the IRS. :D I already pay way too much in taxes.



On Wed, Mar 31, 2010 at 7:42 AM, Wayne Wenthin wa...@fuligin.com wrote:

 I include both Jars ...
-- 

You received this message because you are subscribed to the Google
Groups Android Developers group...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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] Not sure if this is possible

2010-03-31 Thread Isaac Wagner
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.


  1   2   >