Re: [android-developers] hai every body

2012-04-16 Thread deb-account

On 16/04/12 08:47, arun wrote:

different between Relative layout and linear layout .

define Relative layout and linear layout


   
http://lmgtfy.com/?q=android+different+between+Relative+layout+and+linear+layout 


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

2012-04-16 Thread Live Happy
i used the quick action view  3d  who exist in this site and its work like
charm to me
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/comment-page-4/#comment-12086
but in this sample  there is only one row  of icon  and  i want have multi
row of icons
they use a linear  layout  and i want update it to table layout and add the
linear layout  to table row in this table layout after number of icon given
mean add action in the sample

wish that if someone can help me and thz on 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] Android Mobile Recharge Application Development APIs required

2012-04-16 Thread Rocky
Hi,

I wants to develop Android Mobile Recharge application, for that I wants
APIs for Airtel, BSNL, and other Indian Telecom vendor's.

Plz let me know, if it is possible and from where i'll get api's.


-- 
Thanks & Regards

Rakesh Kumar Jha

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

2012-04-16 Thread Jim Graham
On Sun, Apr 15, 2012 at 11:47:11PM -0700, arun wrote:
> different between Relative layout and linear layout .

Yes, there is.

> define Relative layout and linear layout

Two different types of xml layouts.

If you want to know more, why not look it up for yourself?
http://developer.android.com/guide/index.html

Oh, and you should use a real subject line that actually describes what
you're asking about.  It should be short enough that it won't wrap (that
part gets cut off on some e-mail programs), but should adequately
describe your topic.  Posts with worthless subject lines tend to be
skipped.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

"sigh, once upon a time T-1 was fast"
   --seen in alt.sysadmin.net-abuse.email

Android Apps Listing at http://www.jstrack.org/barcodes.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


[android-developers] open pop-up in new window in my webview

2012-04-16 Thread devilcol
I want to open a link as a pop-up window in webview  which is opened as 
pop-up in normal browser.

I have tried to override some methods from android webclient and 
chromeclient but non of them seems working for me.

tried this link 
http://stackoverflow.com/questions/6183102/possible-webview-oncreatewindow-to-make-popup-windowdialog-style-like-android
 

but I am still facing issue to show pop-up in new window

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

2012-04-16 Thread Jovish P
How to show Arabic font in webview ?  When we load arabic font it is
showing junk characters

Regards
Jovish P

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

Re: [android-developers] Ubuntu Eclipse - Repos or Manual install?

2012-04-16 Thread Lindsay Mathieson

On 16/04/12 16:49, Yaron Reinharts wrote:

Troubleshooting Ubuntu Linux Notes
...
3) The Ubuntu package manager does not currently offer an Eclipse 3.3 
version for download, so we recommend that you download Eclipse from 
eclipse.org ...

"

Hope this helps
/Yaron 


Thanks Yaron, but I think the docs are a bit out of date - current 
Ubuntu version of Eclipse is 3.7.2

--
Lindsay

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

2012-04-16 Thread Tolriq
Ok so finally get an answer thanks Sparky.

The first app was ban because of the screenshots containing a poster of 
Avatar. 

The Unlocker was ban because the screenhot contain the poster of Sintel an 
open source movie but don't have the proper copyright notice in the app 
description.

So even if the app is only a remote for something be very careful with your 
screenshots Google no more joke now that's it's Google Play and they sells 
movies too :)


Le vendredi 13 avril 2012 11:18:14 UTC+2, Tolriq a écrit :
>
> This is totally insane they just ban my unlocker application ...
>
> For the exact same reason as the old paying application 
>
> This unlocker is a simple application that does nothing but only it's 
> presence is checked by the free application.
>
> The free application is still here.
>
> They just don't want me to sell application but there's no problem to take 
> my 25$ for my account.
>
> Any other company than Google would be in big troubles for acting like 
> this, but here it's a monster company against indie dev, why bother 
> answering them .
>
> Le vendredi 13 avril 2012 09:07:12 UTC+2, Pent a écrit :
>>
>> >  They even took 
>> > down the Support Forum and your only option is to send form letters 
>> which 
>> > don't even get answered the majority of the time. 
>>
>> I havn't gotten a single answer since the time they took down the 
>> forum. I don't write anymore, I'm worried I'll break my laptop when 
>> their automated response comes. 
>>
>> My opinion of Google as a 'business partner' is heading towards rock 
>> bottom from this and other issues. It's incomprehensible when 
>> considering the resources they command. 
>>
>> Sorry for thread-napping :-) 
>>
>> Pent
>
>

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

[android-developers] How to install Market on Emulator ?

2012-04-16 Thread Jovish P
We are able to install Android  market on emulator, if the sdk is 3.0. If
we update the sdk to 4.0 and follow the same steps the android market is
not getting installed. This is the link which we referred to install
Android Market on emulator. Anyone know the reason behind this ? Please
help me out to install market on emulator 4.0.
*
blog.varunkumar.me/2010/11/how-to-install-android-market-in-google.html*


Regards,
Jovish

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

2012-04-16 Thread Mark Murphy
The Google Play Store / Android Market is not available for the
emulator. The blog you link to is from a software pirate who is
distributing Google-owned software without a license.

If you wish to use pirated software, that is your decision. However,
do not come onto this list expecting support in your piracy efforts.

On Mon, Apr 16, 2012 at 7:58 AM, Jovish P  wrote:
> We are able to install Android  market on emulator, if the sdk is 3.0. If we
> update the sdk to 4.0 and follow the same steps the android market is not
> getting installed. This is the link which we referred to install Android
> Market on emulator. Anyone know the reason behind this ? Please help me out
> to install market on emulator 4.0.
>
> blog.varunkumar.me/2010/11/how-to-install-android-market-in-google.html
>
>
> Regards,
> Jovish
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android Training...At Your Office: http://commonsware.com/training

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


[android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Amit Mangal
Hi there,

I am creating on android app. i want to know how to load different layout
for tablet and phone.
The reason is phone screen is small so layout i have prepared is different
and tablet screen is big so i want to load different layout for tablet.

any idea how to do that.

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

Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Mark Murphy
http://developer.android.com/guide/practices/screens_support.html

On Mon, Apr 16, 2012 at 8:50 AM, Amit Mangal
 wrote:
> Hi there,
>
> I am creating on android app. i want to know how to load different layout
> for tablet and phone.
> The reason is phone screen is small so layout i have prepared is different
> and tablet screen is big so i want to load different layout for tablet.
>
> any idea how to do that.
>
> 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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Amit Mangal
what is this i want to load different activity for tablet and different for
phone how to do that ?

thanks

On Mon, Apr 16, 2012 at 6:24 PM, Mark Murphy wrote:

> http://developer.android.com/guide/practices/screens_support.html
>
> On Mon, Apr 16, 2012 at 8:50 AM, Amit Mangal
>  wrote:
> > Hi there,
> >
> > I am creating on android app. i want to know how to load different layout
> > for tablet and phone.
> > The reason is phone screen is small so layout i have prepared is
> different
> > and tablet screen is big so i want to load different layout for tablet.
> >
> > any idea how to do that.
> >
> > 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
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-04-16 Thread Farhan Tariq
Hi,

I am required to make an application that takes picture from camera and
modify the picture. I wanted to know if there are good android-compatible
image processing libraries out there that someone here has used. Also I
would like someone to tell me what KEYWORDS should i look into to be able
to make the application. I want to add glasses to a picture of a person
taken with camera. Any help is appreciated.

Regards,

Farhan

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

2012-04-16 Thread Farhan Tariq
I am looking for something like this >>  itunes.apple.com/us/app/*fatbooth*
/id372268904?mt=8

On Mon, Apr 16, 2012 at 6:01 PM, Farhan Tariq  wrote:

> Hi,
>
> I am required to make an application that takes picture from camera and
> modify the picture. I wanted to know if there are good android-compatible
> image processing libraries out there that someone here has used. Also I
> would like someone to tell me what KEYWORDS should i look into to be able
> to make the application. I want to add glasses to a picture of a person
> taken with camera. Any help is appreciated.
>
> Regards,
>
> Farhan
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 load different layout for tablet and phone ?

2012-04-16 Thread Mark Murphy
On Mon, Apr 16, 2012 at 8:58 AM, Amit Mangal
 wrote:
> what is this i want to load different activity for tablet and different for
> phone how to do that ?

That is not a great idea, in general. That being said, you can find
out the screen size bucket from a Configuration object and use that in
an if() test to decide which Intent to use with startActivity().

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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Amit Mangal
ok thanks

On Mon, Apr 16, 2012 at 6:32 PM, Mark Murphy wrote:

> On Mon, Apr 16, 2012 at 8:58 AM, Amit Mangal
>  wrote:
> > what is this i want to load different activity for tablet and different
> for
> > phone how to do that ?
>
> That is not a great idea, in general. That being said, you can find
> out the screen size bucket from a Configuration object and use that in
> an if() test to decide which Intent to use with startActivity().
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-04-16 Thread David Olsson
Take a look at OpenCV for Android:
http://code.opencv.org/projects/opencv/wiki/OpenCV4Android

On Mon, Apr 16, 2012 at 3:02 PM, Farhan Tariq  wrote:

> I am looking for something like this >>  itunes.apple.com/us/app/*fatbooth
> */id372268904?mt=8
>
>
> On Mon, Apr 16, 2012 at 6:01 PM, Farhan Tariq wrote:
>
>> Hi,
>>
>> I am required to make an application that takes picture from camera and
>> modify the picture. I wanted to know if there are good android-compatible
>> image processing libraries out there that someone here has used. Also I
>> would like someone to tell me what KEYWORDS should i look into to be able
>> to make the application. I want to add glasses to a picture of a person
>> taken with camera. Any help is appreciated.
>>
>> Regards,
>>
>> Farhan
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] In App Billing SecurityException: caller uid XXXXX is different than the authenticator's uid

2012-04-16 Thread Liorry
I'm trying to implement the in-app billing feature in my app.

I did everything the tutorial suggested:

* Implemented the sample app in my app
* Changed all the packages names and added my public key in the
Security.class
* Added a test account and made sure it's the default account in the
device I use for testing
* Published the 2 items (sword and potion) under my unpublished app,
as suggested.

Still getting this error:
SecurityException: caller uid X is different than the
authenticator's uid
Could not retrieve Checkout auth token

Anyone encountered this error and knows how to solve it?

