[android-developers] Setting a new Typeface to all text views

2010-01-12 Thread Pixie
Hello,

I've created a custom Typeface by adding a TTF file to the assets
folder, and I use the setTypeface method to apply this font to each of
the text views, and everything works great.
The only problem I have, is that I write a lot of code lines in order
to apply this font to all text views.
Is there a way to make this font the default font in my project, or to
apply it to all text views at once?

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] Sender /Receiver name in sms

2010-01-12 Thread monty
how to get the senders or receivers name from a sms in without using
content providers.At present i get only phone number
culd any1 plz tell me a solution?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Old dock in 2.1 SDK?

2010-01-12 Thread Kevin Duffey
Does that mean we wont see the new interface on Moto Droid when it's
released with the 2.1 update? I thought it was all part of 2.1.

On Mon, Jan 11, 2010 at 8:10 PM, Romain Guy  wrote:

> Nexus One's launcher is not part of the SDK and is not required.
>
> On Mon, Jan 11, 2010 at 8:09 PM, alex  wrote:
> > Ouch, I mean the Launcher. What I'm seeing is the old sliding one.
> >
> > On Jan 12, 4:09 am, Romain Guy  wrote:
> >> What dock are you talking about?
> >>
> >> On Mon, Jan 11, 2010 at 5:58 PM, alex  wrote:
> >> > Why hasn't the new & sexy dock been included in the SDK?
> >>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
> >>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
> >>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Scaling icons on MapActivity with zoom

2010-01-12 Thread Kevin Duffey
Hey all,

I been messing around with the MapActivity stuff. Pretty nice how easy it is
to add clickable icons/images to the map and make them mean something. That
said I notice that as you zoom in and out, they don't scale automatically.
Is there a way to achieve this as part of the SDK? I've not found any way to
enable this yet. Or do I need to listen for zoom events and somehow resize
my icons.

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] Does Nexus One support the SPP Bluetooth Profile?

2010-01-12 Thread DonFrench
I read somewhere that the Nexus One supported the SPP profile but now
this page seems to contradict that :
http://www.google.com/support/android/bin/static.py?page=guide.cs&guide=27201&topic=27236#1060693.
Can anyone say for sure?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Old dock in 2.1 SDK?

2010-01-12 Thread String
On Jan 12, 8:56 am, Kevin Duffey  wrote:

> Does that mean we wont see the new interface on Moto Droid when it's
> released with the 2.1 update? I thought it was all part of 2.1.

It was mentioned in a different thread that the Home app is different
in the emulator than on hardware phones. Presumably the emulator has
the "stock" Android Home implementation? This difference wasn't
obvious in previous releases - e.g., the 2.0 emulator's Home was
visually indistinguishable from the Droid's - but it certainly is in
2.1. IOW, the N1's Home screen is another custom UI, like Sense or
MotoBLUR.

This is disappointing from two directions. First, it means that
devices which we took to be bone stock Android - like Droid, and now
the N1 - aren't really. They ALL have a custom Home UI, and apps which
interact with the Home screen (like widgets and wallpapers) can't be
relied upon to behave the same in the emulator as on a real handset.

Second, it means that UI improvements (like the 3D effect in the N1's
Launcher) aren't part of the OS, and can't be used in other apps
without some serious hackery. This will unfortunately lead to a less
consistent user experience, and a perpetuation of the criticisms that
"Android apps aren't as pretty as iPhone's". Which doesn't bother me
per se, but it does seem to be important from a PR standpoint.

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

[android-developers] Re: Performance issue: Dalvik VM is >20x slower than most modern Java VMs

2010-01-12 Thread Ecthelion
The Android 2.1 SDK is out, but - at least from a first test on the
emulator that comes with the SDK - it does not look like the Dalvik
JIT has been activated :-(.

On 7 Jan., 17:55, Biosopher  wrote:
> The Dalvik JIT appears to result in a 1.7x improvement when run on an
> armv7.
>
> Here's the post from the Android 
> team:http://groups.google.com/group/android-platform/browse_thread/thread/...
>
> The Android team's independent benchmark results are here (done by
> 0xlab):http://groups.google.com/group/0xlab-devel/browse_thread/thread/1edef...
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] 有一个小问题,关于 TextView的。

2010-01-12 Thread zongan liu
怎么写中文呢?这是美国人的groups,怎么能看懂你写的

2010/1/11 fengqve 

> 就是把TextView 设置成可以监听长点击事件的时候。
>
> TextView tv  = new TextView(context);
>
> tv.setOnLongClickListener ,这个时候,手指点击textview上的文字时,文字会产生闪烁,有没有方法可以屏蔽文字闪
> 烁?
>
> 因为在一个ScrollView 里面。手指划动会带动文字scroll , 而又需要加上长按监听事件。
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: AppWidget behavior different in 2.1

2010-01-12 Thread String
Same experience here. My appwidgets wouldn't update when first
installed. Your trick of using the emulator's power button did the
job, however - thanks!

String

On Jan 12, 5:54 am, Vikas1976  wrote:
> Nice job fellas.
>
> * No RecognizerIntent in the 2.1 emulator -> crashes my app without
> even presenting the opportunity to test whether I will handle failure
> of launching that intent.
> * No handling email intents.
> * The emulator for 2.1 comes weirdly uninitialized to handle even
> simple AppWidget functionality.  After pressing the power button in
> the emulator and "turning off the phone" - then restarting it - both
> the OS and my app began behaving normally again (except cf above).
>
> On Jan 11, 4:53 pm, Vikas1976  wrote:
>
>
>
> > My setOnClickPendingIntents() are not being called and my app widget
> > is not updating.  App ran great on 2.01, 2.0 and 1.6.  Trying to track
> > it down.  Anyone else having this issue?
>
> > Vikas
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Performance issue: Dalvik VM is >20x slower than most modern Java VMs

2010-01-12 Thread Sena Gbeckor-Kove
I was under the impression that was coming with Flan. 2.1 is still Eclair.

S


---

Sena Gbeckor-Kove
CTO/Founder - imKon 

UK : +44 7788 146652 
NL : +31 62 434 1290 
s...@imkon.com|www.imkon.com
 
Asia (Singapore) :
35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore

Europe (London) :
145-157 St John's St, EC1V 4PY London, UK

On 12 Jan 2010, at 10:13, Ecthelion wrote:

> The Android 2.1 SDK is out, but - at least from a first test on the
> emulator that comes with the SDK - it does not look like the Dalvik
> JIT has been activated :-(.
> 
> On 7 Jan., 17:55, Biosopher  wrote:
>> The Dalvik JIT appears to result in a 1.7x improvement when run on an
>> armv7.
>> 
>> Here's the post from the Android 
>> team:http://groups.google.com/group/android-platform/browse_thread/thread/...
>> 
>> The Android team's independent benchmark results are here (done by
>> 0xlab):http://groups.google.com/group/0xlab-devel/browse_thread/thread/1edef...
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



smime.p7s
Description: S/MIME cryptographic signature


[android-developers] How to Draw Graphs(Bar Charts/Pie Charts)in ANdroid

2010-01-12 Thread RamaMohan
HI all,
I want to draw a graph/chart to represent some data.I tried to do
it.Buti have no idea and i didnt find solution in googling also.
Please if anybody have worked with drawing Bar charts/Pie
charts .Please tell me...

Thanks,
RamaMohan.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

[android-developers] Re: sending file using HTTPPOST in android1.5

2010-01-12 Thread Raghu Kiran
Hi,

How can i get the RAM size, used RAM size and RAM size free in android.

BR,
Raghu Kiran 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

[android-developers] HTTP Requests - can Android be identified?

2010-01-12 Thread Neilz
Hi all.

Could a standard web server identify an HTTP request as coming from a
normal browser, as opposed to an Android application?

What could be different about the request that would enable the server
to differentiate between the two, and modify the response accordingly?

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

2010-01-12 Thread Sudeep Jha
Hi Droids,
  I want to use the WCF(.net) service for login
authentication.Please tell me ASAP, the easiest way to do it.
  I was trying with wsdl also.

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

Re: [android-developers] HTTP Requests - can Android be identified?

2010-01-12 Thread Adrian Vintu
Sure. You have to use the user agent.

You have something like

Mozilla/5.0 (Linux; U; Android 1.5; en-us; Galaxy Build/CUPCAKE)
AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1

for Android

and something like

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102
Firefox/3.5.5 (.NET CLR 3.5.30729)

from the normal Firefox browser.

BR,
Adrian Vintu


On Tue, Jan 12, 2010 at 11:21 AM, Neilz  wrote:

> Hi all.
>
> Could a standard web server identify an HTTP request as coming from a
> normal browser, as opposed to an Android application?
>
> What could be different about the request that would enable the server
> to differentiate between the two, and modify the response accordingly?
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] HTTP Requests - can Android be identified?

2010-01-12 Thread Adrian Vintu
You can use Fiddler to take a peek at user agents.

For example, an IE request for google looks like this:

GET
/csi?v=3&s=webhp&action=&e=17259,17291,23189&ei=HE9MS66yO4WI_AaJrYXgDA&rt=prt.469,xjsls.750,xjses.1234,xjsee.1422,xjs.1453,ol.1828
HTTP/1.1
Accept: */*
Referer: http://www.google.at/
Accept-Language: en-us,de-at;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0;
.NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Host: www.google.at
Connection: Keep-Alive

Link is http://www.fiddler2.com/fiddler2/

BR,
Adrian Vintu


On Tue, Jan 12, 2010 at 11:28 AM, Adrian Vintu wrote:

> Sure. You have to use the user agent.
>
> You have something like
>
> Mozilla/5.0 (Linux; U; Android 1.5; en-us; Galaxy Build/CUPCAKE)
> AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
>
> for Android
>
> and something like
>
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102
> Firefox/3.5.5 (.NET CLR 3.5.30729)
>
> from the normal Firefox browser.
>
> BR,
> Adrian Vintu
>
>
> On Tue, Jan 12, 2010 at 11:21 AM, Neilz wrote:
>
>> Hi all.
>>
>> Could a standard web server identify an HTTP request as coming from a
>> normal browser, as opposed to an Android application?
>>
>> What could be different about the request that would enable the server
>> to differentiate between the two, and modify the response accordingly?
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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: How to transfer data with a successful bluetooth connection.?

2010-01-12 Thread prabhu
thank you Bastos,
but my problem is, I'm able to connect but once i initiate
outputstream.write(byte) the connection is setting off and the log
messages say "connection reset by peer"...
Can u identify the problem, out of this?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Contacts FAQ?

2010-01-12 Thread Jens
You could check the Email app - its the current location of the
Exchange ActiveSync SyncAdapter implementation.

http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=summary

Note that this adapter isn't the complete story as any contacts you
create with your custom accounts will be next to useless without
looking into the wonky ExternalSource.java integration required for
custom adapters (unless your happy with contacts that only contains a
name and photo).

http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=tree;f=src/com/android/contacts/model;h=e58985879d5b88e3374b3fad847da3786e47ee94;hb=08d3445a85a65c56c0f09d24f871ffbd3b93187f

Sources.java contains the "super-special-let's-not-use-our-own-API:s-
because-that's-hard-work-and-might-require-us-to-actually-document-
anything-or-heaven-forbid-test-it" if-statement that determines the
layout of your contacts in the Contacts app - and gives super-special
treatment to accounts with the type "com.google" or
"com.android.exchange".

ExternalSource.java contains the sparse and incomplete API
documentation that you're going to have to use.



On 9 Jan, 22:16, joebowbeer  wrote:
> On Dec 10 2009, 7:03 am, ydario  wrote:
>
> > I tried addingcontactscode to this project
>
> >http://code.google.com/p/androidaccounts/
>
> The referenced project no longer exists. Are there any similar
> projects to check out? If not, could someone who has a handle on this
> start a new project?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Is there a way to get an icon back from MediaStore

2010-01-12 Thread rben
I know that MediaStore creates an icon for each of its files. I'm
wondering if there is a way to get a copy of that icon back from
MediaStore, since that would save me the hassle of doing the whole
crop thing.

On Jan 11, 4:00 pm, rben  wrote:
> I've figured out how to get the camera to work. It's taking a 1/4
> resolution picture and I'm putting it into the gallary. Next, I want
> to create a small icon of that picture to put on a button. I've seen
> several examples and the code below is what I've been trying:
>
>                 showMessage("Next Step is cropping - Waiting ...");
>                 logDebug("Sending URI " + mOutputFileUri);
>
>                 // now we want to grab a lower res version for the button.
>                 Intent cropIntent = new 
> Intent("com.android.camera.action.CROP");
>                 cropIntent.setClassName
> ("com.android.camera","com.android.camera.CropImage");
>                 cropIntent.setData(mOutputFileUri);
>                 //cropIntent.setData(intent.getData());
>                 cropIntent.putExtra("noFaceDetection", true);
>                 cropIntent.putExtra("outputX", ICON_SIZE);
>                 cropIntent.putExtra("outputY", ICON_SIZE);
>                 cropIntent.putExtra("aspectX", 1);
>                 cropIntent.putExtra("aspectY", 1);
>                 cropIntent.putExtra("scale", true);
>                 cropIntent.putExtra("return-data", true);
>                 startActivityForResult(cropIntent, CROP_FROM_CAMERA);
>
> But, this blows up with a null pointer exception. I also get a warning
> in the log message stream saying the image file isn't finished
> writing.
>
> I've based my code on 
> this:http://stackoverflow.com/questions/1973359/android-crop-an-image-afte...
>
> Also, when it tries to delete the temporary file, there is an error
> because I don't have permission.
>
> This smells like I'm just missing something important. Can anyone
> point me in the right direction?
>
> Is there any other way to get an icon of the image?
>
> Thanks,
>   Ray
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: HTTP Requests - can Android be identified?

2010-01-12 Thread Neilz
Right, so if someone wanted to stop web responses going to android
apps, they can, without it affecting their usual service?

Thanks.

On Jan 12, 10:28 am, Adrian Vintu  wrote:
> Sure. You have to use the user agent.
>
> You have something like
>
> Mozilla/5.0 (Linux; U; Android 1.5; en-us; Galaxy Build/CUPCAKE)
> AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
>
> for Android
>
> and something like
>
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102
> Firefox/3.5.5 (.NET CLR 3.5.30729)
>
> from the normal Firefox browser.
>
> BR,
> Adrian Vintu
>
> On Tue, Jan 12, 2010 at 11:21 AM, Neilz  wrote:
> > Hi all.
>
> > Could a standard web server identify an HTTP request as coming from a
> > normal browser, as opposed to an Android application?
>
> > What could be different about the request that would enable the server
> > to differentiate between the two, and modify the response accordingly?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: AbortBroadcast Problem With 2.0 and 2.0.1 SDK's

2010-01-12 Thread Gulfam
Still waiting for response?

On Jan 11, 1:21 pm, Gulfam  wrote:
> Hi,
>
> Any update I ma still waiting.
>
> Gulfam Hassan
>
> On Jan 8, 6:04 pm, Gulfam  wrote:
>
> > Hi All,
>
> >    I am facing issue with 2.0 and 2.0.1 on aborting broadcast for out
> > going calls.
>
> > In my main activity on callButton press I am initiating call like this
> > /*Mian Activity Where Call
> > Initiating**/
> > public class MainActivity extends Activity implements OnClickListener{
>
> >    public void onClick(View v)
> >    {
> >         if(v == callButton){
>
> >                   String phoneNumber = "+45123456"
> >                   Intent DialIntent = new Intent
> > (Intent.ACTION_CALL,Uri.parse(phoneNumber));
> >                                     
> > DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> >                                     startActivity(DialIntent);
> >          }
> >     }}
>
> > //*Here is my Broad Cast
> > Receiver//
> > Public Class MyOutGoingCallReceiverIntent extends BroadcastReceiver{
>
> >     public void onReceive(Context context, Intent intent) {
>
> >          String  dialNumber= intent.getStringExtra
> > (Intent.EXTRA_PHONE_NUMBER);
>
> >         if(dialNumber.startsWith("+45"))//***International number
> > abort broad cast*//
> >         {
> >                 Log.i("Before Abort Broadcast","111");
> >                 abortBroadcast();
> >                 Log.i("After Abort Broadcast","222");
>
> >                 Intent DialIntent = new Intent
> > (Intent.ACTION_CALL,Uri.parse(3224005421));/**local number
> >                 DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> >                 context.startActivity(DialIntent);
> >         }
>
> >    }
>
> > }
>
> > /**Register Receiver In menifest/
> >  >                         android:name="MyOutGoingCallReceiverIntent"
> >                         android:enabled="true">
> >                                   >                                         android:priority="200">
> >                                  
> > android:name="android.intent.action.NEW_OUTGOING_CALL" />
> >                                   >                                         
> > android:name="android.intent.category.DEFAULT" />
> >                          
> >                         
>
> > /**Permissions in menifest**/
> > I have added these permissions in menifest
>
> >  > permission>
> >  > android:name="android.permission.PROCESS_OUTGOING_CALLS"> > permission>
> >  > uses-permission>
>
> > **
> > Now move towoards Issue abortBroadcast(); is working fine with 1.0 to
> > 1.6 SDK's but when i run the same code on 2.0+ SDK's Its print the Log
> > statments as
>
> > Before Abort Broadcast    111
> > After Abort Broadcast    222
>
> > But not Abort the broad cast. Any one can help me regarding this
> > issue.
> > I have read the Documentation of 1.0 and 2.0 but there is no
> > difference in documentation.
> > My application is also running on market and there is no issue with
> > 1.0 to1.6 but now i am porting it for 2.0 its not aborting broadcast.
> > Is there any solution 
>
> > Thanks in advance.
>
> > Gulfam Hassan
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Camera Preview size and zoom

2010-01-12 Thread nemo
Hi! all

Could I set camera preview size higher than the screen resolution?
And Can I only show part of camera preview region on screen?

I'd like to set higher resolution of camera preview size and only get
center part of this camera preview data.
It's simular to 'zoom in' function.

I think I should have a customized  view ...
So I set the size of camera preview size a little higher(640x480) than
screen size(480x320)
And I tried to use canvas.clipRect(80, 80, 560, 400);   in  onDraw()
of the customied view.

I 'd like to change image data before it be drwaed on screen.
However, the camera preview is disordered.

Would someone have good idea of this?
Thanks a lot for your advise~~








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

[android-developers] Re: HTTP Requests - can Android be identified?

2010-01-12 Thread Neilz
I presume there's no way to mask the android request to make it appear
like another :-/

On Jan 12, 11:29 am, Neilz  wrote:
> Right, so if someone wanted to stop web responses going to android
> apps, they can, without it affecting their usual service?
>
> Thanks.
>
> On Jan 12, 10:28 am, Adrian Vintu  wrote:
>
> > Sure. You have to use the user agent.
>
> > You have something like
>
> > Mozilla/5.0 (Linux; U; Android 1.5; en-us; Galaxy Build/CUPCAKE)
> > AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
>
> > for Android
>
> > and something like
>
> > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102
> > Firefox/3.5.5 (.NET CLR 3.5.30729)
>
> > from the normal Firefox browser.
>
> > BR,
> > Adrian Vintu
>
> > On Tue, Jan 12, 2010 at 11:21 AM, Neilz  wrote:
> > > Hi all.
>
> > > Could a standard web server identify an HTTP request as coming from a
> > > normal browser, as opposed to an Android application?
>
> > > What could be different about the request that would enable the server
> > > to differentiate between the two, and modify the response accordingly?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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: HTTP Requests - can Android be identified?

2010-01-12 Thread Adrian Vintu
Kinda. Sure you can block/modify server responses depending on the User
Agent. But the User Agent can be easily spoofed.
So don't use it a security option. Use it for feeding smaller, more
performant web pages to mobiles.

One more thing. There is a difference between the BROWSER and APPS

The BROWSER sends a User Agent.
The APP sends whatever it wants as User Agent.

BR,
Adrian Vintu

On Tue, Jan 12, 2010 at 12:29 PM, Neilz  wrote:

> Right, so if someone wanted to stop web responses going to android
> apps, they can, without it affecting their usual service?
>
> Thanks.
>
> On Jan 12, 10:28 am, Adrian Vintu  wrote:
> > Sure. You have to use the user agent.
> >
> > You have something like
> >
> > Mozilla/5.0 (Linux; U; Android 1.5; en-us; Galaxy Build/CUPCAKE)
> > AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile
> Safari/525.20.1
> >
> > for Android
> >
> > and something like
> >
> > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5)
> Gecko/20091102
> > Firefox/3.5.5 (.NET CLR 3.5.30729)
> >
> > from the normal Firefox browser.
> >
> > BR,
> > Adrian Vintu
> >
> > On Tue, Jan 12, 2010 at 11:21 AM, Neilz 
> wrote:
> > > Hi all.
> >
> > > Could a standard web server identify an HTTP request as coming from a
> > > normal browser, as opposed to an Android application?
> >
> > > What could be different about the request that would enable the server
> > > to differentiate between the two, and modify the response accordingly?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, 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: Is there a way to get an icon back from MediaStore

2010-01-12 Thread zero
with sdk  2.X , thats possible
Mediastore.Images.Thumbnails.getThumbnail(ContentResolver cr, long
origId, int kind, BitmapFactory.Options options);

with lower sdk versions you have to query && read in the files
yourself, but i really don't recommend that.

On Jan 12, 11:58 am, rben  wrote:
> I know that MediaStore creates an icon for each of its files. I'm
> wondering if there is a way to get a copy of that icon back from
> MediaStore, since that would save me the hassle of doing the whole
> crop thing.
>
> On Jan 11, 4:00 pm, rben  wrote:
>
> > I've figured out how to get the camera to work. It's taking a 1/4
> > resolution picture and I'm putting it into the gallary. Next, I want
> > to create a small icon of that picture to put on a button. I've seen
> > several examples and the code below is what I've been trying:
>
> >                 showMessage("Next Step is cropping - Waiting ...");
> >                 logDebug("Sending URI " + mOutputFileUri);
>
> >                 // now we want to grab a lower res version for the button.
> >                 Intent cropIntent = new 
> > Intent("com.android.camera.action.CROP");
> >                 cropIntent.setClassName
> > ("com.android.camera","com.android.camera.CropImage");
> >                 cropIntent.setData(mOutputFileUri);
> >                 //cropIntent.setData(intent.getData());
> >                 cropIntent.putExtra("noFaceDetection", true);
> >                 cropIntent.putExtra("outputX", ICON_SIZE);
> >                 cropIntent.putExtra("outputY", ICON_SIZE);
> >                 cropIntent.putExtra("aspectX", 1);
> >                 cropIntent.putExtra("aspectY", 1);
> >                 cropIntent.putExtra("scale", true);
> >                 cropIntent.putExtra("return-data", true);
> >                 startActivityForResult(cropIntent, CROP_FROM_CAMERA);
>
> > But, this blows up with a null pointer exception. I also get a warning
> > in the log message stream saying the image file isn't finished
> > writing.
>
> > I've based my code on 
> > this:http://stackoverflow.com/questions/1973359/android-crop-an-image-afte...
>
> > Also, when it tries to delete the temporary file, there is an error
> > because I don't have permission.
>
> > This smells like I'm just missing something important. Can anyone
> > point me in the right direction?
>
> > Is there any other way to get an icon of the image?
>
> > Thanks,
> >   Ray
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Voice recognition and voice decoding

2010-01-12 Thread tina lincon
@ vikas-yea u r rite abt voice recognition but wat abt voice decoder
concept?

On Jan 12, 10:56 am, Vikas1976  wrote:
> Google "voice recognition android", you'll get about a hundred links.
>
> On Jan 11, 9:27 pm, tina lincon  wrote:
>
>
>
> > no ideas???:(
>
> > On Jan 11, 4:36 pm, tina lincon  wrote:
>
> > > How is it possible to implement voice recognition on android phones?
> > > Also to decode the voice and convert the male voice to female voice
> > > and vice versa?The voice data input from the user will be sent to the
> > > Google site
> > > for recognition through Internet, or will be processed and recognized
> > > locally on my android phone?
> > >  if anyone has any idea regarding it,plzz help..
> > > Thanks in advance,- Hide quoted text -
>
> - Show quoted text -
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: HTTP Requests - can Android be identified?

2010-01-12 Thread Kaj Bjurman
It depends on what you mean. An application that opens an
URLConnection can say that it is something different, e.g. an IE
browser.

You can find an example here:
http://www.java2s.com/Code/Java/Network-Protocol/URLConnectionsetRequestProperty.htm


On 12 Jan, 12:40, Neilz  wrote:
> I presume there's no way to mask the android request to make it appear
> like another :-/
>
> On Jan 12, 11:29 am, Neilz  wrote:
>
>
>
> > Right, so if someone wanted to stop web responses going to android
> > apps, they can, without it affecting their usual service?
>
> > Thanks.
>
> > On Jan 12, 10:28 am, Adrian Vintu  wrote:
>
> > > Sure. You have to use the user agent.
>
> > > You have something like
>
> > > Mozilla/5.0 (Linux; U; Android 1.5; en-us; Galaxy Build/CUPCAKE)
> > > AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile 
> > > Safari/525.20.1
>
> > > for Android
>
> > > and something like
>
> > > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102
> > > Firefox/3.5.5 (.NET CLR 3.5.30729)
>
> > > from the normal Firefox browser.
>
> > > BR,
> > > Adrian Vintu
>
> > > On Tue, Jan 12, 2010 at 11:21 AM, Neilz  
> > > wrote:
> > > > Hi all.
>
> > > > Could a standard web server identify an HTTP request as coming from a
> > > > normal browser, as opposed to an Android application?
>
> > > > What could be different about the request that would enable the server
> > > > to differentiate between the two, and modify the response accordingly?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Create Nexus One live wallpaper

2010-01-12 Thread Flying Coder

My app also runs on Android 1.5 & 1.6.  Currently, I specify the
translucent theme in the manifest.  Is there a way to conditionally
specify either translucent or wallpaper depending on the SDK version?

Thanks,
Steve


On Jan 10, 2:11 pm, Romain Guy  wrote:
> No, don't do this in code, do this in your manifest. Otherwise there
> will be an ugly transition.
>
>
>
>
>
> On Sun, Jan 10, 2010 at 9:57 AM, Beth Mezias  wrote:
> > Just to confirm, the code is ok if it sets the theme:
> >         setTheme(android.R.style.Theme_Wallpaper);
> > Merci beaucoup!
>
> > On Sat, Jan 9, 2010 at 11:50 AM, Romain Guy  wrote:
>
> >> > Can you please tell me if an app is picking up the systemwallpaperto
> >> > set it in an Activity, will the new livewallpaperbreak the
> >> > activity?
>
> >> Not at all. Thewallpapernow lives in its own process, in its own
> >> window. If your app uses the correct theme in its manifest, it will be
> >> transparent and show the livewallpaperunderneath. If not, you can
> >> draw the staticwallpaperin your background yourself. You won't be
> >> able to get live wallpapers though if you don't use the special
> >>wallpapertheme.
>
> >> > On Jan 9, 1:16 am, String  wrote:
> >> >> On Jan 9, 7:30 am, Romain Guy  wrote:
>
> >> >> > We are certainly not trying to piss off developers. The SDK is coming
> >> >> > *very soon* and we understand your frustration. Trust me that if we
> >> >> > could release it right now we would.
>
> >> >> Romain,
>
> >> >> Thanks for your response, and I do want to reiterate that my (our)
> >> >> frustration isn't directed at you personally. But if you have any way
> >> >> of passing word up the chain of command, please try to let them know
> >> >> that external developers are a vital part of the ecosystem, and
> >> >> releasing the appropriate SDK *before* any new OS version needs to be
> >> >> a priority. In fact, I'd go so far as to say that releasing an SDK
> >> >> needs to be an immutable prerequisite for any OS upgrade.
>
> >> >> Thanks again for your patience.
>
> >> >> String
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
>
> > Marie von Ebner-Eschenbach  - "Even a stopped clock is right twice a day."
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stop/Clear an AnimationSet

2010-01-12 Thread RIV
Hi All,

I have a situation where I'm using an AnimationSet object. I need to
stop the previously running animationset before starting the new one.
How to stop the animations in AnimationSet?

Regards,
R
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I am a german market developer. How can I see the english comments to my program?

2010-01-12 Thread whitemice
Change the locale on your phone, e.g. to German.  Then you might see
comments in other languages, if they exist.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Soft keyboard on activity startup

2010-01-12 Thread Petroleum Nasby
I am struggling trying to have the soft keyboard appear in a search screen,
and from the looks of numerous pleas on various forums, I am not the only
one. I have tried many variants, culling from the byzantine attempts of
those others.

   InputMethodManager imm = (InputMethodManager) getSystemService
(Context.INPUT_METHOD_SERVICE);
   imm.showSoftInput (query, 0);

(for 0, substitute InputMethodManager.SHOW_FORCED or
InputMethodManager.SHOW_IMPLICIT.)

The problem seems to be that showSoftInput doesn't work from onCreate.

This is a very common need. Surely there is a reasonable solution to this
problem, or is it botched here?

P. V. Nasby
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Help me!! The fb0 no space left on device..

2010-01-12 Thread Michael Wu
When I enter the android kernel console, I type :

cat 3.bmp > dev/graphics/fb0 error!!
write: No space left on device

After this, there is nothing showed on my lcd.

Could someone tell me what does this error message mean and how to
solve please??

My all debug message : http://pastebin.com/m510035c5

Please help me !!

--
Michael
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Help me!! The fb0 no space left on device..

2010-01-12 Thread Alessandro Pellizzari
Il giorno mar, 12/01/2010 alle 04.25 -0800, Michael Wu ha scritto:

> cat 3.bmp > dev/graphics/fb0 error!!
> write: No space left on device

I don't know what you are trying to do, but it should be

cat 3.bmp > /dev/...

(with a slash at the beginning).

The correct path could change based on your framebuffer driver in the
kernel.

Bye.


-- 
Alessandro Pellizzari

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

2010-01-12 Thread steve
Greetings,

Is there anyway to take screen shots of my device while it is
unconnected from DDMS ?

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

2010-01-12 Thread yog
Hi all,

1) Is there any way to collect frame buffer data from surface
flinger., and can give  it to JNI.
2) Does Java App layer has any API's to collect frame buffer data,
from surface flinger.
3) what is the purpose of copybit ApI's in HAL, can the API's can be
used  to copy framebuffer data.


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

