Re: [android-developers] HTTP server in Android

2012-10-08 Thread Archana
I m doing a research project. The requirement is to implement HTTP server. 
I will look at GCM as well. Any help is welcome.
Thanks!

On Monday, October 8, 2012 9:41:34 AM UTC+3, Kristopher Micinski wrote:
>
> Listen... Why do you want to implement an HTTP server in Android... 
>
> There are just, so many reasons this is a bad idea.  The only 
> acceptable one might be "this is for fun and I'm just doing it to play 
> around." 
>
> But for any kind of real application, you'd want to do something else, 
> and I'd really urge you to look into something like GCM. 
>
> kris 
>
> On Thu, Oct 4, 2012 at 1:57 AM, Archana > 
> wrote: 
> > Hi, I want to develop HTTP server in Android. I used the link 
> > https://gist.github.com/1893396#gistcomment-582451 NanoHTTPD. But when 
> I 
> > open the page http://10.0.2.15:8080, I am getting WebPage not found. In 
> the 
> > logs, I am getting 
> > 
> > 10-04 05:55:39.106: E/Tab(499): onReceivedError -6 
> http://10.0.2.15:8697/ 
> > The connection to the server was unsuccessful. 
> > 
> > Can anyone please tell me what the error is about? Or is there any other 
> way 
> > to implement a HTTP server in Android? 
> > 
> > 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-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=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] HTTP server in Android

2012-10-08 Thread Kristopher Micinski
It's sort of dubious as to why you would do a research project using
an HTTP server in Android, what you probably want is cross device
messaging, in which case your purposes would be much better served
using GCM

kris

On Mon, Oct 8, 2012 at 3:01 AM, Archana  wrote:
> I m doing a research project. The requirement is to implement HTTP server. I
> will look at GCM as well. Any help is welcome.
> Thanks!
>
> On Monday, October 8, 2012 9:41:34 AM UTC+3, Kristopher Micinski wrote:
>>
>> Listen... Why do you want to implement an HTTP server in Android...
>>
>> There are just, so many reasons this is a bad idea.  The only
>> acceptable one might be "this is for fun and I'm just doing it to play
>> around."
>>
>> But for any kind of real application, you'd want to do something else,
>> and I'd really urge you to look into something like GCM.
>>
>> kris
>>
>> On Thu, Oct 4, 2012 at 1:57 AM, Archana  wrote:
>> > Hi, I want to develop HTTP server in Android. I used the link
>> > https://gist.github.com/1893396#gistcomment-582451 NanoHTTPD. But when I
>> > open the page http://10.0.2.15:8080, I am getting WebPage not found. In
>> > the
>> > logs, I am getting
>> >
>> > 10-04 05:55:39.106: E/Tab(499): onReceivedError -6
>> > http://10.0.2.15:8697/
>> > The connection to the server was unsuccessful.
>> >
>> > Can anyone please tell me what the error is about? Or is there any other
>> > way
>> > to implement a HTTP server in Android?
>> >
>> > 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-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=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] activity nevigation

2012-10-08 Thread Ibrahim Sada
have you tried my code..what i have given you

On 8 October 2012 11:55, Sadhna Upadhyay  wrote:

> No,its nevigating but for a milli second previous activity also visible
> then agen stops on next activity
>
>
>
>
>
>
> On Mon, Oct 8, 2012 at 11:32 AM, Ibrahim Sada wrote:
>
>> What is your problm...
>>Your not navigating from 1st activity to 2nd activity or wat..?
>>
>> On 8 October 2012 11:01, Sadhna Upadhyay wrote:
>>
>>> Hi Everybody,
>>>I am stuck in a problem, the is this that when i
>>> get nevigate from one activity to another activity then next activity
>>> appears for a milli second and its previous activity comes forword for a
>>> milli second then next activity will be stop,it happens like blinking or
>>> flactuate,it may be a siili question but a am not able to find its solution
>>> that what kind of it is exception,can some one tell me how to start next
>>> activity,
>>>
>>> I implement like this,
>>> Intent in=new Intent(A.this,b.class);
>>> startActivity(in);
>>>
>>> pls help me if any one have any idea,
>>>
>>> Thanks:
>>> Sadhana.
>>>
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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: Google account from different country

2012-10-08 Thread Rudolf Hornig
Hi, 

I went through this thing already (how to do the taxing (hopefully) 
correctly). I live in Hungary (inside EU). Whenever I sell an app, that is 
a licensing contract between ME and the BUYER (google has nothing to do 
with it. They are just a technical intermediate).

You sell the app at the full price (what you set on the console). Now as 
I'm inside EU, *if* the consumer is also inside the EU that purchase is 
subject to VAT which should be paid by ME (at the local (hungarian) tax 
rate which is 27% in Hungary (shit!)).

i.e. I had to set full flat rate tax for all EU countries (this is pretty 
easy to set up in the merchant console). 

Now, at the time of the purchase I owe 30% to google which could be seen as 
an expense (deductible from the profits).

generally if I set the net price to 1EUR and someone buys it in the EU, she 
will pay 1.27 EUR, Google will withhold the 30% of the NET price (i.e. 
30cents) so you will receive 1.27-0.30 = 0.94 EUR

Now from this 0.97 EUR, you must pay the 0.27EUR to the local TAX 
authority, so at the the end you will have 0.7EUR net profit (subject to 
further taxes)

(there are some further complications as in theory you have to pay the VAT 
*locally* for the service (i.e. the software distribution) Google has 
provided to you. i.e. you should have additionally pay 0.30EUR*27%, but 
this amount is also TAX deductible at the same time, so you don't have to 
pay it actually... This is just an accounting issue). Please note that this 
is based on LOCAL Hungarian Tax laws, but laws in the EU must be reasonably 
compatible.


Generally, you should see Google as a big vending machine, dispensing your 
products. You are selling products to the customers and the vending machine 
provider charges you  30% of your NET income...

The location of your bank account does not matter at all...

(As in Hungary we do not have EUR but we have HUF as the official currency, 
all taxes must be calculated and paid in HUF. This further complicates the 
issue, as the TAX must be calculated immediatley on the day of purchase 
using the national banks currency exchange. Obviously this is different 
from the rates used by google, so you have an additional risk here. Welcome 
to the real world...)

Rudolf


On Friday, October 5, 2012 4:26:05 PM UTC+2, latimerius wrote:
>
> On Fri, Oct 5, 2012 at 2:37 AM, Zsolt Vasvari 
> > 
> wrote: 
> > In all countries, with the notable exception of the US, you pay taxes 
> where 
> > you earn them.  If you are a US national/PR, the US government expect 
> you 
> > pay US taxes no matter where you earned the money.  The first $X is  a 
> > foreign tax credit which means you don't pay double taxes on the first 
> $X 
> > you earn.  X is around $95,000 these days.  Anyway, this is the general 
> > idea, and I am not a tax accountant, so don't take this as an advice. 
>  With 
> > any questions, you need to consult a professional tax accountant. 
>
> No worries, fortunately I don't have to deal with this problem 
> anymore.  I had to though when we first got involved with Android, and 
> our plan B was exactly what the OP describes.  We figured it should 
> work from Google point of view (as Rudolf confirms) however we saw no 
> good way to figure out the taxes. 
>
> Where exactly you earn money can be a tricky question for someone 
> sitting in country A, using a sort of a proxy entity in country B to 
> sell stuff to someone else in country C, with the actual transaction 
> happening on Google servers in country D (most likely the U.S.). 
>
> I wouldn't be surprised at all if the logic (with respect to OP's 
> situation) was "Google deals with a Czech entity who has a Czech 
> street address and a Czech bank account, ergo someone's making profit 
> in CZ and has to pay Czech taxes".  Or something like that.  Now, if 
> he also lives there he has to pay Czech taxes anyway.  The interesting 
> case would be if he lives in Serbia, as that would indicate Serbia 
> might be the place of his tax residence (depending on local laws) 
> which would mean he'd have to pay Serbian taxes as well. 
>
> So there seems to be a plausible argument for paying Czech taxes, and 
> a plausible argument for paying Serbian taxes. 
>
> Now I won't be paying any money to anyone to figure this out as I 
> don't *have* to know currently, I just thought I'd ask in case 
> somebody here has some experience or knowledge about this. 
>

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