Thank you!

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


Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread iñaki
One solution is for example:
 -- Create a layout in layout folder
 -- Create a layout in layout-xlarge folder with two  panes

In the activities you can ask for the second pane... If you have
second pane you´re in a xlarge resource.


Iñaki

On 16 April 2012 15:05, Amit Mangal  wrote:
> ok thanks
>
>
> On Mon, Apr 16, 2012 at 6:32 PM, Mark Murphy 
> wrote:
>>
>> On Mon, Apr 16, 2012 at 8:58 AM, Amit Mangal
>>  wrote:
>> > what is this i want to load different activity for tablet and different
>> > for
>> > phone how to do that ?
>>
>> That is not a great idea, in general. That being said, you can find
>> out the screen size bucket from a Configuration object and use that in
>> an if() test to decide which Intent to use with startActivity().
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training...At Your Office: http://commonsware.com/training
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Listen to packet data receipt when Android in sleep mode

2012-04-16 Thread Dan


On Apr 16, 1:58 am, Heshan Perera 
wrote:
> As stated in the answer to this (http://stackoverflow.com/questions/
> 5120185/android-sleep-standby-mode)
>
> question, the CDMA and GSM radios are kept on, even after the CPU is
> put to sleep on an Android device.
>
> My questions are...
>
> When a call is received, what is it that wakes the CPU / phone up ?


radio firmware (radio processor side) -> ril driver (app processor
side) -> rilj -> dialer

Some of the ril driver code lives in hardware/ril/libril/ril.cpp in
the AOSP
code but the interesting parts are in the OEM binary blob.

> Is there a similar mechanism to wake my application up when data is
> received via an active TCP connection to a server, even after the
> phone has gone to sleep mode ?

As far as I know there is no similar mechanism available to anybody
that
doesn't have access to a way to modify the OEM binary blob for
whichever
hardware bits are under the TCP connection (WiFi or cell radio.)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 load different layout for tablet and phone ?

2012-04-16 Thread Amit Mangal
unable to understand do you have any small example ?

thanks

On Mon, Apr 16, 2012 at 6:41 PM, iñaki  wrote:

> One solution is for example:
>  -- Create a layout in layout folder
>  -- Create a layout in layout-xlarge folder with two  panes
>
> In the activities you can ask for the second pane... If you have
> second pane you´re in a xlarge resource.
>
>
> Iñaki
>
> On 16 April 2012 15:05, Amit Mangal  wrote:
> > ok thanks
> >
> >
> > On Mon, Apr 16, 2012 at 6:32 PM, Mark Murphy 
> > wrote:
> >>
> >> On Mon, Apr 16, 2012 at 8:58 AM, Amit Mangal
> >>  wrote:
> >> > what is this i want to load different activity for tablet and
> different
> >> > for
> >> > phone how to do that ?
> >>
> >> That is not a great idea, in general. That being said, you can find
> >> out the screen size bucket from a Configuration object and use that in
> >> an if() test to decide which Intent to use with startActivity().
> >>
> >> --
> >> Mark Murphy (a Commons Guy)
> >> http://commonsware.com | http://github.com/commonsguy
> >> http://commonsware.com/blog | http://twitter.com/commonsguy
> >>
> >> Android Training...At Your Office: http://commonsware.com/training
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Searchview problems

2012-04-16 Thread Lars
I have made a android 4.03 test project with tabs and listfragments, the 
listfragments contain a searchview there are a
few problems with the searchview

1. the searchview still contains the searched data when you switch a tab
2. the listfragment is blank the first instance when the searchview is 
never searched on when you switch a tab.

here is the source code of the project hope you guys can help me with this

https://code.google.com/p/searchview-test/ 

the zipped projected can be found in the download section

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 load different layout for tablet and phone ?

2012-04-16 Thread iñaki
Hi,
http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-backwards.html

Iñaki

On 16 April 2012 15:27, Amit Mangal  wrote:
> unable to understand do you have any small example ?
>
> thanks
>
>
> On Mon, Apr 16, 2012 at 6:41 PM, iñaki  wrote:
>>
>> One solution is for example:
>>  -- Create a layout in layout folder
>>  -- Create a layout in layout-xlarge folder with two  panes
>>
>> In the activities you can ask for the second pane... If you have
>> second pane you´re in a xlarge resource.
>>
>>
>> Iñaki
>>
>> On 16 April 2012 15:05, Amit Mangal  wrote:
>> > ok thanks
>> >
>> >
>> > On Mon, Apr 16, 2012 at 6:32 PM, Mark Murphy 
>> > wrote:
>> >>
>> >> On Mon, Apr 16, 2012 at 8:58 AM, Amit Mangal
>> >>  wrote:
>> >> > what is this i want to load different activity for tablet and
>> >> > different
>> >> > for
>> >> > phone how to do that ?
>> >>
>> >> That is not a great idea, in general. That being said, you can find
>> >> out the screen size bucket from a Configuration object and use that in
>> >> an if() test to decide which Intent to use with startActivity().
>> >>
>> >> --
>> >> Mark Murphy (a Commons Guy)
>> >> http://commonsware.com | http://github.com/commonsguy
>> >> http://commonsware.com/blog | http://twitter.com/commonsguy
>> >>
>> >> Android Training...At Your Office: http://commonsware.com/training
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "Android Developers" group.
>> >> To post to this group, send email to
>> >> android-developers@googlegroups.com
>> >> To unsubscribe from this group, send email to
>> >> android-developers+unsubscr...@googlegroups.com
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/android-developers?hl=en
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, 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] Re: In App Billing SecurityException: caller uid XXXXX is different than the authenticator's uid

2012-04-16 Thread Liorry
never mind, custom ROM issue.

On Monday, April 16, 2012 4:11:56 PM UTC+3, Liorry wrote:
>
> I'm trying to implement the in-app billing feature in my app. 
>
> I did everything the tutorial suggested: 
>
> * Implemented the sample app in my app 
> * Changed all the packages names and added my public key in the 
> Security.class 
> * Added a test account and made sure it's the default account in the 
> device I use for testing 
> * Published the 2 items (sword and potion) under my unpublished app, 
> as suggested. 
>
> Still getting this error: 
> SecurityException: caller uid X is different than the 
> authenticator's uid 
> Could not retrieve Checkout auth token 
>
> Anyone encountered this error and knows how to solve it? 
>
> 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] Watch out for "fake" audio sample rates in AudioRecord

2012-04-16 Thread RLScott
If your application records audio at a specified sample rate, be aware
that some OEMs are faking it!  We have a piano tuning app that needs
to detect frequencies up to about 4200 Hz.  This requires sampling
audio at least twice that frequency, or 8400.  So we used one of the
"standard" audio sample rates of 22050.  Most devices we have tested
work fine.  But on the Acer Iconia  tablet something strange happens.
The calls to set up the AudioRecord at 22050 samples per second work
without error, and the frequency spectrum shows that it is indeed
returning 22050 samples for every second of audio.  But then we
started looking at the higher frequencies and found a frequency fold-
back point of 3690 Hz, just as if the sample rate were really 7380
Hz.  Our conclusion is that 7380 is the native audio record sample
rate for the Acer Iconia, but other sample rates are simulated by up-
sampling.  That is, certain samples are repeated in order to make 7380
samples do the job of 22050 samples.  This creates the fold-back
phenomenon where any frequency above 3690 shows up as a frequency
below 3690 by the same amount.  Other than running tests on real sound
I know of no way to programmatically verify that the requested sample
rate is being honored for real and not simulated by up-sampling.  (By
contrast the original Motorola Droid has not such fold-back behavior
and appears to return 22050 samples per second for real.)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-16 Thread TreKing
On Sun, Apr 15, 2012 at 11:59 PM, Narendra Singh Rathore <
nsr.curi...@gmail.com> wrote:

> Why it is automatically called if I make change to EditText, even without
> clicking the button?


IDK, but a break point there see what the call stack looks like to see what
is calling into your function when the text changes.

Also, setting an adapter on a button click seems like a bad thing.

-
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

Re: [android-developers] Watch out for "fake" audio sample rates in AudioRecord

2012-04-16 Thread Daniel Drozdzewski
That's quite shocking, especially that even the cheapest of ADC/DAC
chips support the whole of (human)audio spectrum. Bad engineering.

All you have to do is to have calibrating stage in your app and embed
some audio samples on your website to assist that process.



On 16 April 2012 15:03, RLScott  wrote:
> If your application records audio at a specified sample rate, be aware
> that some OEMs are faking it!  We have a piano tuning app that needs
> to detect frequencies up to about 4200 Hz.  This requires sampling
> audio at least twice that frequency, or 8400.  So we used one of the
> "standard" audio sample rates of 22050.  Most devices we have tested
> work fine.  But on the Acer Iconia  tablet something strange happens.
> The calls to set up the AudioRecord at 22050 samples per second work
> without error, and the frequency spectrum shows that it is indeed
> returning 22050 samples for every second of audio.  But then we
> started looking at the higher frequencies and found a frequency fold-
> back point of 3690 Hz, just as if the sample rate were really 7380
> Hz.  Our conclusion is that 7380 is the native audio record sample
> rate for the Acer Iconia, but other sample rates are simulated by up-
> sampling.  That is, certain samples are repeated in order to make 7380
> samples do the job of 22050 samples.  This creates the fold-back
> phenomenon where any frequency above 3690 shows up as a frequency
> below 3690 by the same amount.  Other than running tests on real sound
> I know of no way to programmatically verify that the requested sample
> rate is being honored for real and not simulated by up-sampling.  (By
> contrast the original Motorola Droid has not such fold-back behavior
> and appears to return 22050 samples per second for real.)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Daniel Drozdzewski

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

2012-04-16 Thread TreKing
On Sun, Apr 15, 2012 at 10:44 PM, ndiiie 90  wrote:

> I want to push notification supports 1.6++, is there any recommendation?


Try this: http://lmgtfy.com/?q=android+push+notification+1.6

-
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

Re: [android-developers] Sub folders under 'layout'

2012-04-16 Thread TreKing
On Sun, Apr 15, 2012 at 11:14 PM, Put_tiMe  wrote:

> Is there any way the resource compiler can handle this?
>

No.
http://code.google.com/p/android/issues/detail?id=10215

-
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

Re: [android-developers] Android Mobile Recharge Application Development APIs required

2012-04-16 Thread TreKing
On Mon, Apr 16, 2012 at 3:50 AM, Rocky  wrote:

> I wants to develop Android Mobile Recharge application, for that I wants
> APIs for Airtel, BSNL, and other Indian Telecom vendor's.
>
> Plz let me know, if it is possible and from where i'll get api's.
>

If I wanted APIs for a given thing, I'd check with that thing.

-
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

Re: [android-developers] Ubuntu Eclipse - Repos or Manual install?

2012-04-16 Thread Nadeem Hasan
I use Eclipse on Kubuntu 12.04 installed from repo. Works fine.

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

Re: [android-developers] Sub folders under 'layout'

2012-04-16 Thread Put_tiMe
25, but growing.
More than the number, it's the sheer time it takes to remember the name of 
the layout.



On Monday, April 16, 2012 9:47:01 AM UTC+5:30, Kumar Bibek wrote:
>
> No. It's not possible. Btw, how many layouts you have now? Just curious.
>
> *Thanks and Regards,
> Kumar Bibek*
> *
> http://techdroid.kbeanie.com
> http://www.kbeanie.com*
>
>
>
> On Mon, Apr 16, 2012 at 9:44 AM, Put_tiMe  wrote:
>
>> The number of XML's in my layout folder is growing and is becoming 
>> difficult to manage.
>>
>> So I want to create sub folders, under layout, to better manage this.
>>
>> Is there any way the resource compiler can handle this?
>>
>> So instead of *R.layout.layout_a* I want to refer it as  *
>> R.layout.folder_1.folder_x.layout_a*.
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Sub folders under 'layout'

2012-04-16 Thread TreKing
On Mon, Apr 16, 2012 at 10:32 AM, Put_tiMe  wrote:

> More than the number, it's the sheer time it takes to remember the name of
> the layout.


Use a naming convention that acts as though you do have subfolders:

Instead of *R.layout.layout_a*, use *R.layout.folder_1_folder_x_layout_a*.
The you can use the auto-complete features of Eclipse to quickly narrow
down the layout you want based on the top level description ("folder" it
would be in).

-
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] Socket sharing between activities

2012-04-16 Thread Tonez
Hi Everyone,

I'm building an Android app which uses TCP sockets to communicate with
a .net server application.  The android app as a whole relies quite
heavily on TCP and as such nearly all the features in the app require
writing to and listening from a socket stream.  I'm trying to
determine what the best design approach is for having more than one
activity utilize a live active socket.

I've recently just finished building an iPhone version of this app,
the way in which I got each feature (different view controllers) to
use one live active socket connection was by passing the live socket
instance to each view controller, each view controller would then
retain ownership of that socket and as such the delegate methods which
fire when a transmission is received work as expected.  Trying to
simulate this design in Android is proving to be a pain because I
can't pass a live socket instance to another activity as part of an
intent parameter.

If I wanted to have activity A listen for incoming TCP data, and then
navigate to Activity B but then have activity B send TCP data to
the .net server and of-course spawn a new thread to listen for
incoming TCP data - what would be the best approach to achieve this?

At the moment what I have is as follows:  activity A spawns a new
thread listening for incoming TCP data, activity A can communicate
with the .net server perfectly fine.  When I navigate to activity B
and then want to communicate with the .net server - creating a new
socket instance and then listening for incoming data results in
activity A's readLine() method receiving the data.  Which makes sense,
it's still running - but obviously the goal is to have activity B
receive this data.

An alternative approach I tried was to close down the TCP socket I
have in activity A when opening up another TCP socket connection when
I need to use TCP in activity B - although this somewhat works it
really feels like the wrong way to go about it.

And lastly, one other approach I've thought of is to have one activity
handling all TCP comms with the .net server and contain all the
functionality in this one activity by swapping out .xml layout files
when necessary.  Obviously this will result in one massive .java file
and again is a route which feels wrong.

Any advice on how I can go about designing my app given that I want to
use TCP functionality in every activity would be greatly appreciated.

Many thanks,

Tonez

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

2012-04-16 Thread guich
Hi all,

Can someone give me an insight (or maybe a code sample :-)) to show a
windows closing on the top of another one? I mean, an animation where
the new window will be shown from out to the center.

thanks

guich

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

2012-04-16 Thread BHUVAN
Hey i have this application which could give me the current gps coordinates 
, i want these coordinates to be sent to a pc through wifi(both the wifi 
and pc are connected to wifi). what is the coding to be done to send the 
GPS coordinates to a pc and should i do anything on the pc end also, please 
help.

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

[android-developers] Re: creating a window-close animation effect

2012-04-16 Thread guich
Just a side note: i saw some code that does this for Views, but i need
to do it with a Bitmap over a Surface.

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] Issue with SystemService addSystemService?

2012-04-16 Thread Tom
Out of curiosity I've tried creating a separate process with UID 0
(root) for rooted devices. This works our just fine, sort of like how
Input2.jar or the like are executed by the Android OS.

My issue is, in that process if I create a reference to an IBinder by
making my own AIDL and extending the stub than call addSystemService
with my own, unique name how can I communicate to this process? In
another process I call getSystemService and the reference to the
IBinder is obtained just fine, but my problem arises when I try to
call any of its methods. I get a StackOverflowError.

So my question is two-part:

- Is is possible to use SystemService without your process actually
being a Service using Android's APIs?
- If it is not possible, how can Parcelable objects be passed to and
from separate process so that an app can leverage private/ system APIs
using root?

Tom

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


[android-developers] Re: Task switcher image

2012-04-16 Thread Brett
Actually I found the solution, there are actually two.

If you call:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);

Then the preview image will always be black in the task switcher
unless you override the activity method:
public boolean onCreateThumbnail(Bitmap outBitmap, Canvas canvas)

This will let you provide any thumbnail that you want when your task
goes to the background.

On Apr 12, 5:58 pm, Brett  wrote:
> In ICS especially, there is a new was to switch tasks like the old way
> of holding down the home key.  Now you see a list of your recent tasks
> with their corresponding images of the last view you were on.
>
> Is there any way to programmatically update this image for your task?
> I have a situation where I get background information and want to
> update the view.  I haven't been able to find anything on how this
> image is populated online.

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

2012-04-16 Thread Federico Paolinelli
Another approach that you could follow is to host the tcp connection inside 
a service (http://developer.android.com/reference/android/app/Service.html)

You can then access the service from any activity you want using the 
binding pattern or through intents.
Just remember that your app may continue to live in background, and your 
service will still be running unless the os kills it. It's up to you to 
disconnect if the activities go in background or if you want to notify the 
user that the connection is still up and running. 

Remember also that service runs in the ui thread, so you will likely need 
to run a different thread inside the service. 

Hope this helps,

 Federico




Il giorno lunedì 16 aprile 2012 18:31:09 UTC+2, Tonez ha scritto:
>
> Hi Everyone, 
>
> I'm building an Android app which uses TCP sockets to communicate with 
> a .net server application.  The android app as a whole relies quite 
> heavily on TCP and as such nearly all the features in the app require 
> writing to and listening from a socket stream.  I'm trying to 
> determine what the best design approach is for having more than one 
> activity utilize a live active socket. 
>
> I've recently just finished building an iPhone version of this app, 
> the way in which I got each feature (different view controllers) to 
> use one live active socket connection was by passing the live socket 
> instance to each view controller, each view controller would then 
> retain ownership of that socket and as such the delegate methods which 
> fire when a transmission is received work as expected.  Trying to 
> simulate this design in Android is proving to be a pain because I 
> can't pass a live socket instance to another activity as part of an 
> intent parameter. 
>
> If I wanted to have activity A listen for incoming TCP data, and then 
> navigate to Activity B but then have activity B send TCP data to 
> the .net server and of-course spawn a new thread to listen for 
> incoming TCP data - what would be the best approach to achieve this? 
>
> At the moment what I have is as follows:  activity A spawns a new 
> thread listening for incoming TCP data, activity A can communicate 
> with the .net server perfectly fine.  When I navigate to activity B 
> and then want to communicate with the .net server - creating a new 
> socket instance and then listening for incoming data results in 
> activity A's readLine() method receiving the data.  Which makes sense, 
> it's still running - but obviously the goal is to have activity B 
> receive this data. 
>
> An alternative approach I tried was to close down the TCP socket I 
> have in activity A when opening up another TCP socket connection when 
> I need to use TCP in activity B - although this somewhat works it 
> really feels like the wrong way to go about it. 
>
> And lastly, one other approach I've thought of is to have one activity 
> handling all TCP comms with the .net server and contain all the 
> functionality in this one activity by swapping out .xml layout files 
> when necessary.  Obviously this will result in one massive .java file 
> and again is a route which feels wrong. 
>
> Any advice on how I can go about designing my app given that I want to 
> use TCP functionality in every activity would be greatly appreciated. 
>
> Many thanks, 
>
> Tonez

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Listen to packet data receipt when Android in sleep mode

2012-04-16 Thread Robert Greenwalt
When the device receives network traffic the chipset triggers a wakeup
interrupt to get the data to the kernel, then a time-limited wakelock is
held while the data is delivered to applications.  If you want to keep the
device awake after receiving the data you should grab your own wakelock
when you get the data.

R

On Sun, Apr 15, 2012 at 10:58 PM, Heshan Perera <
anthonyheshanper...@gmail.com> wrote:

> As stated in the answer to this (http://stackoverflow.com/questions/
> 5120185/android-sleep-standby-mode)
>
> question, the CDMA and GSM radios are kept on, even after the CPU is
> put to sleep on an Android device.
>
> My questions are...
>
> When a call is received, what is it that wakes the CPU / phone up ?
>
> Is there a similar mechanism to wake my application up when data is
> received via an active TCP connection to a server, even after the
> phone has gone to sleep mode ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Ratings missing from application

2012-04-16 Thread Mat Jones
I just noticed I have lost some rating in the past few hours!

God knows how long this has been going on for as I only noticed now

>From searching online is seems this is been a issue for sometime and
there is nothing in the Google known issues list

Anyone else had this issue?

I have filled in the contact us form via
http://support.google.com/googleplay/android-developer/bin/static.py?hl=en&page=known_issues.cs
and dont expect a reply?

What else can I do? Other then thrown my Android phones in the bin and
concentrate on IOS :)

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

2012-04-16 Thread Kibria Ali
I am a beginner Android developer. I am trying to get my head around the 
ViewPager. Before I was trying to work with this example:

http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-horizontal-view-paging/

I had the views working, but could not get functionality working within 
that, and I was told that I need to use Fragments within the ViewPager. 

I went with this tutorial instead:

http://tamsler.blogspot.co.uk/2011/11/android-viewpager-and-fragments-part-ii.html

I have got the basics of a ViewPager with a Fragment working:

FragmentPagerActivity.java

import android.os.Bundle;  
import android.support.v4.app.Fragment;  
import android.support.v4.app.FragmentActivity;  
import android.support.v4.app.FragmentManager;  
import android.support.v4.app.FragmentPagerAdapter;  
import android.support.v4.view.ViewPager;  
   
 public class FragmentPagerActivity extends FragmentActivity {  
   
private static final int NUMBER_OF_PAGES = 10;  
   
private ViewPager mViewPager;  
private MyFragmentPagerAdapter mMyFragmentPagerAdapter;  
   
public void onCreate(Bundle savedInstanceState) {  
   
 super.onCreate(savedInstanceState);  
 setContentView(R.layout.main);  
 mViewPager = (ViewPager) findViewById(R.id.viewpager);  
 mMyFragmentPagerAdapter = new 
MyFragmentPagerAdapter(getSupportFragmentManager());  
 mViewPager.setAdapter(mMyFragmentPagerAdapter);  
}  
   
private static class MyFragmentPagerAdapter extends 
FragmentPagerAdapter {  
   
 public MyFragmentPagerAdapter(FragmentManager fm) {  
  super(fm);  
 }  
   
 @Override  
 public Fragment getItem(int index) {  
   
  return PageFragment.newInstance("My Message " + index);
 }  
   
 @Override  
 public int getCount() {  
   
  return NUMBER_OF_PAGES;  
 }  
}  
 }

PageFragment.java:

import android.os.Bundle;  
import android.support.v4.app.Fragment;  
import android.view.LayoutInflater;  
import android.view.View;  
import android.view.ViewGroup;  
import android.widget.TextView;  
  
public class PageFragment extends Fragment {  
   
   public static PageFragment newInstance(String title) {
 
 PageFragment pageFragment = new PageFragment();
 Bundle bundle = new Bundle();
 bundle.putString("title", title);
 pageFragment.setArguments(bundle);
 return pageFragment;
 }
   
 @Override  
 public void onCreate(Bundle savedInstanceState) {  
 super.onCreate(savedInstanceState);  
 }  
   
 @Override  
 public View onCreateView(LayoutInflater inflater, ViewGroup container, 
Bundle savedInstanceState) {  

 View view = inflater.inflate(R.layout.fragment, container, 
false);  
 TextView textView = (TextView) view.findViewById(R.id.textView1);  
 textView.setText(getArguments().getString("title"));
 return view;  
 }  
}  

main.xml:


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >




fragment.xml:


http://schemas.android.com/apk/res/android";
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >





I want to be able to replace the current layout within the ViewPager with 7 
of my own layouts that already exist and add functionality to the layouts 
using Fragments. What can I do with the code that I already have and the 
changes to make to get this properly working?

If there are any examples of a ViewPager with Fragments available online as 
well rather than just going briefly over it like the do in the Adroid 
Developers blog, I will be very grateful.

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

2012-04-16 Thread guich
I'm still searching. I found that with the ScaleAnimator i can achieve what 
i need, but still trying with no success. This is the code i'm using:

   ScaleAnimation anim=new ScaleAnimation(1,1,0,0);
   anim.setFillAfter(true);
   anim.setFillEnabled(true);
   anim.setInterpolator(new 
android.view.animation.AccelerateInterpolator());
   anim.setDuration(1000L);

This is the ImageView i'm creating to store the new image. This image is 
updated by a native function.

   ImageView image = new ImageView(instance.getContext());
   image.setImageBitmap(sScreenBitmap);
   image.setVisibility(ImageView.VISIBLE);
   image.startAnimation(anim);

This is called from another view. However, nothing happens on screen.

TIA.

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

2012-04-16 Thread b0b
It seems that ratings count go up and down since a few days. I wouldn't 
worry to much about it...

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