2010-01-12 Thread t mal
The site piece of ezine article talk about 
http://www.shoppingreps.com?SourceId=11221.
I visited this site and I found really good and implemented the social
networking for group shopping. I registered my intention to buy
Samsung 32” LCD TV and I received a email within a couple of days. Now
I have to bargain for a group of 4 people who wanted to buy the same
Samsung 32” LCD TV from Chennai. I am excited anybody wants to join
this group. Please visit http://www.shoppingreps.com?SourceId=11221
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] App not visible in market on HTC Hero

2010-01-12 Thread Andreas Reuterberg
I have an app in the market and has been for several months but I just
heard from someone that it can't be found with the HTC Hero. I'm using
the G1 and it works fine for me. Does anyone know why it might not be
visible?

I've added the supports-screens element but the G1 and the hero have
the same screen size so it shouldn't be that anyway. If anyone has the
HTC Hero and wants to try a search then the app is called FingerPlay
MIDI.

Thanks!

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

2010-01-12 Thread TjerkW
Android 2.1 has API support for creating live wallpapers. This means
that we can implemente our own live wallpapers w00t!

However what i like to see is a Tutorial on creating such a live
wallpaper.
Is there going to be added one?
What about battery live?

Or maybe a link to the sourcecode to one of the live wallpapers in
Nexus One?

When i run a 2.1 emulator and choose a live wallpaper it says: "No
live wallpapers"

--
Anyway thanks for this nice peace of software.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] I am excited

2010-01-12 Thread t mal
The site piece of ezine article talk about 
http://www.shoppingreps.com?SourceId=11221.
I visited this site and I found really good and implemented the social
networking for group shopping. I registered my intention to buy
Samsung 32” LCD TV and I received a email within a couple of days. Now
I have to bargain for a group of 4 people who wanted to buy the same
Samsung 32” LCD TV from Chennai. I am excited anybody wants to join
this group. Please visit http://www.shoppingreps.com?SourceId=11221
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App not visible in market on HTC Hero

2010-01-12 Thread Andreas Reuterberg
It seems the HTC Hero hasn't got the 1.6 version of Android. Problem
"solved". Thanks :)

On Tue, Jan 12, 2010 at 12:58 PM, Andreas Reuterberg
 wrote:
> I have an app in the market and has been for several months but I just
> heard from someone that it can't be found with the HTC Hero. I'm using
> the G1 and it works fine for me. Does anyone know why it might not be
> visible?
>
> I've added the supports-screens element but the G1 and the hero have
> the same screen size so it shouldn't be that anyway. If anyone has the
> HTC Hero and wants to try a search then the app is called FingerPlay
> MIDI.
>
> Thanks!
>
> /Andreas
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App not visible in market on HTC Hero

2010-01-12 Thread moneytoo
Do you have minSdkVersion set to 3?

On Jan 12, 1:58 pm, Andreas Reuterberg 
wrote:
> I have an app in the market and has been for several months but I just
> heard from someone that it can't be found with the HTC Hero. I'm using
> the G1 and it works fine for me. Does anyone know why it might not be
> visible?
>
> I've added the supports-screens element but the G1 and the hero have
> the same screen size so it shouldn't be that anyway. If anyone has the
> HTC Hero and wants to try a search then the app is called FingerPlay
> MIDI.
>
> Thanks!
>
> /Andreas
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Take a screen shot of device?

