Re: [android-developers] Is it possible to track mileage with the GPS on the phone?

2014-07-02 Thread Kevin Duffey
Two ideas. One buy a pressy for your android and I think you can write code
that uses it. If so use it to start or stop the mileage app.

Second get and nfc tag if your phone supports it and use that to start stop
the app so when u get in car u just put phone near it and it will do its
magic.
 On Jun 25, 2014 8:57 AM, Dan Cha cuban...@gmail.com wrote:

 I'm looking to better track my own personal mileage on my truck.. so was
 looking into the GPS module and seems it may be possible, but wanted to ask
 before spending to much time building something that will never work.
 since this is going to be for my personal usage, it is going to be a
 simple app that ill turn on when in the truck and have it track my miles
 for the day and so on..

 I know sounds like a pain to have to turn it on and off but since this is
 a work that can be part of our daily routine to log everything, turn on app
 and so on..

 any links to good source would be great if this is possible..

 thanks.

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


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


Re: [android-developers] Re: Rating Hijacking !

2014-01-06 Thread Kevin Duffey
I am wondering why they don't require comments? There should be like a
minimum of 2 or 3 words (and checked so that they are real words) before
the comment pushes. Also, there should absolutely be a way to contact a
commenter.. at the very least, the ability to reply to a comment and have a
gmail like conversation tree layout for more comments. They should have
some sort of option to report a bad review.. like if someone posts 'your
app sux.. this one is way better'.. it's not a constructive post nor is it
possible to tell if they are just friends of the author of the other app
and trying to promote it or being jerks. I suppose thought with millions of
apps it would be impossible to monitor comments and I am sure there would
be way too many reports of bad posts to handle. Maybe they can come up with
some sort of comment AI to rule out useless comments.. heck they can make
cars drive by themselves and avoid people and stuff!