[android-developers] Re: HTTP server in Android

2012-10-08 Thread gjs
Hi,

A HTTP server is useful in Android for some apps, eg: wireless remote 
access to your files inside a LAN.

Regards 

On Sunday, October 7, 2012 6:19:14 PM UTC+11, gjs wrote:
>
> Hi,
>
> No sure that will work if both emulators have the same IP address.
>
> I'd try running server & client programs in the same emulator. For the 
> server use any port number between 1025 & 65535 that is not already used, 
> ports below 1024 are generally reserve in linux/unix system & need su 
> rights.  
>
> Regards
>
> On Friday, October 5, 2012 5:54:45 PM UTC+10, Archana wrote:
>>
>> Hi, I need to create an application(using 2 emulators) in which: Each 
>> emulator serves as a server and a client.
>>
>> Server starts as a service in background. On request by the client, I 
>> have to transfer the contents of a JSON file from 1 emulator's server to 
>> other emulator's client.. Can you please guide me in the usage of how to 
>> use port numbers(as the IP addresses of both instances of the emulator is 
>> the same)?
>>
>> Thank you!
>>
>> On Friday, October 5, 2012 5:48:19 AM UTC+3, gjs wrote:
>>>
>>> Hi,
>>>
>>> Change the port number in your request -
>>>
>>> PORT = 8765
>>>
>>> not 8080
>>>
>>> And yes you can write your own http server simply by using a server 
>>> socket. 
>>> http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html
>>>
>>> Regards 
>>>
>>>
>>> On Thursday, October 4, 2012 3:57:58 PM UTC+10, Archana wrote:

 Hi, I want to develop HTTP server in Android. I used the link 
 https://gist.github.com/1893396#gistcomment-582451 NanoHTTPD. But when 
 I open the page http://10.0.2.15:8080, I am getting WebPage not found. 
 In the logs, I am getting 

 10-04 05:55:39.106: E/Tab(499): onReceivedError -6 
 http://10.0.2.15:8697/ The connection to the server was unsuccessful.

 Can anyone please tell me what the error is about? Or is there any 
 other way to implement a HTTP server in Android?

 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

[android-developers] Tab Customisation

2012-10-08 Thread janvi
Hello All

I need a small information on tabs in android.

I want to customise the tab in a similar way as our message tab in android 
phones
Suppose when message arrives to us we get number on the message tab,I want 
to implement the same functionality in my application.
Just provide me with the sample example 

Plz reply me as soon as possible

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

Re: [android-developers] Tab Customisation

2012-10-08 Thread Amey Bapat
google it..you would get a lot of tutorials on TabView

On Mon, Oct 8, 2012 at 1:50 PM, janvi  wrote:

> Hello All
>
> I need a small information on tabs in android.
>
> I want to customise the tab in a similar way as our message tab in android
> phones
> Suppose when message arrives to us we get number on the message tab,I want
> to implement the same functionality in my application.
> Just provide me with the sample example
>
> Plz reply me as soon as possible
>
> 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




-- 
live and let LIVE!!!

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

2012-10-08 Thread Amey Bapat
for GCM refer this blog
http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html

On Mon, Oct 8, 2012 at 1:00 PM, gjs  wrote:

> Hi,
>
> A HTTP server is useful in Android for some apps, eg: wireless remote
> access to your files inside a LAN.
>
> Regards
>
> On Sunday, October 7, 2012 6:19:14 PM UTC+11, gjs wrote:
>>
>> Hi,
>>
>> No sure that will work if both emulators have the same IP address.
>>
>> I'd try running server & client programs in the same emulator. For the
>> server use any port number between 1025 & 65535 that is not already used,
>> ports below 1024 are generally reserve in linux/unix system & need su
>> rights.
>>
>> Regards
>>
>> On Friday, October 5, 2012 5:54:45 PM UTC+10, Archana wrote:
>>>
>>> Hi, I need to create an application(using 2 emulators) in which: Each
>>> emulator serves as a server and a client.
>>>
>>> Server starts as a service in background. On request by the client, I
>>> have to transfer the contents of a JSON file from 1 emulator's server to
>>> other emulator's client.. Can you please guide me in the usage of how to
>>> use port numbers(as the IP addresses of both instances of the emulator is
>>> the same)?
>>>
>>> Thank you!
>>>
>>> On Friday, October 5, 2012 5:48:19 AM UTC+3, gjs wrote:

 Hi,

 Change the port number in your request -

 PORT = 8765

 not 8080

 And yes you can write your own http server simply by using a server
 socket. http://docs.oracle.com/javase/**tutorial/networking/sockets/**
 clientServer.html

 Regards


 On Thursday, October 4, 2012 3:57:58 PM UTC+10, Archana wrote:
>
> Hi, I want to develop HTTP server in Android. I used the link
> https://gist.github.com/**1893396#gistcomment-582451
>  **NanoHTTPD. But when I open the page http://10.0.2.15:8080, I am
> getting WebPage not found. In the logs, I am getting
>
> 10-04 05:55:39.106: E/Tab(499): onReceivedError -6
> http://10.0.2.15:8697/ The connection to the server was unsuccessful.
>
> Can anyone please tell me what the error is about? Or is there any
> other way to implement a HTTP server in Android?
>
> 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
>



-- 
live and let LIVE!!!

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

2012-10-08 Thread Mike
Hi Everyone,
I am working on improving the MTP write performance of devices in general.
I came across this code in kernel/fs/sync.c
178int
 vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync)
179{
180
if (!file->f_op || !file->f_op->fsync)
181
return -EINVAL;
182
return file->f_op->fsync(file, start, end, datasync);
183}
184EXPORT_SYMBOL(vfs_fsync_range);

can someone point out what happens if I disable this code, as I see good 
improvement in performance if I disable this.

Also this code has been changed in Samung's Kernel code
int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int 
datasync) { struct address_space *mapping = file->f_mapping; int err, ret; 
if (!file->f_op || !file->f_op->fsync) { ret = -EINVAL; goto out; } ret = 
filemap_write_and_wait_range(mapping, start, end); /* * We need to protect 
against concurrent writers, which could cause * livelocks in 
fsync_buffers_list(). */ mutex_lock(&mapping->host->i_mutex); err = 
file->f_op->fsync(file, datasync); if (!ret) ret = err; 
mutex_unlock(&mapping->host->i_mutex); out: return ret; }

Can anyone point out what the additional code is doing and why. (In case 
you have seen this)
Also please suggest any other option to improve MTP write performance

Thanks for your help
Mike

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

[android-developers] Re: MTP performance

2012-10-08 Thread RichardC
AOSP groups are here:
http://source.android.com/community/index.html