2010-01-12 Thread moneytoo
DDMS is the only option (for devices without root access).

On Jan 12, 1:54 pm, steve  wrote:
> Greetings,
>
> Is there anyway to take screen shots of my device while it is
> unconnected from DDMS ?
>
> Thanks,
> Steve
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Prolonged touching (>30s) in one area causes onTouchEvent to stop registering?

2010-01-12 Thread Josh
I'm trying to do something in my app where you have to hold your
finger on the screen for more than 30 seconds. After about 30 seconds,
it stops sending onTouchEvents for that part of the screen, almost
like a "dead zone."

Tested on a motorola droid, and is there any way to stop this from
happening?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Live Wallpaper Tutorial

2010-01-12 Thread Sébastien Canart
There is an example in the sample directory of the SDK: CubeLiveWallpaper.
Just start it like others applications and you should be able to set the
live wallpaper.

On Tue, Jan 12, 2010 at 1:59 PM, TjerkW  wrote:

> Android 2.1 has API support for creating live wallpapers. This means
> that we can implemente our own live wallpapers w00t!
>
> However what i like to see is a Tutorial on creating such a live
> wallpaper.
> Is there going to be added one?
> What about battery live?
>
> Or maybe a link to the sourcecode to one of the live wallpapers in
> Nexus One?
>
> When i run a 2.1 emulator and choose a live wallpaper it says: "No
> live wallpapers"
>
> --
> Anyway thanks for this nice peace of software.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBBnxJE6JjEsxKwDOsRAnnqAJ9ajbJqfPUWIITbSvW3w4weax7uOACeKC77
cK2Dj4jpYma4JUxKGRxEvmY=
=un9J
-END PGP SIGNATURE-
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 SDK Behind Authenticated Proxy

2010-01-12 Thread bklik
I'm unable to configure the Android SDK and AVD Manager to acquire
packages from behind an authenticated proxy server.  I've filled out
the proxy fields in the Settings area, but am never ask my username or
password.  I tried the :@proxyurl method, which
doesn't work either.

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

2010-01-12 Thread gjs
Many thanks :-)


On Jan 12, 11:16 am, Kent Loobey  wrote:
> On Monday 11 January 2010 15:24:44 Xavier Ducrohet wrote:
>
> > Hello everyone,
>
> > We've just released the 2.1 SDK.
>
> > More info:
> >  http://android-developers.blogspot.com/2010/01/android-21-sdk.html
>
> > Enjoy!
>
> > Xav
>
> Thank you!  Thank you!  Thank you all!
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stop/Clear an AnimationSet

2010-01-12 Thread Mark Murphy
RIV wrote:
> I have a situation where I'm using an AnimationSet object. I need to
> stop the previously running animationset before starting the new one.
> How to stop the animations in AnimationSet?

Call clearAnimation() on the widget that is being animated.

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

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.3 Available!
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Virtual keypad handling

2010-01-12 Thread Muthu Kumar K.
Hi All,

I am using the android 2.1 and older version SDK. Here i am facing the
problem like when I am tapping the text box in my app screen, virtual
key pad is shown. As a result of this my full screen is getting shrunk
including the background image. I am not having any problem with the
virtual key pad. But i want to avoid that shrinking. How can I avoid
this. Kindly give your thoughts.

Thanks in Advance,
Muthu Kumar K.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Setting a new Typeface to all text views

2010-01-12 Thread Mark Murphy
Pixie wrote:
> Hello,
> 
> I've created a custom Typeface by adding a TTF file to the assets
> folder, and I use the setTypeface method to apply this font to each of
> the text views, and everything works great.
> The only problem I have, is that I write a lot of code lines in order
> to apply this font to all text views.
> Is there a way to make this font the default font in my project, or to
> apply it to all text views at once?

Not that I am aware of, no.

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

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

[android-developers] Re: Does Nexus One support the SPP Bluetooth Profile?

2010-01-12 Thread moneytoo
Nexus supports SPP (as any Android 2.x device). This page just not
displays supported BT profiles.

On Jan 12, 10:01 am, DonFrench  wrote:
> I read somewhere that the Nexus One supported the SPP profile but now
> this page seems to contradict that 
> :http://www.google.com/support/android/bin/static.py?page=guide.cs&gui
> Can anyone say for sure?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Strange action from a webview

2010-01-12 Thread Maps.Huge.Info (Maps API Guru)
I have an app that uses a webview that displays address information in
a list format. Occasionally, when scrolling through the data, one of
the address will highlight and start the maps app. The map app then
geocodes the address and it shows up with an infowindow. Slick, but ?
I have nothing in the app that would fire off an intent to start the
maps, it seems to do it all on its own.

Is this a feature, but of does my unit have a mind of its own?

Device: Google Ion
OS: 1.6

The app isn't on the market yet, it's in the preliminary testing
phase.

-John Coryat

"Radar Now!"

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

[android-developers] Re: Take a screen shot of device?

2010-01-12 Thread Maps.Huge.Info (Maps API Guru)
It would be great if Google (or someone) produced a simple to download
version of DDMS that had only two functions: capture the screen and
save the log. Another huge bonus would be if it also could capture an
image stream, like one frame per second or even greater and save those
in a folder on the user's hard drive automatically.

I see this as a potentially useful debugging tool. If I could direct a
user to a download of such a program and they could send me the
resulting image stream and log, debugging problems on the various
devices would be a lot easier that getting "it looks weird when I tilt
it" type support messages.

-John Coryat

"Radar Now!"

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

[android-developers] Re: ImageView in ListActivity

2010-01-12 Thread NoraBora
Shouldn't the orientation be "vertical"?

On Jan 12, 4:01 am, Brion Emde  wrote:
> You've got the ListView height set to fill_parent, which will fill the
> parent.
>
> I think you've got to add layout_weight="1" on your ImageView, so it
> will inform the layout that it wants space too.
>
> On Jan 11, 8:14 am, Marwal  wrote:
>
> > Hi,
>
> > I have an ListActivity that I wan't to add a logo to at the top above
> > the list but I'm unsuccessful. This is what my layout looks like at
> > the moment.
>
> > 
> >  >     xmlns:android="http://schemas.android.com/apk/res/android";
> >     android:orientation="horizontal"
> >     android:layout_width="fill_parent"
> >     android:layout_height="fill_parent">
> >      >         android:id="@+id/logo"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content" />
> >      >         android:id="@android:id/list"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent"
> >         android:drawSelectorOnTop="false">
> >     
> >      >         android:id="@+id/empty"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent"
> >         android:text="@string/list_empty" />
> > 
>
> > Then I add an drawable to the ImageView logo in onCreate. I've managed
> > to show either the ListView or the ImageView but never both of them in
> > the same LinearLayout.
>
> > Is it possible to add other views together with a ListView?
>
> > /Martin
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: HTTP Requests - can Android be identified?

2010-01-12 Thread Maps.Huge.Info (Maps API Guru)
I see 110 different user agents coming from Android devices, some are
very non-standard, so be aware you'll find quite a bit of diversity.

-John Coryat

"Radar Now!"

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

[android-developers] Re: Create Nexus One live wallpaper

2010-01-12 Thread Flying Coder

Never mind - I found a way to do it:  define sdk-specific themes in
values-v3 & values-v5.


On Jan 12, 6:47 am, Flying Coder  wrote:
> My app also runs on Android 1.5 & 1.6.  Currently, I specify the
> translucent theme in the manifest.  Is there a way to conditionally
> specify either translucent orwallpaperdepending on the SDK version?
>
> Thanks,
> Steve
>
> On Jan 10, 2:11 pm, Romain Guy  wrote:
>
>
>
> > No, don't do this in code, do this in your manifest. Otherwise there
> > will be an ugly transition.
>
> > On Sun, Jan 10, 2010 at 9:57 AM, Beth Mezias  wrote:
> > > Just to confirm, the code is ok if it sets the theme:
> > >         setTheme(android.R.style.Theme_Wallpaper);
> > > Merci beaucoup!
>
> > > On Sat, Jan 9, 2010 at 11:50 AM, Romain Guy  wrote:
>
> > >> > Can you please tell me if an app is picking up the systemwallpaperto
> > >> > set it in an Activity, will the new livewallpaperbreak the
> > >> > activity?
>
> > >> Not at all. Thewallpapernow lives in its own process, in its own
> > >> window. If your app uses the correct theme in its manifest, it will be
> > >> transparent and show the livewallpaperunderneath. If not, you can
> > >> draw the staticwallpaperin your background yourself. You won't be
> > >> able to get live wallpapers though if you don't use the special
> > >>wallpapertheme.
>
> > >> > On Jan 9, 1:16 am, String  wrote:
> > >> >> On Jan 9, 7:30 am, Romain Guy  wrote:
>
> > >> >> > We are certainly not trying to piss off developers. The SDK is 
> > >> >> > coming
> > >> >> > *very soon* and we understand your frustration. Trust me that if we
> > >> >> > could release it right now we would.
>
> > >> >> Romain,
>
> > >> >> Thanks for your response, and I do want to reiterate that my (our)
> > >> >> frustration isn't directed at you personally. But if you have any way
> > >> >> of passing word up the chain of command, please try to let them know
> > >> >> that external developers are a vital part of the ecosystem, and
> > >> >> releasing the appropriate SDK *before* any new OS version needs to be
> > >> >> a priority. In fact, I'd go so far as to say that releasing an SDK
> > >> >> needs to be an immutable prerequisite for any OS upgrade.
>
> > >> >> Thanks again for your patience.
>
> > >> >> String
>
> > >> > --
> > >> > You received this message because you are subscribed to the Google
> > >> > Groups "Android Developers" group.
> > >> > To post to this group, send email to 
> > >> > android-developers@googlegroups.com
> > >> > To unsubscribe from this group, send email to
> > >> > android-developers+unsubscr...@googlegroups.com
> > >> > For more options, visit this group at
> > >> >http://groups.google.com/group/android-developers?hl=en
>
> > >> --
> > >> Romain Guy
> > >> Android framework engineer
> > >> romain...@android.com
>
> > >> Note: please don't send private questions to me, as I don't have time
> > >> to provide private support.  All such questions should be posted on
> > >> public forums, where I and others can see and answer them
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
>
> > > --
>
> > > Marie von Ebner-Eschenbach  - "Even a stopped clock is right twice a day."
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Take a screen shot of device?

2010-01-12 Thread Mark Murphy
Maps.Huge.Info (Maps API Guru) wrote:
> It would be great if Google (or someone) produced a simple to download
> version of DDMS that had only two functions: capture the screen and
> save the log. Another huge bonus would be if it also could capture an
> image stream, like one frame per second or even greater and save those
> in a folder on the user's hard drive automatically.

Two of those three features are on the docket for DroidEx, if I (or
others) ever get around to it.

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

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

[android-developers] Nexus One multicolor LED notifications gone?

2010-01-12 Thread code_android_festival_way
I have seen that HTC Sense devices ignore multicolor LED notifications
but I assumed that the Nexus One is capable of doing them. Why are
they not possible anymore? Why are they specified in the Android SDK
and even the Google supported phones drop that feature? At the moment
we only see a white flashing trackball which sucks! There is no
possibility to do reasonable silent alarms anymore.