2012-04-16 Thread Kristopher Micinski
I would agree, the best thing for this would be a service that you can
bind do and do AIDL calls through, along with coordinating other
things.  Passing the raw socket can be accomplished through the
application object, though that sounds fairly dirty to me.  This is a
fairly common use case (in chat clients, etc.., although you
theoretically shouldn't be this bandwidth heavy..), and one which I
believe is typically implemented via services.

On Mon, Apr 16, 2012 at 12:31 PM, Tonez  wrote:
> Hi Everyone,
>
> I'm building an Android app which uses TCP sockets to communicate with
> a .net server application.  The android app as a whole relies quite
> heavily on TCP and as such nearly all the features in the app require
> writing to and listening from a socket stream.  I'm trying to
> determine what the best design approach is for having more than one
> activity utilize a live active socket.
>
> I've recently just finished building an iPhone version of this app,
> the way in which I got each feature (different view controllers) to
> use one live active socket connection was by passing the live socket
> instance to each view controller, each view controller would then
> retain ownership of that socket and as such the delegate methods which
> fire when a transmission is received work as expected.  Trying to
> simulate this design in Android is proving to be a pain because I
> can't pass a live socket instance to another activity as part of an
> intent parameter.
>
> If I wanted to have activity A listen for incoming TCP data, and then
> navigate to Activity B but then have activity B send TCP data to
> the .net server and of-course spawn a new thread to listen for
> incoming TCP data - what would be the best approach to achieve this?
>
> At the moment what I have is as follows:  activity A spawns a new
> thread listening for incoming TCP data, activity A can communicate
> with the .net server perfectly fine.  When I navigate to activity B
> and then want to communicate with the .net server - creating a new
> socket instance and then listening for incoming data results in
> activity A's readLine() method receiving the data.  Which makes sense,
> it's still running - but obviously the goal is to have activity B
> receive this data.
>
> An alternative approach I tried was to close down the TCP socket I
> have in activity A when opening up another TCP socket connection when
> I need to use TCP in activity B - although this somewhat works it
> really feels like the wrong way to go about it.
>
> And lastly, one other approach I've thought of is to have one activity
> handling all TCP comms with the .net server and contain all the
> functionality in this one activity by swapping out .xml layout files
> when necessary.  Obviously this will result in one massive .java file
> and again is a route which feels wrong.
>
> Any advice on how I can go about designing my app given that I want to
> use TCP functionality in every activity would be greatly appreciated.
>
> Many thanks,
>
> Tonez
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Please help about Renderscript compute

2012-04-16 Thread Booker
Hi, all.

I am a newbie of Android development and I am developing an app for
image processing and I ported some filters to android.

However, the performance is not good and I read some articles pointing
renderscript is one of the way to boost performance.

I read some codes but I find it too difficult for me to understand.

I have a edge detection filter implemented in JAVA and I would like to
port it to RS.

I have read the Helloworld Compute code and I can see the root() is
processing one pixel each time and unpack it into a float4 variable.

However, in my code, I need to read not only one pixel data but
several to calculate the result and I use 2D array to store the
values.

How can I implement this in RS, computing more than one pixel in the
same time?

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

2012-04-16 Thread deboutv
Hi, 

Can you tell us why you want the market on the emulator? There are official 
workarounds but we need to understand why you want the market. 

Vincent

On Monday, April 16, 2012 1:58:15 PM UTC+2, Jovish P wrote:
>
> We are able to install Android  market on emulator, if the sdk is 3.0. If 
> we update the sdk to 4.0 and follow the same steps the android market is 
> not getting installed. This is the link which we referred to install 
> Android Market on emulator. Anyone know the reason behind this ? Please 
> help me out to install market on emulator 4.0.
> *
> blog.varunkumar.me/2010/11/how-to-install-android-market-in-google.html*
>
>
> Regards,
> Jovish  
>

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

2012-04-16 Thread Anurag Pratap Singh
Hi

I need to enable speech recognition on my board not only for the
google search and maps but also for calling the various applications
and text writing for messages and mails.

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


[android-developers] Is there any alter native to download internal source code I am need mms source code ..

2012-04-16 Thread ADB
Hi every one..

Thanks to be here. I am developing MMS application i know there is 
no official documentation available.but my problem is how can i download 
internal application of android MMS application so that i can consider as 
reference..
I have Link http://code.google.com/p/modified-android-mms/source/checkout..
Please help any one 
Thank you

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

Re: [android-developers] Re: Listen to packet data receipt when Android in sleep mode

2012-04-16 Thread anuragpratap singh
For making such an operation happen, you need to make specific changes in
the Hardware Abstraction Layer of whichever Chip-Set you are using. And you
need to check the call sequence from the application layer also.

On Mon, Apr 16, 2012 at 6:42 PM, Dan  wrote:

>
>
> On Apr 16, 1:58 am, Heshan Perera 
> wrote:
> > As stated in the answer to this (http://stackoverflow.com/questions/
> > 5120185/android-sleep-standby-mode)
> >
> > question, the CDMA and GSM radios are kept on, even after the CPU is
> > put to sleep on an Android device.
> >
> > My questions are...
> >
> > When a call is received, what is it that wakes the CPU / phone up ?
>
>
> radio firmware (radio processor side) -> ril driver (app processor
> side) -> rilj -> dialer
>
> Some of the ril driver code lives in hardware/ril/libril/ril.cpp in
> the AOSP
> code but the interesting parts are in the OEM binary blob.
>
> > Is there a similar mechanism to wake my application up when data is
> > received via an active TCP connection to a server, even after the
> > phone has gone to sleep mode ?
>
> As far as I know there is no similar mechanism available to anybody
> that
> doesn't have access to a way to modify the OEM binary blob for
> whichever
> hardware bits are under the TCP connection (WiFi or cell radio.)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards
Anurag Pratap Singh
(09818909113)
Hughes Systique Corporation

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Reboot occurs while using Wi-Fi Direct Demo

2012-04-16 Thread Fabien Demangeat
Hello,

I am playing around with the Wifi-Direct demo provided on the developers 
website
 and I 
am testing it using two Galaxy Nexus running on the version 4.0.2.
While I am trying to connect both devices together through the application, 
one the two phones reboots.

I am wondering if I am the only one having this problem and if this occurs 
because of the application itself or the Wifi-Direct implementation ?
Could you provide me some ways to investigate this problem maybe..

Thank you
Fab

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

2012-04-16 Thread anuragpratap singh
Hi Bhuvan

Can you brief a little more about your application? and what do you do
after sending the coordinates from a phone to PC. coz this is just a simple
data transfer where not much logic is to be put unless you have to do
something with coordinates coz then you might to process the data also.

Thanks and Regards
Anurag

On Mon, Apr 16, 2012 at 10:55 PM, BHUVAN  wrote:

> Hey i have this application which could give me the current gps
> coordinates , i want these coordinates to be sent to a pc through wifi(both
> the wifi and pc are connected to wifi). what is the coding to be done to
> send the GPS coordinates to a pc and should i do anything on the pc end
> also, please help.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards
Anurag Pratap Singh
(09818909113)
Hughes Systique Corporation

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

2012-04-16 Thread Russell
1.I wish my gallery widget can dispaly 6 images at the same time, and
the layout is a 2*3 matrix, and when I slide the screen, the widget
display another 6 images, how to code this function?

2.I want to add some dots under the gallery widget to show which page
the gallery is displaying, is there a widget can achieve this
function?

3.I know hot to load pitcures in the res/drawable, but if my pitcures
are in a database, how to load them?

4.I want to add some buttons to set the gallery widget to display
different category images, how to code?

thx for your answer!!

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

2012-04-16 Thread anuragpratap singh
hi

do you by any chance mean that you need to perform an overlay?
for eg: camera working in the front over a still image in the background?

Thanks
Anurag

On Mon, Apr 16, 2012 at 11:02 PM, guich  wrote:

> Just a side note: i saw some code that does this for Views, but i need
> to do it with a Bitmap over a Surface.
>
> 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
>



-- 
Thanks & Regards
Anurag Pratap Singh
(09818909113)
Hughes Systique Corporation

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

2012-04-16 Thread Felix
Hi RFuente,

I'm in the your same,  i send 3gp live video  from android to a server  via 
socket, and no moov atom (until android device stop recording).
did you found  a solution to encode/process mp4/3gp file  "without moov 
atom" with ffmpeg ?

thnks
Felix

Il giorno martedì 17 agosto 2010 09:25:58 UTC+2, RFuente ha scritto:
>
> Sorry for the wait, I was on holidays. 
>
> This is the command I used for testing: ffmpeg -i input_file.mp4 -ab 
> 12k video.mp4 
>
> "-ab 12k" is not necessary but I used the same as for the proper mp4 
> file. 
> input_file.mp4 has no mp4 structure, I mean, I left mdat atom without 
> headers. 
> Ffmpeg version SVN-r24456 configured with options --enable-libopencore- 
> amrnb --enable-version3 
>
> Note: I have no audio, just video. 
>
> On 4 ago, 21:19, Ivar Refsdal  wrote: 
>
> > 
> > Sorry, I can't help you with that. But I have one question for you: 
> > Are you using any special parameters to decode the video? 
> > What version of FFmpeg? I was never able to decode a truncated file.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Help clarifying Android Market Developer Program Policies > Spam and Placement

2012-04-16 Thread צוות בנו בנודיז
I got the same mail
What to do? 
I was removed all the search tags. whath now?

בתאריך יום רביעי, 21 בדצמבר 2011 23:35:48 UTC+2, מאת John Moses:

> I just got an email with the subject 7-Day Notificati**on of Android 
> Market Developer Term Violation noting the spam and placement section.  I 
> have an app that is a ListView of each state that links to a WebView for a 
> form hosted by state government.  I listed out the name of each state in my 
> description as well.
>
> So at first I thought it was because of putting each state in the 
> description as you could argue it is "loaded with keywords".
> Then I read the fourth bullet point that says: "Do not post an app where 
> the primary functionality is to link to the website or the webview of a 
> website not owned by you (unless you have permission from the website owner 
> to do so)."
>
> I removed the states from the keywords.  Do you think if I host the files 
> myself on Google Documents that would not break that rule?
>
> If I hosted them myself, then I am concerned about hosting copyright data. 
>  (I'm linking to state's driver's manuals)
>
> I'll probably be on the safe side and just choose a new app idea for my 
> first app.  But I would like to bring it up for discussion first.  Also, if 
> I did it leave the app up and remove the keywords and host it myself.  If 
> it is still in violation, does the app get deleted or does my account get a 
> restriction, or is any other action taken?
>
> Thanks in advanced!
>

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

2012-04-16 Thread Tommy
Hi,
I'm using Platform 4.0.3 (and the emulator coming with it). I tried to
reboot to test BOOT_COMPLETED broadcast receiver so I need to reboot
the emulator by command, NOT by clicking closing the emulator window.
Is there anyway I can do it?
I tried
 adb shell reboot
but the emulator got hanged and never shutdown or receive input after
the command.

Tks.

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

2012-04-16 Thread digi owl
looking at the 3.2 platform API changes, it appears that Google wants 
developers to access SD cards via either MeidaStore or the MTP API:
https://developer.android.com/sdk/android-3.2.html

https://developer.android.com/reference/android/mtp/package-summary.html

https://developer.android.com/reference/android/provider/MediaStore.html

kl. 20:09:53 UTC+2 onsdag 4. april 2012 skrev Nathan følgende:
>
>  
> Wow, Android and the manufacturers have made sure that all developers 
> look like idiots by never considering that there might be more than 
> one external storage volume in the Android platform, yet coming up 
> with a great variety. 
>
> At present, I get no information from manufacturers about storage card 
> paths EVEN after the device is on the market. I rely on unreliable 
> third party accounts in forums. 
>
>  
>
> Customer: I've set the storage path to /mnt/sdcard. How come it's 
> writing to internal storage 
> Developer: That may actually be the path to the internal storage. 
> Customer: Huh? Then why does it say sdcard ? ... Ok, well then what 
> path do i choose? 
> Developer: Um, um,  Based on an unsubstantiated rumor on some 
> forums, it might be /mnt/sdcard/extStorages/SdCard 
> Customer: Your app won't write to that. It says its read only. 
> Developers: Um, based on further unsubstantiated information on the 
> internet, it appears that Samsung may have made it so only built in 
> apps can write to that space, OR maybe you can fix it by rooting and 
> using a special fix, OR maybe if I use some special permission with my 
> next release it will work. 
> Customer: That's very encouraging, I'll go out and buy an even bigger 
> SD Card . . . 
>
> Now for my question. 
>
> According to this: 
> http://www.afternote.net/2012/03/sdcard-write-problem-fix-for-samsung.html 
> "Now, apps have to request for WRITE_MEDIA_STORAGE if they want to 
> write to the external SD card, but many of them have not yet been 
> updated to do so yet." 
>
> Very encouraging, I just need to change my permissions, right? But it 
> appears that this information is completely bogus, because. 
>
> According to developer.android.com, THERE IS NO SUCH PERMISSION AS 
> "WRITE_MEDIA_STORAGE". 
>
> If there is one, I'll bet only preinstalled apps can request it. 
>
> Can anyone confirm or deny? 
>
> Nathan 
>
>

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

Re: [android-developers] Re: Image Processing library

2012-04-16 Thread anuragpratap singh
Hi Farhan

I guess, the application that you want to create is already present in the
new android version 4.0 (ICS). this effect is known as live effects and
this effect works for both still capture and video record. Please check *Live
Effects* on android site.

Thanks and Regards
Anurag

On Mon, Apr 16, 2012 at 6:41 PM, David Olsson  wrote:

> Take a look at OpenCV for Android:
> http://code.opencv.org/projects/opencv/wiki/OpenCV4Android
>
>
> On Mon, Apr 16, 2012 at 3:02 PM, Farhan Tariq wrote:
>
>> I am looking for something like this >>  itunes.apple.com/us/app/*
>> fatbooth*/id372268904?mt=8
>>
>>
>> On Mon, Apr 16, 2012 at 6:01 PM, Farhan Tariq wrote:
>>
>>> Hi,
>>>
>>> I am required to make an application that takes picture from camera and
>>> modify the picture. I wanted to know if there are good android-compatible
>>> image processing libraries out there that someone here has used. Also I
>>> would like someone to tell me what KEYWORDS should i look into to be able
>>> to make the application. I want to add glasses to a picture of a person
>>> taken with camera. Any help is appreciated.
>>>
>>> Regards,
>>>
>>> Farhan
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
Thanks & Regards
Anurag Pratap Singh
(09818909113)
Hughes Systique Corporation

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

2012-04-16 Thread CS
Hi,

is it possible to set/read the APDU's sent/received by the device
directly without being connected to a Tag or other device? (stateless)

Flashing the device is possible, so if any patches or external
libraries are known, please feel free to post a link or description.

I compiled the Kernel with Open NFC, but as I understood it, it offers
no more Features than the original API itself. Furthermore it didn't
work with the inbuilt NFC Adapter. Correct me if I'm wrong...

Any help is greatly appreciated,

Thanks!

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


[android-developers] How can I inject an event happened at one co-ordinate into another co-ordinate

2012-04-16 Thread androider
I want to simulate an event happened at one coordinate(x,y) at another
coordinate(x1,y1) in the same activity or if possible in another
activity.Could you help me with this? Thnaks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Watch out for "fake" audio sample rates in AudioRecord

2012-04-16 Thread RLScott


On Apr 16, 9:24 am, Daniel Drozdzewski 
wrote:
> That's quite shocking, especially that even the cheapest of ADC/DAC
> chips support the whole of (human)audio spectrum. Bad engineering.
>
> All you have to do is to have calibrating stage in your app and embed
> some audio samples on your website to assist that process.

I don't see how that could work.  Audio from a website does not get
sampled by the Android device's audio system unless it first becomes
real sound.  But my customers do have access to pianos.  I could write
checkout instructions for them using a piano.

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

2012-04-16 Thread Farhan Tariq
It may be present, but I would like to learn how to apply the same or
similar effects to pictures myself. Once I have learnt it, I might be able
to put in more creativity into it.

On Mon, Apr 16, 2012 at 10:27 PM, anuragpratap singh
wrote:

> Hi Farhan
>
> I guess, the application that you want to create is already present in the
> new android version 4.0 (ICS). this effect is known as live effects and
> this effect works for both still capture and video record. Please check *Live
> Effects* on android site.
>
> Thanks and Regards
> Anurag
>
>
> On Mon, Apr 16, 2012 at 6:41 PM, David Olsson  wrote:
>
>> Take a look at OpenCV for Android:
>> http://code.opencv.org/projects/opencv/wiki/OpenCV4Android
>>
>>
>> On Mon, Apr 16, 2012 at 3:02 PM, Farhan Tariq wrote:
>>
>>> I am looking for something like this >>  itunes.apple.com/us/app/*
>>> fatbooth*/id372268904?mt=8
>>>
>>>
>>> On Mon, Apr 16, 2012 at 6:01 PM, Farhan Tariq wrote:
>>>
 Hi,

 I am required to make an application that takes picture from camera and
 modify the picture. I wanted to know if there are good android-compatible
 image processing libraries out there that someone here has used. Also I
 would like someone to tell me what KEYWORDS should i look into to be able
 to make the application. I want to add glasses to a picture of a person
 taken with camera. Any help is appreciated.

 Regards,

 Farhan

>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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
>>
>
>
>
> --
> Thanks & Regards
> Anurag Pratap Singh
> (09818909113)
> Hughes Systique Corporation
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Watch out for "fake" audio sample rates in AudioRecord

2012-04-16 Thread Kostya Vasilyev


17.04.2012 1:36, RLScott написал:

But my customers do have access to pianos.  I could write
checkout instructions for them using a piano.


Wouldn't a piano need to be tuned first?

( sorry, couldn't resist :), I know it won't be that much out of tune )

--
Kostya Vasilyev



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

2012-04-16 Thread SH
Hi all.

I would like to implement audio file player using MediaPlayer. I wanna
have multi-speed plack. I can't find API about multi speed playback.
SoundPool class has that, but I won't use it. Audio players I have
downloaded from the market have multi-speed playback. So I think that
there is some way to support multi-speed playback. Is there any idea I
can refer?

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: What qualifies an Android phone to show up in Android Marketplace filter

2012-04-16 Thread ToniL
Hi Dianne,

I am using both supports-screens and compatible-screens as we are
targeting devices that have screen resolution from normal to xlarge
and density ldpi to hdpi. Is this the right thing to do or is there a
way to add the density requirement to  supports screen section and
exclude the compatible-screens section entirely? We want to make sure
that we are excluding small screens handsets, tablets and any screen
with higher density than hdpi. Hibrid handset - tablet is ok.
The following is a snippet of the manifest file:

 



















 

Thank you.

On Apr 13, 6:58 pm, Dianne Hackborn  wrote:
> It shows up if what you have specific in your app filtering allows it to
> show up.
>
> If you say "I tailored the Manifest files to accepts any devices with
> normal,
> large and xlarge screen sizes and low, medium and high density", then it
> sounds like you are 
> using:http://developer.android.com/guide/topics/manifest/compatible-screens...
>
> And as the big caution says, don't use this.  This is very fine-grained
> filtering, which pretty much guarantees that you will be missing devices in
> ways you can't control very well.  Just don't use this.  It isn't good.
>
> Of course, there could be something else you are requiring (such as a
> feature) that some devices don't support.  Use "aapt dumpt badging
> " to see details on all the requirements being defined by your
> app.
>
>
>
>
>
> On Thu, Apr 12, 2012 at 11:16 AM, ToniL  wrote:
> > Could somebody tell me what makes a device qualify to show up in
> > Android Marketplace filter when you upload an apk? Do they have to be
> > CTS certified only or it needs to meet other criterias?
> > I tailored the Manifest files to accepts any devices with normal,
> > large and xlarge screen sizes and low, medium and high density. This
> > configuration should include most of the newest handsets that are
> > already on the market but it doesn't.
> > For example there is Motorola Atrix 2 that doesn't appear in the
> > filter but I can download any app from the Market place using Play
> > Store.
>
> > Thanks,
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


Re: [android-developers] Re: What qualifies an Android phone to show up in Android Marketplace filter

2012-04-16 Thread Dianne Hackborn
Again, I strongly recommend not using compatible-screens.

Why do you want to have a density requirement?  There really is no need for
such a thing.  If you write you app correctly, you will work on any
density.  If you are using the UI toolkit, this comes from free.  If you
are using something lower-level like OpenGL it just requires a little
scaling.

You also say you want to exclude tablets, but then say you are supporting
xlarge screens, so I'm not sure which you mean.

On Mon, Apr 16, 2012 at 6:37 PM, ToniL  wrote:

> Hi Dianne,
>
> I am using both supports-screens and compatible-screens as we are
> targeting devices that have screen resolution from normal to xlarge
> and density ldpi to hdpi. Is this the right thing to do or is there a
> way to add the density requirement to  supports screen section and
> exclude the compatible-screens section entirely? We want to make sure
> that we are excluding small screens handsets, tablets and any screen
> with higher density than hdpi. Hibrid handset - tablet is ok.
> The following is a snippet of the manifest file:
>
>   android:required="true"/>
> android:required="true"/>
> android:required="true"/>
>
> 
>
>
>
>
>
>
> android:screenDensity="ldpi" />
> android:screenDensity="mdpi" />
> android:screenDensity="hdpi" />
> android:screenDensity="ldpi" />
> android:screenDensity="mdpi" />
> android:screenDensity="hdpi" />
> android:screenDensity="ldpi" />
> android:screenDensity="mdpi" />
> android:screenDensity="hdpi" />
> 
>
> Thank you.
>
> On Apr 13, 6:58 pm, Dianne Hackborn  wrote:
> > It shows up if what you have specific in your app filtering allows it to
> > show up.
> >
> > If you say "I tailored the Manifest files to accepts any devices with
> > normal,
> > large and xlarge screen sizes and low, medium and high density", then it
> > sounds like you are using:
> http://developer.android.com/guide/topics/manifest/compatible-screens...
> >
> > And as the big caution says, don't use this.  This is very fine-grained
> > filtering, which pretty much guarantees that you will be missing devices
> in
> > ways you can't control very well.  Just don't use this.  It isn't good.
> >
> > Of course, there could be something else you are requiring (such as a
> > feature) that some devices don't support.  Use "aapt dumpt badging
> > " to see details on all the requirements being defined by
> your
> > app.
> >
> >
> >
> >
> >
> > On Thu, Apr 12, 2012 at 11:16 AM, ToniL  wrote:
> > > Could somebody tell me what makes a device qualify to show up in
> > > Android Marketplace filter when you upload an apk? Do they have to be
> > > CTS certified only or it needs to meet other criterias?
> > > I tailored the Manifest files to accepts any devices with normal,
> > > large and xlarge screen sizes and low, medium and high density. This
> > > configuration should include most of the newest handsets that are
> > > already on the market but it doesn't.
> > > For example there is Motorola Atrix 2 that doesn't appear in the
> > > filter but I can download any app from the Market place using Play
> > > Store.
> >
> > > Thanks,
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: creating a window-close animation effect

2012-04-16 Thread Dianne Hackborn
Example from API demos:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/Animation.html

http://developer.android.com/resources/samples/ApiDemos/res/anim/zoom_enter.html

http://developer.android.com/resources/samples/ApiDemos/res/anim/zoom_exit.html

On Mon, Apr 16, 2012 at 12:57 PM, guich  wrote:

> I'm still searching. I found that with the ScaleAnimator i can achieve
> what i need, but still trying with no success. This is the code i'm using:
>
>ScaleAnimation anim=new ScaleAnimation(1,1,0,0);
>anim.setFillAfter(true);
>anim.setFillEnabled(true);
>anim.setInterpolator(new
> android.view.animation.AccelerateInterpolator());
>anim.setDuration(1000L);
>
> This is the ImageView i'm creating to store the new image. This image is
> updated by a native function.
>
>ImageView image = new ImageView(instance.getContext());
>image.setImageBitmap(sScreenBitmap);
>image.setVisibility(ImageView.VISIBLE);
>image.startAnimation(anim);
>
> This is called from another view. However, nothing happens on screen.
>
> TIA.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] How to use TYPE_INPUT_METHOD_DIALOG to show Dialog from an IME?

2012-04-16 Thread Dianne Hackborn
You can't use this, it is only for the system.  What you can do is
use TYPE_APPLICATION_PANEL with the token set to your main IME window's
token, to have the second window attached to the IME.

On Mon, Apr 16, 2012 at 5:46 PM, tsukishiro  wrote:

> Hello,
>
> I wanted to show a custom dialog form within my input method service. I
> read from this 
> thread
>  that
> the dialog's type should be set to
> WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG. However, when I tried
> to do this and test my IME, I got the following error :
>
> E/AndroidRuntime(  685): FATAL EXCEPTION: main
> E/AndroidRuntime(  685): android.view.WindowManager$BadTokenException:
> Unable to add window android.view.ViewRoot$W@40519010 -- permission
> denied for this window type
> E/AndroidRuntime(  685): at
> android.view.ViewRoot.setView(ViewRoot.java:551)
> E/AndroidRuntime(  685): at
> android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
> E/AndroidRuntime(  685): at
> android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
> E/AndroidRuntime(  685): at android.app.Dialog.show(Dialog.java:241)
> E/AndroidRuntime(  685): at
> com.example.android.softkeyboard.SoftKeyboard.showDialog(SoftKeyboard.java:187)
> E/AndroidRuntime(  685): at
> com.example.android.softkeyboard.SoftKeyboard.onStartInput(SoftKeyboard.java:207)
> E/AndroidRuntime(  685): at
> android.inputmethodservice.InputMethodService.doStartInput(InputMethodService.java:1441)
> E/AndroidRuntime(  685): at
> android.inputmethodservice.InputMethodService$InputMethodImpl.startInput(InputMethodService.java:354)
> E/AndroidRuntime(  685): at
> android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:152)
> E/AndroidRuntime(  685): at
> com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
> E/AndroidRuntime(  685): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/AndroidRuntime(  685): at android.os.Looper.loop(Looper.java:123)
> E/AndroidRuntime(  685): at
> android.app.ActivityThread.main(ActivityThread.java:3683)
> E/AndroidRuntime(  685): at java.lang.reflect.Method.invokeNative(Native
> Method)
> E/AndroidRuntime(  685): at
> java.lang.reflect.Method.invoke(Method.java:507)
> E/AndroidRuntime(  685): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
> E/AndroidRuntime(  685): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> E/AndroidRuntime(  685): at dalvik.system.NativeStart.main(Native Method)
>
> Can someone guide me through this? I found a somewhat similar discussion
> here
>  but
> it uses WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG
> Hoping for some help. Thanks and best regards,
> - tsukishiro
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-16 Thread Dianne Hackborn
On Fri, Apr 13, 2012 at 11:00 PM, Zsolt Vasvari  wrote:

> It appears that no one on this forum has more insight into number 2. Darn.
>>
> If Dianne hasn't chimed in, there is probably not much hope that you will
> get an answer.
>

The current platform defines an single external storage location, which
these days can be either a physical SD card, a physical partition on
internal storage, or shared with internal storage, as reported by the
various methods on Environment.

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

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

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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-16 Thread Dianne Hackborn
On Sun, Apr 15, 2012 at 8:56 AM, digi owl  wrote:

> looking at the 3.2 platform API changes, it appears that Google wants
> developers to access SD cards via either MeidaStore or the MTP API:
> https://developer.android.com/sdk/android-3.2.html
>
> https://developer.android.com/reference/android/mtp/package-summary.html
>
> https://developer.android.com/reference/android/provider/MediaStore.html


I don't know I'd include MTP in this, but yes for apps MediaStore allows
you to query across whatever storage is being aggregated by the device.
 Note that for everything except the primary external storage partition,
you should expect to only have write access to the files.

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

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

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

Re: [android-developers] Re: Socket sharing between activities

2012-04-16 Thread Dianne Hackborn
You don't need a service.  And please please don't use startService()
unless you really want to use up the user's resources with your app trying
to run when they are not in it.  Way too many apps I see abuse resources
and keep themselves running in the background and thus just sucks.