On Monday, October 8, 2012 10:20:06 AM UTC+1, Mike wrote:
>
> Hi Everyone,
> I am working on improving the MTP write performance of devices in general.
> I came across this code in kernel/fs/sync.c
> 178int
>  vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync)
> 179{
> 180
> if (!file->f_op || !file->f_op->fsync)
> 181
> return -EINVAL;
> 182
> return file->f_op->fsync(file, start, end, datasync);
> 183}
> 184EXPORT_SYMBOL(vfs_fsync_range);
>
> can someone point out what happens if I disable this code, as I see good 
> improvement in performance if I disable this.
>
> Also this code has been changed in Samung's Kernel code
> int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int 
> datasync) { struct address_space *mapping = file->f_mapping; int err, ret; 
> if (!file->f_op || !file->f_op->fsync) { ret = -EINVAL; goto out; } ret = 
> filemap_write_and_wait_range(mapping, start, end); /* * We need to protect 
> against concurrent writers, which could cause * livelocks in 
> fsync_buffers_list(). */ mutex_lock(&mapping->host->i_mutex); err = 
> file->f_op->fsync(file, datasync); if (!ret) ret = err; 
> mutex_unlock(&mapping->host->i_mutex); out: return ret; }
>
> Can anyone point out what the additional code is doing and why. (In case 
> you have seen this)
> Also please suggest any other option to improve MTP write performance
>
> Thanks for your help
> Mike
>

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

[android-developers] Using jmdns

2012-10-08 Thread s_ali

I have never used jmdns before. now I want to learn about it. I have tried 
many codes given in chunks on the internet but could not find the 
appropriate one. I am given the task to publish a service and then discover 
it using jmdns. Can anyone help me by send a sample code.

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

[android-developers] Re: Using jmdns

2012-10-08 Thread RichardC
And this has what to do with programming Android using the Android SDK?

On Monday, October 8, 2012 12:19:03 PM UTC+1, s_ali wrote:
>
>
> I have never used jmdns before. now I want to learn about it. I have tried 
> many codes given in chunks on the internet but could not find the 
> appropriate one. I am given the task to publish a service and then discover 
> it using jmdns. Can anyone help me by send a sample code.
>
>

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

2012-10-08 Thread Sara Ali
dnt know.. it can be on android or PC...

On Mon, Oct 8, 2012 at 4:24 PM, RichardC wrote:

> And this has what to do with programming Android using the Android SDK?
>
>
> On Monday, October 8, 2012 12:19:03 PM UTC+1, s_ali wrote:
>>
>>
>> I have never used jmdns before. now I want to learn about it. I have
>> tried many codes given in chunks on the internet but could not find the
>> appropriate one. I am given the task to publish a service and then discover
>> it using jmdns. Can anyone help me by send a sample code.
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Using jmdns

2012-10-08 Thread Ibrahim Sada
Assalamualkaium how r you saraWts your problm..?

On 8 October 2012 17:21, Sara Ali  wrote:

> dnt know.. it can be on android or PC...
>
>
> On Mon, Oct 8, 2012 at 4:24 PM, RichardC 
> wrote:
>
>> And this has what to do with programming Android using the Android SDK?
>>
>>
>> On Monday, October 8, 2012 12:19:03 PM UTC+1, s_ali wrote:
>>>
>>>
>>> I have never used jmdns before. now I want to learn about it. I have
>>> tried many codes given in chunks on the internet but could not find the
>>> appropriate one. I am given the task to publish a service and then discover
>>> it using jmdns. Can anyone help me by send a sample code.
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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

[android-developers] Re: Using jmdns

2012-10-08 Thread s_ali
dnt know.. it can be on android or PC...

On Monday, October 8, 2012 4:24:33 PM UTC+5, RichardC wrote:
>
> And this has what to do with programming Android using the Android SDK?
>
> On Monday, October 8, 2012 12:19:03 PM UTC+1, s_ali wrote:
>>
>>
>> I have never used jmdns before. now I want to learn about it. I have 
>> tried many codes given in chunks on the internet but could not find the 
>> appropriate one. I am given the task to publish a service and then discover 
>> it using jmdns. Can anyone help me by send a sample code.
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Timestamp of a file in internal memory(Android phone)

2012-10-08 Thread Archana
Hi, is there a way to get the timestamp of a file in the internal memory of 
phone? Or how do I compare latest of 2 files in 2 instances of the emulator?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Timestamp of a file in internal memory(Android phone)

2012-10-08 Thread Mark Murphy
On Mon, Oct 8, 2012 at 8:01 AM, Archana  wrote:
> Hi, is there a way to get the timestamp of a file in the internal memory of
> phone?

java.io.File has methods for this (e.g., lastModified()).

> Or how do I compare latest of 2 files in 2 instances of the emulator?

Not by timestamp, as they may not be using the same clock. You will
need to compare the file lengths and, if equal, compare the file
contents.

Note that this has nothing in particular to do with Android -- this is
a generic Java programming issue.

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

Android Training in NYC: http://marakana.com/training/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


Re: [android-developers] Re: Using jmdns

2012-10-08 Thread Sara Ali
W salam..m fine... I need a sample code in which jmdns is used to discover
services.

On Mon, Oct 8, 2012 at 4:53 PM, Ibrahim Sada wrote:

> Assalamualkaium how r you saraWts your problm..?
>
>
> On 8 October 2012 17:21, Sara Ali  wrote:
>
>> dnt know.. it can be on android or PC...
>>
>>
>> On Mon, Oct 8, 2012 at 4:24 PM, RichardC 
>> wrote:
>>
>>> And this has what to do with programming Android using the Android SDK?
>>>
>>>
>>> On Monday, October 8, 2012 12:19:03 PM UTC+1, s_ali wrote:


 I have never used jmdns before. now I want to learn about it. I have
 tried many codes given in chunks on the internet but could not find the
 appropriate one. I am given the task to publish a service and then discover
 it using jmdns. Can anyone help me by send a sample code.

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

2012-10-08 Thread Ibrahim Sada
Soo you dnt wanna accept my request...
   k i will try to help u if i can

On 8 October 2012 17:41, Sara Ali  wrote:

> W salam..m fine... I need a sample code in which jmdns is used to discover
> services.
>
> On Mon, Oct 8, 2012 at 4:53 PM, Ibrahim Sada wrote:
>
>> Assalamualkaium how r you saraWts your problm..?
>>
>>
>> On 8 October 2012 17:21, Sara Ali  wrote:
>>
>>> dnt know.. it can be on android or PC...
>>>
>>>
>>> On Mon, Oct 8, 2012 at 4:24 PM, RichardC >> > wrote:
>>>
 And this has what to do with programming Android using the Android SDK?


 On Monday, October 8, 2012 12:19:03 PM UTC+1, s_ali wrote:
>
>
> I have never used jmdns before. now I want to learn about it. I have
> tried many codes given in chunks on the internet but could not find the
> appropriate one. I am given the task to publish a service and then 
> discover
> it using jmdns. Can anyone help me by send a sample code.
>
>  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, 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 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: Using jmdns

2012-10-08 Thread Ibrahim Sada
Okey fyn i can help u out ...inshallah

On 8 October 2012 17:41, Sara Ali  wrote:

> W salam..m fine... I need a sample code in which jmdns is used to discover
> services.
>
> On Mon, Oct 8, 2012 at 4:53 PM, Ibrahim Sada wrote:
>
>> Assalamualkaium how r you saraWts your problm..?
>>
>>
>> On 8 October 2012 17:21, Sara Ali  wrote:
>>
>>> dnt know.. it can be on android or PC...
>>>
>>>
>>> On Mon, Oct 8, 2012 at 4:24 PM, RichardC >> > wrote:
>>>
 And this has what to do with programming Android using the Android SDK?


 On Monday, October 8, 2012 12:19:03 PM UTC+1, s_ali wrote:
>
>
> I have never used jmdns before. now I want to learn about it. I have
> tried many codes given in chunks on the internet but could not find the
> appropriate one. I am given the task to publish a service and then 
> discover
> it using jmdns. Can anyone help me by send a sample code.
>
>  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, 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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How can i display my places in mapview

2012-10-08 Thread Олег Леонов
How can i display "my places"(not my) in mapview? The problem is to get 
places of user.

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

2012-10-08 Thread GregKoshmak
hey wambin,

I've tried to install the above mentioned application, 
but its not available in my country (sweden).

So we have to wait for someone who has both an access and sensors.

and btw, has anyone tested the following samsung app?
http://www.samsungapps.com/topApps/topAppsDetail.as?productId=G8603624

regards,
gregory