Can someone tell me why?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Nexus One multicolor LED notifications gone?

2010-01-12 Thread Mark Murphy
code_android_festival_way wrote:
> Why are they specified in the Android SDK
> and even the Google supported phones drop that feature?

>From the SDK documentation:

"The color of the led. The hardware will do its best approximation."

Now, it would be nice if the docs were more forceful on this point, but
it has been discussed quite a few times on this list that this pretty
much means you can't count on colors working on any given device.

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

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

[android-developers] Re: Client / Server, JBoss or Apache Tomcat

2010-01-12 Thread JFrog
jotobjects hit on some elements within that last response that I'll
consider when developing future clients if that is the route that the
road leads me down when projects progress.  Appreciate the responses
and clarification from K.D., jotobjects, and F.W. for keeping with my
post.  I think that I now have a substantial overview of where the
framework lies regarding portability and several development solutions.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: GalleryView memory issue / Alternatives

2010-01-12 Thread Loki117
Hey Mark

Yeah there is a bug report logged this is targeting 1.5 I should
mention the bug report was sent but for the life of me I can't find it
but Roman did mention it here
http://groups.google.com/group/android-beginners/browse_thread/thread/6771cf9a27d848b8
for anyone else with a similar issue in the end I have dropped the
thumbnail size of the images down and limited the number on Gallery to
20 but be aware the null check on the recycled view is redundant as it
is always going to be null until a fix is placed.

Aha! Just found the bug report just before posting
http://code.google.com/p/android/issues/detail?id=3376&q=Gallery%20view&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

Tom

On Jan 11, 9:58 pm, Mark Wyszomierski  wrote:
> Tom, are you sure this is an issue with galleryview? Is there a bug
> report logged for this?
>
> On Jan 11, 3:06 pm, Loki117  wrote:
>
>
>
> > Hey Guys,
>
> > I am sure most people here are aware that the Android Gallery view has
> > a bit of an issue with not recycling views. For this it leads to a
> > memory issue while parsing bitmaps into these imageViews. Does anyone
> > know of a way to step around this issue or have a viable alternative
> > to using Gallery view to effectively create a scrollable list of
> > Images?
>
> > For completeness sake the error is an out of memory one which is
> > eventually hit while decoding a stream using Bitmap from stream. I am
> > sure however if the previous views where being recycled this wouldn't
> > be an issue.
>
> > Thanks in advance,
>
> > 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: Nexus One multicolor LED notifications gone?

2010-01-12 Thread code_android_festival_way
I know that. I just like to know why do they kill useful hardware
features and add senseless things like 3D wallpapers?

On 12 Jan., 15:14, Mark Murphy  wrote:
> code_android_festival_way wrote:
> > Why are they specified in the Android SDK
> > and even the Google supported phones drop that feature?
>
> From the SDK documentation:
>
> "The color of the led. The hardware will do its best approximation."
>
> Now, it would be nice if the docs were more forceful on this point, but
> it has been discussed quite a few times on this list that this pretty
> much means you can't count on colors working on any given device.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in US: 22-26 February 2010:http://onlc.com
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Strange action from a webview

2010-01-12 Thread Kumar Bibek
Have you used Linkify ???

Kumar Bibek
http://tech-droid.blogspot.com

On Jan 12, 6:41 pm, "Maps.Huge.Info (Maps API Guru)"
 wrote:
> I have an app that uses a webview that displays address information in
> a list format. Occasionally, when scrolling through the data, one of
> the address will highlight and start the maps app. The map app then
> geocodes the address and it shows up with an infowindow. Slick, but ?
> I have nothing in the app that would fire off an intent to start the
> maps, it seems to do it all on its own.
>
> Is this a feature, but of does my unit have a mind of its own?
>
> Device: Google Ion
> OS: 1.6
>
> The app isn't on the market yet, it's in the preliminary testing
> phase.
>
> -John Coryat
>
> "Radar Now!"
>
> "What Zip Code?"
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Nexus One multicolor LED notifications gone?

2010-01-12 Thread code_android_festival_way
I'd like to add that the hardware is capable of doing it. (like it was
on the HTC Hero and all the other Sense devices) Why do they cut
(disable) such features which are really useful? (Do we have bought an
Apple phone?) Why do we need custom roms again to make this possible.
This behaviour really sucks.

On 12 Jan., 15:37, code_android_festival_way
 wrote:
> I know that. I just like to know why do they kill useful hardware
> features and add senseless things like 3D wallpapers?
>
> On 12 Jan., 15:14, Mark Murphy  wrote:
>
> > code_android_festival_way wrote:
> > > Why are they specified in the Android SDK
> > > and even the Google supported phones drop that feature?
>
> > From the SDK documentation:
>
> > "The color of the led. The hardware will do its best approximation."
>
> > Now, it would be nice if the docs were more forceful on this point, but
> > it has been discussed quite a few times on this list that this pretty
> > much means you can't count on colors working on any given device.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android Training in US: 22-26 February 2010:http://onlc.com
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Contacts FAQ?

2010-01-12 Thread Jens
Developing in the SDK you can use the account type "com.google" - this
will trick the Contacts app into displaying all the fields without
trying to use the broken contact field format Brian hinted at earlier
in this thread. This will of course probably not work in an actual
device where the "com.google" authenticator is already added.

br
Jens

On 15 Dec 2009, 12:45, sazilla  wrote:
> Hi everyone,
>
> I encountered an issue while configuring my own account for 
> androidcontactssync. When the user choses to add a new contact to the custom
> account, only the name fields and the photo are showed. This behaviour
> can be found in the ExternalSource.java android source file.
>
> My question is, if I don't want to add customcontactsfields for my
> account, how can I configure the account to show all the standard
> fields in thecontactsapplication in the same way the google account
> does?
>
> Thank you
>
> Carlo
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Eclipse compile error

2010-01-12 Thread Kumar Bibek
This is an eclipse problem. Try increasing the memory eclipse.

Kumar Bibek
http://tech-droid.blogspot.com

On Jan 12, 10:43 am, skan95  wrote:
> Dear all.
>
> I am facing compile error for native Camera package in Eclipse IDE.
> SDK version is level 7.
>
> [2010-01-12 14:25:13 - Dex Loader]Unable to execute dex: null
> [2010-01-12 14:25:15 - Camera]Conversion to Dalvik format failed:
> Unable to execute dex: null
>
> Before showing these log message, "out of memory "  error popup in
> Eclipse.
>
> Are anyone who solve this problem?
>
> 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: HTTP Requests - can Android be identified?

2010-01-12 Thread Neilz
The seems to work nicely, thanks!

On Jan 12, 11:48 am, Kaj Bjurman  wrote:
> It depends on what you mean. An application that opens an
> URLConnection can say that it is something different, e.g. an IE
> browser.
>
> You can find an example 
> here:http://www.java2s.com/Code/Java/Network-Protocol/URLConnectionsetRequ...
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Options for sound in games

2010-01-12 Thread Neilz
Hi all. I'm developing an app where I want to play a regular sound
clip, like for example when a ball bounces or a rocket fires, small
wav files which are called repeatedly.

I have been using the android.media.SoundPool class  - but this has
known issues and after a few runs it locks up the application. As far
as I can tell from my research, this has not been fixed, which is
really frustrating as it's been the case since 1.5.

What other options do I have? There are plenty of games on the market
which use sound, so there must be something out there!
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Options for sound in games

2010-01-12 Thread OldSkoolMark
I use SoundPool in my metronome application. Very short clips
repeating at up to 300BPM, no problem.  I'd like to know what the
known issues you refer to are, as so far, I haven't been burned by any
of them, and would like to steer clear of them going forward.

On Jan 12, 7:14 am, Neilz  wrote:
> Hi all. I'm developing an app where I want to play a regular sound
> clip, like for example when a ball bounces or a rocket fires, small
> wav files which are called repeatedly.
>
> I have been using the android.media.SoundPool class  - but this has
> known issues and after a few runs it locks up the application. As far
> as I can tell from my research, this has not been fixed, which is
> really frustrating as it's been the case since 1.5.
>
> What other options do I have? There are plenty of games on the market
> which use sound, so there must be something out there!
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Prolonged touching (>30s) in one area causes onTouchEvent to stop registering?

2010-01-12 Thread Mirmathrax
I have the same problem, this has been posted about this earlier and
still no replies.

Hopefully someone out there can help.

-Colin



On Jan 12, 8:07 am, Josh  wrote:
> I'm trying to do something in my app where you have to hold your
> finger on the screen for more than 30 seconds. After about 30 seconds,
> it stops sending onTouchEvents for that part of the screen, almost
> like a "dead zone."
>
> Tested on a motorola droid, and is there any way to stop this from
> happening?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: TimerTask Thread problems

2010-01-12 Thread jax
I actually resolved this issue.

I was nothing to do with the TimerTask!



On Jan 11, 11:43 pm, jax  wrote:
> I am having TimerTask Thread problems.  Basically I am running a
> TimerTask to update a clock timer I have created.  When the user gets
> an answer correct a small animation will play and the screen will be
> idle for about 5 seconds, then it will resume with the next question.
>
> The problem is that when I flip the G1 screen, the clock will have
> already started (Sometimes almost 3/4 through).  It seems to me that
> the initial TimerTask thread did not finish and now there are two
> different ones running at the same time.  I have cancelled the
> TimerTask and the Timer in the onStop() method as seem below.
>
> Any ideas?
>
> In the onStart() methods I have this:
>
>                         mClockTimerTask = new TimerTask() {
>
>                                 @Override
>                                 public void run() {
>                                         if(!clockPaused) {
>                                                 if(mClock.getSweepArc() >= 
> 360) {
>                                                         clockPaused = true;
>                                                         
> mHandler.post(skipFromThread);
>                                                         mClock.setAngleArc(0);
>                                                 } else {
>                                                         mHandler.post(new 
> Runnable() {
>                                                                 @Override
>                                                                 public void 
> run() {
>                                                                         
> mClock.setAngleArc(mClock.getSweepArc()+mArcChangePerSecond);
>                                                                 }
>                                                         });
>                                                 }
>                                         }
>
>                                 }
>                         };
>
>                         mClockTimer = new Timer();
>                         mClockTimer.schedule(mClockTimerTask, 0,500);
>
> Here is my onStop() method:
>
>         @Override
>         protected void onStop() {
>                 super.onStop();
>                 if (Constants.DEBUG_LOG) {
>                         Log.d(TAG, "onStop()");
>                 }
>
>                 //Stop the timer
>                 mClockTimerTask.cancel();
>                 mClockTimer.cancel();
>                 mClockTimer = null;
>         }-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Moving Image Over Another Image

2010-01-12 Thread k_day
You won't get separate touch events for the same image, but you can
however get the coordinates of your touch event relative to its
parent, or itself, depending on want you want.  So given the
coordinates of the touch, you can easily determine where on the image
you may be touching.

It is possible and considered good practice to write code that will
scale on different resolutions and dimensions.

I don't know what you mean by "touch events dynamically".

Its probably best to just get your feet wet and write some simple
sample apps just to get a handle on layouts and touch events before
trying to piece together this large app.

-k_day

