Re: [android-developers] How i can programatically downlaod our emails from gmail account ?

2013-07-18 Thread Ashish Sharma
Hi,

I use below code and get the exception

Code

Properties props = new Properties();  
props = System.getProperties();
props.setProperty(mail.imap.ssl.enable, true);
props.setProperty(mail.imap.ssl.socketFactory.class,com.example.emaildownloadfromserver.DummySSLSocketFactory);
props.setProperty(mail.imap.ssl.socketFactory.fallback,false);
props.setProperty(mail.imap.ssl.trust, *);
Session session = Session.getInstance(props, null);
Store store = session.getStore(imaps);
store.connect(exchange.domain.com, du...@kochartech.com, Password@12);
Exception
Exception...javax.mail.MessagingException: 
java.security.cert.CertPathValidatorException: Trust anchor for 
certification path not found.;

On Friday, July 12, 2013 2:14:21 AM UTC+5:30, Lew wrote:

 Ashish Sharma wrote:

 java [sic] mail api is working fine for gmail account. can you please 
 guide, how to use it for exchange server?

  
 http://lmgtfy.com/?q=Java+Mail+API+connect+to+exchange+server

 -- 
 Lew



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




[android-developers] Re: Deposits From Google Wallet Weirdness

2013-07-18 Thread Pent



 Note to Google: Our accountants hate you. 


Mine too.

Hopefully they will unite into the Google Accounts Union (GAU - word for 
total disaster in German) and demand improvements.

Pent 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Best practice for co-ordinating a SyncAdapter and GCM updates of data within an app

2013-07-18 Thread Shiraz Azizali
Oh, yeah sorry about that :D
I hadn't realised that you can use the application context like that.
So, yes in my onPerformSync I am able to do:
FooApp app = (FooApp) getContext().getApplicationContext();
Thanks, I'm still unsure how to acheive what I'm after from here, but it's
a step forward..


On 17 July 2013 20:56, TreKing treking...@gmail.com wrote:


 On Wed, Jul 17, 2013 at 11:50 AM, fr1550n shiraz.aziz...@gmail.comwrote:

 That leads to an error: Cannot make a static reference to the non-static
 method getApplicationContext() from the type Context.


 Well, sure. I was just showing you the class and method you needed.


 Also, that call would only obtain the application context which is not
 the same as the Application singleton


 Yes it is. Try it. I just did.


 -
 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/KtvZ7D_EKfI/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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




[android-developers] Positioning objects in Google Maps

2013-07-18 Thread Carlos Calvo
Hello,

I have a problem when drawing objects on Google Maps.

I have an object that drawing on your geolocation.

And I have a second object that want to draw on this, subject to see the 
same distance regardless of having the zoom map.

If we shift frame + - X for example 50 depending zoom this is very far / 
near (though offset always the same)

 


Painthttp://www.google.com/search?hl=enq=allinurl%3APaint+java.sun.combtnI=I%27m%20Feeling%20Lucky
 p 
= new 
Painthttp://www.google.com/search?hl=enq=allinurl%3APaint+java.sun.combtnI=I%27m%20Feeling%20Lucky
();

p.setColor(Colorhttp://www.google.com/search?hl=enq=allinurl%3AColor+java.sun.combtnI=I%27m%20Feeling%20Lucky
.BLUE);


Pointhttp://www.google.com/search?hl=enq=allinurl%3APoint+java.sun.combtnI=I%27m%20Feeling%20Lucky
 centro 
= new 
Pointhttp://www.google.com/search?hl=enq=allinurl%3APoint+java.sun.combtnI=I%27m%20Feeling%20Lucky
();
projection.toPixels(geoObject, centro);
(draw object)
canvas.drawBitmap(bitmap,centro.x - bitmap.getWidth(),
 centro.y - bitmap.getHeight(), p);

 offset en x zoom always dependent on??  

  ¿
 canvas.drawBitmap(bitmapRelated,  ?? ,  ??  , p);
 

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




[android-developers] Re: Deposits From Google Wallet Weirdness

2013-07-18 Thread Doug Gordon
According to Bank of America's site, all three payouts did go into my 
account. I guess the simplest thing would be to just consider it an 
advance for the next couple of months. At least it wasn't like the guy 
whose Paypal account got an erroneous balance of 94 quadrillion dollars the 
other day!