On Thursday, September 27, 2012 11:28:15 AM UTC+2, wambin wrote:
>
> Hi all.
> I've found a HDP application on Google Play.
> https://play.google.com/store/apps/details?id=jp.littlesoftware.dnet.bts
>
> I think that It's the only HDP application with HDP API in the world.
> It can communicate with these devices.
> A&D UC-321PBT-C
> A&D UA-767PBT-C
> A&D UC-411PBT-C
>
> I don't have any of them.
> So I want someone who have these devices to check the steps below.
>
> 1.communicate with the device.
> 2.kill the app proccess or turn off Bluetooth in Android config.
> 3.try to recommunicate.
>
> If you can recommunicate in step3, the application would unregister 
> AppConfig correctly.
> And we can say that, there are some way to unregister AppConfig correctly 
> and make HDP application what works fine.
>
> Thanks.
>
> On Tuesday, July 17, 2012 8:07:58 PM UTC+9, wambin wrote:
>>
>> For my 6 monthes reseach, I understand that below.
>> No one can build Android HDP application with this HDP API.
>> (Some people built HDP app to use Bluez with JNI. search in youtube.)
>> I cann't find any Android HDP app in markets.
>> (it has taken 6 monthes over since HDP API to be published!)
>> So many people have troubles about HDP demo.
>> Android API developers don't take any action about it.
>> (4.1.1 jellybean has same problems 
>> http://code.google.com/p/android/issues/detail?id=26704&can=1&q=hdp&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
>> )
>>
>> The only way to report the problem to Android API developers is Google 
>> group Android.
>> (http://code.google.com/p/android/issues/list)
>> developer.android.com dosen't publish mail address but provide this 
>> forum.
>> I want to add star to the HDP issues(
>> http://code.google.com/p/android/issues/detail?id=26704&q=hdp&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars)
>>  
>> API developers to see, if no one has solution.
>>
>> Regards.
>>
>> On Tuesday, July 17, 2012 4:49:41 PM UTC+9, jfernandez wrote:
>>>
>>> Hi wambin, 
>>>
>>> Then, you have found the same troubles that all of us. 
>>>
>>> Regards. 
>>>
>>> On Tue, Jul 17, 2012 at 7:59 AM, wambin  wrote: 
>>> > Hi, thanks to reply. 
>>> > The problem is that ApplicationConfiguration remain, in spite of 
>>> calling 
>>> > unregisterAppConfiguration(). 
>>> > I confirmed the demo can communicate with a health device at first 
>>> time, but 
>>> > second time or later it cann't. 
>>> > Sometimes Android reboots when I unregister the application config and 
>>> > REregister. 
>>> > The demo can communicate only once whenever rebooting. 
>>> > 
>>> > My health devices 
>>> > blood pressure: HEM-7081-IT 
>>> > weighing machine: HBF-206IT 
>>> > pedometer: HJ-720IT 
>>> > 
>>> > I can communicate currectly with all of these devices and get health 
>>> > data.(only once whenever rebooting) 
>>> > 
>>> > 
>>> > On Thursday, July 12, 2012 6:06:55 PM UTC+9, jfernandez wrote: 
>>> >> 
>>> >> Hi wambin: 
>>> >> 
>>> >> Could you tell more about the exact problem that you are 
>>> experiencing? 
>>> >> And, what's the medical device that you are using? 
>>> >> 
>>> >> Regards. 
>>> >> 
>>> >> On Tue, Jul 10, 2012 at 12:16 PM, wambin  
>>> wrote: 
>>> >> > Hi jfernandez and all. 
>>> >> > 
>>> >> > I've had the same problem for half a year. 
>>> >> > My device is Galaxy Nexus SC-04D ver4.0.4. 
>>> >> > I've not solved this problem yet, in spite of half a year 
>>> researches. 
>>> >> > I gradually be sure that this is a bug of unregisterAppConfig(). 
>>> >> > Here is a report about this problem. 
>>> >> > Google android group 
>>> >> > 
>>> >> > 
>>> http://code.google.com/p/android/issues/detail?id=26704&can=1&q=hdp&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
>>>  
>>> >> > 
>>> >> > I think this is a only way to report the bug to Android API 
>>> developers, 
>>> >> > because developer.android.com provides this forum as a Support. 
>>> >> > So, I want you to add a star or comment to this issue, if you have 
>>> the 
>>> >> > same 
>>> >> > problem. 
>>> >> > And wish to be debug. 
>>> >> > 
>>> >> > 
>>> >> > On Thursday, February 2, 2012 8:05:51 PM UTC+9, jfernandez wrote: 
>>> >> >> 
>>> >> >> Hi all, 
>>> >> >> 
>>> >> >> I have observed a strange and undesirable behaviour that I'm going 
>>> to 
>>> >> >> describe. When an HDP channel is stablished, the Android system 
>>> starts 
>>> >> >> a long proccess of freeing memory (I have lots of Logcat messages 
>>> like 
>>> >> >> "dalvikm - GC_CONCURRENT freed 494K ..."), even in some occasions, 
>>> the 
>>> >> >> system crashes and the smartphone is rebooted. I don't know if 
>>> this is 
>>> >> >> a problem of my ROM/smart

Re: [android-developers] Timestamp of a file in internal memory(Android phone)

2012-10-08 Thread Archana
Thank you!

On Monday, October 8, 2012 3:10:24 PM UTC+3, Mark Murphy (a Commons Guy) 
wrote:
>
> On Mon, Oct 8, 2012 at 8:01 AM, Archana > 
> wrote: 
> > Hi, is there a way to get the timestamp of a file in the internal memory 
> of 
> > phone? 
>
> java.io.File has methods for this (e.g., lastModified()). 
>
> > Or how do I compare latest of 2 files in 2 instances of the emulator? 
>
> Not by timestamp, as they may not be using the same clock. You will 
> need to compare the file lengths and, if equal, compare the file 
> contents. 
>
> Note that this has nothing in particular to do with Android -- this is 
> a generic Java programming issue. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in NYC: http://marakana.com/training/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

Re: [android-developers] Re: Google account from different country

2012-10-08 Thread Latimerius
Interesting information, cheers!

On Mon, Oct 8, 2012 at 9:23 AM, Rudolf Hornig  wrote:
> Hi,
>
> I went through this thing already (how to do the taxing (hopefully)
> correctly). I live in Hungary (inside EU). Whenever I sell an app, that is a
> licensing contract between ME and the BUYER (google has nothing to do with
> it. They are just a technical intermediate).
>
> You sell the app at the full price (what you set on the console). Now as I'm
> inside EU, *if* the consumer is also inside the EU that purchase is subject
> to VAT which should be paid by ME (at the local (hungarian) tax rate which
> is 27% in Hungary (shit!)).
>
> i.e. I had to set full flat rate tax for all EU countries (this is pretty
> easy to set up in the merchant console).
>
> Now, at the time of the purchase I owe 30% to google which could be seen as
> an expense (deductible from the profits).
>
> generally if I set the net price to 1EUR and someone buys it in the EU, she
> will pay 1.27 EUR, Google will withhold the 30% of the NET price (i.e.
> 30cents) so you will receive 1.27-0.30 = 0.94 EUR
>
> Now from this 0.97 EUR, you must pay the 0.27EUR to the local TAX authority,
> so at the the end you will have 0.7EUR net profit (subject to further taxes)
>
> (there are some further complications as in theory you have to pay the VAT
> *locally* for the service (i.e. the software distribution) Google has
> provided to you. i.e. you should have additionally pay 0.30EUR*27%, but this
> amount is also TAX deductible at the same time, so you don't have to pay it
> actually... This is just an accounting issue). Please note that this is
> based on LOCAL Hungarian Tax laws, but laws in the EU must be reasonably
> compatible.
>
>
> Generally, you should see Google as a big vending machine, dispensing your
> products. You are selling products to the customers and the vending machine
> provider charges you  30% of your NET income...
>
> The location of your bank account does not matter at all...
>
> (As in Hungary we do not have EUR but we have HUF as the official currency,
> all taxes must be calculated and paid in HUF. This further complicates the
> issue, as the TAX must be calculated immediatley on the day of purchase
> using the national banks currency exchange. Obviously this is different from
> the rates used by google, so you have an additional risk here. Welcome to
> the real world...)
>
> Rudolf
>
>
> On Friday, October 5, 2012 4:26:05 PM UTC+2, latimerius wrote:
>>
>> On Fri, Oct 5, 2012 at 2:37 AM, Zsolt Vasvari  wrote:
>> > In all countries, with the notable exception of the US, you pay taxes
>> > where
>> > you earn them.  If you are a US national/PR, the US government expect
>> > you
>> > pay US taxes no matter where you earned the money.  The first $X is  a
>> > foreign tax credit which means you don't pay double taxes on the first
>> > $X
>> > you earn.  X is around $95,000 these days.  Anyway, this is the general
>> > idea, and I am not a tax accountant, so don't take this as an advice.
>> > With
>> > any questions, you need to consult a professional tax accountant.
>>
>> No worries, fortunately I don't have to deal with this problem
>> anymore.  I had to though when we first got involved with Android, and
>> our plan B was exactly what the OP describes.  We figured it should
>> work from Google point of view (as Rudolf confirms) however we saw no
>> good way to figure out the taxes.
>>
>> Where exactly you earn money can be a tricky question for someone
>> sitting in country A, using a sort of a proxy entity in country B to
>> sell stuff to someone else in country C, with the actual transaction
>> happening on Google servers in country D (most likely the U.S.).
>>
>> I wouldn't be surprised at all if the logic (with respect to OP's
>> situation) was "Google deals with a Czech entity who has a Czech
>> street address and a Czech bank account, ergo someone's making profit
>> in CZ and has to pay Czech taxes".  Or something like that.  Now, if
>> he also lives there he has to pay Czech taxes anyway.  The interesting
>> case would be if he lives in Serbia, as that would indicate Serbia
>> might be the place of his tax residence (depending on local laws)
>> which would mean he'd have to pay Serbian taxes as well.
>>
>> So there seems to be a plausible argument for paying Czech taxes, and
>> a plausible argument for paying Serbian taxes.
>>
>> Now I won't be paying any money to anyone to figure this out as I
>> don't *have* to know currently, I just thought I'd ask in case
>> somebody here has some experience or knowledge about this.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this m

[android-developers] Re: Wrong apk starts-up

2012-10-08 Thread katarina
Hi Justin,

sorry for not coming back immediatelly I hope you will read this
message...

This is a part of the manifest file:

 

- 
- 
  
  
  
- 
  
  
  
  
- 
  
  
  
  
  


Can it be because we have another application on the phone with the
same name - com.android.mms.MmsApp and another activity (in a
different application) with the same name
com.android.mms.ui.ConversationList?

What has to be unique on the system - application name, activity
name?

Thanks in advance for any possible hints,
Katarina



On Sep 24, 7:37 pm, Justin Anderson  wrote:
> What does your manifest look like?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
>
>
>
>
>
>
> On Mon, Sep 24, 2012 at 8:17 AM, katarina  wrote:
> > Dear friends,
>
> > we are developing a new mms application that works in parallel with
> > the original/phone provided mms application. They work on the same
> > content provider.
> > All works fine, except, we have two different icons for them, but when
> > we click on icon 1 -> apk 2 starts up and the other way around. The
> > behaviour is inconsistent, sometimes clicking icon 1 starts up apk 1 -
> > which is fine, but the system does not behave consistently. Basically,
> > it is not predictable which apk will start on clicking either of the
> > icons.
>
> > Does anybody have any idea why is this happening?
>
> > Many thanks for any help indeed.
>
> > Katarina
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Grow heap (frag case) for allocation

2012-10-08 Thread bob
*If your app is done in API 11 or higher, in the < application /> in the 
Android Manifest.xml, you can use largeHeap=”true” which will allow the 
application to use more heap if it is available.*
*
*
*http://knowledge.lapasa.net/?p=772
*
On Saturday, October 6, 2012 4:32:49 AM UTC-5, tj wrote:
>
> hello frnzz,
> In my project i am fetching a text file from row folder. file size is near 
> about 3 MB. each and every time while reading that text file, heap size 
> grows rapidly. after reaching it's memory limit it 
> gives outOfMemoryException. i have used bufferReader, inputStream and 
> stringBuilder to read file. geeks plz help me. hope for positive responce.
> 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

[android-developers] Re: Wrong apk starts-up

2012-10-08 Thread RichardC
Can it be because we have another application on the phone with the 

> same name - com.android.mms.MmsApp and another activity (in a 
>

The Package name MUST be unique
 

> different application) with the same name 
> com.android.mms.ui.ConversationList? 
>
> What has to be unique on the system - application name, activity 
> name? 
>
> Thanks in advance for any possible hints, 
> Katarina 
>
>
>
> On Sep 24, 7:37 pm, Justin Anderson  wrote: 
> > What does your manifest look like? 
> > 
> > Thanks, 
> > Justin Anderson 
> > MagouyaWare Developerhttp://sites.google.com/site/magouyaware 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Mon, Sep 24, 2012 at 8:17 AM, katarina  
> wrote: 
> > > Dear friends, 
> > 
> > > we are developing a new mms application that works in parallel with 
> > > the original/phone provided mms application. They work on the same 
> > > content provider. 
> > > All works fine, except, we have two different icons for them, but when 
> > > we click on icon 1 -> apk 2 starts up and the other way around. The 
> > > behaviour is inconsistent, sometimes clicking icon 1 starts up apk 1 - 
> > > which is fine, but the system does not behave consistently. Basically, 
> > > it is not predictable which apk will start on clicking either of the 
> > > icons. 
> > 
> > > Does anybody have any idea why is this happening? 
> > 
> > > Many thanks for any help indeed. 
> > 
> > > Katarina 
> > 
> > > -- 
> > > 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=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: Wrong apk starts-up

2012-10-08 Thread Latimerius
On Mon, Oct 8, 2012 at 4:19 PM, katarina  wrote:
> Can it be because we have another application on the phone with the
> same name

Hm, I don't think this is even possible - how do you achieve this?
IIRC if you try to "adb install" an .apk with a package name that's
installed already it will return an error and do nothing (unless you
use -r that is, but that would make it a different operation).

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


[android-developers] How to know that telephone service provider is the number

2012-10-08 Thread Edel Custodio Frias
I want to know that number phone call me.

Somebody help me please!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 know that telephone service provider is the number

2012-10-08 Thread Kristopher Micinski
You want to know the phone's number..?

kris

On Mon, Oct 8, 2012 at 1:10 PM, Edel Custodio Frias
 wrote:
> I want to know that number phone call me.
>
> Somebody help me please!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 know that telephone service provider is the number

2012-10-08 Thread Edel Custodio Frias
Yes, I need know that services provider call me, example her in Mexico 
there are tree companys telcel, Iusacell, Movistar, so, I want to know the 
number and that company call me.

El lunes, 8 de octubre de 2012 12:18:43 UTC-5, Kristopher Micinski escribió:
>
> You want to know the phone's number..? 
>
> kris 
>
> On Mon, Oct 8, 2012 at 1:10 PM, Edel Custodio Frias 
> > wrote: 
> > I want to know that number phone call me. 
> > 
> > Somebody help me please! 
> > 
> > -- 
> > 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=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 can i display my places in mapview

2012-10-08 Thread TreKing
On Mon, Oct 8, 2012 at 8:25 AM, Олег Леонов  wrote:

> The problem is to get places of user.


This problem has nothing to do with Android. Google around for a "My
Places" api or something.

-
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

[android-developers] Re: Grow heap (frag case) for allocation

2012-10-08 Thread Lew
tj wrote:

> hello frnzz,
> In my project i am fetching a text file from row folder. file size is near 
> about 3 MB. each and every time while reading that text file, heap size 
> grows rapidly. after reaching it's memory limit it 
> gives outOfMemoryException. i have used bufferReader, inputStream and 
> stringBuilder to read file. geeks plz help me. hope for positive responce.
>

"Plz" show us how you're reading the file.

There are various ways to control memory and avoid packratting,  
the failure to let go of obsolete references. You might not be using 
garbage-collection-friendly idioms. Asking for more memory when you 
aren't managing the memory you already have is tantamount to asking 
for the OOME to continue.

3 MB isn't all that large a file even for Android. I suspect your code is 
what
has the problem. Perhaps you could put together a Simple, Short, Complete, 
Compilable Example, or SSCCE 
http://sscce.org/
that demonstrates the issue?

Without seeing what you've done, it's a shot in the dark to recommend what 
to do instead.

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

[android-developers] Re: Grow heap (frag case) for allocation

2012-10-08 Thread Lew
tj wrote:

> hello frnzz,
>

What is a "fmzz"?
 

> In my project i [sic] am fetching a text file from row folder. file size 
> is near about 3 MB. each and every time while reading that text file, heap 
> size grows rapidly. after reaching it's [sic] memory limit it 
> gives outOfMemoryException. 
>

I am not familiar with that exception. Perhaps you meant 
http://developer.android.com/reference/java/lang/OutOfMemoryError.html
?
 

> i have used bufferReader, inputStream and stringBuilder to read file. 
> geeks plz help me. 

 
I am not familiar with those types. Perhaps you meant 
http://developer.android.com/reference/java/io/BufferedReader.html
http://developer.android.com/reference/java/io/InputStream.html
and 
http://developer.android.com/reference/java/lang/StringBuilder.html
respectively?

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

Re: [android-developers] Re: Wrong apk starts-up

2012-10-08 Thread Lew
latimerius wrote:

> katarinawrote: 
> > Can it be because we have another application on the phone with the 
> > same name 
>
> Hm, I don't think this is even possible - how do you achieve this? 
> IIRC if you try to "adb install" an .apk with a package name that's 
> installed already it will return an error and do nothing (unless you 
> use -r that is, but that would make it a different operation). 
>

Also. you aren't supposed to name applications with someone else's domain.

So unless you own android.com, you aren't supposed to name your app 
com.android.anything.

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

Re: [android-developers] set group height in ExpandableListView issue

2012-10-08 Thread Justin Anderson
What are you doing to change the height?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Oct 7, 2012 at 7:40 AM, Metalex  wrote:

> Hello!
> Please help me, I have issue and can't find a solution.
> I have ExpandableListView with fixed height and group layout with fixed
> height but group's height is always unchanged for any height values! I need
> to make its height smaller.
> Thanks for any suggestions!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] How to perfectly simulate the Nexus 7 inside the SDK emulator.