On Mon, Dec 30, 2013 at 1:04 AM, Tolriq tol...@gmail.com wrote:

 Well for low or normal rated app this can be only half bad or good.

 For very high rated apps the result is catastrophic when a 4.9 rating 5
 star rating is the only way to get known over competition this change that
 generate lot's of false rating is just killing some apps.

 Google have to do something quick because the effects of this are really
 important and the more they wait the more it will impact some devs :(


 On Sunday, December 29, 2013 10:52:35 AM UTC+1, Ifor wrote:

 That explains why I am getting more reviews the last few weeks.  I had
 seen the increase in activity but was not aware of the cause.  Personally
 it's not having a detrimental affect on my numbers more the opposite in
 fact as my average is slowly going up.

 Hi,

 My app rating is being hijacked by competitors and I don't know what to
 do :(
 I've tried to contact Google but there's no category for that and they
 don't answer from the other category contact :(

 My app is 4.9 rating since a very very very long time and all very very
 few bad rating always had comments.
 Since 14 days I start to have lot's of 1 or 2 stars rating without any
 comments and without having released a new version or the app having
 problems.
 There's still the same amount of 4 / 5 star rating coming every day.

 This graph for the 6 last months from Play Store console :
 http://postimg.org/image/i2bpm94vt/ shows the problem clearly and
 proves without a doubt the hijacking action :(

 What are the possible actions against that ?
 This is a shame that years of work can be attacked so easily :(

 How to contact some Google representative to have this investigated ?

 Regards,
 Tolriq

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


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


Re: [android-developers] New Game Released! Please Try.

2014-01-06 Thread Kevin Duffey
Haven't tried it..but am curious.. how do you handle latency in your app?
Every other music app I've tried on android except for Caustic has major
lag issues on just about every device except the nexus devices and Samsung
S4/Note3. Seems the audio latency is still a major issue for any sort of
music creation app. I am guessing your app will suffer the same problem..
short of having the newest most expensive hardware, tapping drums will
usually result in some sort of lag before the audio is heard and certainly
when tapping several at once.


On Wed, Dec 25, 2013 at 7:48 PM, Mike Portnoy mportnoy...@yahoo.com wrote:

 Hi guys,
 Please try my new app and help me spread it out, I'm sorry to use
 this group as part of my advertising,
 I'm an indie and don't have any money to spend on advertising!!!

 Here it is!

 Drum Freedom
 https://play.google.com/store/apps/details?id=com.keken.drumfreedom

 Thanks!

 https://play.google.com/store/apps/details?id=com.keken.drumfreedom

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


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


Re: [android-developers] Can one upgrade to the latest android on an older phone?

2013-02-25 Thread Kevin Duffey
Your best bet is to search Google to see if there is a rom for your phone
and if it can be rooted. If there is one you'll need to root your phone
then replace the default rom with the updated one. Look for cynogen or
something like it.
On Feb 25, 2013 12:52 PM, Anil anil.r...@gmail.com wrote:

 I have a 2 year old android phone HTC Mytouch 3G Slide that HTC stopped
 updating android on - last update was android 2.2.
 I want to use it to develop apps and wondered if I can update android to
 the latest version, or is there some dependency that would prevent me from
 doing so. The phone is unlocked from T-mobile, but not rooted.

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




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




Re: [android-developers] Parser

2013-02-13 Thread Kevin Duffey
As long as you agree..that's all that matters.. ;). No I hear you.. for
simple things I agree too.. although I always tend to try to eek every last
bit of speed/memory save I can and would probably these days just use
jackson for everything. Jackson has a nice json to pojo and pojo to json
feature as well, which is nice to use your own model objects with json.


On Tue, Feb 12, 2013 at 12:09 PM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 I don't disagree, It's just that I'm typically processing a very minor
 amount of data (responses from web APIs, a small amount of the time).

 But like I said, it's a trade off, for any real use of JSON I'd also
 recommend something stream based, : )

 Kris

 On Tue, Feb 12, 2013 at 2:54 PM, Kevin Duffey andjar...@gmail.com wrote:
  The problem with the built in o e is it is similar to a DOM parser for
 xml
  in that it will load the entire json document into memory first. Jackson
 is
  a json stream processor so it uses a lot less memory and is typically
 much
  faster. I lean towards Jackson myself.
 
  On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
  wrote:
 
  JSON is so easy to use, I've never really had a problem with org.json.
   If you can get by using it I would do that, as it's already in the
  API (you won't have statically linked code sitting around clouding
  your app).
 
  kris
 
  On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K 
 arunkuma...@npcompete.net
  wrote:
   Hi,
   I want to know which parser is best for android application..
   What is the different between json and jackson parser.
   which parser is best json or JACKSON
  
   --
   Thanks  Regards
   K.Arun Kumar
  
  
   --
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
   ---
   You received this message because you are subscribed to the Google
   Groups
   Android Developers group.
   To unsubscribe from this group and stop receiving emails from it, send
   an
   email to android-developers+unsubscr...@googlegroups.com.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google
 Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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




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

Re: [android-developers] Re: Paid apps with trial and payments

2013-02-12 Thread Kevin Duffey
Nobu games hits it on the head. You can however host your own app and end
users can click a link on your Site from their phone to install it from
your site.  Updates could be in the format of an email to your users that
would again click the link from their phone to update. I believe this is
possible. Thus as Nobu said you'd be managing your own distribution and
would benefit for the full payment. You would have to write the processing
code our provide some sort of payment option on your Site with an unlock
code or a different apk file they would then download perhaps.
On Feb 8, 2013 8:07 AM, Nobu Games dev.nobu.ga...@gmail.com wrote:

Actually we had this question a few times here and the usual answer is no
you cannot do it because of the Google Play Developer Distribution
Agreementhttps://play.google.com/about/developer-distribution-agreement.html
.

First of all you are limited to the use of so-called payment processors
that are authorized by Google:

*1.2 If you want to charge a fee for your Products, you must also acquire
 and maintain a valid Payment Account from an authorized Payment
 Processor. *


Then there's a special section about free apps on Google Play which
explicitly forbid what you are trying to do:

*3.3 (...) If the Product is free, you will not be charged a Transaction
 Fee. You may not collect future charges from users for copies of the
 Products that those users were initially allowed to download for free.*


Since your primary source of your paid app is outside the Google Play
Market there's another clause that protects Google:

*4.5 Non-Compete. You may not use the Market to distribute or make
 available any Product whose primary purpose is to facilitate the
 distribution of software applications and games for use on Android devices
 outside of the Market.*


Right now it looks pretty clear to me. No need for a lawyer, Google Play
doesn't want that kind of thing to happen. You need your own distribution
channel that is under your control. And since your app sounds very
specialized I think it's pretty much ok to ask for more money. You could
therefore bite the bullet and release your paid app on Google Play with a
price tag that makes you happy (even minus 30%).


On Thursday, February 7, 2013 11:44:24 PM UTC-6, Harish wrote:

 Dear all,

 Need your opinion for listing my app to play store.

 I have a medical app which we are planning to sell using various
 distribution channel in bulk volume.

 We already have license checking mechanism with our site. and we will
 manage license with our support team.

 We give our app 1 week for trial and user have to activate after one week.

 My question is - If I list my app to google play store for broader
 audience then does there any way I can manage bulk licenses without paying
 30% transaction fees. I mean I will have list of users with me who already
 paid for app and they can download app from app store freely.

 Or If I list my app free on market and after 7 days user will pay using
 our payment channel does it violates developer agreement ?

 My main objective of using play store is to manage updates efficiently.

 I see many example where people list free and premium apps on Google, I
 wants to list only free not the premium one. does it violates Google terms
 and condition.

 Looking for your advice

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

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




Re: [android-developers] Parser

2013-02-12 Thread Kevin Duffey
The problem with the built in o e is it is similar to a DOM parser for xml
in that it will load the entire json document into memory first. Jackson is
a json stream processor so it uses a lot less memory and is typically much
faster. I lean towards Jackson myself.
On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
wrote:

 JSON is so easy to use, I've never really had a problem with org.json.
  If you can get by using it I would do that, as it's already in the
 API (you won't have statically linked code sitting around clouding
 your app).

 kris

 On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K arunkuma...@npcompete.net
 wrote:
  Hi,
  I want to know which parser is best for android application..
  What is the different between json and jackson parser.
  which parser is best json or JACKSON
 
  --
  Thanks  Regards
  K.Arun Kumar
 
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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




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




Re: [android-developers] Re: Paid apps with trial and payments

2013-02-08 Thread Kevin Duffey
Nobu games hits it on the head. You can however host your own app and end
users can click a link on your Site from their phone to install it from
your site.  Updates could be in the format of an email to your users that
would again click the link from their phone to update. I believe this is
possible. Thus as Nobu said you'd be managing your own distribution and
would benefit for the full payment. You would have to write the processing
code our provide some sort of payment option on your Site with an unlock
code or a different apk file they would then download perhaps.
On Feb 8, 2013 8:07 AM, Nobu Games dev.nobu.ga...@gmail.com wrote:

 Actually we had this question a few times here and the usual answer is no
 you cannot do it because of the Google Play Developer Distribution
 Agreementhttps://play.google.com/about/developer-distribution-agreement.html
 .

 First of all you are limited to the use of so-called payment processors
 that are authorized by Google:

 *1.2 If you want to charge a fee for your Products, you must also acquire
 and maintain a valid Payment Account from an authorized Payment
 Processor. *


 Then there's a special section about free apps on Google Play which
 explicitly forbid what you are trying to do:

 *3.3 (...) If the Product is free, you will not be charged a Transaction
 Fee. You may not collect future charges from users for copies of the
 Products that those users were initially allowed to download for free.*


 Since your primary source of your paid app is outside the Google Play
 Market there's another clause that protects Google:

 *4.5 Non-Compete. You may not use the Market to distribute or make
 available any Product whose primary purpose is to facilitate the
 distribution of software applications and games for use on Android devices
 outside of the Market.*


 Right now it looks pretty clear to me. No need for a lawyer, Google Play
 doesn't want that kind of thing to happen. You need your own distribution
 channel that is under your control. And since your app sounds very
 specialized I think it's pretty much ok to ask for more money. You could
 therefore bite the bullet and release your paid app on Google Play with a
 price tag that makes you happy (even minus 30%).


 On Thursday, February 7, 2013 11:44:24 PM UTC-6, Harish wrote:

 Dear all,

 Need your opinion for listing my app to play store.

 I have a medical app which we are planning to sell using various
 distribution channel in bulk volume.

 We already have license checking mechanism with our site. and we will
 manage license with our support team.

 We give our app 1 week for trial and user have to activate after one week.

 My question is - If I list my app to google play store for broader
 audience then does there any way I can manage bulk licenses without paying
 30% transaction fees. I mean I will have list of users with me who already
 paid for app and they can download app from app store freely.

 Or If I list my app free on market and after 7 days user will pay using
 our payment channel does it violates developer agreement ?

 My main objective of using play store is to manage updates efficiently.

 I see many example where people list free and premium apps on Google, I
 wants to list only free not the premium one. does it violates Google terms
 and condition.

 Looking for your advice

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




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




Re: [android-developers] Prob in sending Image

2013-01-21 Thread Kevin Duffey
Look into using a rest service if you can little easier to deal with. As
the other poster said convert the byte[] into a string and base64 encode it
then send it.
On Jan 20, 2013 9:26 AM, ajinkyasaswad...@gmail.com wrote:

 Hi Everybody

 M  sending the image from android to java server using socket programming
 as i want to send to ip addrs but there is prob in sending the image
 I tried converting into string and writing it into txt fie but there's
 prob in writing it into the txt file so there's prob in
 converting it into image at server side.

 So does any one have solution for it
 It will appreciated
 Thanks

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-16 Thread Kevin Duffey
So really all we have to do is rebuild our android OS with that flag set to
false and we're good to go? ;)

On Wed, Jan 16, 2013 at 4:56 AM, Tobias Lindberg 
tobias.e.lindb...@gmail.com wrote:

 True, will do.


 2013/1/16 Raghav Sood raghavs...@gmail.com

 @Tobias Now that you've found the problem, it'd be nice if you could
 close your question on StackOveflow as well. I posted the answer for now,
 but it would probably be best if you posted it from your own account and
 accepted it.

 Raghav Sood
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248


 On Wed, Jan 16, 2013 at 6:11 PM, Tobias Lindberg 
 tobias.e.lindb...@gmail.com wrote:

 That is really strange, if the user should have the option of disabling
 it should not be bulked with push notifications.


 2013/1/16 Kostya Vasilyev kmans...@gmail.com

 Heh. Looks like it *is* intentional.


 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/java/com/android/server/NotificationManagerService.java

 Lines 693-707:

 final boolean isSystemToast = (android.equals(pkg));

 if (ENABLE_BLOCKED_TOASTS  !isSystemToast 
 !areNotificationsEnabledForPackageInt(pkg)) {
 Slog.e(TAG, Suppressing toast from package  + pkg +  by
 user request.);
 return;
 }

 Line 114:

 private static final boolean ENABLE_BLOCKED_TOASTS = true;

 Commit diff:


 https://android.googlesource.com/platform/frameworks/base/+/0da673f02e542c644c300568807c80e196296860%5E
 !

 -- K

 2013/1/16 Tobias Lindberg tobias.e.lindb...@gmail.com:
  Definetly a bug, no one would be stupid enough to do that on purpose.
 Or at
  least I hope so.
 
 
  2013/1/15 Kevin Duffey andjar...@gmail.com
 
  Indeed that is important.. why would a toast notification be blocked
 by
  that setting? Obviously a bug.. I can't imagine they meant to do
 that.
 
 
  On Tue, Jan 15, 2013 at 2:09 PM, Mark Murphy 
 mmur...@commonsware.com
  wrote:
 
  Wow. That's an important find. Thanks for pointing this out!
 
  On Tue, Jan 15, 2013 at 4:31 PM, Harri Smått har...@gmail.com
 wrote:
   Hi,
  
   There's a bug filed on Android bug database;
  
   http://code.google.com/p/android/issues/detail?id=35013
  
   In other words, if you disable application notifications, Toasts
 also
   are disabled for that particular application. Could this be the
 reason for
   behaviour Tobias is facing?
  
   --
   H
  
   On Jan 15, 2013, at 11:18 PM, bob b...@coolfone.comze.com wrote:
  
   I have also tried this with the Galaxy S3 and 4.1.1, and the
 Toast
   shows fine.
  
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
   android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
 
 
  --
  Mark Murphy (a Commons Guy)
  http://commonsware.com | http://github.com/commonsguy
  http://commonsware.com/blog | http://twitter.com/commonsguy
 
  _The Busy Coder's Guide to Android Development_ Version 4.5
 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
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send

Re: [android-developers] Json

2013-01-16 Thread Kevin Duffey
Funny I just replaced the use of jsonobject with Jackson json because of it
being faster to stream process json with and using less memory. There are
many good examples via Google with regards to using Jackson and android
that may solve your problem and reduce your apps memory use and parsing
time.
On Jan 16, 2013 3:08 PM, geet handa geethand...@gmail.com wrote:

 Hi every one,

 I am working on Json ParsingIn that I  am
 facing problem in Convert String into JsonObjectPlease Help
 me!!

 Here is the code I got

 class MyTask extends AsyncTaskString, Void, String {

 ProgressDialog pDialog;

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

 pDialog = new ProgressDialog(MainActivity.this);
 pDialog.setMessage(Loading...);
 pDialog.setCancelable(false);
 pDialog.show();
 }

 @Override
 protected String doInBackground(String... params) {
 return Utils.getJSONString(params[0]);
 }

 @Override
 protected void onPostExecute(String result) {
 super.onPostExecute(result);

 if (null != pDialog  pDialog.isShowing()) {
 pDialog.dismiss();
 }

 if (null == result || result.length() == 0) {
 showToast(No data found from web!!!);
 MainActivity.this.finish();
 } else {

 try {

 System.out.println(Mona+result);

 Toast.makeText(getApplicationContext(), +result, 1000).show();

 JSONObject mainJson = new
 JSONObject(result);


 System.out.println(Mona+mainJson);

 JSONArray jsonArray =
 mainJson.getJSONArray(ARRAY_NAME);
 for (int i = 0; i 
 jsonArray.length(); i++) {
 JSONObject objJson =
 jsonArray.getJSONObject(i);

 Item objItem = new Item();


 objItem.setId(objJson.getInt(ID));

 objItem.setName(objJson.getString(NAME));
 //
  objItem.setCity(objJson.getString(CITY));
 //
  objItem.setGender(objJson.getString(GENDER));
 //
  objItem.setAge(objJson.getInt(AGE));
 //
  objItem.setBirthdate(objJson.getString(BIRTH_DATE));

 arrayOfList.add(objItem);

 }
 } catch (JSONException e) {
 e.printStackTrace();
 }

 Thanks.

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

2013-01-16 Thread Kevin Duffey
Right.. the permission that shows up when I access account manager isn't as
clear as the permissions when you first download the app. It strikes me
funny that the ability to access the account manager is a manifest
permission, but then you need to bother the user at runtime for yet another
permission. Why not just make it part of the app installation permissions
from the start.. although I suppose the answer for that is that most users
won't know what it means at that time, so I am OK with that I suppose. I
just wish there was a way to customize the permission popup that occurs so
we could make it more app specific user friendly. It seems the only thing I
can do is provide info in my description and hope users read it so they
understand why my app is asking for that permission and what benefit they
get from allowing my app to use it on their behalf.


On Tue, Jan 15, 2013 at 9:39 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 I don't see why this would necessarily be a bad thing: it's just part
 of the security policy of the app.  Of course, there's not really a
 let an app send email as me permission, but you could imagine making
 this as an app's configuration.

 (Of course, there is a permission that allows you access to accounts,
 but it doesn't convey the same idea..)

 Kris

 On Sun, Jan 6, 2013 at 12:01 PM, Lew lewbl...@gmail.com wrote:
  Nikolay Elenkov wrote:
 
  Kevin Duffey wrote:
   This article seems to indicate an XOAUTH2 with email.. going to give
 it
   a
   shot.. but still can't find anything indicating that this is allowed
 or
   supported. It would be good to find out if we can use the email
 service
   without user intervention (except for the initial pop-up in the app
 that
   asks for user permissions), or if google does not want apps to send
 out
   emails on behalf of users using their gmail accounts even IF the app
   describes it and the user accepts.
 
  OAuth 2.0 is certainly not deprecated. You already have the link in the
 SO
  answer, but here it is again:
 
  https://developers.google.com/google-apps/gmail/oauth_overview
 
  Whether or not it is OK to use this in an app is another matter.
  You should make it clear to users that you want to send email
  from their account and give them an option to opt out. To make
  sure the whole thing is legal, etc. hire a lawyer to draft your
  terms of use/privacy policy, etc. Also make sure users
  actually accept it before using the app.
 
  Disclaimer: IANAL, so take this with a grain of salt.
 
 
  And tell us the name of the app so I can be sure *NEVER* to use it.
 
  --
  Lew
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

2013-01-16 Thread Kevin Duffey
Yes..true.. and there isn't a way for the manifest to know what your code
tries to access at runtime either. My primary issue is the current pop-up
at runtime isn't very friendly. I will provide a video of using my app and
explain why that pop-up occurs.. but still would be nice if we could
customize it. I haven't looked to see if we can so if there is a way,
great.

On Wed, Jan 16, 2013 at 8:04 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Thu, Jan 17, 2013 at 12:56 PM, Kevin Duffey andjar...@gmail.com
 wrote:
  ... It strikes me
  funny that the ability to access the account manager is a manifest
  permission, but then you need to bother the user at runtime for yet
 another
  permission. Why not just make it part of the app installation permissions
  from the start..

 Because there are an infinite number of tokens possible and permissions are
 granted per-token. You can grant an app access to your Google Reader feed,
 but not to your GMail inbox, etc.

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


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

Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-15 Thread Kevin Duffey
If I can remember I'll try on my s3 sometime today. Any code snippet you
want me to try ?
On Jan 15, 2013 1:34 AM, Tobias tobias.e.lindb...@gmail.com wrote:

 My carrier is a Danish carrier called Tre (Three) but I dont have a
 carrier dependent phone, I ordered it over the internet.

 On Monday, January 14, 2013 5:38:53 PM UTC+1, bob wrote:

 Who is your carrier?

 On Monday, January 14, 2013 7:06:36 AM UTC-6, Tobias wrote:

 I have a toast displayed in the following way:

 Toast.makeText(context, The message, Toast.LENGTH_LONG).show();


 I am 100% I am displaying the toast from the UI thread and I can add
 that it worked fine for many devices including older updates of Galaxy S3
 but after latest update no one of my toasts are being displayed.

 Have anyone else experienced this and have a solution?

 Thanks,
 Tobias

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

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

Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-15 Thread Kevin Duffey
Ok..I just tried and it worked for me. I have Android 4.1.1, checked for
updates nothing there.. so this seems to work for me. I am plugged in via
USB debugging.


On Tue, Jan 15, 2013 at 4:44 AM, Tobias Lindberg 
tobias.e.lindb...@gmail.com wrote:

 Thx :)

 Try this in your onResume method of an Activity:
 Toast.makeText(YourActivity.this, The message, Toast.LENGTH_LONG).show();

 Also make sure that you have updated the phone to the latest update
 because stuff was working before I made updates.

 Cheers,
 Tobias

 2013/1/15 Kevin Duffey andjar...@gmail.com

 Toast.makeText(context, The message, Toast.LENGTH_LONG).show();



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


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

2013-01-15 Thread Kevin Duffey
I don't know for sure.. but your XML looks wrong:

cffunction name=TestMethod returnType = string access=remote
description=Test Method
  cfargument name=ID type=numeric

cfreturn hello /

/cffunction

Notice in the cfargument..  you don't have a / at the end? Perhaps that
is why?

On Tue, Jan 15, 2013 at 2:23 AM, Tonez apires...@gmail.com wrote:

 cffunction name=TestMethod returnType = string access=remote
 description=Test Method
   cfargument name=ID type=numeric

 cfreturn hello /

 /cffunction

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-15 Thread Kevin Duffey
Indeed that is important.. why would a toast notification be blocked by
that setting? Obviously a bug.. I can't imagine they meant to do that.

On Tue, Jan 15, 2013 at 2:09 PM, Mark Murphy mmur...@commonsware.comwrote:

 Wow. That's an important find. Thanks for pointing this out!

 On Tue, Jan 15, 2013 at 4:31 PM, Harri Smått har...@gmail.com wrote:
  Hi,
 
  There's a bug filed on Android bug database;
 
  http://code.google.com/p/android/issues/detail?id=35013
 
  In other words, if you disable application notifications, Toasts also
 are disabled for that particular application. Could this be the reason for
 behaviour Tobias is facing?
 
  --
  H
 
  On Jan 15, 2013, at 11:18 PM, bob b...@coolfone.comze.com wrote:
 
  I have also tried this with the Galaxy S3 and 4.1.1, and the Toast
 shows fine.
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 _The Busy Coder's Guide to Android Development_ Version 4.5 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Negative Clicks in Admob !!! -$435k a day??

2013-01-13 Thread Kevin Duffey
The fact that you're seeing an error of a quarter-million bucks gives me
hope that there is money to be made on the android market! That's just one
day?? You must be the owner of Angry Birds!

On Sat, Jan 12, 2013 at 12:40 PM, TreKing treking...@gmail.com wrote:

 On Sat, Jan 12, 2013 at 2:00 PM, Amel Jose 
 vallikattukuzhi...@gmail.comwrote:

 there is no mail id


 This is Google. There is no email to send a message to for support. You
 fill out a form and if you win the lottery, you might get a response. Good
 luck.



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

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


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

Re: [android-developers] android phone requires activation in order to test on eclipse?

2013-01-11 Thread Kevin Duffey
I had an issue with my droidx that I no longer use but kept for testing
purposes. I got stuck on the screen where it was waiting to activate.. and
the only option was to restart the phone or continue with activation. Turns
out.. when on that screen where you touch the Android guy to start..
instead.. you touch all four corners (one at a time in order I think). You
then hit the next (or android guy..I forget now) and from that it bypasses
activation requirements and lets you use the phone. I did this, on my
droid-x after I reset the phone and wiped everything. I also did this for a
Samsung S and a Bionic, and it was as I recall the same procedure. All of
these phones were originally on Verizon in the US, so I am not sure if this
will work regardless of carrier and location or not. At any rate, once you
bypass that, you can set up wifi and developer options and you're good to
go.


On Fri, Jan 11, 2013 at 11:27 AM, Mark Murphy mmur...@commonsware.comwrote:

 Configure it to use WiFi.

 On Fri, Jan 11, 2013 at 2:16 PM, John Merlino stoici...@aol.com wrote:
  Someone just got me a metropcs phone, but doesnt want to pay the
  monthly service fee. Will I be able to test my application on this
  device, which requires accessing google maps api v2? It seems not
  possible without an internet connection. Is there a way that this can
  be done?
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 _The Busy Coder's Guide to Android Development_ Version 4.5 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: why couldn't create webservice using android?

2013-01-10 Thread Kevin Duffey
Lew..I apologize whole heartedly for whatever it is I might have said to
upset you so much. I retract all my statements and hope we can get past
this and be friends. Perhaps I was too assertive in my initial claim that
today's phones could be decent servers. I didn't have the time to look up
the 100's of devices characteristics to determine they would be too hot,
too costly, etc. So I retract everything I said, apologize, you are right,
I concede.


On Thu, Jan 10, 2013 at 2:51 AM, Bill Michaelson wmmichael...@gmail.comwrote:

 Google: android thermostatat.

 Et cetera

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


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

Re: [android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Kevin Duffey
Couldn't someone using this library call it from within an Activity,
passing this to that code and using this create the activity at that
point when it's needed?

On Thu, Jan 10, 2013 at 1:19 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Jan 10, 2013 at 4:12 PM, Monty Jain montyj...@gmail.com wrote:
  Basically I want to develop a library which perform certain task which
  involves running certain series of steps.
  one of the steps can be involve starting an activity(UI to get input) and
  use that data to finish that step.
 
  So is this bad design that a library starting an activity.. from android
  perspective
 
  From scenario perspective we should be able to do that right?

 No, unless the library is defining an activity which the app using the
 library perhaps is subclassing, and then only if the library's
 activity is the one executing these steps and collecting data from
 the user via startActivityForResult().

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

 Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
 sobre desenvolvimento de aplicações para Android:
 http://www.andglobe.com

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


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

Re: [android-developers] Re: why couldn't create webservice using android?

2013-01-09 Thread Kevin Duffey
While I agree that running a web server of any sort on the android
phone/tablet is pretty pointless compared to todays entry level cheap
hardware.. most of these devices are more powerful and capable than my
development machine was 6..maybe 7 or so years ago, and we wrote cod while
running a database and web server on those. As some of you said..it's
possible.. heck it could probably handle a decent load too. Given that I
*think* there are now ARM based servers being built, I could see where
rather than buying a beefy multi-cpu 2+ rack system, you could put a bunch
of these in place as servers to handle a few dozen or so requests and with
almost no heat and enough power and memory to handle the requests.. a farm
of these could possibly be comparable to much more expensive, heat
dissipating hardware that runs multiple vms. At the very least it would be
pretty cool to see a table full of hundreds of these, all via wifi, just
servicing web requests ;)



On Wed, Jan 9, 2013 at 3:25 PM, Kristopher Micinski
krismicin...@gmail.comwrote:

 Yes, but doing that (as I said) lends itself to an everlasting
 service: you certainly can't run that code on the UI thread (it will
 simply barf with an exception), and so the sensible place to put it is
 in a service..  There might be times when this is acceptable, but you
 should think about it carefully before doing so to make sure there
 isn't a better solution.

 Kris

 On Wed, Jan 9, 2013 at 6:06 PM, bob b...@coolfone.comze.com wrote:
  You can definitely create a TCP server on Android.
 
  The code would look like this:
 
  ServerSocket serverSocket = null;
  boolean listening = true;
 
  try {
  serverSocket = new ServerSocket(1101);
  } catch (IOException e) {
  System.err.println(Could not listen on port: 1101.);
  System.exit(-1);
  }
 
  while (listening)
  new Server_Thread(serverSocket.accept()).start();
 
  serverSocket.close();
 
 
 
 
  On Wednesday, January 9, 2013 3:41:22 AM UTC-6, tom wrote:
 
  Hi,
 
  why couldn't create webservice  using android?
  if that any reason. if you know that reason...please share with me..
 
  Thanks,
  Tom
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Re: why couldn't create webservice using android?

2013-01-09 Thread Kevin Duffey
Clearly you are taking this to an extreme.. my point was..given that *most*
phone devices don't get too hot that they would need a large cooling system
to keep it cool, and the fairly decent processing power of current devices,
my point was, it would be possible, to some extent, barring a few
variables, such as those you have brought up, to build a decent *little*
server farm to handle some sort of load. I am not saying google should
replace their search engine servers with smart phones by any means.

Yes.. a typical wifi-n would be screwed under the load of thousands of
phones on the same wifi network, but then, we'd probably consider that we'd
opt for a few wifi networks, on different physical network routers to help
distribute that load a bit. I am sorry I didn't take this to the extreme
you did and make it sound practical for a company like google to actually
do this. What if we, for the sake of your argument, throw in wifi-ac?
That's 1.3gbps wifi.. would that help things along?



On Wed, Jan 9, 2013 at 4:39 PM, Lew lewbl...@gmail.com wrote:

 Lew wrote:

 andjarnic wrote:

 ... I could see where rather than buying a beefy multi-cpu 2+ rack
 system, you could put a bunch of these in place as servers to handle a few
 dozen or so requests and with almost no heat and enough power and memory to
 handle the requests.. a farm of these could possibly be comparable to much
 more expensive, heat dissipating hardware that runs multiple vms. At the
 very least it would be pretty cool to see a table full of hundreds of
 these, all via wifi, just servicing web requests ;)


 How much heat is almost no heat, really?

 What about the hardware and systems to distribute the load of hundreds
 or thousands of requests to servers that can only handle a dozen at a
 time?

 Are we *quite* sure that the heat generated would be almost none? My
 smart phone
 occasionally gets blazingly hot, as has every cell phone I've ever owned.

 You need to *measure* the heat, and power consumption, and cost of
 replacing batteries
 and other such costs, to be sure that you are getting the best server
 bang for the buck.

 I see lots of ways your assertions could be completely wrong.

 Oh, and the poor WiFi system will collapse under that bandwidth.

 Real server farms have hundreds, or even thousands of servers - full-size,
 not phone-sized - in a single data center, connected by
 ultra-ultra-high-bandwidth
 pipes. I do not find the claim that smartphones could compete credible.

 --
 Lew

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: why couldn't create webservice using android?

2013-01-09 Thread Kevin Duffey
Kris, I was referring to Lew's response. Text is of course impossible to
know someone's tone, some people may just reply with what seems like
ruffled feathers answers..but might just be making a point instead.
Regardless, I don't let responses bother me for the most part, but it
seemed as if my response about android devices not getting too hot and such
ruffled Lew's feathers a little given his two responses.


On Wed, Jan 9, 2013 at 4:50 PM, Kristopher Micinski
krismicin...@gmail.comwrote:

 I'm sorry if I came off confrontational to your response, I didn't
 mean to sound that way at all.  I don't believe I'm taking this to an
 extreme: this forum is for developing apps, I wanted to give a warning
 that you should consider other options if you want to develop real
 apps that need this type of behavior.

 Sure, you could do it, it might be cool.  I didn't mean to discourage
 that at all.  And indeed, I'm certainly not refuting it, as I have
 done exactly this for some network experiments in a project I worked
 on a few years ago.  So I am not at all saying you shouldn't do it,
 that it's impossible, or that you are wrong: I'm just saying you
 should think twice if you think your app needs this.

 Maybe I was off base, because the OP asked why this couldn't be done.
 I shouldn't say it can't be, because it clearly can, I'm just saying
 you should be careful...

 Kris

 On Wed, Jan 9, 2013 at 7:44 PM, Kevin Duffey andjar...@gmail.com wrote:
  Clearly you are taking this to an extreme.. my point was..given that
 *most*
  phone devices don't get too hot that they would need a large cooling
 system
  to keep it cool, and the fairly decent processing power of current
 devices,
  my point was, it would be possible, to some extent, barring a few
 variables,
  such as those you have brought up, to build a decent *little* server
 farm to
  handle some sort of load. I am not saying google should replace their
 search
  engine servers with smart phones by any means.
 
  Yes.. a typical wifi-n would be screwed under the load of thousands of
  phones on the same wifi network, but then, we'd probably consider that
 we'd
  opt for a few wifi networks, on different physical network routers to
 help
  distribute that load a bit. I am sorry I didn't take this to the extreme
 you
  did and make it sound practical for a company like google to actually do
  this. What if we, for the sake of your argument, throw in wifi-ac? That's
  1.3gbps wifi.. would that help things along?
 
 
 
  On Wed, Jan 9, 2013 at 4:39 PM, Lew lewbl...@gmail.com wrote:
 
  Lew wrote:
 
  andjarnic wrote:
 
  ... I could see where rather than buying a beefy multi-cpu 2+ rack
  system, you could put a bunch of these in place as servers to handle
 a few
  dozen or so requests and with almost no heat and enough power and
 memory to
  handle the requests.. a farm of these could possibly be comparable to
 much
  more expensive, heat dissipating hardware that runs multiple vms. At
 the
  very least it would be pretty cool to see a table full of hundreds of
 these,
  all via wifi, just servicing web requests ;)
 
 
  How much heat is almost no heat, really?
 
  What about the hardware and systems to distribute the load of hundreds
  or thousands of requests to servers that can only handle a dozen at a
  time?
 
  Are we *quite* sure that the heat generated would be almost none? My
  smart phone
  occasionally gets blazingly hot, as has every cell phone I've ever
 owned.
 
  You need to *measure* the heat, and power consumption, and cost of
  replacing batteries
  and other such costs, to be sure that you are getting the best server
  bang for the buck.
 
  I see lots of ways your assertions could be completely wrong.
 
  Oh, and the poor WiFi system will collapse under that bandwidth.
 
  Real server farms have hundreds, or even thousands of servers -
 full-size,
  not phone-sized - in a single data center, connected by
  ultra-ultra-high-bandwidth
  pipes. I do not find the claim that smartphones could compete credible.
 
  --
  Lew
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers

Re: [android-developers] Network Class Loader

2013-01-08 Thread Kevin Duffey
couldn't you download a jar or class file other ways then use this to load
it?
On Jan 8, 2013 9:19 AM, Mark Murphy mmur...@commonsware.com wrote:

 You mean, besides the fact that URLClassLoader doesn't work with
 Dalvik files (AFAIK) and that loading a library directly from the
 network is totally insecure?

 On Tue, Jan 8, 2013 at 12:12 PM, Jan Burse janbu...@fastmail.fm wrote:
  Dear All,
 
  I am just read:
 
 Provides a simple ClassLoader implementation that operates
 on a list of files and directories in the local file system,
 but does not attempt to load classes from the network. Android
 uses this class for its system class loader and for its
 application class loader(s).
 
 
 http://developer.android.com/reference/dalvik/system/PathClassLoader.html
 
  Does this mean I cannot use the URLClassLoader on Android with
  URLs that have for example the schema http:// ?
 
  Bye
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Localized Android Question-and-Answer Sites: http://www.andglobe.com

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


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

Re: [android-developers] Re: Send multidimensional array via POST request?

2013-01-08 Thread Kevin Duffey
JSON is the only way to go.. most compact, supports object trees easily,
jackson is fast stream parser and can map to objects from json string and
vice versa.. look it up, use it. You won't go back.


On Tue, Jan 8, 2013 at 11:56 AM, George Baker spaceastrono...@gmail.comwrote:

 Sorry hit enter too quick. Example below. This creates a value of error
 containing two addtional name value pairs.

JSONObject msgJSON = new JSONObject();
 msgJSON.put(error, new JSONObject());
 msgJSON.getJSONObject(error)**.put(code, errorCode);
 msgJSON.getJSONObject(error)**.put(message, msg);
String reponse = msgJSON.toString();



 On Tuesday, January 8, 2013 2:54:00 PM UTC-5, George Baker wrote:

 I would also recommend JSON.  As Nobu said it is compact and many server
 side programming languages have libraries readily available for it.
  Otherwise as far as I know mimicking a  form post doesn't offer an input
 type that natively supports an embedded name value pair.

 Here's an example on how to write one

   JSONObject msgJSON = new JSONObject();
 msgJSON.put(error, new JSONObject());
 msgJSON.getJSONObject(error)**.put(code, errorCode);
 msgJSON.getJSONObject(error)**.put(message, new JSONObject());
 msgJSON.getJSONObject(error)**.getJSONObject(message).put(**
 lang,en-us);
 msgJSON.getJSONObject(error)**.getJSONObject(message).put(**
 value,errorMessage);
 msgJSON.put(value,**errorMessage);

 On Saturday, January 5, 2013 12:03:01 PM UTC-5, Roman Bugaian wrote:

 It's simly to send POST reaquest with Lists consisting of
 BasicNameValuePair, but how to send a pair, where a value is another list
 of pairs?

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


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

Re: [android-developers] Re: Send multidimensional array via POST request?

2013-01-08 Thread Kevin Duffey
In regards to George's reply.. that works.. but depending on the library
you use (looking at you org.json.*) it could eat up a bit of memory...
obviously something to avoid on phones/tablets if possible. Jackson has an
additional library for support a JSONObject, but with the mapping features,
you can stream parse into an object on the fly, using little memory, and/or
spit out your object tree as a json string on the fly with little memory
use as well.


On Tue, Jan 8, 2013 at 12:41 PM, Kevin Duffey andjar...@gmail.com wrote:

 JSON is the only way to go.. most compact, supports object trees easily,
 jackson is fast stream parser and can map to objects from json string and
 vice versa.. look it up, use it. You won't go back.


 On Tue, Jan 8, 2013 at 11:56 AM, George Baker 
 spaceastrono...@gmail.comwrote:

 Sorry hit enter too quick. Example below. This creates a value of error
 containing two addtional name value pairs.

JSONObject msgJSON = new JSONObject();
 msgJSON.put(error, new JSONObject());
  msgJSON.getJSONObject(error)**.put(code, errorCode);
 msgJSON.getJSONObject(error)**.put(message, msg);
String reponse = msgJSON.toString();



 On Tuesday, January 8, 2013 2:54:00 PM UTC-5, George Baker wrote:

 I would also recommend JSON.  As Nobu said it is compact and many server
 side programming languages have libraries readily available for it.
  Otherwise as far as I know mimicking a  form post doesn't offer an input
 type that natively supports an embedded name value pair.

 Here's an example on how to write one

   JSONObject msgJSON = new JSONObject();
 msgJSON.put(error, new JSONObject());
  msgJSON.getJSONObject(error)**.put(code, errorCode);
 msgJSON.getJSONObject(error)**.put(message, new JSONObject());
  msgJSON.getJSONObject(error)**.getJSONObject(message).put(**
 lang,en-us);
 msgJSON.getJSONObject(error)**.getJSONObject(message).put(**
 value,errorMessage);
  msgJSON.put(value,**errorMessage);

 On Saturday, January 5, 2013 12:03:01 PM UTC-5, Roman Bugaian wrote:

 It's simly to send POST reaquest with Lists consisting of
 BasicNameValuePair, but how to send a pair, where a value is another list
 of pairs?

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




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

Re: [android-developers] Network Class Loader

2013-01-08 Thread Kevin Duffey
Agreed Kris.. but with the absence of URLClassLoader, I was just curious if
you could download a class and load it with this approach. I would not want
to load code like this either on a phone given the multitude ways it could
crash the phone.. and make your app look bad.



On Tue, Jan 8, 2013 at 11:55 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 You really don't want to do this, it won't work (because Dalvik is not
 something that takes a jar) and is horrible security practice.

 In general, you should always be very skeptical when you run code you
 got from somewhere else: big security problems pop up.

 Kris

 On Tue, Jan 8, 2013 at 2:10 PM, Kevin Duffey andjar...@gmail.com wrote:
  couldn't you download a jar or class file other ways then use this to
 load
  it?
 
  On Jan 8, 2013 9:19 AM, Mark Murphy mmur...@commonsware.com wrote:
 
  You mean, besides the fact that URLClassLoader doesn't work with
  Dalvik files (AFAIK) and that loading a library directly from the
  network is totally insecure?
 
  On Tue, Jan 8, 2013 at 12:12 PM, Jan Burse janbu...@fastmail.fm
 wrote:
   Dear All,
  
   I am just read:
  
  Provides a simple ClassLoader implementation that operates
  on a list of files and directories in the local file system,
  but does not attempt to load classes from the network. Android
  uses this class for its system class loader and for its
  application class loader(s).
  
  
  
 http://developer.android.com/reference/dalvik/system/PathClassLoader.html
  
   Does this mean I cannot use the URLClassLoader on Android with
   URLs that have for example the schema http:// ?
  
   Bye
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
 
 
  --
  Mark Murphy (a Commons Guy)
  http://commonsware.com | http://github.com/commonsguy
  http://commonsware.com/blog | http://twitter.com/commonsguy
 
  Localized Android Question-and-Answer Sites: http://www.andglobe.com
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] OpenGL 1.0 or 1.1?

2013-01-08 Thread Kevin Duffey
You built recently for 1.5? With anything pre 2.2 combined being less than
about 5% of the market.. why bother? I guess I have a hard time
understanding supporting a very tiny fraction of the market when the payoff
is so little and the work so much. Hence my question on -discuss regarding
when 4.x will be the dominant market share. The 4.x libraries offer so much
more, to me it's the first android version that really competes with iOS
(in terms of ease of use, feature wise it's a bit ahead), and all the new
devices save the super cheap/free ones are coming with it now, at least in
the US on the major carriers.



On Tue, Jan 8, 2013 at 11:53 AM, bob b...@coolfone.comze.com wrote:

 Yeah, I thought I remember something about 1.5 allowing you to do this.


 But, I built it for 1.5, and it complains on the Nexus 7.




 On Tuesday, January 8, 2013 12:51:21 PM UTC-6, a1 wrote:



 W dniu wtorek, 8 stycznia 2013 18:39:38 UTC+1 użytkownik bob napisał:

 Well, I was getting this error:

 ... called a GL11 Pointer method with an indirect Buffer


 As a long shot, I was hoping maybe OpenGL 1.0 would just let me use
 indirect Buffers.  Then maybe I wouldn't have to change as much code.


 You should really google first for this error. It has nothing to do with
 GL spec version, you've used java nio buffer allocated with Buffer.allocate
 instead Buffer.allocateDirect. Later allocate chunk of memory on native
 heap and former simply allocate java array. Problem is that chunk of memory
 allocated on VM heap may be moved around, that's why you need direct buffer
 for GL calls. I do remember that on 1.5 or maybe 1.1 GL call didn't check
 buffer type and there was a lot of errors when apps used indirect buffers
 with GL.

 --
 Bart

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


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

Re: [android-developers] Re: All APK has cracked by apkcracks.net

2013-01-07 Thread Kevin Duffey
Interesting topic.. I was just reading about DexGuard, which is about $450
USD I think.. seems worth it to me if it works well and you're making money
on your apps.

Question though.. is there a way to know if someone bought the app
(downloaded through a store it was published to) or just installed? If I
wanted to put some data on the server side, so that only registered/paid
apps could access it.. how could I ensure the app is a legit buy?



On Sun, Dec 30, 2012 at 11:50 AM, Chief Yapping Maw 
westernairli...@gmail.com wrote:

 Release 2 identical apps, 1 w/ DRM, 1 w/out.
 Use entirely different names.
 You will find that you will sell multiple times more copies of the
 unprotected app.
 Going back to 1981, our computer club would share apple basic programs
 amongst ourselves, the pirates.
 Without exception, the programs we found useful we bought after trying
 them out as a pirate.
 Mostly this was a social experience, not an opportunity to steal.
 Spend a little time working on easter eggs instead of copy protection.
 New copy protection is like screwing a new tail onto a cow.  The smart
 flies will chew your hide where the new tail won't reach.

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


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

Re: [android-developers] Re: support for platform specific interfaces

2013-01-07 Thread Kevin Duffey
Dashman, I am curious why you would want to support anything previous to
Android 2.1.. and really 2.2 these days. From what I can see on the graph,
there is only a few % of devices with  Android 2.2 on them. I had a
similar question with regard to when Android 4 will be the majority of
devices in the market, with a rough target of probably 6 months or so
before that happens. My purpose is similar to yours.. I'd rather deal with
4.x SDKs and if by the time I think I can get my app out (6 months or so)
Android 4+ is the dominate OS with possibly a year out being 75%+ of the
market.. I could live with not gaining a lot of 2.3.x and previous owners
use of my app. I also ask this because at least from what I've followed on
some forums and in here, apps that run on 4.x that should run on 2.x seem
to have issues on many devices.. probably for any number of reasons. I am
still wavering on the idea of support 2.3.x and not using ActionBar and
some of the other 4.x features as my app doesn't absolutely need them, but
I also think the stability and more capable SDK for 4.x is nice to code to.



On Mon, Jan 7, 2013 at 1:50 PM, dashman erjdri...@gmail.com wrote:

 i appreciate your help!


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


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

Re: [android-developers] How to get the Facebook group notifications on my android app?

2013-01-07 Thread Kevin Duffey
What TreKing said.. I was able to use google and find several bits of info
that may lead to a solution. There will probably be some examples in this
forum as well.


On Mon, Jan 7, 2013 at 6:55 PM, TreKing treking...@gmail.com wrote:

 On Mon, Dec 24, 2012 at 9:33 AM, ashish fugat ashuthi...@gmail.comwrote:

 Please give me some useful threads and suggestions


 Use Google to search for Facebook API samples and tutorials.


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

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

2013-01-06 Thread Kevin Duffey
This article seems to indicate an XOAUTH2 with email.. going to give it a
shot.. but still can't find anything indicating that this is allowed or
supported. It would be good to find out if we can use the email service
without user intervention (except for the initial pop-up in the app that
asks for user permissions), or if google does not want apps to send out
emails on behalf of users using their gmail accounts even IF the app
describes it and the user accepts.

http://stackoverflow.com/questions/12503303/javamail-api-in-android-using-xoauth




On Sat, Jan 5, 2013 at 11:59 PM, Kevin Duffey andjar...@gmail.com wrote:

 I found some info on that, but from what I have read, it is deprecated..
 still available but no longer supported. I don't want to release an app on
 a deprecated way of doing so. If you have a link to a valid way of doing
 this that is still supported, I'd appreciate that, but thus far it appears
 google does not allow the auth token to be used to send emails on behalf of
 the user's device.


 On Sat, Jan 5, 2013 at 10:11 PM, Nikolay Elenkov 
 nikolay.elen...@gmail.com wrote:


 On Jan 6, 2013 12:43 PM, Kevin Duffey andjar...@gmail.com wrote:
 
  Hi all,
 
  I've been doing quite a bit of googling on this topic and so far
 despite several examples that seem to fit the bill, nothing quite takes me
 to an understanding of whether or not I can obtain a device owner's
 permission to send email out on their behalf. I am testing examples of
 AccountManager#getAuthToken, but I am not sure if it's possible, even with
 a pop-up dialog asking the user (in my app) for their permission to do so..
 whether or not I can obtain a token that can then be used with gmail api's
 to send out email with.

 Yes. You can obtain an OAuth token which lets you authenticate to gmail's
 SMTP sever and send email with the user's account. Check Google's
 documentation for the exact protocol.

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




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

Re: [android-developers] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

2013-01-06 Thread Kevin Duffey
Dang.. hire a lawyer.. getting more expensive to publish an app every day!
What's that cost.. a few grand at least? lol.

Nikolay.. not sure why you made that comment? While I can understand that
authorizing an app to use some of your information is not for everyone.. I
believe part of why AccountManager is part of the Android APIs is to ensure
that a person's info is secure and an app can only access tokens of some
sort that could not be abused by an app... furthermore.. an app, I would
assume, would gain a bad following and not do well at all if it were
misusing the tokens. In my case, I am learning Android and since there are
700,000+ apps out there.. there really isn't much not thought of these
days... so while learning I am just trying to think of things that would
make my life easier. One of them is.. not having to manually type in email
addresses using the external email intent when sending out emails. I hate
an app that takes me away from it to use other apps features, like cameras,
emails, sms, etc. If one app can, with some permissions, save me time and
be of use, then I am fine with allowing it to do so. I would ALSO depend on
the description being clear (and/or a video, pics, separate web site, etc)
and explaining WHY permissions would be required. I think as I've read on
some blogs on polishing apps.. an app that just pops up permission requests
with no clear reason as to why it's needed.. I would not trust it either.
In my case, I would/will explain all the reasons for what permissions a
user might need to auth in the app itself, and would provide a video and
web site to provide more info, plus email to support any questions.

As for not being able to use it.. it's part of the google API on their site
so I would assume it should be OK.


On Sun, Jan 6, 2013 at 10:01 AM, Lew lewbl...@gmail.com wrote:

 Nikolay Elenkov wrote:

 Kevin Duffey wrote:
  This article seems to indicate an XOAUTH2 with email.. going to give it
 a
  shot.. but still can't find anything indicating that this is allowed or
  supported. It would be good to find out if we can use the email service
  without user intervention (except for the initial pop-up in the app
 that
  asks for user permissions), or if google does not want apps to send out
  emails on behalf of users using their gmail accounts even IF the app
  describes it and the user accepts.

 OAuth 2.0 is certainly not deprecated. You already have the link in the
 SO
 answer, but here it is again:

 https://developers.google.com/**google-apps/gmail/oauth_**overviewhttps://developers.google.com/google-apps/gmail/oauth_overview

 Whether or not it is OK to use this in an app is another matter.
 You should make it clear to users that you want to send email
 from their account and give them an option to opt out. To make
 sure the whole thing is legal, etc. hire a lawyer to draft your
 terms of use/privacy policy, etc. Also make sure users
 actually accept it before using the app.

 Disclaimer: IANAL, so take this with a grain of salt.


 And tell us the name of the app so I can be sure *NEVER* to use it.

 --
 Lew


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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

2013-01-06 Thread Kevin Duffey
Not sure I agree with your sentiment with regard to how you are saying it.
Millions upon millions have trusted facebook with login.. and google with
checkout and paypal, etc. Not sure why they wouldn't trust their own
device's capabilities to prevent apps from using their username/password..
it's not asking for that.. and maybe I don't understand OAuth very
well..but I thought one of it's purposes was to provide tokens that are
limited in time and/or use, and/or at least protect end users by not
providing full access to all their information. Furthermore, from what I
can tell, the token I get to access mail only allows me to access mail, not
other accounts. I am new to this so maybe it does allow for more.. but then
like I said, if an app abuses it, I would hope the voting system, and if
need be google removing it stop it short of being too destructive. I do
agree though that users should be cautious, and that is why at least for
me, providing information that explains why the permissions are needed at
least allows end users to decide if they want to make use of the feature of
my app. In my case, it's one of several things my app will do, and end
users can choose to authorize my app to use their token, or end up using
the external email client. The latter case will be more cumbersome because
of all the typing/touching involved to find email addresses (or enter them
completely), but it would be an option if they do not trust my app to send
out emails on their behalf.


On Sun, Jan 6, 2013 at 5:40 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Mon, Jan 7, 2013 at 7:24 AM, Kevin Duffey andjar...@gmail.com wrote:
 
  Nikolay.. not sure why you made that comment?

 Because you said you are worried whether this is allowed.

  While I can understand that
  authorizing an app to use some of your information is not for everyone..
 I
  believe part of why AccountManager is part of the Android APIs is to
 ensure
  that a person's info is secure and an app can only access tokens of some
  sort that could not be abused by an app...

 APIs for sending SMS and reading your contacts are also part of the API,
 but that doesn't mean it's OK to send messages to premium numbers or
 spy on your users. If you can read and send email with someone's account
 you can reset their password(s) for other sites and gain access to what
 not,
 that's why it's somewhat sensitive. The platform will try to make sure the
 user knows what's happening, but can't really prevent abuse by a
 potentially
 malicious app in every possible case (not saying your app is malicious).

 It's your app, so you can't really say 'Android allows (whatever) so
 it's not my
 fault'. Whether or not you need a full-blown privacy policy/EULA/other
 scary
 legal document or just a simple confirmation dialog is for you to decide.

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


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

[android-developers] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

2013-01-05 Thread Kevin Duffey
Hi all,

I've been doing quite a bit of googling on this topic and so far despite
several examples that seem to fit the bill, nothing quite takes me to an
understanding of whether or not I can obtain a device owner's permission to
send email out on their behalf. I am testing examples of
AccountManager#getAuthToken, but I am not sure if it's possible, even with
a pop-up dialog asking the user (in my app) for their permission to do so..
whether or not I can obtain a token that can then be used with gmail api's
to send out email with. I know there is the GMailSender example that uses
username/password, but naturally that's not going to fly with end users..
at least most of them would not allow my app to store their
username/password for gmail. Given that as far as I know just about
everyone with an android device sets up a google account and thus can use
gmail (even if they dont).. I was hoping there is a way I can ask the user
for permission to use their account info to send out emails from their
device as if they had manually sent the email. The purpose is not to send
out spam emails or bad emails.. my app would send out emails exactly the
way a user would without my app.. only my purpose is to save them time. In
other words, the end user, reading my app description, will understand that
my app is intended to save them time and would use it for that reason, so
typically they would allow my app on their behalf to send gmail emails out
for them to save them time.

So.. is that possible? Is there a google api that takes an auth token,
instead of user/password to send emails out with?

I liken this to a site asking a user to use Facebook to login.. if a user
accepts, that site has a token for some amount of time they can use to log
in the user via facebook login. I'd like to do the same thing in my app..
only with various apis, google mail being one of them.

Thank you.

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

Re: [android-developers] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

2013-01-05 Thread Kevin Duffey
I found some info on that, but from what I have read, it is deprecated..
still available but no longer supported. I don't want to release an app on
a deprecated way of doing so. If you have a link to a valid way of doing
this that is still supported, I'd appreciate that, but thus far it appears
google does not allow the auth token to be used to send emails on behalf of
the user's device.


On Sat, Jan 5, 2013 at 10:11 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:


 On Jan 6, 2013 12:43 PM, Kevin Duffey andjar...@gmail.com wrote:
 
  Hi all,
 
  I've been doing quite a bit of googling on this topic and so far despite
 several examples that seem to fit the bill, nothing quite takes me to an
 understanding of whether or not I can obtain a device owner's permission to
 send email out on their behalf. I am testing examples of
 AccountManager#getAuthToken, but I am not sure if it's possible, even with
 a pop-up dialog asking the user (in my app) for their permission to do so..
 whether or not I can obtain a token that can then be used with gmail api's
 to send out email with.

 Yes. You can obtain an OAuth token which lets you authenticate to gmail's
 SMTP sever and send email with the user's account. Check Google's
 documentation for the exact protocol.

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

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

Re: [android-developers] using IP address 10.0.2.2 for android simulator works, but how do I point to localhost when testing on android device?

2013-01-04 Thread Kevin Duffey
Not entirely sure from your post...  Is your actual device on wifi and
using the same network as your server?  I have two networks in my house and
sometimes forget to configure the phone on the same one as my server. To
complicate things I run my servers in kvm instances  but I am still able to
get my devices to test against my servers.
On Jan 4, 2013 1:59 PM, John Merlino stoici...@aol.com wrote:

 I have ruby on rails web server that my android application talks to.
 When I connect to 10.0.2.2 on android simulator, it successfully makes
 contact to web server. However, it does not when I test it on the
 actual android device using a usb connection and using eclipse. I am
 forced to use the real live ip address, but I dont want to have to
 deploy live for every little change i need to make when testing on
 device. What options are 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


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

2013-01-04 Thread Kevin Duffey
Not sure your question  You want someone to write the code for you?
What is photo frames...  Links to screen shots or examples might help.
On Jan 4, 2013 8:33 AM, surya pavan tsuryapa...@gmail.com wrote:

 can you tell me the how to write a code for photoframes and tell me the
 best  tutorial for that ..

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

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

Re: [android-developers] Do unique app names mean nothing in the Android Market?

2011-08-05 Thread Kevin Duffey
I too can't find it on my 3 devices. I have wondered how search works on the
market, because many times I can't find anything close to what I type, even
though what I type often has apps with the same name as what I typed, or
similar.

On Fri, Aug 5, 2011 at 10:12 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 I tried searching for it and couldn't find it either.

 You can try and report this to Google:

 http://www.google.com/support/**androidmarket/developer/bin/**
 request.py?contact_type=**publishinghttp://www.google.com/support/androidmarket/developer/bin/request.py?contact_type=publishing

 -- Kostya

 05.08.2011 21:04, Arpit Mathur пишет:

  I released a free app about a week ago, called TimePiece (
 https://market.android.com/**details?id=com.arpitonline.**worldclockhttps://market.android.com/details?id=com.arpitonline.worldclock).
 I picked a name pretty close to the end of the dev process since it seemed
 less important. Before publishing to the store I searched for a couple of
 non conflicting terms and picked TimePiece since no-one seemed to have used
 it.

 Its been about a week since I added my app. I can find it by searching for
 arpitonline which is declared in the package and also as the publisher,
 but not by searching for TimePiece (the EXACT name for the app).

 Anyone know why this is? And what is the best convention for naming apps
 for Market release since exact names seem to count for little.

 -arpit

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com 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=enhttp://groups.google.com/group/android-developers?hl=en


 --
 Kostya Vasilyev


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-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=enhttp://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Ideas on providing add on packs for an app

2011-08-05 Thread Kevin Duffey
I too am interested in this.

On Thu, Aug 4, 2011 at 8:20 PM, Vance Turnewitsch betweenthehi...@gmail.com
 wrote:

 I have released an app on the Android Market that let's users create
 content on their devices and then use the content in the app. To
 increase attractiveness to the app, I would like to offer some pre-
 built content that users could download and use inside the app. I
 was thinking of offering add-on packs available through the Android
 Market like I have seen with other apps. For example something like
 the Image Packs for Find Differences

 https://market.android.com/details?id=com.pineconesoft.comparatorfeature=related_apps
 I would like to offer quite a few of these add-on packs, but I am
 concerned that many (20 or more) add-on packs might violate part of
 the Android Market Developer Program Policies:

 Do not post repetitive content.

 The add-on packs would contain different content, but all work only
 for the app I released.

 I also considered hosting the content on some online hosting service,
 and using the in-app billing API to allow users to pay for the
 content. I have a free Google Sites website right now, but I am leery
 of using it for hosting content due to the unknown amount of available
 bandwidth for free Google Sites.

 So, my questions are:
 1) What does Google mean by repetitive content?

 2) Has anyone used a free (or very cheap, price$10/month) service for
 hosting content for an app and could recommend one to me? I do not
 want to redirect users to a website to download the content. I would
 include a built-in list in the app and have the code download the
 content once the user selected an add-on pack.
 Concerning the price of a hosting service, I am a college student, and
 my financial resources are limited.

 Thanks for any ideas,
 Vance

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

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

Re: [android-developers] Re: how to run apk remotely

2011-08-04 Thread Kevin Duffey
Is it possible for ur sales guys to bring a laptop? If so why don't you just
set up adt on there laptops and a script that starts the emulator and app?
I am not sure if u can do that stand alone or if you would need eclipse
installed though.
On Aug 3, 2011 5:34 PM, Peter Stacey peterst6...@gmail.com wrote:


 There is currently no web based emulator for Android,  at least not
 something that is publicly available.

 Perhaps a quicker option rather than creating apps in Flash or
 Silverlight, would be a video demo of the application running,  or if
 it's something you want to demo live to your potential clients, a live
 screencast with the emulator running on your computer.

 The emulator has limitations, but if you can't be with the potential
 clients to showcase your application on a device and you don't want to
 provide an apk for them to try, then your options are limited at the
 moment.


 On Aug 4, 7:30 am, Greg Donald gdon...@gmail.com wrote:
  Anyone know how to run an apk inside a webpage?  I need my sales guys
  to be able to demo our app for potential clients without the trouble
  of being onsite or asking them to install the app.  I'd like to be
  able to send a url with the apk running in a webpage.  My current best
  idea is to remote desktop into a linux server running an emulator, but
  it's so slow and unresponsive, that's not gonna work.
 
  Thanks for any suggestions.
 
  --
  Greg Donald

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

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

Re: [android-developers] Android Client Authentication with Spring Security 3

2011-08-04 Thread Kevin Duffey
I am wondering why you are making a call to a rest service and trying to
keep state? Rest calls typically are stateless. You should pass the
credentials each time and the rest service should validate those credentials
each time. By storing a cookie you end up having to keep track of timeouts..
what happens in your android app when the cookie expires and you make a
request again and it fails due to the cookie being bad? Are you going to ask
the user to enter their credentials again? You might be better off storing
the entered credentials and sending them on every request. Also, did you
write the service? If so, why are you issuing a cookie? Why not just have
the service check for credentials every time?

On Thu, Aug 4, 2011 at 5:45 AM, Daniel Drozdzewski 
daniel.drozdzew...@gmail.com wrote:

 On 4 August 2011 13:27, Asuka c.bau...@gmx.de wrote:
  Hi Android Developers,
 
  I try to connect to a webapplication via my android client. In the
  webapplication we use spring security 3 to login. The relevant part of
  the login configuration looks like this:
 
  security:http auto-config='true' access-denied-page=/
  accessDenied.html
 security:intercept-url pattern=/**
 access=ROLE_STANDARD /
 security:form-login login-page=/login.html
 authentication-failure-url=/login_error.html
 default-target-url=/
  pages/start/start.html
 always-use-default-target=true /
 security:remember-me key=xxx
 token-validity-seconds=3 data-
  source-ref=dataSource/
 
 security:logout logout-success-url=/login.html
 invalidate-session=false /
 security:session-management
 security:concurrency-control max-sessions=1 /
 /security:session-management
 /security:http
 
  So that means, the webapp is able to remember the user. From the
  android client I call a webservice:
 
  public void onLogin(final View v) {
 
 EditText username = (EditText)
  findViewById(R.id.editusername);
 EditText password = (EditText)
 findViewById(R.id.editpassword);
 client = new DefaultHttpClient();
 String getToken = ;
 
 // Call Webservice
 HttpPost loginRequest = new
 HttpPost(PathContainer.baseWebservice
  +login?);
 ResponseHandlerString respstring = new
 BasicResponseHandler();
 
 try {
 JSONObject credentials = new JSONObject();
 try {
 
  credentials.put(name,username.getEditableText().toString());
 
  credentials.put(password,password.getEditableText().toString());
 } catch (JSONException e1) {
 e1.printStackTrace();
 }
 StringEntity seUser = new
 StringEntity(credentials.toString(),
  UTF-8);
 loginRequest.setEntity(seUser);
 getToken = client.execute(loginRequest,
 respstring);
 if (getToken != null) {
 if (getToken.startsWith(token)) {
 String[]t= getToken.split(:);
 securtiytoken=t[1];
 Cursor token=
 getContentResolver().query(URI, null, null, null,
  null);
 if(token.getCount()==0){
 insertTokenIntoDB(this,
  securtiytoken,username.getEditableText().toString());
 }else{
 updateToken(this,
  securtiytoken,username.getEditableText().toString());
 }
 token.close();
 this.startMain();
 }else{
 Toast.makeText(this,Anmeldung
 fehlgeschlagen ...
  ,Toast.LENGTH_LONG).show();
 this.loginAgain();
 }
 }
 } catch (ClientProtocolException e1) {
 e1.printStackTrace();
 } catch (IOException e1) {
 e1.printStackTrace();
 }
 }
 
  The webservice looks like this
 
  @POST
  @Produces(MediaType.TEXT_PLAIN)
  @Path(/login)
  public String login(String credentials) {
 JSONObject jo = null;
 String name = ;
 String password = ;
 try {
 jo = new JSONObject(credentials);
 name = jo.getString(name);
 password = jo.getString(password);
 } catch (JSONException e) {
 e.printStackTrace();
 }
 

Re: [android-developers] Re: Comments in market place

2011-08-04 Thread Kevin Duffey
All three of these are good. I really don't get the reason behind not
allowing a reply to a comment, or the ability for some sort of mark that
indicates a reply is pure crap.. either by a competitor or someone who has
no clue how to try to resolve an issue with their particular device (which
is a lot of people).

On Tue, Aug 2, 2011 at 9:23 PM, ((RayDar)) LLC raydar...@gmail.com wrote:

 In my case, every comment with a less than four star rating contains
 ignorant patently false statements about my app.

 I wish there was SOMETHING that could be done about this. Here are
 some ideas:

 * Allow developers to post a reply to reviews
 * Petition Google or an arbitrator for review (and rating) removal
 * Allow developers to contact reviewers

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


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

Re: [android-developers] Re: Android 2.3 Vs 3.0

2011-02-17 Thread Kevin Duffey
Apple's iPad was really just to support bigger screens, but had less
functionality than the iPhone os. The opposite is happening here.. Android
3.0 is a much better UI and more features. That to me is one of the biggest
reasons Android tablets are going to beat iPads... not only is the UI more
tailored towards tablets and information at our fingertips, it's not quite
identical to small screen phone devices. We truly get a more tablet oriented
OS while still maintaining the ability to write code for both with.. as far
as I can figure out, no changes other than for screen resolution.

On Thu, Feb 17, 2011 at 1:46 PM, Ed Burnette ed.burne...@gmail.com wrote:

 The phone and tablet source trees have diverged temporarily but it's
 expected that the I version of Android will bring them back
 together. The version number hasn't been decided - it might become 3.1
 or 3.5 or something else - just not 3.0.

 So when somebody says Honeycomb is just for tablets and won't run on
 phones they're just saying that a particular version of Android is
 just for tablets. There will be lots of versions after Honeycomb.
 Apple did something similar with iOS - they had an iPad only release
 and then a few months later came back with a phone-only release and
 finally they had a converged release.


 On Feb 14, 11:55 pm, Sivaprakash sivaprakashshanmu...@gmail.com
 wrote:
  Hi
 
  Read from few of the articles that Google has forked Android is it so ?
  Which means I can not use 3.0 for my Phone application but only for
 Tablet?
 
  Thanks
  Siva

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


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

Re: [android-developers] Android and Web-services

2011-02-17 Thread Kevin Duffey
Not sure the OP is going to come back and read this.. but the
easiest/fastest way to go is a RESTful api on the server side, and using
HttpClient within Android to make rest calls. Java/Jersey (JAX-RS) is really
easy to use and provides a robust framework to work with to build a solid
rest api. HttpClient is also fairly easy to work with, although examples of
various scenarios are a bit harder to come by with android examples... still
quite a few out there. Hit me up in private email if you want more details.


On Thu, Feb 17, 2011 at 9:35 AM, Jatin D Patel depo.ja...@gmail.com wrote:

 http://jatin4rise.wordpress.com/2010/10/03/webservicecallfromandroid/

 if u still have issue with calling webservice, lemme know


 On Thu, Feb 17, 2011 at 6:22 AM, Federico Paolinelli 
 fedep...@gmail.comwrote:

 This  goolge io session http://www.youtube.com/watch?v=xHXn3Kg2IQE could
 be a good source of info as well.

 Federico

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




 --
 Thanks,
 Jatin D N Patel
 You Got To Think HIGH to RISE.



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


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

Re: [android-developers] Re: Making Sure a Finished App is not Draining Resources

2011-02-14 Thread Kevin Duffey
I am curious why if in your onDestroy you shut down any tasks/threads, your
app would still show up? I would think it would exit properly if you wanted
it to. Perhaps I misunderstood that. I thought if the lifecycle onDestroy
fires, that meant your app (or at least the activity) was going to be done.
If you only have one activity then your app should essentially close. If
your app is made of multiple activities, then calling finish() does that not
end the activity? Assuming you have 3 or 4 running, and you call that on all
of them, wouldn't your app shut down?

I see I still need to learn more on the lifecycle stuff.


On Mon, Feb 14, 2011 at 11:42 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 14.02.2011 22:28, John пишет:

  A user who has downloaded my app probably won't take time to ask me
 why my app is still running. He will merely look at the task manager
 and form a bad opinion of my app.


 Yes they can. However, not all users use task killers, and among those who
 do, some do email and ask.


  Misguided as this user may be, I have an unverified belief that many
 such users exist.


 Some do, and sometimes they post bad comments that may or may not affect
 other user's perception of your app. In general, users are just human, and
 they can misjudge any particular feature or lack thereof and complain.

 This used to really get on my nerves, now I'm a few months older and a few
 notches wiser - or just more cynical, but that's healthy cynicism.

 And speaking of that:

 http://en.wikipedia.org/wiki/Cynicism

  They believed [...] suffering was caused by false judgments of what was
 valuable and by the worthless customs and conventions which surrounded
 society


 It fits perfectly - in this case, suffering is caused by the false judgment
 that a task killer is valuable, and by the worthless custom and convention
 of downloading and using one :)


 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com

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


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

Re: [android-developers] Problem Activity

2011-02-14 Thread Kevin Duffey
Orientation changes restart your activity if I recall correctly. I have not
done what you are doing, but I would think that in the onPause, you'd need
some way to save the location of the audio playing, then in the onResume
after the orientation change, restart playback from that point?

On Mon, Feb 14, 2011 at 10:25 AM, Kevin R. Octavian 
kevin.r.octav...@gmail.com wrote:

 thx...


 On Tue, Feb 15, 2011 at 1:17 AM, TreKing treking...@gmail.com wrote:

  On Mon, Feb 14, 2011 at 12:08 PM, Kevin R. Octavian 
 kevin.r.octav...@gmail.com wrote:

 why it happen??
 can you give me a solution for my problem??


 Please review the documentation the Android Activity Lifecycle.
 Understanding this should answer your questions.


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

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




 --
 Mobile Developer
 (Android,iphone,Blackberry,J2ME,brew,symbian)
 mobile :
 085722945257
 email :
 kevin.r.octav...@gmail.com
 arsenal_a...@yahoo.co.id
 blog :
 kevinroctavian.wordpress.com


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


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

Re: [android-developers] Problem Activity

2011-02-14 Thread Kevin Duffey
Incidentally, I don't know if there are other reasons for restarting
activities on orientation changes, but I know one reason it's done is to
allow potential layout changes to occur. You can provide layouts for both
landscape and portrait. I don't know why some sort of event handler couldn't
be called without restarting the entire activity...

On Mon, Feb 14, 2011 at 12:12 PM, Kevin Duffey andjar...@gmail.com wrote:

 Orientation changes restart your activity if I recall correctly. I have not
 done what you are doing, but I would think that in the onPause, you'd need
 some way to save the location of the audio playing, then in the onResume
 after the orientation change, restart playback from that point?


 On Mon, Feb 14, 2011 at 10:25 AM, Kevin R. Octavian 
 kevin.r.octav...@gmail.com wrote:

 thx...


 On Tue, Feb 15, 2011 at 1:17 AM, TreKing treking...@gmail.com wrote:

  On Mon, Feb 14, 2011 at 12:08 PM, Kevin R. Octavian 
 kevin.r.octav...@gmail.com wrote:

 why it happen??
 can you give me a solution for my problem??


 Please review the documentation the Android Activity Lifecycle.
 Understanding this should answer your questions.


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

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




 --
 Mobile Developer
 (Android,iphone,Blackberry,J2ME,brew,symbian)
 mobile :
 085722945257
 email :
 kevin.r.octav...@gmail.com
 arsenal_a...@yahoo.co.id
 blog :
 kevinroctavian.wordpress.com


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




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

Re: [android-developers] Re: How do I Crop an picture after taking it?

2011-02-14 Thread Kevin Duffey
Do you mean for your code to crop it to some smaller size? Or allow the user
to adjust a box around the picture then crop it once the user sets the size?

2011/2/14 Carlos Eduardo Rührwiem carlos.ri...@gmail.com

 Just to be more clear. I would like to be able to point at the picture (it
 would be nice to have some sort of small zoom) and pick the 4 corners so
 that the app can crop latter.

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


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

Re: [android-developers] Re: How do I Crop an picture after taking it?

2011-02-14 Thread Kevin Duffey
Ah.. ok..I am sure there is, I don't know off hand. I would imagine you need
to use SurfaceView and do your own drawing and handling of touch events for
resizing the crop lines. I haven't had to do something like this yet,
although I would love to see some code that draws on top of an image and
handles touch events too.

2011/2/14 Carlos Eduardo Rührwiem carlos.ri...@gmail.com

 @Kevin,

 Thanks for the reply. I would like to adjust a box around the picture and
 then crop it. Is there a way to do it?

 Carlos Eduardo Rührwiem



 On Mon, Feb 14, 2011 at 6:17 PM, Kevin Duffey andjar...@gmail.com wrote:

 Do you mean for your code to crop it to some smaller size? Or allow the
 user to adjust a box around the picture then crop it once the user sets the
 size?

 2011/2/14 Carlos Eduardo Rührwiem carlos.ri...@gmail.com

 Just to be more clear. I would like to be able to point at the picture (it
 would be nice to have some sort of small zoom) and pick the 4 corners so
 that the app can crop latter.

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


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


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


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

Re: [android-developers] Problem Activity

2011-02-14 Thread Kevin Duffey
Oh.. so if you implement that onConfigurationChage, then orientation changes
(among other things) don't stop/restart activities? I'll have to read about
that. You'd think that would be emphasized more.. or is there some reason it
is not done as often?

On Mon, Feb 14, 2011 at 12:37 PM, Kostya Vasilyev kmans...@gmail.comwrote:

 14.02.2011 23:13, Kevin Duffey пишет:

  Incidentally, I don't know if there are other reasons for restarting
 activities on orientation changes, but I know one reason it's done is to
 allow potential layout changes to occur. You can provide layouts for both
 landscape and portrait. I don't know why some sort of event handler couldn't
 be called without restarting the entire activity...


 There is just such handler - onConfigurationChanged:


 http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)

 ... but you have to tell Android that your code is able to handle it:


 http://developer.android.com/guide/topics/manifest/activity-element.html#config

 Note that there are more potential config change cases than just the
 orientation change - in particular, the user may change the phone's locale
 setting - other cases are listed on the page above.

 The automatic destroy / recreate cycle is there as a catch-all, with the
 onConfigurationChanged providing a possibility for an optimization.

 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com


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


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

Re: [android-developers] Re: Camera preview demo

2011-02-14 Thread Kevin Duffey
Make sure you aren't hard-coding /sdcard and using the api to get the right
path. I forget the call (someone will post it), or search in this forum for
camera and you'll find it. I've seen a few posts about using /sdcard
directly and not the right way to do it.

What I want to learn is how to store the images such that the Gallery app
can find them. Although I did find an example of initiating the built-in
camera app to take a picture via an Intent, then getting control back so
that you can use the image (and I assume it's also stored in the right
location/format for gallery to see it). I am considering that for my own app
since the built-in camera app will use flash, focus, and other capabilities
that I don't have to recreate in my own app.


On Sun, Feb 13, 2011 at 11:42 PM, Jayanthi jaia...@gmail.com wrote:

 Hi,
uses-feature android:name=android.hardware.camera /
  uses-feature android:name=android.hardware.camera.autofocus /
 uses-permission android:name=android.permission.CAMERA /
  uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE /

 I gave all the above permission

 On Feb 14, 12:38 pm, guru sagar gurusagar...@gmail.com wrote:
  hi,
 
check permissons in android manifest file
 
  On Mon, Feb 14, 2011 at 12:59 PM, Jayanthi jaia...@gmail.com wrote:
   Hi Dude,
   I worked on camera preview for taking live image , Here I
   get following Exception
 
   java.io.FileNotFoundException: /sdcard/1297668185153.jpg (Permission
   denied)
 
   image is not saved in sd card can anyone tell me  where  i did
   mistake .
 
   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
 
 

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


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

Re: [android-developers] Re: answering machine in android

2011-02-14 Thread Kevin Duffey
I am pretty sure I read someone else doing something like this and I think
the answer was that while you might be able to record the conversation, you
can't play audio through the call for the other side to hear. Short of using
speaker phone to play audio and hope the mic picks up the speaker output, I
don't know if you will be able to play a message to the person on the other
end of the call.


On Sun, Feb 13, 2011 at 10:49 PM, Androidbaby hoto...@gmail.com wrote:

 Just a simple answer is yes you can record call conversation.

 Currently i am leaving to attend a meeting and will update you about
 code shortly.



 On Feb 7, 1:51 pm, deepak kumar deepu.007ro...@gmail.com wrote:
  Dear Sir/Madam,
  We are trying to develop an application based on
  answering machine, in which the application has to receive the call
  during certain period, has to answer the call by playing a pre-
  recorded message and has to record the message of the caller. The
  application has to allow the user to play the message whenever he is
  free. Here we had few questions in mind and wanted to confirm if this
  was possible.
 
  1. can we receive an incoming call using an application??
  2. can we record a call conversation??

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


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

Re: [android-developers] Re: Share some of my work - DragDrop framework

2011-02-14 Thread Kevin Duffey
This is pretty interesting.. trying to figure what use it would be on a
phone device.. what sort of app may take advantage of this. On a tablet
though, I can see this being very useful, for like mail apps and such. Do
you have any ideas what sort of apps would use this?


On Mon, Feb 14, 2011 at 3:14 PM, JAlexoid (Aleksandr Panzin) 
jalex...@gmail.com wrote:

 In Java CameCasing is also the norm. But methodNames, ClassNames and
 fieldNames are CamelCased(See the difference in came casing). Just not
 packages. Because packages == directories.

 Thnx for BSD'ing the code. LGPL would have been acceptable also for
 components.

 PS: Since you are the sole developer you can change the license to
 whatever you like any time. Just people that got your code under
 previous license will have that code under that license that was
 effective at the time.

 On 14 фев, 09:59, Oded O. olb...@gmail.com wrote:
  Sorry for that...
  I'm coming from the .NET world (5+ years of C# development) where
  CamelCasing is the way to go...
  I'm still adjusting, and had no way of knowing that upper-cased
 namespaces
  can be problematic
 
  BTW, why is this an issue, and on what machines?

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


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

Re: [android-developers] Re: Poor relevancy in Android market since yesterday.

2011-02-12 Thread Kevin Duffey
Can someone get into google, figure out what sort of algorithm they are
using, so we can adjust our apps descriptions to always appear at the top?

On Sat, Feb 12, 2011 at 8:34 AM, Jon F Hancock jonfhanc...@gmail.comwrote:

 Come to think of it, Radiant HD popped to the top of the list when I
 searched for Facebook the other day.  I think it is because Radiant HD
 describes itself as being able to share top scores on Facebook.  It still
 shouldn't show up above Facebook though.

 For a long time, my app, LauncherPro Icons, has shown above LauncherPro for
 a search for launcherpro despite LP having 1,000,000+ downloads and I have
 about 30,000.


 On Sat, Feb 12, 2011 at 5:23 AM, Richard Leggett 
 richard.legg...@gmail.com wrote:

 Something weird is going on here, for example if you search on the Market
 website for twitter you get the official app, and also games like Radiant
 HD, but you don't get TweetDeck which has Twitter in the title and does
 appear as the 2nd related app for Twitter (official).

 Very strange.


 On 12 Feb 2011, at 00:10, TreKing wrote:

 On Fri, Feb 11, 2011 at 3:53 PM, Nathan critter...@crittermap.comwrote:

 On Feb 11, 1:19 pm, JonFHancock jonfhanc...@gmail.com wrote:
  Getting a little cynical these days, huh TreKing? ;-)
 

 These days?


 LOL - you took my response :-P


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


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


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


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


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

Re: [android-developers] Re: Android MVC Framework

2011-02-12 Thread Kevin Duffey
I am a little confused about this android MVC. I always associate MVC with a
server side architecture, such as Struts, or Spring Web. I thought at first
the OP was asking about building a web server on an android device using
MVC. So I am not sure I see how MVC is relevant to android apps themselves
per se?

On Sat, Feb 12, 2011 at 7:28 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 First, welcome to the Android dev community! :-)

 Whether the Android is MVC framework or not, why are you specifically
 searching for one?
 I would just learn the Android SDK, its concepts and start creating my app
 that fits these concepts, MVC or not.

 But if your question is a question whether Android allows/helps you to
 seperate data from controller(s) and view(s), then the answer is 'yes' (see
 Indicator's post earlier). :-)
 Still, you could code you app in such a way that would violate the MVC
 principles.

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


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

Re: [android-developers] Re: In app billing...

2011-02-12 Thread Kevin Duffey
So one thing I haven't found yet.. is in-app only for 2.3 and later apps? Or
is the SDK going to work for 2.0+? Given that 2.1 and 2.2 are the majority
market, with 2.3 going to be building up this year, I am fine with it
targeting that, but if it's 2.3 and later, that kinda sucks because it will
be a while before we can really tap into a larger market of 2.3+ devices.


On Sat, Feb 12, 2011 at 1:54 AM, Miguel Morales therevolti...@gmail.comwrote:

 I have tried to implement code using the provided example project.
 Although you can get some work done, the lack of a 2.3 market version
 really hurts testing.

 I have tried running the Dungeon app on a 1.6 device with no luck.

 On Sat, Feb 5, 2011 at 2:14 PM, fooyee reloadingthej...@gmail.com wrote:
  switching gears a bit, has anyone tried out the in-app billing
  (dungeon.java) sample provided by Google? Is it working OK?
 
  On Feb 5, 9:47 pm, Justin Giles jtgi...@gmail.com wrote:
  Ok, you two.  Now I'm hungry for a donut while I'm doing my laundry!
 
 
 
 
 
 
 
  On Sat, Feb 5, 2011 at 10:10 AM, Kostya Vasilyev kmans...@gmail.com
 wrote:
   05.02.2011 18:59, Maps.Huge.Info (Maps API Guru) пишет:
 
I believe being able to provide refunds is important. When you go to
 a
   real-world store
 
   Since a user upgrading to a pro version isn't buying anything
   tangible, it's more like going into a donut shop, buying a donut and
   eating it. How many consumers ask for refunds at that point? Under
   some circumstances, a refund is called for but not in the same way as
   a consumer returning an unopened package that can be resold.
 
   That's a different type of product, more like a health potion in an
 RPG
   game. You might call it a virtual consumable.
 
To me, issuing a refund for a software product is only to be done
   under some unusual circumstance not because of buyer remorse. The
   donut has been eaten and that's that.
 
   For a virtual consumable, yes.
 
   But I'm talking specifically about upgrading from lite to pro, which
 is not
   a consumable at all.
 
   It's the right to use the software in a certain way, to repeatedly
 perform
   certain tasks, and is more like buying... hmm... a microwave or a
 washing
   machine, not a donut.
 
-John Coryat
 
   --
   Kostya Vasilyev -- WiFi Manager + pretty widget --
  http://kmansoft.wordpress.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.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG: http://developingthedream.blogspot.com/,
 http://www.youtube.com/user/revoltingx

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


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

Re: [android-developers] Re: Sliding Drawer question

2011-02-12 Thread Kevin Duffey
Reminds me of trying to develop a web site with using JSF.. the visual
editors suck at providing any sense of the actual layout and look and feel.
Always better to do it in code and refresh the changes in the browser.

On Sat, Feb 12, 2011 at 4:45 AM, Cliff Davies cliff.dav...@gmail.comwrote:

 Out of interest, what are the other reasons? I find the visual editor
 doesn't give an exact idea of the final layout (doesn't auto-scale properly,
 show custom views sometimes or show sliding drawers at all) but it helps get
 the basic framework up and running quickly
 On 12 Feb 2011 10:46, Indicator Veritatis mej1...@yahoo.com wrote:
  I'm not surprised the visual editors in ADT are so far behind. It
  really is difficult to code such things. That is why I never use the
  visual editors.
 
  Actually, there are other reasons, too.
 
  On Feb 10, 10:59 am, Salsero69 vaillancourt@gmail.com wrote:
  I'm having the same issue.  Eclipse allows me to add it, but then
  can't do visual editing which sucks.
 
  On Jan 15, 11:24 pm, Scott Deutsch surger...@gmail.com wrote: Hello
 group.
 
   I tried to add a Sliding Drawer through the visual xml builder thingy,
   but it is telling me The following classes cannot be found
   SlidingDrawer. Why is that?
 
   They they take that out in the SDK or something?
 
   What should I try?
 
   Thanks 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

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


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

Re: [android-developers] Checkout transitioning to monthly payouts?

2011-02-11 Thread Kevin Duffey
Wow.that does suck. I can't believe they couldn't have put something on the
checkout page. I bet a lot of developers are very pissed right now.. not a
good way to get developers on board with sudden changes and a mere email
that from what many said they didn't get. There own page isn't updated yet
to reflect this..heck I just signed up a couple days ago and it said daily
payout.


On Fri, Feb 11, 2011 at 7:44 AM, TreKing treking...@gmail.com wrote:

 On Fri, Feb 11, 2011 at 12:58 AM, JonFHancock jonfhanc...@gmail.comwrote:

 Developers should have been notified via multiple avenues


 Yes, yes they should have.


 At this point Google really needs to issue a formal apology to developers,


 Thank you, you made me laugh. =)


 and either offer developers the option to keep daily payouts, or delay
 the transition for a month to allow developers who have been living day
 to day to save up.


 Yeah, that's not going to happen either. Remember you're dealing with here.
 These are probably the same people that though switching from a 1 day refund
 window to 15 minutes with petty much no forewarning to users was a good
 idea.


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


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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] splash image when app is loading

2011-02-11 Thread Kevin Duffey
I was going to suggest something similar to what Kostya suggested. As he
said, if you're taking time to load things in an onCreate, first you want to
move it to a thread (AsyncTask). What I do is I've found one of the examples
out there that sets my launcher to the SplashScreenActivity. In my case, I
do it just for showing info about the app, author, etc. So I have a timer
counting down for 15 seconds (which is way too long). If the user touches
the screen at any point, it then times out immediately. Either way, it
starts my main activity at that point. As Kostya said, in your case, once
your background loading stuff is done, start the main activity. This way
they see your splash screen until all the loading is done. You can even make
an animated splash screen to help alleviate the amount of time it seems a
person is waiting.


On Fri, Feb 11, 2011 at 11:31 AM, Danielle Murkerson dmurkerso...@gmail.com
 wrote:

 Yes this may be the way to go for me. My main activity has to setup and
 prepare a couple of MediaPlayer objects to play some streaming audio...this
 may take a while on a slow connection and I've seen some examples that use
 the onPostExecute method of an AsyncTask to tell the activity when to stop
 displaying the splash image.

 Thanks for the tips...I'll look into this more.


 On Fri, Feb 11, 2011 at 2:10 PM, Kostya Vasilyev kmans...@gmail.comwrote:

 11.02.2011 21:53, Danielle Murkerson пишет:

  Ok...so I would need to use some kind of listener for the between time of
 the app loading and starting? I mean I see this all the time on other apps
 so I was just wondering how they do this?


 The distinction, if any, between loading and starting, is entirely in your
 code.

 Android brings your process into memory, creates the main activity, and
 starts calling its lifecycle methods: onCreate, onStart, onResume, and off
 you go.

 If you have a lengthly operation (to load textures in a game, unpack
 compressed RSS stream, etc.), then you can:

 1. have your main activity set its content to a splash image;
 2. schedule lengthy operations on a background thread, AsyncTask (or any
 other way that doesn't tie up the UI);
 3. handshake back to the main activity when those lengthy operations are
 completed, and present the UI for interacting with your application.

 Item 2 is a good idea anyway, because if you run a lengthy operation in
 one of the above lifecycle callbacks (onCreate, etc.), and it exceeds the
 time limit allowed by Android, then the user will see the ANR popup
 (Application Not Responding - giving the user a choice to kill it or to give
 it more time).



 Usually you click the launcher icon and then an image is displayed for a
 short time and then the app starts. I assumed the image is used as a
 placeholder while the app finishes loading.


 I believe Android just animates a mock-up of the activity, based on what
 it can gather from the manifest (the color scheme and the title). This
 happens before onCreate.

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com

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


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


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

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Kevin Duffey
First, are you using debug mode with your physical device plugged in to the
USB slot and deploying that way? It will allow you to watch the LogCat
output, you can put Log.i() info throughout your code to try to trace it or
use the debugger and break points, whichever your fancy. You may see why one
device is taking a long time and the other isnt.

As for the tabs and what to do.. I would create a completely new Activity,
called SplashActivity or whatever. Separate layout xml for it. Put that as
your starting launcher. From there, you would launch your activity that sets
up the tabs. I haven't done anything with tabs yet.. is ti required that
each tab be a separate activity.. is that the normal way it works (anyone)?
I would have thought you could use a single activity and listen for tab
changes and set the content view to a new view for that tab, rather than
separate activities for each. If you can do that, then you load all your
data during the splash screen, then start the tab activity and you are good
to go. If it is pretty common or the only way to do tabs is with separate
activities, then generally I take the lazy approach. A user may never select
any other tab, so why load the data for it up front? That takes up
resources. If you have too much data, you could degrade the device
performance, and cause android to shut down other running applications
(er..running but in pause mode of course). If each tab requires a couple
seconds or so to load data, maybe in the tab switching handler, put up a
simple alert box with a spinning meter to show something is happening. I'd
also look at releasing the previously selected tabs data. From what I've
learned, even with 256MB up to 1GB or more ram, you are still very limited
in memory because of the potential of other apps running (again, in pause
mode while your app is up on top) and consuming resources. You want to try
to play nice with the overall idea of multiple apps running as much as
possible. Don't forget to release all your resources in the onPause handler
for each activity, and handle those events properly.


On Fri, Feb 11, 2011 at 12:13 PM, Danielle Murkerson dmurkerso...@gmail.com
 wrote:

 Yes this makes sense...I have a question regarding how my app is set up
 though...I'm using a tabbed interface where each tab launches a new
 activity. So basically the activity that would launch first sets up the tabs
 and then starts the activity that is in the first tab...So would I put my
 splash screen code in the activity that sets up the tabs, or put it in the
 activity that the user actually sees once the tabs are done setting up?

 I'm new to android programming and I've basically built my app from seeing
 examples of similar things that I want to accomplish in my app. This came
 about because I got the app running perfectly in the emulator...but when I
 tested it on two different real devices, it wouldn't load at all on one and
 it seemed to work ok on the other.

 It seemed to install correctly on the device that it wouldn't load on, it
 just never got past the black screen before the first activity starts. And
 then it would take forever to even try and go back to the device's home
 screen. So I'm trying to go back and look at my code and see if there is
 something I could re-work to make it more efficient or something.


 On Fri, Feb 11, 2011 at 3:06 PM, Kevin Duffey andjar...@gmail.com wrote:

 I was going to suggest something similar to what Kostya suggested. As he
 said, if you're taking time to load things in an onCreate, first you want to
 move it to a thread (AsyncTask). What I do is I've found one of the examples
 out there that sets my launcher to the SplashScreenActivity. In my case, I
 do it just for showing info about the app, author, etc. So I have a timer
 counting down for 15 seconds (which is way too long). If the user touches
 the screen at any point, it then times out immediately. Either way, it
 starts my main activity at that point. As Kostya said, in your case, once
 your background loading stuff is done, start the main activity. This way
 they see your splash screen until all the loading is done. You can even make
 an animated splash screen to help alleviate the amount of time it seems a
 person is waiting.


 On Fri, Feb 11, 2011 at 11:31 AM, Danielle Murkerson 
 dmurkerso...@gmail.com wrote:

 Yes this may be the way to go for me. My main activity has to setup and
 prepare a couple of MediaPlayer objects to play some streaming audio...this
 may take a while on a slow connection and I've seen some examples that use
 the onPostExecute method of an AsyncTask to tell the activity when to stop
 displaying the splash image.

 Thanks for the tips...I'll look into this more.


 On Fri, Feb 11, 2011 at 2:10 PM, Kostya Vasilyev kmans...@gmail.comwrote:

 11.02.2011 21:53, Danielle Murkerson пишет:

  Ok...so I would need to use some kind of listener for the between time
 of the app loading and starting? I mean I see this all the time

Re: [android-developers] uninstall Popup Questions dialog

2011-02-10 Thread Kevin Duffey
I don't think it pops up always.. I get the uninstal, the OK button that it
was uninstalled, and back to my Manage apps page. I seldom see it actually.
I am surprised however that we can't access that data. What's the point of
even asking why someone uninstalled a specific app? I suppose google uses
the info to determine why.. but it's less useful to them than to us
developers.

So how do developers figure out install/uninstall rate? I always see in the
market 1000-5000, 100,000-250,000 etc etc. Does that number mean unique
installs.. or does that count for anyone who has reinstalled it? Especially
on free apps where you can keep on installing/uninstalling it over and over.

There are many apps for like $2, or more, that claim  250,000 installs..
that's some good money! I want to be part of that lol.


On Thu, Feb 10, 2011 at 8:03 AM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 On 10 February 2011 15:44, Brill Pappin br...@pappin.ca wrote:
  Sometimes when I uninstall an app, I get a popup dialog that asks me to
 tell
  it why I'm uninstalling.

 It pops up always unless you leave app details page before uninstall
 finishes

  Does anyone know if this is built into the market or if its a custom
  component?

 Market

  If its built into the market, can we acces the data?

 Doubt so.

  On average I get about a 60-70% retention on my keyboards but I'm
 interested
  in finding out why the other 30% of users cancel the purchase/uninstall.

 Doubt this data to be of any real value. Users give useless comments in
 Market,
 do not bother to mail you when they face any bug, so why you expect
 they suddenly
 start to giving answers of any value there? I expect majority of
 votes would be 1st answer.
 Because it's first one.

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


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

Re: [android-developers] Re: Getting Owner and Contact Data

2011-02-10 Thread Kevin Duffey
Well, I would think the only thing we can do if there is no actual me
record, is to pull the accounts connected to, and get emails from those.. if
there is only 1, use it, if more than 1, offer the end user a choice.
However, at the very least I'd still ask the end user if that is the email
they wish to use rather than just assume. Or populate the email (if there is
only 1) into a field that the user can verify before sending. In my case
it's not a big deal, didn't realize there wasn't a definitive me record
that we could access given that exactly like Dianne said.. if they download
the app, they have a google account set up.

On Thu, Feb 10, 2011 at 12:00 AM, JAlexoid (Aleksandr Panzin) 
jalex...@gmail.com wrote:

 But it is one of the accounts of type Google on the system.

 On 9 фев, 22:53, Dianne Hackborn hack...@android.com wrote:
  There is not a phone's e-mail address.  If the user downloaded your app
  from Market, they must have a Google account set up, but they may have
  multiple accounts.  And anyway, that account is part of the Google
 services;
  this is not something that is part of the actual Android platform.
 
 
 
  On Wed, Feb 9, 2011 at 11:10 AM, Kevin Duffey andjar...@gmail.com
 wrote:
   Heh..I started using that owner permission too.. glad to know it will
 be
   gone (or is it gone in 2.3?). Question is, when a person buys a new
 android
   phone, at least on Verizon, they generally can attach the phone to a
 google
   account. Is there some way to get that particular users info, or is the
 only
   way an app can do this is to ask for it from the user?
 
   I am messing around with an app where I'd like to send some data from
 phone
   to a service, and some of that data is the owner of the phone's email
   address. From what your saying Dianne, there is no way to discern this
   information from the contacts database or accounts set up? So, the only
 way
   to guarantee it every time is to ask for it in the app?
 
   Thanks
 
   On Tue, Sep 7, 2010 at 5:49 PM, Dianne Hackborn hack...@android.com
 wrote:
 
   Android has no concept of an owner.  Those permissions don't do
 anything
   (and will be gone in the next release).
 
   On Wed, Sep 1, 2010 at 12:11 PM, Dritan djdea...@gmail.com wrote:
 
   Hello,
 
   I'm writing an app on to make use of the owner's data (first, last,
   email(s), phone(s)) and one or more contacts the owner can choose.
 The
   application will find common patterns and whatnot.
 
   I have given my app READ_CONTACTS, WRITE_CONTACTS, READ_OWNER_DATA,
   WRITE_OWNER_DATA permissions in my AndroidManifest.xml
 
   Initially I used the People class which was deprecated, then I
   switched to ContactsContract.Contacts...
   to try pull explicitly the first (given), middle, and last (family)
   names, then phone numbers, emails, etc... but I cannot seem to be
 able
   to fetch these columns via:
 
   Cursor c1 =
   getContentResolver().query(ContactsContract.Data.CONTENT_URI, null,
   ContactsContract.CommonDataKinds.StructuredName.CONTACT_ID + = ?,
   new String[]{id}, null);
 
   Or even this
 
   Cursor cc =
   getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
   null, null,null, null);
   if (cc.moveToFirst()){
  String [] names = cc.getColumnNames();
  for (int j=0; jnames.length; j++){
  Log.d(Contacts, COL NAME:
   +names[j]);
  Log.d(Contacts, COL VALUE:
+cc.getString(cc.getColumnIndexOrThrow(names[j]))+\n\n);
  }
 
  }
 
   to show all column names but I'm not getting any relevant
 information.
   I can get the phone number (data 0 or data 1), but not first, middle,
   and last. I need to access as much of the user's data for the
   algorithm to work as it compares it with other people to find trends
   and patterns. The more complete the data the better.
 
   Here's another alternative way I tried with the first cursor c1:
 
   String lookup =
   c1.getString(c.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY));
   Cursor cc =
   getContentResolver().query(
   Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_LOOKUP_URI,
   lookup), null, null, null, null);
 
   and still I cannot get the owner's or a contact's data that I want.
 
   Does anyone have any clue as to why I can't get the contact fields I
   need... or how I can get them?
 
   I really appreciate any insights.
   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
 
   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com
 
   Note: please don't

Re: [android-developers] Re: can we upgrade paid version to free version with add.

2011-02-10 Thread Kevin Duffey
From my understanding of ads, you need a huge number of users running it to
earn any sort of money. Probably in the millions running it every day to
earn a decent amount. Not many apps out there that do that. Android is still
too young and too many expect most things free.

Have you looked at in-app purchases? Not sure what version of android that
you must support for that to work with or if it's just an SDK download that
works with any version, but you could entice users to buy virtual goods or
something in the app to make some money.


On Thu, Feb 10, 2011 at 6:47 AM, Brill Pappin br...@pappin.ca wrote:

 Try putting out a version with limited features, but use it to push users
 to your paid version.

 I do this with one of my keyboards, and it seems to work to some degree.

 - Brill Pappin

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


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

Re: [android-developers] Re: Camerapreview

2011-02-10 Thread Kevin Duffey
@Jay.. did you set the right permissions to access/write files? Make sure
you do that or it wont work. Also, google (or search here) on how to access
the sdcard. I forget off the top of my head.

@Kevin.. you can post it using HttpClient, and on the server side (assuming
Java) use the apache FileUpload servlet to get it in, or use Jersey (RESTful
api) and handle a POST in a method with @FilePathParam as a parameter to get
the file. To post a file as multipart from android, you'll need to add a
couple jar files. My current app is about 1.6MB due to the jar files.. don't
think that is too big, but it's a small bit of functionality. I'd love to
find a way to handle multipart using the built in HttpClient without having
to use 3rd party jars.


On Thu, Feb 10, 2011 at 3:32 AM, Jayanthi jaia...@gmail.com wrote:

 Hi ,
 I am getting this error :ERROR/Mms/media(215):
 java.io.FileNotFoundException: /sdcard/1297337002449.jpg (No such file
 or directory)

 below is the path where I write the file

 path = String.format(/sdcard/%d.jpg, System.currentTimeMillis());
Log.e(Image,from Sdcard + path);

outStream = new FileOutputStream(path);
outStream.write(data);
outStream.close();
 Am I wrong of storing image in SDcard

 Thanks,

 On Feb 9, 11:33 pm, Kevin Duffey andjar...@gmail.com wrote:
  Email intent.. which you can use to bring up email app and attach photo
 to
  it, to/subject/etc lines
 
  final Intent i = new Intent(Intent.ACTION_SEND);
  i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  i.setType(image/jpg);
  i.putExtra(android.content.Intent.EXTRA_EMAIL,
  new String[] {yourem...@yourcompany.com });
  i.putExtra(android.content.Intent.EXTRA_SUBJECT,
  Subject);
  i.putExtra(android.content.Intent.EXTRA_TEXT,
  Body of email here);
 
  // attach saved photo from sdcard location
  i.putExtra(Intent.EXTRA_STREAM,
  Uri.parse(file:///sdcard/data/photo.jpg));
  // pop up the email program for user to preview and send from
  startActivity(i);
 
  As for your first issue, in your camera takepicture handler, you save the
  image to whever you want. That is the path you use in the Uri.parse()
 call
  above.
 
  On Tue, Feb 8, 2011 at 11:34 PM, Jayanthi jaia...@gmail.com wrote:
   Yes , I have seen loads of example but now I am trying this for
   Samsung Galaxy Tab ,here my problem is I couldn't able to set Image
   path to ImageButton
   Thanks,
 
   On Feb 9, 1:57 am, Joe McCann joseph.is...@gmail.com wrote:
Seriously, did you google it?  There are loads of examples.
 
On Feb 8, 3:12 am, Jayanthi jaia...@gmail.com wrote:
 
 Hi,
 I am new to android I want to send mail with image attached to
 it
 I need solution for two question
 1.How to get the path of image saved in sd card using camera
 preview
 2.How to send mail by attaching image
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 

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


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

Re: [android-developers] Re: Server Response

2011-02-10 Thread Kevin Duffey
Dang too late.. lol.. use responseText.trim().equalsIgnoreCase(true). Of
course I'd check for null first..

On Thu, Feb 10, 2011 at 3:18 AM, Samsung Galaxy atif.musad...@gmail.comwrote:

 Thanks All its working :-)

 On Feb 10, 11:57 am, Kostya Vasilyev kmans...@gmail.com wrote:
  The empty line is due to there being a newline character in your
  server's response.
 
  Trim it before testing for true / false:
 
  response = response.trim();
 
  -- Kostya
 
  10.02.2011 13:50, Samsung Galaxy пишет:
 
 
 
 
 
 
 
 
 
   Hi, Not executing :-(
 
   Server Side
   //Script
   if($count==1){
   echo true;
   }else {
   echo false;
   }
   ?
 
   Client Side
   ...
 
  if (true.equals(responseText)){
  Log.i(Output,responseText);
  responseText = here it should be true;
  Toast.makeText( getApplicationContext(),
   responseText,Toast.LENGTH_SHORT).show();
 
  }else{
  Log.i(Output,responseText);
  responseText = here it should be false;
  Toast.makeText( getApplicationContext(),
   responseText,Toast.LENGTH_SHORT).show();
  }
   
 
   Now what ever happen it shows me here it should be false it means
   always condition is false and only else part will be executed. where
   as in Logcat Output variable shows me both values true  false
   depending on the parameter send to the server.
 
   If part is not executing even on true it always goes to else part of
   the condition,
   IN LOG CAT it is showing me value of Output in true case
   02-10 11:47:20.720: INFO/Output(1358):
   02-10 11:47:20.720: INFO/Output(1358): true
 
   I donot know why there is empty output above true ? may be this is the
   reason that its always going to false. Is it a white space ? if yes
   how to remove it with java ? Please help.
 
   Atif
 
   On Feb 10, 12:50 am, TreKingtreking...@gmail.com  wrote:
   On Wed, Feb 9, 2011 at 5:24 PM, Atif Musaddaqatif.musad...@gmail.com
 wrote:
 
   Can any one help me and tell me what i am doing wrong here ? why it
 is
   not comparing the condition ? responseText is already string and
   also comparing String
  http://www.google.com/search?q=how+to+compare+strings+in+javahttp://w.
 ..
 
  
 ---
 --
   TreKinghttp://sites.google.com/site/rezmobileapps/treking  -
 Chicago
   transit tracking app for Android-powered devices
 
  --
  Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com

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


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

Re: [android-developers] Re: Ginger bread - NFC Card Emulation p2p

2011-02-10 Thread Kevin Duffey
I am interested in playing around with NFC. I don't have a device yet..
waiting on the Bionic and/or xoom... but what do you use to test the android
device with? Is there a NFC device we can buy to test our NFC android device
with? Also, 2.3.3? What phones actually run this? I thought at this point
only Nexus S was 2.3 device available, and I am stuck on my verizon moto
droid for another 6 months. Do you guys just buy hardware outright to test
it? Obviously the emulator can't be used unless like maps, there is a
setting to simulate a NFC device near by?

On Thu, Feb 10, 2011 at 2:54 AM, Faboom bu...@uni-koblenz.de wrote:

 Hi there,

 is card emulation mode supported in 2.3.3 ?

 Cheers,
 Fabian

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


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

Re: [android-developers] Re: Playing an audio file during a call

2011-02-10 Thread Kevin Duffey
I can tell you that GPS continues to talk while on a call.. but what the
caller on the other end hears is the speaker phone output of the gps talking
going into the mic, not a direct audio feed. I suppose if there is a way to
make sure the speaker phone is turned on in your app and you can turn up the
volume all via code, that may work.

On Thu, Feb 10, 2011 at 1:35 AM, Gazy gareth.mur...@gmail.com wrote:

 Hi guys,

 Are you sure this isnt possible? How do the sound board applications
 work so well if this isnt possible?

 Gareth

 On Feb 4, 5:14 am, Mark Murphy mmur...@commonsware.com wrote:
  On Fri, Feb 4, 2011 at 12:10 AM, Nagesh nagesh.go...@gmail.com wrote:
   I am new to android development, i am developing one application which
   needs to play an audio song to callee when call is lifted by callee,
   and automatically call has to be disconnected automatically when audio
   song playing completed . i tried to find in android API for any
   classes or methods to do this, but failed to find... please help me
   how to do this..
   your answer could be helpful to me...please do reply
 
  This is not possible, as you do not have access to the in-call audio in
 Android.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  Android Training in Atlanta:http://bignerdranch.com/classes/android

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


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

Re: [android-developers] Re: Fetch data from android service to HTML

2011-02-10 Thread Kevin Duffey
You gave no reason as to why you would do this? By this I am trying to
understand if there is a better way to do this, as generally from what I've
read, and based on small size and limited battery of phones, you don't
generally want to run a server on it. Maybe you are doing something the
wrong way, hence why I am asking why you need to do this. If your intention
is to actually allow someone to run a mobile server, possibly with say, wifi
hotspot capabilities so that you can run a web server for demos or something
without having to take a laptop, then..maybe it might make some sense. But
if you're trying to run a server so that you can pull data off the phone
from a web server somewhere else.. there are better ways to do this.

As for actually having a browser reach the phone, the only way that would be
possible that I know if is if the phone is on wifi, and you obtain the
phones ip address. Then in the browser you use the ip address. I don't know
if a phone on 3g/4g gets a viable ip address that you can use outside from
anywhere or not. I would guess not. Much like many ISPs don't want you
running a server at home, I would think the carriers don't want or allow for
a static IP for example on their phones. If your server software on the
phone can obtain the ip the phone is assigned, then update no-ip.com or
dyndns.org for example, and you can then give out a domain name that is tied
to one of those accounts, it may be possible to reach the phone from
anywhere assuming the dhcp ip on the phone is updated properly and it works.
I am curious though if the carriers might block get requests and such to
phones.

On Wed, Feb 9, 2011 at 8:54 PM, SREEHARI harisre...@gmail.com wrote:

 Hi Kevin,

 What I need is to fetch data from a service running in the  phone/
 emulator (android device) to a browser running in some other device.
 Let the second device be a PC. That s what I asked how to get data in
 a normal browser from an android application.

 Regards,
 Sreehari.

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


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

Re: [android-developers] [Camera API] Programmatically Update Flash Setting (or any Camera.Parameters)

2011-02-10 Thread Kevin Duffey
I was wondering the very same thing. Good question.

On Thu, Feb 10, 2011 at 9:28 AM, Joe McCann joseph.is...@gmail.com wrote:

 I'm trying to avoid having to rewrite the Android source for the
 native camera app (as it is a cluster***k of code), but am curious as
 to the proper, most efficient away of being able to update the Camera
 Parameters AFTER the SurfaceView of the Camera has been created and
 opened.

 For example, if you have a button that toggles the setting of On, Off,
 or Auto for the Flash, this initial parameter value is set when the
 Camera is initialized (let's say Auto by default, if, of course, the
 device supports it).  If you want to switch it to Off, WHILE the
 current view is the instance of the Camera/SurfaceView, you press the
 button and it sets the new parameter to the camera to OFF;
 however, the CURRENT instance of the camera does not update it's
 camera settings, meaning if you take the picture the Auto flash
 setting is still enabled.

 Now, if you say launch a new Activity, like a Preferences screen, and
 then go back to the Camera view, the camera now has the OFF
 setting.  This clearly has to do with the surfaceChanged() method as
 it is grabbing the NEW camera parameters and updating the camera
 settings to reflect that.

 In a nutshell, I'm wondering if there is a way inside to update the
 CURRENT instance of the Camera and what a preferred approach would be.

 Thanks!

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

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

2011-02-10 Thread Kevin Duffey
 of us are left to guess and
   speculate. I'd much rather we didn't have to.
 
   On Feb 8, 1:14 am, Dianne Hackborn hack...@android.com wrote:
   The Honeycomb framework APIs are introduced in 3.0.  Any platform
 that has
   them would be 3.0 or later.  (And more important, any platform that
 has them
   would have an API level that is at least that of Honeycomb.)
 
   Rumors, so much fun. :p
 
   On Mon, Feb 7, 2011 at 8:43 PM, Kevin Duffey andjar...@gmail.com
 wrote:
There is a 2.4 in the works if the rumor mill is correct, from my
understanding of potentially bad sources, 2.4 will be a sort of
 reduced
honeycomb for phones, hopefully giving it the same UI but perhaps a
 few
different things? I am really curious how this is going to play
 out.
Naturally the apple fanboys are shouting fragmentation again, but I
 am
really interested in the UI differences between 3.0 and any new
 version for
phones that come out. Will phones go the way of tablets, no
 buttons, same
UI, etc? I personally hope so, the 3.0 UI looks fantastic.
 
On Mon, Feb 7, 2011 at 5:17 PM, Mark Murphy 
 mmur...@commonsware.comwrote:
 
My initial reaction was that it was an homage to Spinal Tap.
 
On Mon, Feb 7, 2011 at 7:47 PM, Ed Burnette 
 ed.burne...@gmail.com
wrote:
 11? Does that mean the next 2.x release will be API level 10 and
 that
 there will only be one more 2.x release with API changes? Or am
 I
 reading too much into it? I was wondering how that numbering
 hiccup
 was going to be handled.
 
 On Feb 7, 3:01 am, Dianne Hackborn hack...@android.com wrote:
 I don't know why it says that about minSdkVersion.  The value
 of
 minSdkVersion doesn't matter; all that matters is that
 targetSdkVersion=Honeycomb.  (Or 11 in the final API.)
 
 --
 You received this message because you are subscribed to the
 Google
 Groups Android Developers group.
 To post to this group, send email to
android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
--
Mark Murphy (a Commons Guy)
   http://commonsware.com|http://github.com/commonsguy
   http://commonsware.com/blog|http://twitter.com/commonsguy
 
Android 2.3 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
 
 --
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
   --
   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
 
  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.http://developer.android.com|http://tools.android.com
 
  Please do not send me questions directly. Thanks!

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




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

Re: [android-developers] Re: Programmatically Update Flash Setting (or any Camera.Parameters)

2011-02-10 Thread Kevin Duffey
He's saying that calling that after the preview has been set up.. doesn't
seem to immediately take affect. You either have to recreate the surface to
change camera parameters, or use a separate activity to pause the current
camera preview activity, then when that activity closes, it causes a
onSurfaceChanged() call which then picks up the change. I am guessing the OP
wants to do something like the camera app does (at least on my original
droid) where you can flip some switches/buttons while the preview is running
and they affect how the camera works without having to recreate the preview
surfaceview each time a change occurs. If you can turn flash on/off, zoom,
auto focus on/off, etc with immediate changes that when the picture is
taken, are applied.

On Thu, Feb 10, 2011 at 11:42 AM, Stephen Lebed srle...@gmail.com wrote:

 Unless I dont understand the question correctly,
 Camera.setParameters() should do what you need.

 Hope this helps.

 Stephen Lebed
 Developer
 http://apps.mechnology.com


 On Feb 10, 9:28 am, Joe McCann joseph.is...@gmail.com wrote:
  I'm trying to avoid having to rewrite the Android source for the
  native camera app (as it is a cluster***k of code), but am curious as
  to the proper, most efficient away of being able to update the Camera
  Parameters AFTER the SurfaceView of the Camera has been created and
  opened.
 
  For example, if you have a button that toggles the setting of On, Off,
  or Auto for the Flash, this initial parameter value is set when the
  Camera is initialized (let's say Auto by default, if, of course, the
  device supports it).  If you want to switch it to Off, WHILE the
  current view is the instance of the Camera/SurfaceView, you press the
  button and it sets the new parameter to the camera to OFF;
  however, the CURRENT instance of the camera does not update it's
  camera settings, meaning if you take the picture the Auto flash
  setting is still enabled.
 
  Now, if you say launch a new Activity, like a Preferences screen, and
  then go back to the Camera view, the camera now has the OFF
  setting.  This clearly has to do with the surfaceChanged() method as
  it is grabbing the NEW camera parameters and updating the camera
  settings to reflect that.
 
  In a nutshell, I'm wondering if there is a way inside to update the
  CURRENT instance of the Camera and what a preferred approach would be.
 
  Thanks!

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


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

Re: [android-developers] Re: can we upgrade paid version to free version with add.

2011-02-10 Thread Kevin Duffey
Assuming you can use the new in-app SDK for any version of android (1.6
later I hope), you could give away free and provide some in-app buys if that
is possible. Really depends on the app I guess. This feature is probably
best applied to games, but I am sure other apps can do things, like provide
a support my kids by donating a buck button or something.

On Thu, Feb 10, 2011 at 1:28 PM, Russell DuRoss r2s...@gmail.com wrote:

 I have seen ad click rates anywhere from .1% to 1% of ad impressions.
 So for 1,000 app executions (assuming only one ad impression per
 execution), you could expact maybe about 1 - 10 ad clicks.  At 10
 cents per click (could be higher or lower) that would be 10 cents to
 $1.00.

 That probably sounds pretty depressing, but you may get as much as 100
 times more downloads of your Free version than of you Paid version.

 On Feb 10, 11:23 am, Kevin Duffey andjar...@gmail.com wrote:
  From my understanding of ads, you need a huge number of users running it
 to
  earn any sort of money. Probably in the millions running it every day to
  earn a decent amount. Not many apps out there that do that. Android is
 still
  too young and too many expect most things free.
 
  Have you looked at in-app purchases? Not sure what version of android
 that
  you must support for that to work with or if it's just an SDK download
 that
  works with any version, but you could entice users to buy virtual goods
 or
  something in the app to make some money.
 
 
 
  On Thu, Feb 10, 2011 at 6:47 AM, Brill Pappin br...@pappin.ca wrote:
   Try putting out a version with limited features, but use it to push
 users
   to your paid version.
 
   I do this with one of my keyboards, and it seems to work to some
 degree.
 
   - Brill Pappin
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- Hide quoted
 text -
 
  - Show quoted text -

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


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

Re: [android-developers] Re: How to intercept when the application is brought to foregroud from background

2011-02-10 Thread Kevin Duffey
There are probably a few other ways to do this. If the user goes away from
your app, and android doesn't shut it down, then comes back, the user should
still be logged in right? As Mark said, onResume() is where you can figure
this out.

Another way is to use SQLite or something to store a session token and in
onResume look it up and check the timestamp of when it was stored (you'd put
that in your onPause..storing it with timestamp). Then, if the timestamp is
 some amount of time, continue with it.. if not, invalidate and take to
login screen. Any form of storage could be used for this.. since a phone is
a single user device, you could store a file like a lock file, etc.


On Thu, Feb 10, 2011 at 1:56 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Feb 10, 2011 at 4:53 PM, Hari mba.for.d...@gmail.com wrote:
  There are 2 possibilities,
  1. you come back to the same screen (activity) due to the application
  flow. Navigate to other activities and come back to it due to
  application functionality.
  2. you come back after you navigate away to another application.
 
  Is there a way to recognize this using the application attributes or
  context attributes.

 Your app should not care one way or another. The user is logged in, or
 the user is not logged in. It does not matter whether the previous
 activity was one of yours or not one of yours.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | 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


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

2011-02-10 Thread Kevin Duffey
Ok.. my bad Dianne.. I thought I've read somewhere that 3.0 is only for
tablets.. I probably read that wrong. So from what you have said, it sounds
like that a 3.1 could be tailored for both phones and tablets. I was under
the impression from most likely rumor posts that the new UI in 3 was only
going to be for tablets and that phones wouldn't ever see it. I really hope
a 3.x comes out where the phones and tablets share a similar UI. I remember
reading a while ago that 3.0 would remove the need for sense UI, motoblur,
etc. From the looks of it, the 3.0 UI is nicer than all of them, including
the iPhone. I would love to see that same UI on phones, although I can
certainly see the issues with portions of the UI and small screens.


On Thu, Feb 10, 2011 at 2:46 PM, Dianne Hackborn hack...@android.comwrote:

 Nobody said Android 3.x line is only for tablets.  Honeycomb/3.0 is
 specifically for tablets.

 Why would anyone want to fork the code base into two completely disjoint
 branches for tablets vs. phones?  That would be somewhat insane.  Did you
 notice all of the new stuff in HC to help applications scale between tablets
 and phones?  That would be kind-of odd to do if the newer versions are not
 going to appear on phones.

 Do you remember when Apple introduced the iPad, and they had a new version
 3.2 of iOS just for that?  It never appeared on phones.  This is similar.
  The only difference is that we did a lot more work on our core platform to
 take advantage of larger screens and help applications scale up to them, so
 our new version was a big enough change that we bumped it up a major version
 number.

 On Thu, Feb 10, 2011 at 12:12 PM, Kevin Duffey andjar...@gmail.comwrote:

 Dianne,

 If the Android 3.x line is for tablets, and let's assume we don't know the
 actualy api level for 3.0 yet.. but we know 2.3.3 is now 10.. that would
 tell us that if 3.0 becomes 11, then 2.3.3 is end of line for 2.x unless
 there is going to be either some sort of change in api levels to support
 tablets from phones? If 3.0 does become 11, then what we have now on our
 phones is it. No more upgrades. You stated before that 3.0 is only for
 tablets. That means, at least as it stands now, if 3.0 becomes 11, there are
 no more updates for phones other than minor 2.3.4, 2.3.5 etc that retain the
 same API level.. aka bug fixes only. I really hope this isn't the case OR
 that 3.x WILL come to phones. Perhaps, a 3.1 (api lvl 12) will be a merge of
 tablets and phones into one OS and that 2.3 devices like the Bionic/Atrix
 and many other makers, will be able to upgrade to a  3.0 api.

 It's all very confusing at this point. I can see the apple fanboys loving
 this right now ;) I am sure a lot more posts about fragmentation and
 confusion will show up until it's all sorted out. It would be great if
 sooner than later, at least for us developers, that this info was sorted out
 and provided to us so we know what to expect in the near future.



 On Thu, Feb 10, 2011 at 11:20 AM, Dianne Hackborn hack...@android.comwrote:

 Well by definition there would be no API changes between API level 10 and
 11.  The whole point API levels is to provide a consistent, strict
 super-setting of platform progression.  That is, you can say is the
 platform API level = X and always know that if this is true it will
 contain at least all features of API level X as they are specified to work.

 This is the way API levels have been defined from the start, this is one
 of the big reasons we made them (to separate platform progression from
 marketing things like platform versions), and there are no plans to change
 this.

 So again, let me please request: don't pay attention to rumors.  They are
 rumors.  Trying to predict what is going to happen based on rumors is just
 going to make your life a lot more difficult.  Things should be very clear
 here: you take the API level of Honeycomb (which I can say I expect to be
 11) as the point at which the Honeycomb features are available, and if you
 need to check for this you say android.os.Build.VERSION.SDK_INT =
 android.os.Build.VERSION_CODES.HONEYCOMB.

 Also for the other comment about the HC preview SDK version being 10,
 actually it didn't yet have its own SDK version.  During development, the
 SDK version remains the same as the previous platform (the dev branch is
 strictly a superset of the platform it is based on), and it is marked with a
 codename that is used for android:minSdkVersion and android:targetSdkVersion
 for apps that are building with its new functionality (which does not yet
 have an official API version number since those APIs are still in
 development and changing).

 There is some special casing for resources, because we don't have a way
 to use version codes in the resource directories, when running as a dev
 branch the resource system uses current API version + 1 as the version
 code for resource matching.

 On Thu, Feb 10, 2011 at 10:37 AM, Ed Burnette ed.burne

Re: [android-developers] Absolute positioning

2011-02-10 Thread Kevin Duffey
For one, it allows for different screen sizes to look the same. Using
absolute layouts would definitely be an issue if you built it for a large
screen but someone on a smaller screen ran the app. Hopefully it would be
tested on various sizes, but that isn't always the case. Most developers
have at most one device + emulator to work with and rely on the layouts
among other things for their apps to work with the various devices
available.

On Thu, Feb 10, 2011 at 7:59 PM, Mark markree...@gmail.com wrote:

 If anyone cares to comment I'm curious why Android forces you to use a
 layout? In every other case I've seen the layout is simply a tool
 given to allow for screen variation.  What is wrong with allowing the
 developer to type View.x = 0; View.y = 0; ?

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

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

Re: [android-developers] Re: Honeycomb SDK

2011-02-10 Thread Kevin Duffey
Good points. I think what I read indicated that the UI is that good that a
custom UI would no longer be needed.. or probably more likely that hopefully
a custom UI won't be built and that all android 3+ devices would share the
same UI. I doubt that will be the case, as you said it's open and handset
makers are always going to want to find a way to entice people to buy their
phone instead of a competitors. When you have similar specs for a phone,
often the UI is what sets it apart. That and stability of the device.


On Thu, Feb 10, 2011 at 6:03 PM, Dianne Hackborn hack...@android.comwrote:

 Well 3.0 == HC, which is very different from 3.x, which is fairly broad
 in the possible versions it includes.  Also any statements about HC removing
 the need for Sense UI etc is just more rumors -- there have been no such
 official statements, I don't even know what remove the need means.  I have
 also seen rumors around about how HC (or GB often) would not allow
 customized UIs, which of course is fairly ridiculous since Android is open
 source.

 On Thu, Feb 10, 2011 at 5:44 PM, Kevin Duffey andjar...@gmail.com wrote:

 Ok.. my bad Dianne.. I thought I've read somewhere that 3.0 is only for
 tablets.. I probably read that wrong. So from what you have said, it sounds
 like that a 3.1 could be tailored for both phones and tablets. I was under
 the impression from most likely rumor posts that the new UI in 3 was only
 going to be for tablets and that phones wouldn't ever see it. I really hope
 a 3.x comes out where the phones and tablets share a similar UI. I remember
 reading a while ago that 3.0 would remove the need for sense UI, motoblur,
 etc. From the looks of it, the 3.0 UI is nicer than all of them, including
 the iPhone. I would love to see that same UI on phones, although I can
 certainly see the issues with portions of the UI and small screens.


 On Thu, Feb 10, 2011 at 2:46 PM, Dianne Hackborn hack...@android.comwrote:

 Nobody said Android 3.x line is only for tablets.  Honeycomb/3.0 is
 specifically for tablets.

 Why would anyone want to fork the code base into two completely disjoint
 branches for tablets vs. phones?  That would be somewhat insane.  Did you
 notice all of the new stuff in HC to help applications scale between tablets
 and phones?  That would be kind-of odd to do if the newer versions are not
 going to appear on phones.

 Do you remember when Apple introduced the iPad, and they had a new
 version 3.2 of iOS just for that?  It never appeared on phones.  This is
 similar.  The only difference is that we did a lot more work on our core
 platform to take advantage of larger screens and help applications scale up
 to them, so our new version was a big enough change that we bumped it up a
 major version number.

 On Thu, Feb 10, 2011 at 12:12 PM, Kevin Duffey andjar...@gmail.comwrote:

 Dianne,

 If the Android 3.x line is for tablets, and let's assume we don't know
 the actualy api level for 3.0 yet.. but we know 2.3.3 is now 10.. that 
 would
 tell us that if 3.0 becomes 11, then 2.3.3 is end of line for 2.x unless
 there is going to be either some sort of change in api levels to support
 tablets from phones? If 3.0 does become 11, then what we have now on our
 phones is it. No more upgrades. You stated before that 3.0 is only for
 tablets. That means, at least as it stands now, if 3.0 becomes 11, there 
 are
 no more updates for phones other than minor 2.3.4, 2.3.5 etc that retain 
 the
 same API level.. aka bug fixes only. I really hope this isn't the case OR
 that 3.x WILL come to phones. Perhaps, a 3.1 (api lvl 12) will be a merge 
 of
 tablets and phones into one OS and that 2.3 devices like the Bionic/Atrix
 and many other makers, will be able to upgrade to a  3.0 api.

 It's all very confusing at this point. I can see the apple fanboys
 loving this right now ;) I am sure a lot more posts about fragmentation and
 confusion will show up until it's all sorted out. It would be great if
 sooner than later, at least for us developers, that this info was sorted 
 out
 and provided to us so we know what to expect in the near future.



 On Thu, Feb 10, 2011 at 11:20 AM, Dianne Hackborn 
 hack...@android.comwrote:

 Well by definition there would be no API changes between API level 10
 and 11.  The whole point API levels is to provide a consistent, strict
 super-setting of platform progression.  That is, you can say is the
 platform API level = X and always know that if this is true it will
 contain at least all features of API level X as they are specified to 
 work.

 This is the way API levels have been defined from the start, this is
 one of the big reasons we made them (to separate platform progression from
 marketing things like platform versions), and there are no plans to change
 this.

 So again, let me please request: don't pay attention to rumors.  They
 are rumors.  Trying to predict what is going to happen based on rumors is
 just going to make your life a lot more difficult

Re: [android-developers] Do you know any open source game or media player on android phone?

2011-02-10 Thread Kevin Duffey
Replica Island? That's a pretty decent game that you can view the source of
I believe.

On Thu, Feb 10, 2011 at 8:07 PM, xlshe dianyuangua...@gmail.com wrote:

 Hi all,

 Do you know any open source game or media player applications on
 android phone? Would you please tell me some if you know? Thank you
 very much.

 Best regards,
 Longsheng Xia

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

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

Re: [android-developers] Re: Camerapreview

2011-02-09 Thread Kevin Duffey
Email intent.. which you can use to bring up email app and attach photo to
it, to/subject/etc lines

final Intent i = new Intent(Intent.ACTION_SEND);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.setType(image/jpg);
i.putExtra(android.content.Intent.EXTRA_EMAIL,
new String[] {yourem...@yourcompany.com });
i.putExtra(android.content.Intent.EXTRA_SUBJECT,
Subject);
i.putExtra(android.content.Intent.EXTRA_TEXT,
Body of email here);

// attach saved photo from sdcard location
i.putExtra(Intent.EXTRA_STREAM,
Uri.parse(file:///sdcard/data/photo.jpg));
// pop up the email program for user to preview and send from
startActivity(i);

As for your first issue, in your camera takepicture handler, you save the
image to whever you want. That is the path you use in the Uri.parse() call
above.


On Tue, Feb 8, 2011 at 11:34 PM, Jayanthi jaia...@gmail.com wrote:

 Yes , I have seen loads of example but now I am trying this for
 Samsung Galaxy Tab ,here my problem is I couldn't able to set Image
 path to ImageButton
 Thanks,

 On Feb 9, 1:57 am, Joe McCann joseph.is...@gmail.com wrote:
  Seriously, did you google it?  There are loads of examples.
 
  On Feb 8, 3:12 am, Jayanthi jaia...@gmail.com wrote:
 
   Hi,
   I am new to android I want to send mail with image attached to it
   I need solution for two question
   1.How to get the path of image saved in sd card using camera preview
   2.How to send mail by attaching image
 
 

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


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

Re: [android-developers] Re: Fetch data from android service to HTML

2011-02-09 Thread Kevin Duffey
Wait.. a server running in the emulator? So your app is a server that will
run on android devices? I am a bit lost as to why a client device would
run a server, especially on a mobile phone. Is there a reason you need to do
this? If you're trying to push data from a page to the mobile phone, using
a server app on the phone is not the way to go. But perhaps you have another
reason you need to run a server on the phone?

On Tue, Feb 8, 2011 at 9:04 PM, SREEHARI harisre...@gmail.com wrote:


 Hi Kevin,

 Thanks for the reply. What I am trying is to contact the android
 server application from an html(jscript) page running in normal
 windows browser. I want to fetch the data and want to display it in
 the web page. I think ur 3rd suggession will help me. But my doubt is
 how can I make the connection from normal html(Browser) with sever
 running in Android emulator?

 Regards,
 Hari

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


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

Re: [android-developers] Getting Owner and Contact Data

2011-02-09 Thread Kevin Duffey
Heh..I started using that owner permission too.. glad to know it will be
gone (or is it gone in 2.3?). Question is, when a person buys a new android
phone, at least on Verizon, they generally can attach the phone to a google
account. Is there some way to get that particular users info, or is the only
way an app can do this is to ask for it from the user?

I am messing around with an app where I'd like to send some data from phone
to a service, and some of that data is the owner of the phone's email
address. From what your saying Dianne, there is no way to discern this
information from the contacts database or accounts set up? So, the only way
to guarantee it every time is to ask for it in the app?

Thanks


On Tue, Sep 7, 2010 at 5:49 PM, Dianne Hackborn hack...@android.com wrote:

 Android has no concept of an owner.  Those permissions don't do anything
 (and will be gone in the next release).


 On Wed, Sep 1, 2010 at 12:11 PM, Dritan djdea...@gmail.com wrote:

 Hello,

 I'm writing an app on to make use of the owner's data (first, last,
 email(s), phone(s)) and one or more contacts the owner can choose. The
 application will find common patterns and whatnot.

 I have given my app READ_CONTACTS, WRITE_CONTACTS, READ_OWNER_DATA,
 WRITE_OWNER_DATA permissions in my AndroidManifest.xml

 Initially I used the People class which was deprecated, then I
 switched to ContactsContract.Contacts...
 to try pull explicitly the first (given), middle, and last (family)
 names, then phone numbers, emails, etc... but I cannot seem to be able
 to fetch these columns via:

 Cursor c1 =
 getContentResolver().query(ContactsContract.Data.CONTENT_URI, null,
 ContactsContract.CommonDataKinds.StructuredName.CONTACT_ID + = ?,
 new String[]{id}, null);

 Or even this

 Cursor cc =
 getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
 null, null,null, null);
 if (cc.moveToFirst()){
String [] names = cc.getColumnNames();
for (int j=0; jnames.length; j++){
Log.d(Contacts, COL NAME:
 +names[j]);
Log.d(Contacts, COL VALUE:
  +cc.getString(cc.getColumnIndexOrThrow(names[j]))+\n\n);
}

}

 to show all column names but I'm not getting any relevant information.
 I can get the phone number (data 0 or data 1), but not first, middle,
 and last. I need to access as much of the user's data for the
 algorithm to work as it compares it with other people to find trends
 and patterns. The more complete the data the better.

 Here's another alternative way I tried with the first cursor c1:

 String lookup =
 c1.getString(c.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY));
 Cursor cc =
 getContentResolver().query(
 Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_LOOKUP_URI,
 lookup), null, null, null, null);

 and still I cannot get the owner's or a contact's data that I want.

 Does anyone have any clue as to why I can't get the contact fields I
 need... or how I can get them?

 I really appreciate any insights.
 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




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

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


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


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

Re: [android-developers] Fetch data from android service to HTML

2011-02-08 Thread Kevin Duffey
Not sure I understand the issue. If you have a server, presumably some sort
of Java servlet or JEE based application, and you are able to make a call
from android to this service to get data, and display it in an android app,
are you asking if you can make an html page as part of this service that
calls it to display it in a browser.. so that if a user wants, they can go
to your site and see the same data (perhaps even more given more real estate
of browser/screen)?

If that is the case, simply add a jsp page, MVC framework if you want, and
when a request comes in for the given page or URL, call some bean/servlet
method to look up the data the same way the service that handles the android
request does, and then format it in the jsp page and send it back.

If you are trying to build a site that is outside the service app, perhaps
as if a 3rd party were calling like how facebook connect integrates their
login UI inside of other web sites.. then you could do something very
similar. When a user hits the web page, it makes a call to the service, gets
back the data then formats the html to send back. This is pretty much how
mashups work when accessing 3rd party services. If you want to display a
stock ticker in your own site, you have to call the stock service, get the
info, then show it in your page.

Otherwise, I am not sure what you are asking.


On Tue, Feb 8, 2011 at 3:08 AM, SREEHARI
sreehari.madhusooda...@wipro.comwrote:

 Hi,

 I have developed one UPNP server application which is running
 perfectly in android emulator. I am able to fetch the data from the
 server to client in android. But how can I get the same data in a
 normal HTML page. Means I want to develop an HTML with javascript that
 fetch the content from android server application. Please guide me how
 can I achieve this.

 Regards,
 Hari.

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

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

Re: [android-developers] Re: interfacing to a server via http with a service

2011-02-07 Thread Kevin Duffey
Well Tre beat me to it. I was thinking two things. Either A, your main
activity registers a listener with another class that uses an AsyncTask in
it, and some sort of loop to repeatedly make the rest call. Then, when data
is returned, the response handler calls back via the listener and the main
activity updates the ui.

The other thought is some static method or class that is constructed with a
method in the main activity to call (perhaps via an interface
implementation?) and then response handler calls that method with new data,
which in turns updates the ui thread. I think the listener is the way to go
though.


On Mon, Feb 7, 2011 at 7:52 PM, Avtar Khalsa akhals...@gmail.com wrote:

 I do need the downloads to continue when the application switches
 activities, which is why I am using a service in the first place. It
 sounds like registering a listener is the way to go. Thank you so much
 for the help!

 On Feb 7, 10:34 pm, TreKing treking...@gmail.com wrote:
  On Mon, Feb 7, 2011 at 9:24 PM, Avtar Khalsa akhals...@gmail.com
 wrote:
   Thanks for the reply again. It was quite helpful. I am actually
 downloading
   small audio files for an answering machine app. If the activity that
   launched the service is still running, I would like it to update to
 include
   the newly downloaded files in the UI for the user to listen to. If the
 user
   has moved to a different activity, I just want the service to save the
 file
   to persistent storage. (It will store to persistent storage either way,
 but
   if the activity is running the UI should update) A service seems
 appropriate
   here although I am certainly open to other options?
 
  I guess it depends on the flow and user workflow of your app. If you
 start
  your app, it begins downloading, updates the UI as things becomes
 available,
  and then shuts down and stops the downloading when the user exist the
  Activity, then I would suggest an AsyncTask.
 
  If the user expects the downloads to continue and somehow play or be
  notified as they become available, then yeah, a Service seems more
  appropriate.
 
  Ultimately, either way will work.
 
   The issue I am having specifically is notifying the activity that the
   download is complete. I would really rather avoid having the activity
 poll
   the service to find out if the download is completed
 
  You've seen how most of the UI in Android works? Nearly everything
 registers
  a Listener object when it wants to know something happens. Create your
 own
  listener class like ServiceListener or something. Your service takes a
  reference and hold on to it. When a download is complete, it invokes the
  listener's onDownloadComplete() method (or whatever you want to call it).
 
  Meanwhile the Activity is the one that creates an instance of a custom
  listener and passes it to the service. When the service call it's method,
 it
  responds appropriately (updating the UI).
 
  You could also send a Broadcast that the Activity would register for,
 which
  would set you up for more advance functionality like background
 downloading
  and responding to downloading completing without needing your activity to
 be
  alive and waiting for the listener to get triggered. Just an idea though,
  the former option is much easier and should suit your current problem
 just
  fine.
 
 
 ---
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Best practices for automatic retrying of AsyncTask

2011-02-07 Thread Kevin Duffey
What happens when the async task finishes? Whatever created the first
instance of it, or whatever handles the response, should be able to create a
new instance again to get one going. I don't think you can reuse an async
task and just start it again, I think you have to keep instantiating new
instances to run them again.

On Mon, Feb 7, 2011 at 6:38 PM, Dimitris dnkou...@gmail.com wrote:

 Could you please elaborate more and make an example?

 As for the Harmony HTTP API, yes it does have automatic retrying but at the
 end it will fail if a network error occurred (UnknownHostException,
 SocketTimeoutException etc...). I would need the user to initiate a retry
 then.

 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Optimal packaging of image app for various screen resolutions

2011-02-07 Thread Kevin Duffey
I thought android automatically resizes images for different screen sizes?
Maybe I read that wrong. Assuming the picture is of the right proportion to
fill the screen, I thought by using dp instead of pixels it would scale
properly up or down depending on size of screen.

On Mon, Feb 7, 2011 at 7:48 PM, String sterling.ud...@googlemail.comwrote:

 Unfortunately, there's no way to avoid duplication with the current
 architecture, AFAIK. You can sometimes use some redirection to reuse a given
 image for, say, both -large and -hdpi, but that's about it. In my
 experience, this is one big reason for APK bloat.

 Long ago, I submitted a feature request to address this issue (
 http://code.google.com/p/android/issues/detail?id=5207), but right now it
 only has 2 stars and hasn't even been acknowledged by the platform team.

 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


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

2011-02-07 Thread Kevin Duffey
There is a 2.4 in the works if the rumor mill is correct, from my
understanding of potentially bad sources, 2.4 will be a sort of reduced
honeycomb for phones, hopefully giving it the same UI but perhaps a few
different things? I am really curious how this is going to play out.
Naturally the apple fanboys are shouting fragmentation again, but I am
really interested in the UI differences between 3.0 and any new version for
phones that come out. Will phones go the way of tablets, no buttons, same
UI, etc? I personally hope so, the 3.0 UI looks fantastic.

On Mon, Feb 7, 2011 at 5:17 PM, Mark Murphy mmur...@commonsware.com wrote:

 My initial reaction was that it was an homage to Spinal Tap.

 On Mon, Feb 7, 2011 at 7:47 PM, Ed Burnette ed.burne...@gmail.com wrote:
  11? Does that mean the next 2.x release will be API level 10 and that
  there will only be one more 2.x release with API changes? Or am I
  reading too much into it? I was wondering how that numbering hiccup
  was going to be handled.
 
  On Feb 7, 3:01 am, Dianne Hackborn hack...@android.com wrote:
  I don't know why it says that about minSdkVersion.  The value of
  minSdkVersion doesn't matter; all that matters is that
  targetSdkVersion=Honeycomb.  (Or 11 in the final API.)
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 



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

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


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

Re: [android-developers] Re: Android beginner

2011-02-07 Thread Kevin Duffey
subhashini,

I think Tre and others are basically scratching their head wondering how you
got such an assignment yet are not able to figure out anything for your
self. There are books you can buy, including Mark Murphy's who provides 3
books for a very fair price and frequents this forum all the time. He
explains in there how you upload/update your app. As well, google is by far
the best resource you got if you're not going to buy a book to learn from.
Google has provided a ton of documentation on android as well. I don't think
anyone minds helping, but you are asking questions in a manner that makes it
sound like you want someone in the forum to do all your work. Dig in my man.
It's fun, may take a little time, but it is a lot of fun to figure out,
learn about and see results. If you're in a position that you have to update
an existing app, surely you must have gotten into that position because it
was assumed you could write java code, compile/deploy/run it, so get to it.
Read for a few days, experiment. You'll figure it out.

Good luck.


On Mon, Feb 7, 2011 at 3:20 AM, Marcin Orlowski webnet.andr...@gmail.comwrote:

 On 7 February 2011 12:06, subhashini alaguchokku
 subhashini.andr...@gmail.com wrote:
  I have not uploaded an app to Android market yet. But am in a
 circumstance
  that requires me to upload a version(2) of the existing app.

 adjust versionCode in your app's manifest file to 2 and versionName
 to 2.0 and you are done.

  We have done Export unsigned app after that have no idea how to
 proceed  We have done signing using debug mode but for Release have no
 idea.

 Ue RMB (over project name) - Android Tools - Export signed application
 package

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


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

Re: [android-developers] Re: In app billing...

2011-02-05 Thread Kevin Duffey
So I have a few thoughts on this subject. I have been hoping ever since
apple introduced this feature for iPhone/iPad that Google would hurry up and
add this. I know of several developers that are making a huge sum more with
in-app virtual good purchases than their pro version ever sold. Because it's
so tightly integrated in the app, it's a very simple dialog to ok/cancel the
purchase and you keep using the app. I have not read the docs yet, I am
going to assume that this is the same experience android users will see...
they won't be taken out of the app to approve the payment correct?

To me, this is the holy grail of mobile apps for developers. I happen to
know of a few people in the micro transaction business, and the predictions
for this particular segment is astronomical. Tapping in to it therefore is
just a matter of finding that right use of it for any given app. Games
obviously are going to be the big winner with this feature, as virtual
goods, map packs and so forth are unmatched in consumption by end users. I
am blown away with how easy it is for someone to spend a buck to customize
their avatar look, or a buck for a avatar item.. few bucks to customize, etc
etc.

I am really hoping.. and if anyone has read and has a clear understanding of
what is going to possible.. that they have at least provided what apple has
in their API for both end users and developers. Apple for example shows the
top in-app purchases. Is there a way for the developer to get info on each
and every in-app purchase, to figure out what is selling good and what might
not be? Will the Market display the top in-app purchases? For the end user..
how does the in-app purchase go.. is it simply a dialog to approve/deny the
purchase? What if they have never bought anything yet? I see that Google and
ATT now allow for purchases to appear on their bill. I am hoping at least
for ATT that in-app purchases automatically go to their bill as well? Is
there any time frame on when Verizon, t-mobile, sprint and other carriers
around the world will support this?



On Sat, Feb 5, 2011 at 9:33 AM, Maps.Huge.Info (Maps API Guru) 
cor...@gmail.com wrote:

  It's the right to use the software in a certain way, to repeatedly...

 In my business, I have a stated policy of No refunds under any
 circumstances. I've had this policy for over 30 years and it has
 served me well. I have the policy stated in several places and so far,
 it hasn't been a problem. If you state this clearly then it shouldn't
 be an issue with the consumers. Sure, you may scare away a few by
 having this policy but the end result is less complaining and
 customers who are more likely to be satisfied. I see no reason to
 change this policy with apps. Besides, we're talking a couple of
 dollars per transaction. It's not like they're choosing between buying
 your $2 item or paying their rent.

 -John Coryat

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


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

Re: [android-developers] Re: Android 3.0 questions

2011-02-05 Thread Kevin Duffey
Supposedly Motorola Xoom is coming out Feb 17 with Android 3.0. How that is
going to work out we'll find out Feb 17. I can't imagine Google would allow
a half baked 3.0 go out the door just for Motorola to meet it's desired ship
date.

On Sat, Feb 5, 2011 at 8:12 AM, Mark Murphy mmur...@commonsware.com wrote:

 On Sat, Feb 5, 2011 at 11:08 AM, chcat vlyamt...@gmail.com wrote:
  Any idea if that
  part is functional in  Gingerbread

 Considering that it is not in Gingerbread, I doubt that it is functional.

  or when Honycomb might be available for Nexus?

 Nobody knows.

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

 _The Busy Coder's Guide to Android Development_ Version 3.4 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: XML or JSON in Android

2011-01-30 Thread Kevin Duffey
C2DM sounds like the right way to do this. I am interesting to know if the
use of C2DM is completely free from the server to the google servers? That
is pretty nice if google provides those servers for free to all C2DM
developers.


On Sun, Jan 30, 2011 at 7:37 AM, Stephan Wiesner testexpe...@googlemail.com
 wrote:

 I find JSON faster and much easier to use. Easier to produce the data
 as well :-)

 Stephan

 On 28 Jan., 20:20, Kumar Bibek coomar@gmail.com wrote:
  JSON is lighter, and is simple. :)
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
 
 
 
 
 
 
  On Fri, Jan 28, 2011 at 1:17 PM, Ranveer ranveer.s...@gmail.com wrote:
   Hi All,
 
   I am developing an Android application.
   Following is my scenario:
 
   1. I parsing XML in android which is hosted on server (same like RSS
 feed).
   2. It takes around 10 second depend on network speed.
   3. XML refresh on server in every 15 minutes.
 
   Is there any other way so I can make it more faster then current.
   Someone suggest me to use JSON instead of XML.
   Can some one suggest me; which format is better from XML and JSON (In
 term
   of fast execution and easy to use).
 
   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.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] drawing and refreshing small paint over static bitmap

2011-01-23 Thread Kevin Duffey
This brings me back some years! I remember when trying to dabble in this
area of game/graphics drawing, thinking to myself.. if I have multiple
objects on the screen, and one goes behind another, I don't want to draw the
one behind it. It should speed things up a bit. I never could figure out how
to do it right. I was just doing a loop and drawing everything as fast I
could, not using a timing loop like 60 times a second and trying to get all
the drawing in there each 60th of a second.

I don't know if this is the right way to do this, but I would guess each
draw object, be it a background or any object at any layer in between,
would have it's own drawing handler. You would have some sort of logic that
would figure out if a given layer is completely hidden.. obstructed by an
object in a layer above it. However, like I said above, I could never figure
out how you figure out if a given object is completely covering an object
below it. Each object could have transparency sections, like a plane with
windows, where part of the object below it might actually be seen through
the window of the object above it. I always figured draw from bottom up
allowing for transparency so that bottom objects would appear through. This
would of course mean you end up drawing everything, all the time,
completely. I figured that would be faster than trying to figure out code
that would determine if an object was partially hidden or completely hidden
using some sort of algorithm that determines the shape or not. If you could
use a pure square outline, that was fine, but then it wouldn't look right if
you had say a triangle bitmap over a square bitmap.. you'd have to account
for the portion of the square that is visible beyond the triangle edges. I
sucked in math, hence why this sort of stuff always frustrated me.


On Sun, Jan 23, 2011 at 8:17 AM, Paolo Russian paolo.russ...@gmail.comwrote:

 Hello. I thought it was an easy find over all these android forums but
 it seems i cannot find if there is a pre-built way to draw my sprite
 (made up with a couple of shapes) over a static bitmap as background.
 What I currently do is redrawing the background and drawing over same
 canvas the sprite, for each onDraw() event, with some performance
 issues ofcourse.
 I remember some mode 0x13h experiments in old C, so there surely are
 ways to copy-pixels behind the sprite, move the sprite, rederaw the
 copied part of background to cover the old sprite, and draw the new
 sprite position.
 My question is different: is there a way to set up a certain number of
 layers/levels and leave the bitmap on the bottom layer and going on
 erasing-drawing only the sprite in the top layer? That would you
 normally do for instance in actionscript3, you create 2 canvas, and
 operate them individually. But if you want to be old-school you can
 work with copypixel but there is almost never the need.
 But whenever I search for layers or overlays searches spit out
 GoogleMaps layers coding, MapView overlays stuff which really don't
 matter :D
 So what classes am I missing for doing this very basic thing?

 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Shared preference from non activity class

2011-01-23 Thread Kevin Duffey
 Bean class is a pojo. You have private instance variables, with public
get/set methods. A property is an instance field with a get/set method. I
forget though if you need both.. there are some cases where you may want to
make a mutable property by using a constructor to set it, then only have a
getter so it can't be changed.

On Sun, Jan 23, 2011 at 11:52 AM, FrankG frankgru...@googlemail.com wrote:

 Hi Hari.
 Just my two cents but if you mean
 the Java Bean specification, then the spec is
 a J2SE technology  (
 http://www.oracle.com/technetwork/java/javase/documentation/spec-136004.html
 )
 and comes into world long before the people start to thinking in terms
 of EJBs and so on. Good luck ! Frank

 On 23 Jan., 02:24, Hari Edo hari@gmail.com wrote:
  On Jan 22, 7:50 pm, TreKing treking...@gmail.com wrote:
 
   I have no idea what a bean class is.
 
  It's one of those J2EE things that they shove at you in
  diploma-mill university IT classes.  Basically, an object
  with a hashmap of properties, so that it's trivial to make
  GUI front-ends that can manipulate the properties directly.
 
  While I haven't weaned myself off all of the Collections
  classes, I'd say heavy Beans and lightweight Android are
  at diametric odds with regard to garbage collection
  stressors.

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


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

Re: [android-developers] Re: Pictures taken in my camera app not showing up in gallery

2011-01-19 Thread Kevin Duffey
I too was wondering how you can save photos you take in your own apps so the
gallery can show them, but we can access them too from apps.

On Wed, Jan 19, 2011 at 9:59 AM, Kevin Law kla...@gmail.com wrote:

 Pinging the thread since this e-mail got caught in the moderation
 queue for awhile.

 On Sun, Jan 16, 2011 at 4:16 PM, Kevin Law kla...@gmail.com wrote:
  I wrote a camera app that takes pictures and saves them to the root
  directory on the SD card.  I've confirmed that it works, but none of
  the pictures ever show up in the native gallery app.  I've tried
  restarting and remounting the sdcard, but it doesn't work on any
  device.  The gallery app show any pictures I take with the native
  camera app immediately.  I tried adding a call to
  MediaScannerConnection's static scanFile method*, but it still
  doesn't work.  Does anyone know what I might be missing?  Do I have to
  save it in a particular directory?  Is there another method I have to
  call?
 
  Thanks in advance for any tips,
  Kevin
 
  *
 http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Contexthttp://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile%28android.content.Context
 ,
  java.lang.String[], java.lang.String[],
  android.media.MediaScannerConnection.OnScanCompletedListener)
 

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


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

Re: [android-developers] Re: switch between activity issue

2011-01-18 Thread Kevin Duffey
I too am confused.. why do you have to jump through activities repeatedly
like this? You need to give us a lot more info to make sense of what you are
doing?


On Mon, Jan 17, 2011 at 11:22 PM, Kumar Bibek coomar@gmail.com wrote:

 Why exactly are you trying to loop it repeatedly? And that too 1000 times?

 Anyway, what does the logcat say?

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com




 On Tue, Jan 18, 2011 at 12:22 PM, tstanly tsai.sta...@gmail.com wrote:

 sorry let me explan detailed,


 now I have four activities, called A, B, C and D,
 the calling sequence is,
 A-B-A-C-A-D-A-B-(loop repeatedly)
 you can think A is main program,
 after finishing B,C,D activity, it must return to A (using
 StartActivityForResult),
 this scenario will repeat for thousand times,
 however it will shutdown in halfway of running process,

 so is there exist problem in my scenario?
 when switching activities repeatedly, does there exist shutdown risk
 to do large repeat times?


 thanks for your patience
 On 1月18日, 下午2時40分, Kumar Bibek coomar@gmail.com wrote:
  I am confused. What are you trying to do?
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
 
 
 
 
 
 
  On Tue, Jan 18, 2011 at 11:44 AM, stanly tsai.sta...@gmail.com wrote:
   hi all,
 
   I have a application,
   main activity called A,
   function 1 called B, function 2 called C, function 3 called D,
   every function are activitys,
   then A will use StartActivityForResult call B then return to A,
   and used same method to call C and D,
   A-B-A-C-A-D-A-B-A-C.and so on,
   the loop will execute 1 times,
   but system will shutdown when looping the process,
 
   I just confused about *switch activitys*,
   does my method have problems for looping it?
   may switching activity so many times to cause shutdown issue?
 
   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.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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


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

Re: [android-developers] Re: Will pay to have someone develop this app for me.

2011-01-18 Thread Kevin Duffey
I would agree with Eric. The app has a developer info. Contact that
developer. They may build you a one-off, or even build it into their app and
then you can just buy that app on the market for a couple bucks + perhaps a
little money to the author for doing it. Far better, and probably much
faster than recreating it all from scratch.

On Tue, Jan 18, 2011 at 10:07 PM, Eric Wong (hdmp4.com) 
ericwon...@gmail.com wrote:

 May I ask why don't you contact and offer money to the person who
 wrote SMS Backup + to make this?
 This would be cheaper, faster and easier than getting a 3rd party to
 rebuild the same application.

 Getting someone to build an application can cost you substantial
 amount of money.
 Plus, you aren't even interested to keep the rights of the
 application!!!

 On Jan 16, 4:27 pm, Christian Childs cthomchi...@gmail.com wrote:
  There is an Android app called SMS Backup + that allows you to have
  all your text messages, MMS messages and your call log info forwarded
  to a gmail account. I was wondering if I could commission someone to
  create an almost identical application, with ALL the same functions
  and settings, but in widget form, like the app Invisible Protector
  Pro so that it can only be accessed by putting the widget on your
  home screen and then you can delete the widget after you alter the
  settings as needed. This is a serious offer and if you name a
  reasonable price, I will likely pay it and you can also keep the
  rights to the app afterward to do with as you will. There are a few
  more details, however I will discuss them with anyone who is
  interested. My name is Christian Childs. My US phone number is
  609-233-0746. You can either call me or email me at
  foreignextr...@aol.com. I hope to hear from someone soon.

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


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

Re: [android-developers] Re: 2D shooting game problem

2011-01-18 Thread Kevin Duffey
Or read Robert's post.. follow his blog, follow the links. He has a ton of
good info on there. As I am finding out, game development is not for the
faint of heart. It takes years to become really good at it and understand
all the ins and outs. Thankfully we have people like Robert and some others
that are willing to share their processes, problems and even code to help us
out!

On Tue, Jan 18, 2011 at 7:00 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 If I recall correctly, LunarLander is not exactly the best example of
 game design for Android.

 If I were to create an Android game, I'd start with the source of
 Replica Island.



 On Jan 17, 12:37 am, Niksa Lovrinic niksa.lovri...@gmail.com wrote:
  Hello everybody,
 
  I've been playing with the LunarLander example and tried to make my own
  thing out of it...
 
  On the right bottom screen, I've got a tank that is not moving and his
  turret that's moving up and down. It's supposed to shoot missiles at
  different angles.
 
  I've got a tank, turret and a bullet and they are a Bitmap image.
 
  private Bitmap tank;
  private Bitmap turret;
  private Bitmap bullet;
 
  Turret only rotates from angle 0 to angle 75, and I did that with the
  update...
 
  I managed to get the turret moving but now I'm finding it hard to shoot
  missiles.
 
  *doDraw method*
  *
  *
  private void doDraw(Canvas canvas) {
 
   canvas.drawBitmap(backgroundImage, 0, 0, null);
 
   canvas.drawBitmap(tank, x_tank, y_tank, new Paint());
 
  //Rotating the turret
   canvas.rotate((float) mHeading, (float) x_turret + mTurretWidth,
  y_turret);
 
   canvas.drawBitmap(turret, x_turret, y_turret, new Paint());
 
  ??? what should I write here for the bullet to be seen shooting out of
 that
  turret
 
  }
 
  *Update method*
  *
  *
  private void updateGame() {
 
  long now = System.currentTimeMillis();
 
  if (mLastTime  now)
   return;
  double elapsed = (now - mLastTime) / 1000.0;
 
  if (dUp) // UP key
   mHeading += 1 * (PHYS_SLEW_SEC * elapsed);
 
  if (mHeading = 75) mHeading = 75;
 
  if (dDown) // DOWN key
mHeading += (-1) * (PHYS_SLEW_SEC * elapsed);
   if (mHeading  0) mHeading = 0;
 
  i
  f (dSpace){
 
   // Fire bullet SPACE key
  ??? what should I write here for the bullet to be
  seen shooting out of that turret
   ??? When is the method doDraw being called??
 
  }
 
   m
  LastTime = now;
 
  }
 
  Thank you so much guys,
 
  Nick
 
  *
  *
  *
  *

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


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

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Kevin Duffey
Is there a site that shows the number of users for each version?

I'd rather target 2.2+ now.. just because its the version that brought in a
big speed boost, making a lot more apps much smoother. I still have the
Droid 1 and I thought that was one of the lower end devices out there? Being
that I'll be able to upgrade this year, I would suspect by end of this year
most of the owners would be on 2.2 or later.

On Mon, Jan 17, 2011 at 6:50 AM, Stephen Jungels sjung...@gmail.com wrote:

 I've been tempted to drop 1.5, partly because it tends to be installed
 on low-end devices where people will not have a very good experience
 of my app, but recently my percentage of 1.5 users has gone up instead
 of down on some apps.

 There's a big difference between dropping (loyal) 1.5 users and never
 having them in the first place, so for new apps my default assumption
 is I will target 1.6+ or even 2.1+.

 SJ

 On Mon, Jan 17, 2011 at 8:52 AM, TreKing treking...@gmail.com wrote:
  On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.com
  wrote:
 
  For my own apps, I don't have a problem supporting 1.5, and I figure
 that
  an extra 5% is nothing to sneeze at. But then, I've yet to run into
 anything
  that was really problematic for me to support on 1.5. Some of the
 resource
  handling is kind of annoying, but not really a big deal.
  If I had some core feature that I just couldn't make
 backward-compatible,
  then yes, I'd drop 1.5 too. But probably not until then, or until the
  install percentage drops a few more points.
 
  This. (Thanks for writing my post for me :-) )
 
 
 -
  TreKing - Chicago transit tracking app for Android-powered devices
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Re: How best to query web repeatedly.

2011-01-17 Thread Kevin Duffey
Alright.. little confused Speed limit signs? Every 50 meters a driver passes
one? Or you're trying to pull down speed limit data to let the user know
what speed they are supposed to be traveling (and thus if they are going
over the speed limit)?

Like others said.. is there some way you can pull down ALL the speed limit
data ahead of time for say, a 10 mile radius. Using location information,
gps coordinates, etc, every time the driver gets within a few miles of the
radius edge, pull down more info.. hopefully based on the direction they are
headed and centered on them.

As far as I have seen, speed limits don't change that often that if you can
figure out some sort of radius algorithm to update and assume a good 30
seconds or so for that data, you should be fine.



On Mon, Jan 17, 2011 at 6:32 AM, cellurl gpscru...@gmail.com wrote:

 The data is speed limit signs. I think its time I switch to a local
 copy like Jonathan said. I noticed there are tons of sort routines, so
 I probably don't need sqlite...
 Thanks guys!
 cellurl


 On Jan 15, 2:47 am, Jonathan Foley jonefo...@gmail.com wrote:
  Why don't you pull down data ahead of time? You haven't told us
  exactly what you are querying.
  Maps, logging the route?? In any case, you can either pre-cache some
  of the data you'll need or cache
  the data you'll be sending and send it less frequently in either
  direction.  The only reason I can
  understand polling so frequently is if you are pulling data that is
  completely unpredictable. That is
  you have some huge table or tables and really have no idea what the
  next query is. Maybe
  you need to think a little more about how to predict what you'll need
  from either end.
  As folks have mentioned, latency and bandwidth are highly
  unpredictable and fluctuate in time
  and space. Your design will have to heave enough headroom to account
  for that while still
  delivering whatever minimum user experience your app needs..
 
  Jonathan
 
  On Jan 15, 12:14 am, Frank Weiss fewe...@gmail.com wrote:
 
 
 
 
 
 
 
   I would suggest being more flexible about *when* the queries are made.
 You
   seem to have fixated on every 50 meters. Why not every two minutes? Or
 every
   n minutes, depending upon the current network latency? Or even a
 heuristic
   scheduler based on multiple factors? I would also suggest considering
   decoupling the activity from the provider. Perhaps by using a separate
   service that pushes new queries to the activity. Avoid creating your
 own
   threading framework.

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


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

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Kevin Duffey
Indeed. Good info to have. So looks like 2.1+ is the target.

On Mon, Jan 17, 2011 at 7:19 AM, Laks laks.pendy...@gmail.com wrote:

 Is this what you are looking for?

 http://developer.android.com/resources/dashboard/platform-versions.html

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


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

  1   2   3   4   >