On Tuesday, July 16, 2013 5:27:30 PM UTC-4, Nathan wrote:

 Any one else seen weird things with Google Wallet?

 Like many of you, I have recently been forced into the highly inferior 
 Google Wallet interface from Google Checkout. 

 So should I be concerned if, say, Google Wallet says that they have 
 deposited the monthly deposit at least three times today?

 Not that I would complain if I really thought I could just keep it. But 
 only one really arrived in the bank account, and I hope the IRS is not 
 going to ask what I did with the other two. 

 I have already contacted Google Wallet through their form that says Be 
 aware that we cannot respond to every request . . . 

 Is this just another silly thing I should let take care of itself?

 Note to Google: Our accountants hate you. 

 Nathan



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




[android-developers] Different developer displayed name under 1 developer account

2013-07-18 Thread yccheok
Hi, 

Currently, we already have our own app, published under our own developer 
account.

Now, for the same product, we tend to create a white-label version for our 
client. We need to publish the white-label product with different developer 
displayed name/ different developer contact email/ different developer 
website.

I was wondering, can we use back our current developer account for the 
above purpose? Or, we need to pay $25 to create a new developer account?

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 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] Best practice for co-ordinating a SyncAdapter and GCM updates of data within an app

2013-07-18 Thread TreKing
On Thu, Jul 18, 2013 at 3:31 AM, Shiraz Azizali shiraz.aziz...@gmail.comwrote:

 Thanks, I'm still unsure how to acheive what I'm after from here, but it's
 a step forward..


A simple static boolean flag should suffice. Each component will run in the
main thread initially to start up. First check the flag, if set, abort the
sync, if not, set it, then proceed with background sync, then reset it when
done.

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

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




Re: [android-developers] Re: Deposits From Google Wallet Weirdness

2013-07-18 Thread David Erosa García
I'm having the same issue. I received May payment twice, and June payment
three times. Not that I regret receiving money, but this things never end
well :)

So I just called Google Wallet for Business (+1-855-9255386) and they told
me they just discovered this issue this morning. Some developers are
receiving multiple payments, but there's no action needed from our side.
There won't be charges or money pulled from the bank account, but they
still don't know if they'll discount this amount from the forthcoming
months. Anyway the affected developers will be sent an email explaining the
situation. I hope I explained this well, as English is not my native
language and I'm not used to write in non-technical terms :)

I hope this bring some calm to your hearts and your accountants :)


On Thu, Jul 18, 2013 at 2:55 PM, Doug Gordon gordo...@gmail.com wrote:

 According to Bank of America's site, all three payouts did go into my
 account. I guess the simplest thing would be to just consider it an
 advance for the next couple of months. At least it wasn't like the guy
 whose Paypal account got an erroneous balance of 94 quadrillion dollars the
 other day!


 On Tuesday, July 16, 2013 5:27:30 PM UTC-4, Nathan wrote:

 Any one else seen weird things with Google Wallet?

 Like many of you, I have recently been forced into the highly inferior
 Google Wallet interface from Google Checkout.

 So should I be concerned if, say, Google Wallet says that they have
 deposited the monthly deposit at least three times today?

 Not that I would complain if I really thought I could just keep it. But
 only one really arrived in the bank account, and I hope the IRS is not
 going to ask what I did with the other two.

 I have already contacted Google Wallet through their form that says Be
 aware that we cannot respond to every request . . .

 Is this just another silly thing I should let take care of itself?

 Note to Google: Our accountants hate you.

 Nathan

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 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: Deposits From Google Wallet Weirdness

2013-07-18 Thread b0b


On Thursday, 18 July 2013 17:38:14 UTC+2, David Erosa García wrote:

 I'm having the same issue. I received May payment twice, and June payment 
 three times. Not that I regret receiving money, but this things never end 
 well :)

 So I just called Google Wallet for Business (+1-855-9255386) and they told 
 me they just discovered this issue this morning. Some developers are 
 receiving multiple payments, but there's no action needed from our side. 
 There won't be charges or money pulled from the bank account, but they 
 still don't know if they'll discount this amount from the forthcoming 
 months. Anyway the affected developers will be sent an email explaining the 
 situation. I hope I explained this well, as English is not my native 
 language and I'm not used to write in non-technical terms :)

 I hope this bring some calm to your hearts and your accountants :)


There's more info on reddit:

http://www.reddit.com/r/androiddev/comments/1ihaa6/eu_devs_multiple_payouts_this_month_negative/
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Question for a Google Play employee: is it allowed to release a pro version of my existing app?

2013-07-18 Thread AndroidYourself
The whole article. It shows that nobody is save at this time.