Just make a singleton that manages the stream, which any part of your code
that wants it can access.

On Mon, Apr 16, 2012 at 12:10 PM, Federico Paolinelli wrote:

> Another approach that you could follow is to host the tcp connection
> inside a service (
> http://developer.android.com/reference/android/app/Service.html)
>
> You can then access the service from any activity you want using the
> binding pattern or through intents.
> Just remember that your app may continue to live in background, and your
> service will still be running unless the os kills it. It's up to you to
> disconnect if the activities go in background or if you want to notify the
> user that the connection is still up and running.
>
> Remember also that service runs in the ui thread, so you will likely need
> to run a different thread inside the service.
>
> Hope this helps,
>
>  Federico
>
>
>
>
> Il giorno lunedì 16 aprile 2012 18:31:09 UTC+2, Tonez ha scritto:
>
>> Hi Everyone,
>>
>> I'm building an Android app which uses TCP sockets to communicate with
>> a .net server application.  The android app as a whole relies quite
>> heavily on TCP and as such nearly all the features in the app require
>> writing to and listening from a socket stream.  I'm trying to
>> determine what the best design approach is for having more than one
>> activity utilize a live active socket.
>>
>> I've recently just finished building an iPhone version of this app,
>> the way in which I got each feature (different view controllers) to
>> use one live active socket connection was by passing the live socket
>> instance to each view controller, each view controller would then
>> retain ownership of that socket and as such the delegate methods which
>> fire when a transmission is received work as expected.  Trying to
>> simulate this design in Android is proving to be a pain because I
>> can't pass a live socket instance to another activity as part of an
>> intent parameter.
>>
>> If I wanted to have activity A listen for incoming TCP data, and then
>> navigate to Activity B but then have activity B send TCP data to
>> the .net server and of-course spawn a new thread to listen for
>> incoming TCP data - what would be the best approach to achieve this?
>>
>> At the moment what I have is as follows:  activity A spawns a new
>> thread listening for incoming TCP data, activity A can communicate
>> with the .net server perfectly fine.  When I navigate to activity B
>> and then want to communicate with the .net server - creating a new
>> socket instance and then listening for incoming data results in
>> activity A's readLine() method receiving the data.  Which makes sense,
>> it's still running - but obviously the goal is to have activity B
>> receive this data.
>>
>> An alternative approach I tried was to close down the TCP socket I
>> have in activity A when opening up another TCP socket connection when
>> I need to use TCP in activity B - although this somewhat works it
>> really feels like the wrong way to go about it.
>>
>> And lastly, one other approach I've thought of is to have one activity
>> handling all TCP comms with the .net server and contain all the
>> functionality in this one activity by swapping out .xml layout files
>> when necessary.  Obviously this will result in one massive .java file
>> and again is a route which feels wrong.
>>
>> Any advice on how I can go about designing my app given that I want to
>> use TCP functionality in every activity would be greatly appreciated.
>>
>> Many thanks,
>>
>> Tonez
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: Task switcher image

2012-04-16 Thread Dianne Hackborn
Please don't do this.  I expect that we won't be using the bitmap from
there, which means you will end up with a blank thumbnail.

On Mon, Apr 16, 2012 at 11:26 AM, Brett  wrote:

> Actually I found the solution, there are actually two.
>
> If you call:
>
> getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
>
> Then the preview image will always be black in the task switcher
> unless you override the activity method:
>public boolean onCreateThumbnail(Bitmap outBitmap, Canvas canvas)
>
> This will let you provide any thumbnail that you want when your task
> goes to the background.
>
> On Apr 12, 5:58 pm, Brett  wrote:
> > In ICS especially, there is a new was to switch tasks like the old way
> > of holding down the home key.  Now you see a list of your recent tasks
> > with their corresponding images of the last view you were on.
> >
> > Is there any way to programmatically update this image for your task?
> > I have a situation where I get background information and want to
> > update the view.  I haven't been able to find anything on how this
> > image is populated online.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Issue with SystemService addSystemService?

2012-04-16 Thread Dianne Hackborn
On Mon, Apr 16, 2012 at 11:24 AM, Tom  wrote:

> My issue is, in that process if I create a reference to an IBinder by
> making my own AIDL and extending the stub than call addSystemService
> with my own, unique name how can I communicate to this process? In
> another process I call getSystemService and the reference to the
> IBinder is obtained just fine, but my problem arises when I try to
> call any of its methods. I get a StackOverflowError.
>

You have a bug in your code.  Look at the stack trace and see where your
code is infinitely recursing.

Re:

- Is is possible to use SystemService without your process actually
> being a Service using Android's APIs?
>

This doesn't make sense.  A SystemService is not a Service, they are
completely separate things.  If you are writing an application, you should
be implementing it as a Service that clients access with
Context.bindService().

- If it is not possible, how can Parcelable objects be passed to and
> from separate process so that an app can leverage private/ system APIs
> using root?
>

That doesn't sound like something I'd want to help with. :)

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

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

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

[android-developers] Grabbing live video frames

2012-04-16 Thread Taylor Niver
Setup: I am working on an app that I will be using for a 'cloud' based
robotics platform. I will be using my phone as a camera on the robot
and need to use live frames from the camera's video to do some image
processing (which is done on the computer over Bluetooth).

Problem: I can't figure out how to open the video camera (and display
the feed on the phone's screen). Once that's done I need to store each
frame to a variable that I will then read in another thread. Does
anybody have any easy-to-follow documentation on setting this up, I am
new(ish) to java/android development so Google's documentation doesn't
help me tons.

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] About Database in Android.

2012-04-16 Thread Kirupa
I want to create two tables in a database in android. is it possible?
can you send sample code for 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


Re: [android-developers] About Database in Android.

2012-04-16 Thread Justin Anderson
http://lmgtfy.com/?q=android+database+tutorial

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


On Mon, Apr 16, 2012 at 9:26 PM, Kirupa  wrote:

> I want to create two tables in a database in android. is it possible?
> can you send sample code for 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 message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Tables in android

2012-04-16 Thread Kirupa
I want to delete my database. How i do? , I created a column in  a
table then  i changed  the column name.  then I got error.

static final String TABLE_ROW_ONE = "eventname";
static final String TABLE_ROW_TWO = "eventaddress";
static final String TABLE_ROW_THREE = "eventchief";


String newTableQueryString = "create table " +

TABLE_NAME +

" (" +

TABLE_ROW_ID + " integer primary key autoincrement not
null," +

TABLE_ROW_ONE + " text," +

TABLE_ROW_TWO + " text," +

TABLE_ROW_THREE + " text"+

");";
db.execSQL(newTableQueryString);

//
Then I changed eventname as event

static final String TABLE_ROW_ONE = "event";
static final String TABLE_ROW_TWO = "eventaddress";
static final String TABLE_ROW_THREE = "eventchief";


String newTableQueryString = "create table " +

TABLE_NAME +

" (" +

TABLE_ROW_ID + " integer primary key autoincrement not
null," +

TABLE_ROW_ONE + " text," +

TABLE_ROW_TWO + " text," +

TABLE_ROW_THREE + " text"+

");";
db.execSQL(newTableQueryString);

//I got error that can not find event column

What is the reason for this 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: Listen to packet data receipt when Android in sleep mode

2012-04-16 Thread Heshan Perera
Hi Robert,

Thanks for the response. When you say that a wake up interrupt is
triggered to get data to the applications does it imply the following
scenario ?

An application is listening to data on let's say port 8080. The CPU
goes to sleep. Data arrives at port 8080 while CPU is asleep. The
chipset will wake up the CPU to call the code (of the said
application) listening to data on this port and then send the CPU back
to sleep ?

On Apr 17, 12:13 am, Robert Greenwalt  wrote:
> When the device receives network traffic the chipset triggers a wakeup
> interrupt to get the data to the kernel, then a time-limited wakelock is
> held while the data is delivered to applications.  If you want to keep the
> device awake after receiving the data you should grab your own wakelock
> when you get the data.
>
> R
>
> On Sun, Apr 15, 2012 at 10:58 PM, Heshan Perera <
>
>
>
>
>
>
>
> anthonyheshanper...@gmail.com> wrote:
> > As stated in the answer to this (http://stackoverflow.com/questions/
> > 5120185/android-sleep-standby-mode)
>
> > question, the CDMA and GSM radios are kept on, even after the CPU is
> > put to sleep on an Android device.
>
> > My questions are...
>
> > When a call is received, what is it that wakes the CPU / phone up ?
>
> > Is there a similar mechanism to wake my application up when data is
> > received via an active TCP connection to a server, even after the
> > phone has gone to sleep mode ?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Grabbing live video frames

2012-04-16 Thread lbendlin
live frames over Bluetooth? There's your first non-starter.  Time to 
rethink your requirements.

Other than that - you need to invest time in reading the existing 
documentation.

On Monday, April 16, 2012 10:33:28 PM UTC-4, Taylor Niver wrote:
>
> Setup: I am working on an app that I will be using for a 'cloud' based 
> robotics platform. I will be using my phone as a camera on the robot 
> and need to use live frames from the camera's video to do some image 
> processing (which is done on the computer over Bluetooth). 
>
> Problem: I can't figure out how to open the video camera (and display 
> the feed on the phone's screen). Once that's done I need to store each 
> frame to a variable that I will then read in another thread. Does 
> anybody have any easy-to-follow documentation on setting this up, I am 
> new(ish) to java/android development so Google's documentation doesn't 
> help me tons. 
>
> 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] Re: Grabbing live video frames