On Jan 11, 10:50 pm, prakhy  wrote:
> Thanks both of you.
> I need to provide touch events for different parts of the image. The
> touch areas might also need to
> scale automaticallybased on the screen dimensions and screen
> resolution. Is it possible to touch events dynamically
> as coordinates changes(in different devices)..?
>
> Prakhy
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Using document object

2010-01-12 Thread nikhil
Thanks for your replies guys,

The exception it raises is host unresolved...but I am able to load the
page on webview...

On Jan 11, 4:31 pm, Kumar Bibek  wrote:
> Do you get anything in the log cat?
>
> If there is some exception, log it.
>
> Kumar Bibekhttp://tech-droid.blogspot.com
>
> On Jan 12, 2:56 am, nikhil  wrote:> After the * step it 
> doesnot debug further it skips to next method and
> > loads the view
>
> > On Jan 11, 2:09 pm, TreKing  wrote:
>
> > > What do you mean by it "quits"?
>
> > > More than likely you're throwing an exception (highly likely with network
> > > IO). Put some try / catch code, logging, and breakpoints in there and see
> > > where it's going wrong.
>
> > > -
> > > TreKing - Chicago transit tracking app for Android-powered 
> > > deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> > > On Mon, Jan 11, 2010 at 2:00 PM, nikhil  wrote:
> > > > I am trying to parse a page loaded in a webview. Following is the code
>
> > > >                        URL url = new URL(myURLToLoad);
> > > >                        DocumentBuilderFactory dbf =
> > > > DocumentBuilderFactory.newInstance();
> > > >                           DocumentBuilder builder =
> > > > dbf.newDocumentBuilder();
> > > >                               Document dom = 
> > > > builder.parse(url.openStream
> > > > ());                      >  *
> > > >                                    String value =
> > > > dom.getElementById(myDivID).getNodeValue
> > > > ();
>
> > > > The code runs till * and then quits...I am not sure what is wrong with
> > > > this..Can anyone help...Or if you can suggest any alternate method it
> > > > would be helpful...
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, 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: Prolonged touching (>30s) in one area causes onTouchEvent to stop registering?

2010-01-12 Thread Al
Open adb shell and monitor the output of `getevent` while pressing
down on the screen.Do you see a continuous stream of events even after
30s?

Mirmathrax wrote:
> I have the same problem, this has been posted about this earlier and
> still no replies.
>
> Hopefully someone out there can help.
>
> -Colin
>
>
>
> On Jan 12, 8:07 am, Josh  wrote:
> > I'm trying to do something in my app where you have to hold your
> > finger on the screen for more than 30 seconds. After about 30 seconds,
> > it stops sending onTouchEvents for that part of the screen, almost
> > like a "dead zone."
> >
> > Tested on a motorola droid, and is there any way to stop this from
> > happening?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Using document object

2010-01-12 Thread TreKing
I haven't use URL class, not sure if it matters, but maybe try
HttpURLConnection?

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


On Tue, Jan 12, 2010 at 10:34 AM, nikhil  wrote:

> Thanks for your replies guys,
>
> The exception it raises is host unresolved...but I am able to load the
> page on webview...
>
> On Jan 11, 4:31 pm, Kumar Bibek  wrote:
> > Do you get anything in the log cat?
> >
> > If there is some exception, log it.
> >
> > Kumar Bibekhttp://tech-droid.blogspot.com
> >
> > On Jan 12, 2:56 am, nikhil  wrote:> After the * step
> it doesnot debug further it skips to next method and
> > > loads the view
> >
> > > On Jan 11, 2:09 pm, TreKing  wrote:
> >
> > > > What do you mean by it "quits"?
> >
> > > > More than likely you're throwing an exception (highly likely with
> network
> > > > IO). Put some try / catch code, logging, and breakpoints in there and
> see
> > > > where it's going wrong.
> >
> > > >
> -
> > > > TreKing - Chicago transit tracking app for Android-powered
> deviceshttp://sites.google.com/site/rezmobileapps/treking
> >
> > > > On Mon, Jan 11, 2010 at 2:00 PM, nikhil  wrote:
> > > > > I am trying to parse a page loaded in a webview. Following is the
> code
> >
> > > > >URL url = new URL(myURLToLoad);
> > > > >DocumentBuilderFactory dbf =
> > > > > DocumentBuilderFactory.newInstance();
> > > > >   DocumentBuilder builder =
> > > > > dbf.newDocumentBuilder();
> > > > >   Document dom =
> builder.parse(url.openStream
> > > > > ());  >  *
> > > > >String value =
> > > > > dom.getElementById(myDivID).getNodeValue
> > > > > ();
> >
> > > > > The code runs till * and then quits...I am not sure what is wrong
> with
> > > > > this..Can anyone help...Or if you can suggest any alternate method
> it
> > > > > would be helpful...
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Using document object

2010-01-12 Thread Kumar Bibek
Can you share your URL?
Is it a local URL, or a public one?

Kumar Bibek
http://tech-droid.blogspot.com

On Jan 12, 9:58 pm, TreKing  wrote:
> I haven't use URL class, not sure if it matters, but maybe try
> HttpURLConnection?
>
> -
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> On Tue, Jan 12, 2010 at 10:34 AM, nikhil  wrote:
> > Thanks for your replies guys,
>
> > The exception it raises is host unresolved...but I am able to load the
> > page on webview...
>
> > On Jan 11, 4:31 pm, Kumar Bibek  wrote:
> > > Do you get anything in the log cat?
>
> > > If there is some exception, log it.
>
> > > Kumar Bibekhttp://tech-droid.blogspot.com
>
> > > On Jan 12, 2:56 am, nikhil  wrote:> After the * step
> > it doesnot debug further it skips to next method and
> > > > loads the view
>
> > > > On Jan 11, 2:09 pm, TreKing  wrote:
>
> > > > > What do you mean by it "quits"?
>
> > > > > More than likely you're throwing an exception (highly likely with
> > network
> > > > > IO). Put some try / catch code, logging, and breakpoints in there and
> > see
> > > > > where it's going wrong.
>
> > -
> > > > > TreKing - Chicago transit tracking app for Android-powered
> > deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> > > > > On Mon, Jan 11, 2010 at 2:00 PM, nikhil  wrote:
> > > > > > I am trying to parse a page loaded in a webview. Following is the
> > code
>
> > > > > >                        URL url = new URL(myURLToLoad);
> > > > > >                        DocumentBuilderFactory dbf =
> > > > > > DocumentBuilderFactory.newInstance();
> > > > > >                           DocumentBuilder builder =
> > > > > > dbf.newDocumentBuilder();
> > > > > >                               Document dom =
> > builder.parse(url.openStream
> > > > > > ());                      >  *
> > > > > >                                    String value =
> > > > > > dom.getElementById(myDivID).getNodeValue
> > > > > > ();
>
> > > > > > The code runs till * and then quits...I am not sure what is wrong
> > with
> > > > > > this..Can anyone help...Or if you can suggest any alternate method
> > it
> > > > > > would be helpful...
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "Android Developers" group.
> > > > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > > > To unsubscribe from this group, 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] Phonebook Sharing (Google ADC's Top 20) is now Open Source

2010-01-12 Thread Rafael Fernandes
Today is quite a big day to me. After all the work, studies and
sleepless nights that I've been through, I've decided to share all
that with the community opening the source of Phonebook Sharing.

We have been chosen by the Android powered users as well as by Google
as one of the ADC's Top 20 Social Networking applications.

This application explores and makes use of many many features
available by the platform (Android 1.5 / 1.6) as well as custom
components/features that the platform does not provide yet, such as
ListView pagination.

Not just the Android client but also the J2EE server, I've made
available quite a few interessting things such as Video Streaming and
EJB3 stuff..

I've also built a fake server that responds to all the request events
made by the android client therefore you will be able to run client/
server and see how the communication goes.

I'm still wrapping up the project building some documentation on our
Wiki section.

Here are the URLs:

Project URL: http://code.google.com/p/phonebooksharing/
Project Wiki URL: http://code.google.com/p/phonebooksharing/w/list
My Blog URL: http://luizrafael.blogspot.com/

Anyway guys, I've put a lot of effort and sleeples nights on this one,
I hope you guys enjoy it.

Cheers,
Rafael Fernandes
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Prolonged touching (>30s) in one area causes onTouchEvent to stop registering?

2010-01-12 Thread Josh
When I do getevent I see a continuous stream of events if I'm touching
the screen or not, hard to tell if it's a touch event or not. It DOES
look like event3 is related to touch however, and it looks like after
about 30 seconds it stops streaming those for that part of the screen.

Would that make it a bug in the platform or the device?

On Jan 12, 11:35 am, Al  wrote:
> Open adb shell and monitor the output of `getevent` while pressing
> down on the screen.Do you see a continuous stream of events even after
> 30s?
>
>
>
> Mirmathrax wrote:
> > I have the same problem, this has been posted about this earlier and
> > still no replies.
>
> > Hopefully someone out there can help.
>
> > -Colin
>
> > On Jan 12, 8:07 am, Josh  wrote:
> > > I'm trying to do something in my app where you have to hold your
> > > finger on the screen for more than 30 seconds. After about 30 seconds,
> > > it stops sending onTouchEvents for that part of the screen, almost
> > > like a "dead zone."
>
> > > Tested on a motorola droid, and is there any way to stop this from
> > > happening?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Phonebook Sharing (Google ADC's Top 20) is now Open Source

2010-01-12 Thread Kumar Bibek
Cool!

On Jan 12, 10:08 pm, Rafael Fernandes  wrote:
> Today is quite a big day to me. After all the work, studies and
> sleepless nights that I've been through, I've decided to share all
> that with the community opening the source of Phonebook Sharing.
>
> We have been chosen by the Android powered users as well as by Google
> as one of the ADC's Top 20 Social Networking applications.
>
> This application explores and makes use of many many features
> available by the platform (Android 1.5 / 1.6) as well as custom
> components/features that the platform does not provide yet, such as
> ListView pagination.
>
> Not just the Android client but also the J2EE server, I've made
> available quite a few interessting things such as Video Streaming and
> EJB3 stuff..
>
> I've also built a fake server that responds to all the request events
> made by the android client therefore you will be able to run client/
> server and see how the communication goes.
>
> I'm still wrapping up the project building some documentation on our
> Wiki section.
>
> Here are the URLs:
>
> Project URL:http://code.google.com/p/phonebooksharing/
> Project Wiki URL:http://code.google.com/p/phonebooksharing/w/list
> My Blog URL:http://luizrafael.blogspot.com/
>
> Anyway guys, I've put a lot of effort and sleeples nights on this one,
> I hope you guys enjoy it.
>
> Cheers,
> Rafael Fernandes
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Using document object

2010-01-12 Thread nikhil
@TreKing

I tried urlconnection as well but shows me the same thing..

@Kumar

Sorry I cannot share the URL

but what I can tell you guys is ...if you have done iPhone development
there is a method to evaluatejavascript for a UIWebView on iPhone that
helps us to get the value of a particular element by evaluating it
like "document.getElementById"

I am really new to android platform and java as well so I was trying
the same thing for android using document object..

I also tried to used myWebView.getURL() and it shows me malformed url
exception..I donno if redirection is the issue...



On Jan 12, 11:06 am, Kumar Bibek  wrote:
> Can you share your URL?
> Is it a local URL, or a public one?
>
> Kumar Bibekhttp://tech-droid.blogspot.com
>
> On Jan 12, 9:58 pm, TreKing  wrote:
>
> > I haven't use URL class, not sure if it matters, but maybe try
> > HttpURLConnection?
>
> > -
> > TreKing - Chicago transit tracking app for Android-powered 
> > deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> > On Tue, Jan 12, 2010 at 10:34 AM, nikhil  wrote:
> > > Thanks for your replies guys,
>
> > > The exception it raises is host unresolved...but I am able to load the
> > > page on webview...
>
> > > On Jan 11, 4:31 pm, Kumar Bibek  wrote:
> > > > Do you get anything in the log cat?
>
> > > > If there is some exception, log it.
>
> > > > Kumar Bibekhttp://tech-droid.blogspot.com
>
> > > > On Jan 12, 2:56 am, nikhil  wrote:> After the * step
> > > it doesnot debug further it skips to next method and
> > > > > loads the view
>
> > > > > On Jan 11, 2:09 pm, TreKing  wrote:
>
> > > > > > What do you mean by it "quits"?
>
> > > > > > More than likely you're throwing an exception (highly likely with
> > > network
> > > > > > IO). Put some try / catch code, logging, and breakpoints in there 
> > > > > > and
> > > see
> > > > > > where it's going wrong.
>
> > > -
> > > > > > TreKing - Chicago transit tracking app for Android-powered
> > > deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> > > > > > On Mon, Jan 11, 2010 at 2:00 PM, nikhil  wrote:
> > > > > > > I am trying to parse a page loaded in a webview. Following is the
> > > code
>
> > > > > > >                        URL url = new URL(myURLToLoad);
> > > > > > >                        DocumentBuilderFactory dbf =
> > > > > > > DocumentBuilderFactory.newInstance();
> > > > > > >                           DocumentBuilder builder =
> > > > > > > dbf.newDocumentBuilder();
> > > > > > >                               Document dom =
> > > builder.parse(url.openStream
> > > > > > > ());                      >  *
> > > > > > >                                    String value =
> > > > > > > dom.getElementById(myDivID).getNodeValue
> > > > > > > ();
>
> > > > > > > The code runs till * and then quits...I am not sure what is wrong
> > > with
> > > > > > > this..Can anyone help...Or if you can suggest any alternate method
> > > it
> > > > > > > would be helpful...
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the Google
> > > > > > > Groups "Android Developers" group.
> > > > > > > To post to this group, send email to
> > > android-developers@googlegroups.com
> > > > > > > To unsubscribe from this group, 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] looking for accelerometer example code using non-deprecated apis

