[android-developers] Re: How much internet is spent for each Restful request

2016-03-16 Thread Mustafa Mohammadi
Thanks for invaluable answer, I like the way you thinking. I will try what 
u said but here is a question: how to measure the number of total bytes 
downloaded?
Thanks.


-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b07e792a-d83e-4528-a41f-ef8e0857dd9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] animated pins in google maps

2016-03-16 Thread Robin Weigelt
hi, is there a solution to load animated pins in google maps? i'm 
developing a location based app and want to insert png sequences with 
15frames.
Is there a workaround to make this happen? I want to insert at least 25 
animated pins without crashing the app.

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/25004a5e-58f2-4c56-ba68-40a241139fe2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] PayPal or Google Play In-app Billing?

2016-03-16 Thread Andrea tacconi
Hi,
I am developing for a customer an App called "Lugari Pocket" that allows 
the ondemand video viewing.

In the future for see some of these videos you must have credits that are 
scaled to the vision of each video.
Other videos instead to be able to be seen need a subscription that has a 
period of validity.
These credits or subscriptions can be purchased and consumed by the user 
from 3 places, the iOS App, the Android App and the website.
I was wondering if I am obliged to use for Android app Google Play In-App 
Billing or if I can use PayPal.

By reading the Developer Policy Centre I read about Google Play In-app 
Billing that: "Payment is for digital content that may be consumed outside 
of the app itself (e.g. songs that can be played on other music players)."

So I have to use PayPal?
Risk that Google block me the developer account if I use PayPal?

How should i do?

Thanks

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8e474095-ab3a-4891-8c1e-a0e05f0a7ed4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: In-app purchases made via promo codes return empty developer payload string

2016-03-16 Thread Laszlo Modis
Any of you having problems with empty orderId even when the promo code was 
used in Google Play application? My server side uses that orderId for 
something and it won't allow purchases via promo code.

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e4ef7174-30e7-47f9-b7c9-d2c687dc1f9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] how to synch contacts of facebook and gmail to save into phonebook into android

2016-03-16 Thread sumit kumawat
please anyone know about how to synch contacts of facebook and other social 
media to android phone

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f8089ed0-4ace-416a-96c4-0bfb3ac48488%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Is there any API in to communicate on COM Port (serial communication)

2016-03-16 Thread Trevor Page
Hi,

To communicate via your USB to serial interface, use Android drivers
supplied by the manufacturer. The main USB to serial interfaces to support
are Prolific and FTDI. If you Google those two, you can find the Android
driver library for each, which you'd include in your project.

I have an Android application which supports these two manufacturers' USB
to serial interfaces using their respective drivers, and in the several
years the application has been in development, I very rarely come across a
user whose device isn't FTDI or Prolific.

The Prolific driver is a bit annoying because the latest version
intentionally drops support for older Prolific interfaces; a move they
apparently did to fight counterfeits, but one which caused many of my users
problems. I got around this by using both old and new Prolific drivers in
my application.

I'm aware that there is an Android USB driver project on Github, but I
don't know a great deal about it.

Trev



On Wed, Mar 16, 2016 at 6:34 AM, Sanjyot Kadu 
wrote:

> Hi,
>
> I want to communicate using COM Port present on Mobile with other device.
> The communication should be serial (UART). I will connect the OTG Cable to
> phone and other end of OTG to USB to serial converter.
>
> Is the any API in android development kit? which can use directly to
> access the COM Ports.
>
> i did an experiment using Linux OS , and its possible to communicate using
> linux (linux detects this device as ttyUSB  and using Python API it was
> possible to use the COM PORTS )
>
> please let me know any information on it.
>
> or any other way to do it.
>
> Thanks
> sanjyot
>
> --
> 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.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/3bef6aa7-c497-4bf8-bb06-0fc3d056bf8d%40googlegroups.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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAG8Y82rj%2BaMH32ksEkspR1RmVuhoQR8xRn6UJBpCKO%3DffwsQxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Custom map icon with programmable text and icon color

2016-03-16 Thread Raju Jindal
Hi There,
I need to place the google map icon with text . What i want is to control 
the color of the icon and text content of the icon through java programme.
Tried using the vector drawable but dont know how to control the text and 
the color for the drawable. 
Attaching the final icon i want.
Can you please guide me how to do this..
Appreciate your quick help.

-Rajender Jindal

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/742dee1c-ce64-4908-a36c-3fa2f6f618a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How much internet is spent for each Restful request

2016-03-16 Thread gjs
Hi,

I'd suggest you conduct some tests to try to work this out for yourself by 
writing some test code to measure the elapsed time (in milliseconds eg 
using System.currentTimeMillis() ) and the counting the number of total 
bytes downloaded when you (a) include the News Description & (b) when you 
exclude the News Description.

You would probably need to run the tests multiple times to get a good 
representation of the differences given that the number of bytes for New 
Description will likely vary for each News item.

I'd guess that including the News Description probably won't make too much 
of a difference if these are only a few sentences long and that including 
or excluding the News Picture would likely make more of a significant 
difference.

I find that measuring by testing yourself is usually a good way to learn 
things instead of just asking someone else...

Regards 

On Wednesday, March 16, 2016 at 4:44:32 PM UTC+11, Mustafa Mohammadi wrote:
>
> Hello every one
> I am new to android and I'm developing a *News application* for just 
> *improving 
> myself*. The application loads news from a WordPress website using 
> Restful. Here is the simple news model:
>
>1. Title
>2. News Description
>3. Category
>4. Date
>5. News Picture
>
> For every new News, the application sends a request using *Restful* for 
> new one(s) to sync data. Here is a case scenario that: the reader do not 
> read all news, I mean from 20 News, just open 2 or 3 of them. To prevent 
> data bundle consumption, I thought that just request for needed info like 
> (*Title, 
> Category, Data and Picture*) but, just *News Description* is remained 
> (Not requested). While reader opens the news, then application sends 
> request for opened *News Description.*
> Here are two questions:
>
>1. Do you think if it is a correct approach that request for *all news 
>attributes* apart from News Description? Doesn't it reduce the 
>application performance or whatever?
>2. How much internet is spent for just News Description?
>
> Please help me to improve my skill.
> Thanks
>

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6c3baac6-10e3-4241-9cb0-65f2eb98354e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Is there any API in to communicate on COM Port (serial communication)

2016-03-16 Thread Sanjyot Kadu
Hi,

I want to communicate using COM Port present on Mobile with other device. 
The communication should be serial (UART). I will connect the OTG Cable to 
phone and other end of OTG to USB to serial converter.

Is the any API in android development kit? which can use directly to access 
the COM Ports.

i did an experiment using Linux OS , and its possible to communicate using 
linux (linux detects this device as ttyUSB  and using Python API it was 
possible to use the COM PORTS )

please let me know any information on it.

or any other way to do it.

Thanks
sanjyot

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3bef6aa7-c497-4bf8-bb06-0fc3d056bf8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.