2012-04-16 Thread Taylor Niver
The process is like this...Two threads, one running the live video.
Constantly taking pictures and storing them to a variable. The second
thread will then take that variable, XXX it, and send it over
Bluetooth to my computer. I will then wait for the processed response,
and react appropriately. Then re-grab the most recent image and re-
loop. I have done android dev but never involving the camera. I feel
like this project is very doable, I just need some guidance in
grabbing video frames (it's a little different from MATLAB).
On Apr 16, 11:40 pm, lbendlin  wrote:
> live frames over Bluetooth? There's your first non-starter.  Time to
> rethink your requirements.
>
> Other than that - you need to invest time in reading the existing
> documentation.
>
>
>
>
>
>
>
> On Monday, April 16, 2012 10:33:28 PM UTC-4, Taylor Niver wrote:
>
> > Setup: I am working on an app that I will be using for a 'cloud' based
> > robotics platform. I will be using my phone as a camera on the robot
> > and need to use live frames from the camera's video to do some image
> > processing (which is done on the computer over Bluetooth).
>
> > Problem: I can't figure out how to open the video camera (and display
> > the feed on the phone's screen). Once that's done I need to store each
> > frame to a variable that I will then read in another thread. Does
> > anybody have any easy-to-follow documentation on setting this up, I am
> > new(ish) to java/android development so Google's documentation doesn't
> > help me tons.
>
> > 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] Re: Grabbing live video frames

2012-04-16 Thread lbendlin
http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html

On Monday, April 16, 2012 11:48:41 PM UTC-4, Taylor Niver wrote:
>
> The process is like this...Two threads, one running the live video. 
> Constantly taking pictures and storing them to a variable. The second 
> thread will then take that variable, XXX it, and send it over 
> Bluetooth to my computer. I will then wait for the processed response, 
> and react appropriately. Then re-grab the most recent image and re- 
> loop. I have done android dev but never involving the camera. I feel 
> like this project is very doable, I just need some guidance in 
> grabbing video frames (it's a little different from MATLAB). 
> On Apr 16, 11:40 pm, lbendlin  wrote: 
> > live frames over Bluetooth? There's your first non-starter.  Time to 
> > rethink your requirements. 
> > 
> > Other than that - you need to invest time in reading the existing 
> > documentation. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Monday, April 16, 2012 10:33:28 PM UTC-4, Taylor Niver wrote: 
> > 
> > > Setup: I am working on an app that I will be using for a 'cloud' based 
> > > robotics platform. I will be using my phone as a camera on the robot 
> > > and need to use live frames from the camera's video to do some image 
> > > processing (which is done on the computer over Bluetooth). 
> > 
> > > Problem: I can't figure out how to open the video camera (and display 
> > > the feed on the phone's screen). Once that's done I need to store each 
> > > frame to a variable that I will then read in another thread. Does 
> > > anybody have any easy-to-follow documentation on setting this up, I am 
> > > new(ish) to java/android development so Google's documentation doesn't 
> > > help me tons. 
> > 
> > > 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

Re: [android-developers] Tables in android

2012-04-16 Thread BNReddy
change DATABASE_VERSION  and run that


On Tue, Apr 17, 2012 at 9:04 AM, Kirupa  wrote:
> I want to delete my database. How i do? , I created a column in  a
> table then  i changed  the column name.  then I got error.
>
>        static final String TABLE_ROW_ONE = "eventname";
>        static final String TABLE_ROW_TWO = "eventaddress";
>        static final String TABLE_ROW_THREE = "eventchief";
>
>
> String newTableQueryString = "create table " +
>                                                                               
>  TABLE_NAME +
>                                                                               
>  " (" +
>                                                                               
>  TABLE_ROW_ID + " integer primary key autoincrement not
> null," +
>                                                                               
>  TABLE_ROW_ONE + " text," +
>                                                                               
>  TABLE_ROW_TWO + " text," +
>                                                                               
>  TABLE_ROW_THREE + " text"+
>                                                                               
>  ");";
> db.execSQL(newTableQueryString);
>
> //
> Then I changed eventname as event
>
>        static final String TABLE_ROW_ONE = "event";
>        static final String TABLE_ROW_TWO = "eventaddress";
>        static final String TABLE_ROW_THREE = "eventchief";
>
>
> String newTableQueryString = "create table " +
>                                                                               
>  TABLE_NAME +
>                                                                               
>  " (" +
>                                                                               
>  TABLE_ROW_ID + " integer primary key autoincrement not
> null," +
>                                                                               
>  TABLE_ROW_ONE + " text," +
>                                                                               
>  TABLE_ROW_TWO + " text," +
>                                                                               
>  TABLE_ROW_THREE + " text"+
>                                                                               
>  ");";
> db.execSQL(newTableQueryString);
>
> //I got error that can not find event column
>
> What is the reason for this 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



-- 
Regards,
Narayanareddy.B
9032478372

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

2012-04-16 Thread perumal316
 

Hi All,

In my application, I am invoking the camera application and taking a 
picture and saving it in a particular directory (E.g. /sdcard etc)

The picture is saved as a JPEG image. How do I reduce the size of the 
image? Is there any available image encoder or compression available?

I came across another posting at:

http://stackoverflow.com/questions/8757341/android-reduce-size-of-camera-picture

But this is scaling the image. I am looking for something that can compress 
or encode. Is it possible?

Thanks In Advance, 

Perumal

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

[android-developers] Saving JPEG images as a Video in Android

2012-04-16 Thread perumal316
Hi All,

Supposedly, using my application I take a few images which will be saved at 
a particular directory and saved as JPEGs.

IS it possible to pack these images together? Like into a video or tar or 
zip? So that I can send send these images to a backend (E.g. web server).

Is this possible? Or I could only send them 1 by 1?

Thanks In Advance,
Perumal

  

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

[android-developers] TabHost widget causes FC after upgrade

2012-04-16 Thread momo
I wrote a small app for a colleague, that uses a TabHost widget.  He said 
he upgraded his phone's OS recently and the app now crashes when attempting 
to access the Activity containing the TabHost.  After some remote support, 
I was able to get little of the log:

Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1018)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2105)
at android.content.res.Resources.getLayout(Resources.java:857)
at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
at 
android.widget.TabHost$LabelAndIconIndicatorStrategy.createIndicatorView(TabHost.java:565)
at android.widget.TabHost.addTab(TabHost.java:223)

All resources are in there.  It works fine on my device.  I'm not sure 
about the specifics of the upgrade he made - he's trying to find out but I 
won't have that information for at least a day

I notice the line regarding LayoutInflater.inflate - not sure if it matters 
(I kind of doubt it), but the TabHost was instantiated dynamically (Java, 
not XML)...  I wonder if a newer version of TabHost requires an XML-based 
instantiation...?

Any ideas?

TYIA.

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

Re: [android-developers] Re: How to install Market on Emulator ?

2012-04-16 Thread Jovish P
We are using push notification in our application. To test the push
notification we need Android Market on the device as my knowledge. It is
little bit difficult to test , debug on different versions  on device and
we don't have many device to test on different versions that's why we tried
to install market on emulator. Any official workaround for this ? If it is
there means , please share it. It will be really helpful.


Jovish

On Mon, Apr 16, 2012 at 5:45 PM, deboutv  wrote:

> Hi,
>
> Can you tell us why you want the market on the emulator? There are
> official workarounds but we need to understand why you want the market.
>
> Vincent
>
>
> On Monday, April 16, 2012 1:58:15 PM UTC+2, Jovish P wrote:
>>
>> We are able to install Android  market on emulator, if the sdk is 3.0. If
>> we update the sdk to 4.0 and follow the same steps the android market is
>> not getting installed. This is the link which we referred to install
>> Android Market on emulator. Anyone know the reason behind this ? Please
>> help me out to install market on emulator 4.0.
>> *
>> blog.varunkumar.me/2010/11/how-to-install-android-market-in-google.html*
>>
>>
>> Regards,
>> Jovish
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
>
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: How to install Market on Emulator ?

2012-04-16 Thread deboutv
Yes there is. 

Start android (executable from the SDK). In the main window, make sure the 
Google APIs is installed for each version you want to test. When you create 
an AVD, use Google APIs instead of Android for the Target field. 

Vincent


Le mardi 17 avril 2012 06:53:50 UTC+2, Jovish P a écrit :
>
> We are using push notification in our application. To test the push 
> notification we need Android Market on the device as my knowledge. It is 
> little bit difficult to test , debug on different versions  on device and 
> we don't have many device to test on different versions that's why we tried 
> to install market on emulator. Any official workaround for this ? If it is 
> there means , please share it. It will be really helpful.
>
>
> Jovish
>
> On Mon, Apr 16, 2012 at 5:45 PM, deboutv  wrote:
>
>> Hi, 
>>
>> Can you tell us why you want the market on the emulator? There are 
>> official workarounds but we need to understand why you want the market. 
>>
>> Vincent
>>
>>
>> On Monday, April 16, 2012 1:58:15 PM UTC+2, Jovish P wrote:
>>>
>>> We are able to install Android  market on emulator, if the sdk is 3.0. 
>>> If we update the sdk to 4.0 and follow the same steps the android market is 
>>> not getting installed. This is the link which we referred to install 
>>> Android Market on emulator. Anyone know the reason behind this ? Please 
>>> help me out to install market on emulator 4.0.
>>> *
>>> blog.varunkumar.me/2010/11/how-to-install-android-market-in-google.html*
>>>
>>>
>>> Regards,
>>> Jovish  
>>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>>
>> To unsubscribe from this group, 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] Can i use more than 5-6 SSL certificate in apps

2012-04-16 Thread Rocky
All,

I'm creating some online shopping application, but for payment, i wanted to
integrate different-2 payment gateway for different-2 shops, because they
have own Payment Gateway.

is possible to use more than 1 SSL.


-- 
Thanks & Regards

Rakesh Kumar Jha

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

2012-04-16 Thread Perry168
but I can't found the "GoogleAdView.jar " for download.
 

tora於 2012年4月11日星期三UTC+8上午9時52分07秒寫道:

> The tutorial for a) is maybe below. 
>
> https://developers.google.com/adsense-for-mobile-apps/docs/android/ 
>
> On 4月11日, 午前8:52, Perry168  wrote: 
> > > Nobody can 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