2010-01-12 Thread OldSkoolMark
Unfortunately, Sensors.java in the apidemos (even the latest ones)
uses deprecated apis. Can anyone point me to an example using current
apis?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Selling paid applications in Canada

2010-01-12 Thread markusn82
Hi,

Is there any way to sell a paid application in Canada? I'm seriously
disgruntled by the fact that Google has not made it widely/obviously
known that you can only publish paid apps from a select number of
countries. I spent several months making an Android game and just
registered as an Android developer only to find out that Google
Checkouts doesn't allow you to sell if you're from Canada. I have
stuck with the Android platform from the beginning and I honestly feel
betrayed by this.

Is anyone else in this situation as well? Are there any known work-
arounds to the process that will allow me to sell my application? If I
have access to a U.S. address, is that sufficient or do I also need a
US back account? I hope there is some solution to this..  I really
feel like I just wasted several months of hard work.

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

[android-developers] ListView Losing Text on phone rotation?

2010-01-12 Thread Tommy
Hi I was wondering how to save the active screen view when the phone
is rotated. Right now I have a listview that contains a bunch of
entries when I rotate the phone everything on the screen gets replaced
to its original state.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListView Losing Text on phone rotation?

2010-01-12 Thread schnie
I am having the exact same problem.  It's like the application
completely restarts itself when the phone is rotated.

On Jan 12, 12:34 pm, Tommy  wrote:
> Hi I was wondering how to save the active screen view when the phone
> is rotated. Right now I have a listview that contains a bunch of
> entries when I rotate the phone everything on the screen gets replaced
> to its original state.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListView Losing Text on phone rotation?

2010-01-12 Thread Mark Murphy
schnie wrote:
> I am having the exact same problem.  It's like the application
> completely restarts itself when the phone is rotated.
> 
> On Jan 12, 12:34 pm, Tommy  wrote:
>> Hi I was wondering how to save the active screen view when the phone
>> is rotated. Right now I have a listview that contains a bunch of
>> entries when I rotate the phone everything on the screen gets replaced
>> to its original state.

By default, the foreground activity is destroyed and recreated when the
orientation changes.

Use onSaveInstanceState() (preferred) or
onRetainNonConfigurationInstance() (for things that can't go in a
Bundle) to have your old activity's data be available to the new activity.

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

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

Re: [android-developers] looking for accelerometer example code using non-deprecated apis

2010-01-12 Thread Mark Murphy
OldSkoolMark wrote:
> Unfortunately, Sensors.java in the apidemos (even the latest ones)
> uses deprecated apis. Can anyone point me to an example using current
> apis?
> 

Here are three:

http://github.com/commonsguy/cw-advandroid/tree/master/Sensor/

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

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

Re: [android-developers] Selling paid applications in Canada

2010-01-12 Thread Mark Murphy
markusn82 wrote:
> Is there any way to sell a paid application in Canada? I'm seriously
> disgruntled by the fact that Google has not made it widely/obviously
> known that you can only publish paid apps from a select number of
> countries. I spent several months making an Android game and just
> registered as an Android developer only to find out that Google
> Checkouts doesn't allow you to sell if you're from Canada. I have
> stuck with the Android platform from the beginning and I honestly feel
> betrayed by this.
> 
> Is anyone else in this situation as well? Are there any known work-
> arounds to the process that will allow me to sell my application?

Sell it via any of the other markets out there (AndAppStore, SlideME,
Handango, etc.). Or sell it from your own Web site. Or choose any of the
other business models I outline here:

http://www.androidguys.com/2009/09/14/40bizmodels/
http://www.androidguys.com/2009/09/15/40-android-business-models-part-two/
http://www.androidguys.com/2009/09/16/40-android-business-models-part-three/
http://www.androidguys.com/2009/09/17/40-android-business-models-part-four/
http://www.androidguys.com/2009/09/18/40-android-business-models-part-five/

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

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

Re: [android-developers] AbortBroadcast Problem With 2.0 and 2.0.1 SDK's

2010-01-12 Thread Dianne Hackborn
To cancel a call, you set the resultData to null as described in the
documentation:

http://developer.android.com/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL

On Fri, Jan 8, 2010 at 5:04 AM, Gulfam  wrote:

> Hi All,
>
>   I am facing issue with 2.0 and 2.0.1 on aborting broadcast for out
> going calls.
>
> In my main activity on callButton press I am initiating call like this
> /*Mian Activity Where Call
> Initiating**/
> public class MainActivity extends Activity implements OnClickListener{
>
>   public void onClick(View v)
>   {
>if(v == callButton){
>
>  String phoneNumber = "+45123456"
>  Intent DialIntent = new Intent
> (Intent.ACTION_CALL,Uri.parse(phoneNumber));
>
>  DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>startActivity(DialIntent);
> }
>}
> }
> //*Here is my Broad Cast
> Receiver//
> Public Class MyOutGoingCallReceiverIntent extends BroadcastReceiver{
>
>public void onReceive(Context context, Intent intent) {
>
> String  dialNumber= intent.getStringExtra
> (Intent.EXTRA_PHONE_NUMBER);
>
>if(dialNumber.startsWith("+45"))//***International number
> abort broad cast*//
>{
>Log.i("Before Abort Broadcast","111");
>abortBroadcast();
>Log.i("After Abort Broadcast","222");
>
>Intent DialIntent = new Intent
> (Intent.ACTION_CALL,Uri.parse(3224005421));/**local number
>DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>context.startActivity(DialIntent);
>}
>
>   }
> }
>
> /**Register Receiver In menifest/
> android:name="MyOutGoingCallReceiverIntent"
>android:enabled="true">
> android:priority="200">
> 
> android:name="android.intent.action.NEW_OUTGOING_CALL" />
> 
>  android:name="android.intent.category.DEFAULT" />
> 
>
>
> /**Permissions in menifest**/
> I have added these permissions in menifest
>
>  permission>
>  android:name="android.permission.PROCESS_OUTGOING_CALLS"> permission>
>  uses-permission>
>
> **
> Now move towoards Issue abortBroadcast(); is working fine with 1.0 to
> 1.6 SDK's but when i run the same code on 2.0+ SDK's Its print the Log
> statments as
>
> Before Abort Broadcast111
> After Abort Broadcast222
>
> But not Abort the broad cast. Any one can help me regarding this
> issue.
> I have read the Documentation of 1.0 and 2.0 but there is no
> difference in documentation.
> My application is also running on market and there is no issue with
> 1.0 to1.6 but now i am porting it for 2.0 its not aborting broadcast.
> Is there any solution 
>
> Thanks in advance.
>
> Gulfam Hassan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Old dock in 2.1 SDK?

2010-01-12 Thread Dianne Hackborn
Please don't go off making assumptions and getting all disgruntled about
them.

If nothing else, the new version of home does not yet support all apps in
landscape (it wasn't needed for Nexus), so it is not generally usable yet.

As far as "apps which interact with the Home screen (like widgets and
wallpapers) can't be relied upon to behave the same in the emulator as on a
real handset", I have no idea what you are talking about.  Application
interaction with the home screen is very limited, and most of the
significant interactions (setting and showing wallpapers, widgets) are
defined by the platform, not the home app.  Is there some specific
interaction issue you have had with the home screen that has varied across
devices?

Plus the new home screen is a fork of the standard one, and so doesn't have
any different behavior that apps could be aware of.

On Tue, Jan 12, 2010 at 1:11 AM, String wrote:

> On Jan 12, 8:56 am, Kevin Duffey  wrote:
>
> > Does that mean we wont see the new interface on Moto Droid when it's
> > released with the 2.1 update? I thought it was all part of 2.1.
>
> It was mentioned in a different thread that the Home app is different
> in the emulator than on hardware phones. Presumably the emulator has
> the "stock" Android Home implementation? This difference wasn't
> obvious in previous releases - e.g., the 2.0 emulator's Home was
> visually indistinguishable from the Droid's - but it certainly is in
> 2.1. IOW, the N1's Home screen is another custom UI, like Sense or
> MotoBLUR.
>
> This is disappointing from two directions. First, it means that
> devices which we took to be bone stock Android - like Droid, and now
> the N1 - aren't really. They ALL have a custom Home UI, and apps which
> interact with the Home screen (like widgets and wallpapers) can't be
> relied upon to behave the same in the emulator as on a real handset.
>
> Second, it means that UI improvements (like the 3D effect in the N1's
> Launcher) aren't part of the OS, and can't be used in other apps
> without some serious hackery. This will unfortunately lead to a less
> consistent user experience, and a perpetuation of the criticisms that
> "Android apps aren't as pretty as iPhone's". Which doesn't bother me
> per se, but it does seem to be important from a PR standpoint.
>
> String
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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] Re: Use WebView to evaluate a javascript string and return the value

2010-01-12 Thread nikhil
Is there a way to evaluate though?

On Dec 1 2009, 1:45 pm, "Maps.Huge.Info (Maps API Guru)"
 wrote:
> I believe the browser is one of the largest components of Android, so
> launching a webview solely to evaluate a JavaScript string would be
> quite expensive. Perhaps you should translate the JavaScript into Java
> and be done with it.
>
> -John Coryat
>
> "Radar Now!" (#14 in News & Weather)
>
> "What Zip Code?"
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ADP2 Ion upgrade to Android 2.0?

2010-01-12 Thread Anders
Same here. It seems rooting and installing a custom image is the only
choice. Bad Google. Didn't you want to the attendees at Google IO that
you gave the phone to, to be able to develop modern applications for
it?

On Jan 6, 10:25 pm, ninu  wrote:
> I am with you!  I am trying to find out if there is any news about
> this as well.  I have my Ion right now and want to install either 2.0
> or 2.1 whichever I can get my hands on.
>
> -N
>
> On Dec 24 2009, 1:23 am, deuce4  wrote:
>
> > Is there any official site that discusses any updates to whether or
> > not the Ion will be able to upgraded to Android 2.0?
>
> > Or is there any concrete news among users here?
>
> > 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] Selling paid applications in Canada

2010-01-12 Thread Yves Glodt
While I agree with you Mark about these alternative selling channels, I am
still curious why in some countries paid apps are not available in the
Market?
I live in Luxembourg and because of the small size of our country I am used
to get things later than other countries. I was however a bit shocked that
Canada has the same problem...

What is the issue here?

Does google not want to make business everywhere?
Is it the fault of the carriers?

When I asked the helpline of my provider LUXGSM why paid apps are not
available I was told that the google license was expensive and that's why no
decision had been made yet.

Best regards,
yglodt

2010/1/12 Mark Murphy 

> markusn82 wrote:
> > Is there any way to sell a paid application in Canada? I'm seriously
> > disgruntled by the fact that Google has not made it widely/obviously
> > known that you can only publish paid apps from a select number of
> > countries. I spent several months making an Android game and just
> > registered as an Android developer only to find out that Google
> > Checkouts doesn't allow you to sell if you're from Canada. I have
> > stuck with the Android platform from the beginning and I honestly feel
> > betrayed by this.
> >
> > Is anyone else in this situation as well? Are there any known work-
> > arounds to the process that will allow me to sell my application?
>
> Sell it via any of the other markets out there (AndAppStore, SlideME,
> Handango, etc.). Or sell it from your own Web site. Or choose any of the
> other business models I outline here:
>
> http://www.androidguys.com/2009/09/14/40bizmodels/
> http://www.androidguys.com/2009/09/15/40-android-business-models-part-two/
>
> http://www.androidguys.com/2009/09/16/40-android-business-models-part-three/
> http://www.androidguys.com/2009/09/17/40-android-business-models-part-four/
> http://www.androidguys.com/2009/09/18/40-android-business-models-part-five/
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Android Training in US: 22-26 February 2010: http://onlc.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to completely remove application

2010-01-12 Thread fhucho
Hi, I am developing on T-Mobile G1. How do I completely remove my
application (database, SharedPreferences etc.)? I don't have root.
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] AlarmManager and the PendingIntent that failed

2010-01-12 Thread Tone
In order to learn how to use the AlarmManager I created an activity
that consists of a single button. When the button is pressed the
activity creates an Intent of itself and loads it into the
AlarmManager 3 seconds in the future before finishing.

So activity opens, user pushes button, activity closes, 3 seconds
later activity opens, repeat.

Problem is instead of opening the activity 3 seconds later I get an
error: "The application [myappname] has stopped unexpectedly. Please
try
again." however I was able to open a Toast from the Receiver just
fine.


Here's the code for the button:
thanksButton.setOnClickListener(new View.OnClickListener() {
   public void onClick(View view) {
   setResult(RESULT_OK);

   Intent intent = new Intent(myappname.this,
myappnameBroadcastReceiver.class);
   PendingIntent appIntent = PendingIntent.getBroadcast
(myappname.this, 0, intent, 0);
   Calendar calendar = Calendar.getInstance();
   calendar.setTimeInMillis(System.currentTimeMillis());
   calendar.add(Calendar.SECOND, 3);
   AlarmManager am = (AlarmManager)getSystemService
(ALARM_SERVICE);
   am.set(AlarmManager.RTC, calendar.getTimeInMillis(),
appIntent);

   finish();
   }

   });


Here's the broadcast receiver:
package com.myappname;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class myappnameBroadcastReceiver extends BroadcastReceiver {
   @Override
   public void onReceive(Context context, Intent intent) {
   context.startActivity(new Intent(context,
myappname.class));
   }
}

-
and here's the lines from the manifest.xml

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

2010-01-12 Thread grace
from ur code what i understand is that u have not defined the class
that implements servive methods(like onBind() etc..)

for ur code to work u need to define one class tha extends Service
class and that return an IBinder object from the onBind() function
(which acts as a proxy to the service object)

this IBinder object is passed to the onServiceConnected() as in ur
code

 public void onServiceConnected(ComponentName name,
> IBinder service) {
> Log.e("tag","connected");
>
> }

for beeter understanding check out the sample on the implementation of
the service calss providede in

"android-sdk-windows-1.6_r1\platforms\android-1.5\samples\ApiDemos\src
\com\example\android\apis\app\LocalService.java"

note:you can find this out in ur present working sdk version

On Jan 12, 4:40 am, dane131  wrote:
> hallo,
>
> I have made an activity that simply binds to a service,here is my
> code :
>
> public class LaunchApp extends Activity {
>     /** Called when the activity is first created. */
>         Button dial;
>
>                 �...@override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>         Toast.makeText(this, "text", Toast.LENGTH_LONG).show();
>         dial=(Button)findViewById(R.id.call_buddy);
>         dial.setOnClickListener(new OnClickListener() {
>
>                 @Override
>                         public void onClick(View v) {
>                                 launch_app();
>
>                         }
>
>                         private void launch_app() {
>
>                                 Intent launch_app=new Intent();
>                                 launch_app.setComponent(new ComponentName
> ("aexp.share.sharedapp1","aexp.share.sharedapp1.Service1"));
>                                 
> bindService(launch_app,mconnection,Context.BIND_AUTO_CREATE);
>
>                         }
>                 });
>
>     }
>                  ServiceConnection mconnection=new ServiceConnection(){
>
>                                 @Override
>                                 public void onServiceConnected(ComponentName 
> name,
>                                                 IBinder service) {
>                                         Log.e("tag","connected");
>
>                                 }
>
>                                 @Override
>                                 public void 
> onServiceDisconnected(ComponentName name) {
>                                         Log.e("tag","disconnected");
>
>                                 }};
>
> }
>
> i just want to get a message in the log when my activity connects
> succesfully or disconnects from the service.The above code does not do
> this and the messages are never written to the Log,can you give me
> some fixes for this code?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Voice recognition and voice decoding

2010-01-12 Thread Joe McCann
Speech-to-text is processed in the cloud and the resulting data is
returned.

On Jan 11, 5:36 am, tina lincon  wrote:
> How is it possible to implement voice recognition on android phones?
> Also to decode the voice and convert the male voice to female voice
> and vice versa?The voice data input from the user will be sent to the
> Google site
> for recognition through Internet, or will be processed and recognized
> locally on my android phone?
>  if anyone has any idea regarding it,plzz help..
> 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] MARQUEE speed control

2010-01-12 Thread SREEHARI
Hi,

 I did an application with MARQUEE. It is working fine. But the
scrolling speed is constant.Can anybody tell how to adjust the speed
of MARQUEE text.

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

Re: [android-developers] Re: Missing HashSet find

2010-01-12 Thread Elvis Prokopis
Angry?

On Jan 12, 2010 12:32 a.m., "Philip"  wrote:

Thanks for your reply. Complaint is a strong word... I am merely
pointing it out ;-)

contains() works only to find out if the element is in the set or not
(it returns a bool.)
find would give me an iterator that I can use to get to the object
directly.

workaround that's using contains() to speed up the discovery of the
element in the set for now:

   public int numberOfNodes(Target target) {
   if (targets.contains(target)) {
   for (HashElement element: targets) {
if (element.target == target)
   return element.nodes != null ? element.nodes.size
() : 0;
   }
   } else
  return 0;
   }

Knowing that targets can only have unique targets, and because I am
reluctant to modify drastically from one platform to another, I am
using a HashSet with the current limitation I discovered in the
Android impl.

Thanks,

Philip

On Jan 11, 3:15 pm, Mark Murphy  wrote: > Mark
Murphy wrote: > > Philip wr...

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

2010-01-12 Thread C.Versieux
Hello there.

(Sorry for my english... i am a belgian user)

My question is this one:



I made a cool app that gives a gallery (horizontal) with the favourite
pictures of a user.

It's cool and he can delete one by long clicking on it.


I would like the user to remove the picture by dragging it to the top.
In fact i would like the pictures to move to the top with a finger
gesture, and when the picture is far from the gallery, i xould like to
delete it!


Something like this:

http://www.youtube.com/watch?v=x9C0oFj40Ms&feature=player_embedded



But i have really, really no idea on how to write this!


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

Re: [android-developers] Re: Nexus 2.1 on sale, WHERE is the SDK!

2010-01-12 Thread Elvis Prokopis
elvis.proko...@gmail.com

On Jan 12, 2010 12:39 a.m., "Kevin Duffey"  wrote:

Ah.. ok.. that was more clear. I've only been working with it a couple
months, haven't seen any real issues. Can you list..perhaps in a private
email... some issues you are having? I would agree tho that it should be
relatively easy to put up a simple "it will be available on this date.."
message. I've been checking my AVD every day to see if it was there.
Apparently it was just announced that its now available.


On Mon, Jan 11, 2010 at 3:34 PM, iPaul Pro  wrote:

> > > > Paul... what are you talking about? Lack of consideration how? Please
> > > provide details as y...
>
> > For more options, visit this group at >
> http://groups.google.com/group/android-developers?hl=en
>


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

Re: [android-developers] Dialog on Lock Screen

2010-01-12 Thread Elvis Prokopis
I am goind to sleep,good night

2010/1/12 Jason Proctor 

> let's not get into all that again :-)
>
> there was a thread before the holidays entitled "Block Switch App" where
> this was discussed at length.
>
>
>
>  I thought you could replace the lock screen?
>> On Mon, Jan 11, 2010 at 3:08 PM, Mark Murphy <> mmur...@commonsware.com>mmur...@commonsware.com> wrote:
>>
>> sansu wrote:
>>
>>>  I need to display a dialog on top of lock screen when volume keys are
>>>  pressed.
>>>  How can I do this?
>>>
>>
>> You can't.
>>
>> -- Only foreground activities can find out about volume key presses, as
>> there do not appear to be broadcast Intents for them
>>
>> -- Only activities can display dialogs
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | <
>> http://twitter.com/commonsguy>http://twitter.com/commonsguy
>>
>>
>> _Android Programming Tutorials_ Version 1.1 Available!
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to > android-developers@googlegroups.com>android-developers@googlegroups.com
>>
>> To unsubscribe from this group, 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
>>
>
>
> --
> jason.vp.engineering.particle
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

  1   2   3   >