2012-10-08 Thread sblantipodi
As title.
Is there a way to simulate the Nexus 7 inside the SDK emulator?

As far as I know, the Nexus 7 does not have the Telephony API, how can I 
remove them from the simulator?
What other API nexus 7 lacks?

How can I simulate an environment similar to nexus 7?

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

[android-developers] Display all images from SD card and phone memory

2012-10-08 Thread laxman k
*how to display all images from SD card and Phone memory using gallary 
widget*


*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

[android-developers] keystone password

2012-10-08 Thread John Merlino
I'm trying to export android app to put it on google play android
store. I do the following:

1) File > Export > Android > Export Android Application
2) I select project to export
3) Then I select "use existing keystore"
4) then i browse to debug.keystore

But it asks now for a password. Where would it have asked me to put a
password before? I don't recall what this password is supposed to be.

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


[android-developers] Re: Display all images from SD card and phone memory

2012-10-08 Thread bob
android.widget.Gallery

*This class is deprecated.*
This widget is no longer supported. Other horizontally scrolling widgets 
include 
HorizontalScrollView
 and 
ViewPager
 from 
the support library.

On Monday, October 8, 2012 2:28:13 PM UTC-5, laxman k wrote:
>
> *how to display all images from SD card and Phone memory using gallary 
> widget*
>
> 
> *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

[android-developers] Re: keystone password

2012-10-08 Thread bob
 

You should *create a new keystore*.



On Monday, October 8, 2012 3:47:37 PM UTC-5, John Merlino wrote:
>
> I'm trying to export android app to put it on google play android 
> store. I do the following: 
>
> 1) File > Export > Android > Export Android Application 
> 2) I select project to export 
> 3) Then I select "use existing keystore" 
> 4) then i browse to debug.keystore 
>
> But it asks now for a password. Where would it have asked me to put a 
> password before? I don't recall what this password is supposed to be. 
>

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

2012-10-08 Thread Kostya Vasilyev
>>>
4) then i browse to debug.keystore
<<<

... and leave Eclipse's debug keystore alone, creating a separate one for
Market releases.

Start at "Obtain a suitable private key":

http://developer.android.com/tools/publishing/app-signing.html#cert

-- K

2012/10/9 bob 