On Thursday, July 18, 2013 5:10:34 AM UTC+2, Kristopher Micinski wrote:

 What in the article you linked contradicted anything I said? 

 Kris 



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

2013-07-18 Thread TreKing
On Thu, Jul 18, 2013 at 9:12 AM, yccheok yancheng.ch...@gmail.com wrote:

 We need to publish the white-label product with different developer
 displayed name/ different developer contact email/ different developer
 website.

 I was wondering, can we use back our current developer account for the
 above purpose? Or, we need to pay $25 to create a new developer account?


The second one.

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

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




Re: [android-developers] Re: Deposits From Google Wallet Weirdness

2013-07-18 Thread Nathan
On Thursday, July 18, 2013 8:38:14 AM UTC-7, David Erosa García wrote:

  There won't be charges or money pulled from the bank account, but they 
 still don't know if they'll discount this amount from the forthcoming 
 months. 


So in other words

   - They might let you just keep the extra money
   - They hope you make the same amount or more the next two months, and 
   are generously extending a short term interest free loan. 
   
I don't believe either, even if they told you that in writing. If they 
actually did that, people would get fired. Google has already shown they 
have no mercy for *our accountants*, but they are not going to make *their 
own accountants* suffer this much. 

The other part that makes me not believe it 


   - They made one deposit on the 16th. 
   - They made two more deposits on the 17th
   - On the 18th, they made two reversals for the two deposits they made on 
   the 17th. 
   
That's based on what my bank account says. Google Wallet still thinks they 
made three deposits and I owe them two months pay. 
Nathan

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group 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] Question for a Google Play employee: is it allowed to release a pro version of my existing app?

2013-07-18 Thread Nathan


On Thursday, July 18, 2013 9:00:55 AM UTC-7, AndroidYourself wrote:

 The whole article. It shows that nobody is save at this time.


If nobody is safe, then why let it dictate what you do?

There is some key points you should notice from the article. 

Lodsys is going after Disney, based on their paid apps, even where there 
isn't an in app purchase. 
They are going after them based on U.S. Patent No. 7,222,078, which 
according to some calculations, expired last year. I'm guessing they are 
going after retroactive damages. 

http://aeonlaw.com/in-app-purchase-patent/

Nathan
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group 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] Rendering 24 bit RGB using Android Bitmap

2013-07-18 Thread Romain Guy
No you cannot create 24 bits bitmaps.


On Thu, Jul 18, 2013 at 1:37 PM, Ruslan Novikov novikov.rus...@gmail.comwrote:

 You mean no alpha channel in the Bitmap right?
 If there is alpha channel and it has FF value for every pixel the Bitmap
 is going still be 32 bit, correct?
 One more question: what if I want to create mutable 24 bit Bitmap? Is
 there way?

 Thanks a lot,

 On Thursday, December 9, 2010 10:20:33 AM UTC+2, Romain Guy wrote:

 Hi,

 Just use the ARGB_ configuration and make sure all your pixels are
 opaque.

 On Wed, Dec 8, 2010 at 11:54 PM, KK krishnakumar...@**gmail.com wrote:

 Hi,

  Is there anyway I can render a 24 bit RGB using Android Bitmap
 class? The Bitmap.Config does not seem to have a 24 bit option. Is
 there anyway to do this?

 Thanks in advance
 KK

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




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

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




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

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




Re: [android-developers] Re: Deposits From Google Wallet Weirdness

2013-07-18 Thread N4Spd
I'm in a similar situation: 2 reversals in bank account but no credit in 
wallet so I still owe google money.  WTF.

What a mess.  At least they have a number to call now.  I called and had to 
explain/convince the support person that parentheses around a number means 
negative.  Not good.

Will have to wait and hope they credit us for the reversals.

Rob

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




[android-developers] IAP and consumable products

2013-07-18 Thread marksibly
Hi,

I'm trying to implement 'consumable' products in an android app using 
billing v3.

To do this, I'm using getPurchases/consumePurchase *before* starting the 
BUY_INTENT to pre-consume any existing purchases of an item.

However, it doesn't seem to work - after I consume a product, I can't buy 
it again for quite a while (1 to 5+ minutes) - I get a popup with We 
cannot process this order right now. Please try again later. when trying 
to complete the purchase. The item is, however, successfully removed from 
the getPurchases list immediately after consumePurchase.

Does this mean consumePurchase doesn't happen immediately, and can take 
several minutes to actually complete to the point is available for purchase 
again?

Is there another way to achieve this then? billing v2 used to have 
unmanaged products which seems ideal, but not v3.

Bye,
Mark

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