> You should *create a new keystore*.
>
>
>
> On Monday, October 8, 2012 3:47:37 PM UTC-5, John Merlino wrote:
>>
>> I'm trying to export android app to put it on google play android
>> store. I do the following:
>>
>> 1) File > Export > Android > Export Android Application
>> 2) I select project to export
>> 3) Then I select "use existing keystore"
>> 4) then i browse to debug.keystore
>>
>> But it asks now for a password. Where would it have asked me to put a
>> password before? I don't recall what this password is supposed to be.
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] The package name of your apk is the same as the package name of another developer's application. Choose a new package name.

2012-10-08 Thread John Merlino
I tried to upload the apk to the store and I get this message:

The package name of your apk (com.otl.AndroidRemoteApp) is the same as
the package name of another developer's application. Choose a new
package name.

I renamed it:

$ mv com.otl.AndroidRemoteApp.SplashScreen.apk
com.otl.AndroidRemoteApp.SplashScreenNew.apk

and tried the upload again and still got the same error

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


[android-developers] Re: The package name of your apk is the same as the package name of another developer's application. Choose a new package name.

2012-10-08 Thread Lew
John Merlino wrote:

> I tried to upload the apk to the store and I get this message: 
>
> The package name of your apk (com.otl.AndroidRemoteApp) is the same as 
> the package name of another developer's application. Choose a new 
> package name. 
>
> I renamed it: 
>
> $ mv com.otl.AndroidRemoteApp.SplashScreen.apk 
> com.otl.AndroidRemoteApp.SplashScreenNew.apk 
>
> and tried the upload again and still got the same error 
>

That isn't how you set the package name of an Android application.

http://developer.android.com/guide/topics/manifest/manifest-intro.html

Do you own the "otl.com" domain?

If not, you shouldn't 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

[android-developers] Re: The package name of your apk is the same as the package name of another developer's application. Choose a new package name.

2012-10-08 Thread John Merlino
Here's the thing. It's the same application. Someone else had uploaded
it using their google play account, but now I have an updated version
that I want to upload using my google play account. So I just want to
be able to upload it.

On Oct 8, 6:01 pm, Lew  wrote:
> John Merlino wrote:
> > I tried to upload the apk to the store and I get this message:
>
> > The package name of your apk (com.otl.AndroidRemoteApp) is the same as
> > the package name of another developer's application. Choose a new
> > package name.
>
> > I renamed it:
>
> > $ mv com.otl.AndroidRemoteApp.SplashScreen.apk
> > com.otl.AndroidRemoteApp.SplashScreenNew.apk
>
> > and tried the upload again and still got the same error
>
> That isn't how you set the package name of an Android application.
>
> http://developer.android.com/guide/topics/manifest/manifest-intro.html
>
> Do you own the "otl.com" domain?
>
> If not, you shouldn't 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


Re: [android-developers] Re: The package name of your apk is the same as the package name of another developer's application. Choose a new package name.

2012-10-08 Thread Mark Murphy
On Mon, Oct 8, 2012 at 6:07 PM, John Merlino  wrote:
> Here's the thing. It's the same application. Someone else had uploaded
> it using their google play account, but now I have an updated version
> that I want to upload using my google play account. So I just want to
> be able to upload it.

Have the "someone else" sign and upload it, as it is their app, from
the standpoint of the Play Store.

Reputedly, there is some process by which you can get the Play Store
folk to transfer an app between accounts, though I am not seeing a
mention of how to do that in the Play Store docs.

Regardless, once an app is on the Play Store, the Play Store account
and signing key must both match the original ones used with that
package. So, if you do not have the signing key from "someone else" or
cannot get "someone else" to arrange to transfer the app to your Play
Store account, you cannot publish an updated version of the app.

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

Android Training in NYC: http://marakana.com/training/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


[android-developers] multiple key codes not working?

2012-10-08 Thread nchubrich
In the android keyboard API, we find the following for keyboard XML
files:

android:codes The unicode value or comma-separated values that this
key outputs.

Trying to put multiple comma-separated codes onto a key in the XML
file like so:

android:codes="0x0051,0x0057"

Seems to break everything.  In particular, onKey in the
onKeyboardActionListener interface has two parameters, primaryCode and
keyCodes.  keyCodes is supposed to contain an array of all the
keyCodes from the key pressed.  When the XML file has only one code in
android:codes, this works: primaryCode is the code in question, and
keyCodes contains this primary code and is empty elsewhere.  But when
you try to put mutliple codes as above, both of these parameters are
empty (0 for primaryCode, and an array of -1's for keyCodes).

The documentation for onKey has this to say:

"The codes for all the possible alternative keys with the primary code
being the first. If the primary key code is a single character such as
an alphabet or number or symbol, the alternatives will include other
characters that may be on the same key or adjacent keys. These codes
are useful to correct for accidental presses of a key adjacent to the
intended key."

so keyCodes seems to be designed to receive multiple keycodes.

Any idea of what's not working?

Thanks,

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


Re: [android-developers] KeyChain.getPrivateKey(Context,String) on Android 4.1?

2012-10-08 Thread Nikolay Elenkov
On Sun, Oct 7, 2012 at 2:56 AM, James Yonan  wrote:
>
>
> Raw RSA encryption is necessary as part of the challenge/response handshake
> of an SSL/TLS negotiation, if your side of the connection is using a cert as
> an authentication factor.  It's essential for VPN implementations that layer
> on top of SSL/TLS transport and need to interoperate with an external key
> store.  I enumerated the signature algs provided by the AndroidOpenSSL 1.0
> provider and I don't see any implementation for raw RSA.  Some Java
> implementations include it as "NONEwithRSA", but I don't see it here.
>

OK, that makes sense. The current version indeed doesn't provide this, but it
looks like it has been added in AOSP master:

// Cipher
put("Cipher.RSA/ECB/NoPadding", OpenSSLCipherRawRSA.class.getName());
put("Alg.Alias.Cipher.RSA/None/NoPadding", "RSA/ECB/NoPadding");

Haven't tested it yet though. BTW, CyanogenMod 10 seems to pull from jb-dev,
so it's not in there yet either.

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

2012-10-08 Thread Nakul Maheshri
 Hello,
  I want to convert audio file into text in android & audio file is 
located at sdcard
  How to do that? is there any web service is available to do 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

Re: [android-developers] Re: Gallery with Zoom Application needed

2012-10-08 Thread vamshi ch
yes zafer..if you have just  share with me.

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

2012-10-08 Thread Sadhna Upadhyay
yes.




On Mon, Oct 8, 2012 at 12:33 PM, Ibrahim Sada wrote:

> have you tried my code..what i have given you
>
>
> On 8 October 2012 11:55, Sadhna Upadhyay wrote:
>
>> No,its nevigating but for a milli second previous activity also visible
>> then agen stops on next activity
>>
>>
>>
>>
>>
>>
>> On Mon, Oct 8, 2012 at 11:32 AM, Ibrahim Sada wrote:
>>
>>> What is your problm...
>>>Your not navigating from 1st activity to 2nd activity or wat..?
>>>
>>> On 8 October 2012 11:01, Sadhna Upadhyay wrote:
>>>
 Hi Everybody,
I am stuck in a problem, the is this that when i
 get nevigate from one activity to another activity then next activity
 appears for a milli second and its previous activity comes forword for a
 milli second then next activity will be stop,it happens like blinking or
 flactuate,it may be a siili question but a am not able to find its solution
 that what kind of it is exception,can some one tell me how to start next
 activity,

 I implement like this,
 Intent in=new Intent(A.this,b.class);
 startActivity(in);

 pls help me if any one have any idea,

 Thanks:
 Sadhana.




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

2012-10-08 Thread saminath sanjai
Hi All,

I need application which automatically answer the phone call. And route the
Audio call into another android phone using wifi network between the
devices.
Any application is exist available?.


Kindly suggest me. Thanks in advance.

with regards,
saminath

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Buffer/Cache/Stream youtube videos and play in Android app using MediaPlayer not by WebView/VideoView

2012-10-08 Thread Keyur


Hello All,

I am in need of help in one of my R&D. I am having one application in which 
I would like to play YouTube Videos. I do some googling and I found lots of 
tutorial on how to play YouTube videos in Android. But most of all gives me 
the solution which uses *WebView/VideoView*.

For e.g. *startActivity(new Intent(Intent.ACTION_VIEW, 
Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM";)));*

This will play the video in WebView. But I don't want to use WebView, Can't 
we use MediaPlayer functionality to do this task? Also I would like to 
Buffer/Cache the video in background to make it user friendly.

*1) So my question is how to play YouTube video through MediaPlayer in 
Android?*

*2) Same time how to buffer/cache the video in 
Background/Service/AsyncTask? For e.g you clicked on 1 video from listview 
and then user go back to the listview or do some other task and in mean 
time the video will be buffered in background and after some time user can 
view that video.*

If anyone have any idea please kindly guide me.

Thanks & Regards

Keyur Ashra

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

2012-10-08 Thread Kristopher Micinski
no such program can exist because of the way telephony is handled
through the baseband.

kris

On Tue, Oct 9, 2012 at 12:10 AM, saminath sanjai  wrote:
> Hi All,
>
> I need application which automatically answer the phone call. And route the
> Audio call into another android phone using wifi network between the
> devices.
> Any application is exist available?.
>
>
> Kindly suggest me. Thanks in advance.
>
> with regards,
> saminath
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 know that telephone service provider is the number

2012-10-08 Thread Asheesh Arya
just go through this link might be you get some idea
http://www.krvarma.com/2010/08/detecting-incoming-and-outgoing-calls-in-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

Re: [android-developers] How can i display my places in mapview

2012-10-08 Thread Asheesh Arya
just go through this link might be you get  some idea
http://eagle.phys.utk.edu/guidry/android/mapOverlayDemo.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Unable to execute Bluetooth HDP Demo

2012-10-08 Thread wambin
Hi Greg.
Thank you for your attempt.
I tried to install the samsung app.
But the app only support S3. My device is Galaxy Nexus SC-04D.
So I wait anyone's testing.

regards.

On Monday, October 8, 2012 9:53:29 PM UTC+9, GregKoshmak wrote:
>
> hey wambin,
>
> I've tried to install the above mentioned application, 
> but its not available in my country (sweden).
>
> So we have to wait for someone who has both an access and sensors.
>
> and btw, has anyone tested the following samsung app?
> http://www.samsungapps.com/topApps/topAppsDetail.as?productId=G8603624
>
> regards,
> gregory
>
> On Thursday, September 27, 2012 11:28:15 AM UTC+2, wambin wrote:
>>
>> Hi all.
>> I've found a HDP application on Google Play.
>> https://play.google.com/store/apps/details?id=jp.littlesoftware.dnet.bts
>>
>> I think that It's the only HDP application with HDP API in the world.
>> It can communicate with these devices.
>> A&D UC-321PBT-C
>> A&D UA-767PBT-C
>> A&D UC-411PBT-C
>>
>> I don't have any of them.
>> So I want someone who have these devices to check the steps below.
>>
>> 1.communicate with the device.
>> 2.kill the app proccess or turn off Bluetooth in Android config.
>> 3.try to recommunicate.
>>
>> If you can recommunicate in step3, the application would unregister 
>> AppConfig correctly.
>> And we can say that, there are some way to unregister AppConfig correctly 
>> and make HDP application what works fine.
>>
>> Thanks.
>>
>> On Tuesday, July 17, 2012 8:07:58 PM UTC+9, wambin wrote:
>>>
>>> For my 6 monthes reseach, I understand that below.
>>> No one can build Android HDP application with this HDP API.
>>> (Some people built HDP app to use Bluez with JNI. search in youtube.)
>>> I cann't find any Android HDP app in markets.
>>> (it has taken 6 monthes over since HDP API to be published!)
>>> So many people have troubles about HDP demo.
>>> Android API developers don't take any action about it.
>>> (4.1.1 jellybean has same problems 
>>> http://code.google.com/p/android/issues/detail?id=26704&can=1&q=hdp&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
>>> )
>>>
>>> The only way to report the problem to Android API developers is Google 
>>> group Android.
>>> (http://code.google.com/p/android/issues/list)
>>> developer.android.com dosen't publish mail address but provide this 
>>> forum.
>>> I want to add star to the HDP issues(
>>> http://code.google.com/p/android/issues/detail?id=26704&q=hdp&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars)
>>>  
>>> API developers to see, if no one has solution.
>>>
>>> Regards.
>>>
>>> On Tuesday, July 17, 2012 4:49:41 PM UTC+9, jfernandez wrote:

 Hi wambin, 

 Then, you have found the same troubles that all of us. 

 Regards. 

 On Tue, Jul 17, 2012 at 7:59 AM, wambin  wrote: 
 > Hi, thanks to reply. 
 > The problem is that ApplicationConfiguration remain, in spite of 
 calling 
 > unregisterAppConfiguration(). 
 > I confirmed the demo can communicate with a health device at first 
 time, but 
 > second time or later it cann't. 
 > Sometimes Android reboots when I unregister the application config 
 and 
 > REregister. 
 > The demo can communicate only once whenever rebooting. 
 > 
 > My health devices 
 > blood pressure: HEM-7081-IT 
 > weighing machine: HBF-206IT 
 > pedometer: HJ-720IT 
 > 
 > I can communicate currectly with all of these devices and get health 
 > data.(only once whenever rebooting) 
 > 
 > 
 > On Thursday, July 12, 2012 6:06:55 PM UTC+9, jfernandez wrote: 
 >> 
 >> Hi wambin: 
 >> 
 >> Could you tell more about the exact problem that you are 
 experiencing? 
 >> And, what's the medical device that you are using? 
 >> 
 >> Regards. 
 >> 
 >> On Tue, Jul 10, 2012 at 12:16 PM, wambin  
 wrote: 
 >> > Hi jfernandez and all. 
 >> > 
 >> > I've had the same problem for half a year. 
 >> > My device is Galaxy Nexus SC-04D ver4.0.4. 
 >> > I've not solved this problem yet, in spite of half a year 
 researches. 
 >> > I gradually be sure that this is a bug of unregisterAppConfig(). 
 >> > Here is a report about this problem. 
 >> > Google android group 
 >> > 
 >> > 
 http://code.google.com/p/android/issues/detail?id=26704&can=1&q=hdp&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
  
 >> > 
 >> > I think this is a only way to report the bug to Android API 
 developers, 
 >> > because developer.android.com provides this forum as a Support. 
 >> > So, I want you to add a star or comment to this issue, if you have 
 the 
 >> > same 
 >> > problem. 
 >> > And wish to be debug. 
 >> > 
 >> > 
 >> > On Thursday, February 2, 2012 8:05:51 PM UTC+9, jfernandez wrote: 
 >> >> 
 >> >> Hi all, 
 >> >> 
 >> >> I have observed a strange and undesirable behaviour that I'm 
 go