[android-developers] how to create ssl certificate for XMPPClient

2008-12-21 Thread jalandar

how to create ssl certificate  for XMPPClient
Server :  openfire
API :Smank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] debug logcat for openfire

2008-12-21 Thread jalandar

I am testing XMPPClient for Android .

It is giving error while sending message from one instance to
another ; Two different users are logged on two instances.

The following debug log , If anybody have guide plz reply me. Why  it
come whats it reason.


2008.12.22 12:53:24 NIOConnection: startTLS: using c2s
2008.12.22 12:53:56 Set parameter http.connection.timeout = 3000
2008.12.22 12:53:56 Set parameter http.socket.timeout = 3000
2008.12.22 12:53:57 Open connection to www.igniterealtime.org:80
2008.12.22 12:53:57 Closing the connection.
2008.12.22 12:53:57 Method retry handler returned false. Automatic
recovery will not be attempted
2008.12.22 12:53:57 Releasing connection back to connection manager.


Thank you

jagtap

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



[android-developers] :: using System.gc();

2008-12-21 Thread Imran

Hi
hey  can  i use System.gc()  in my activity to request for garbage
collection.
 will it work () ..   will the garbage collector be called ?

  Thanks in Advance for any Replays...!!!

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

2008-12-21 Thread Keith Wiley

I think this is a straight forward question.  How do I state that the
text in a TextView should be full justified?  I don't see anything
about this in the TextView or TextView-Attributes docs.  Search on the
groups didn't turn much up either.  I see some mention of it on the
docs page for java.awt.font.TextAttribute, which is not specifically
in the android namespace as far as I can tell despite being in the
Android docs (what does that mean, is it part of android or not?), but
I don't know how to apply that to a TextView.

Text justification.  Is it possible?

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: What does it mean "linker input file unused because linking not done" ?

2008-12-21 Thread shuoshuo

I know what's wrong, I should add -Wl,--version-script=libmine.map to
LOCAL_LDFLAGS instead of LOCAL_CPPFLAGS
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What does it mean "linker input file unused because linking not done" ?

2008-12-21 Thread shuoshuo

I wrote a C++ shared library named libmine.so in android, and I add
LOCAL_CPPFLAGS := -Wl,--version-script=libmine.map into the
Android.mk, libmine.map specified the exported symbols, but when run
make libmine, the g++ said:
"arm-eabi-g++: --version-script=libmine.map: linker input file unused
because linking not done"
the libmine.so was generated but the exporting symbols is not
controled.
does any one know why? thanks a lot !!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Text-to-Speech for Android: Eyes-Free

2008-12-21 Thread Wesley
hi,

I try nihaoworld_demo.apk at
http://eyes-free.googlecode.com/svn/trunk/documentation/tutorial/tutorial.html
no sound one??? it stop at TTS services, then nothing happen... is it I miss
out something???



wesley.

On Tue, Dec 16, 2008 at 4:17 PM, blindfold wrote:

>
> For your information. I was tipped by a reliable source about the
> availability of "Eyes-Free", a new text-to-speech (TTS) library from
> Google that currently uses an Android port of the eSpeak text-to-
> speech engine:
>
>
> http://eyes-free.googlecode.com/svn/trunk/documentation/tutorial/tutorial.html
>
> Enjoy!
>
>
> The vOICe for Android
> http://www.seeingwithsound.com/android.htm
>
> >
>

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

2008-12-21 Thread Jean-Baptiste Queru

Actually, Disconnect's description of the situation is conceptually
accurate (and the subtle points aren't relevant for this discussion).

JBQ

On Sun, Dec 21, 2008 at 9:29 PM, nkijak  wrote:
>
> How can you say it has nothing to do with Google.  They brought
> Android to T-Mobile. For them to not know that cell companies where
> going to lock it down would be ignorance on their part.  Plus you act
> like there was going to be a Dev phone since the beginning.  How was
> anyone supposed to know that the G1 wouldn't be the only phone. Why
> was the dev phone released so many months later? There could have been
> mention of it.
>
> I'm not saying T-Mobile isn't without blame, but to totally dismiss
> Google of everything is illogical.  Where's the Google web client to
> sync my apps?  Google knew they'd be making many different Android
> phones, how do you move from one to the other?
>
> Quit trolling.
>
> On Dec 21, 4:46 pm, Disconnect  wrote:
>> Call 611 and ask. If it becomes a serious enough problem, T-mob will assign
>> resources to finding and implementing a solution.
>>
>> If you're unhappy with your purchase from T-mobile, talk to them about it.
>> It has absolutely nothing at all to do with google. (Zip. Zero. Nada. Sorry
>> you bought a Toyota and wanted a Honda, but moaning and whining about it is
>> unlikely to make any sort of magic fairy appear and fix it.)
>>
>> ..I want a pony.
>>
>> On Sun, Dec 21, 2008 at 4:31 PM, nkijak  wrote:
>>
>> > I second the root access.  All us T-Mobile G1 suckers are out cold for
>> > now.  My trackball stopped scrolling to the right and T-Mobile is
>> > sending me a new one but all my data and apps will be lost because
>> > they're all written to internal memory.
>>
>> > I'm a little sad that the Google folks didn't see this as a huge issue
>> > as the iPhone has syncing with iTunes and it's no problem to upgrade/
>> > switch/replace between iPhone/touch hardware.  What's the recommended
>> > way for Android users?
>>
>> > On Dec 20, 1:31 am, "Peter Fisher"  wrote:
>> > > I wish it had multi touch support the browser would be so much better if
>> > > they did. =(
>>
>> > > Also there should be an option to allow root access to the device for
>> > > developers...
>>
>> > > On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans > > >wrote:
>>
>> > > > What do you mean there is another SD slot? There is only 1 :) + 64mb
>> > > > internal mem.
>>
>> > > > On Dec 19, 2:56 pm, "Xavier Mathews"  wrote:
>> > > > > I thought there was another sd slot?
>>
>> > > > > On 12/19/2008, Mark K  wrote:
>>
>> > > > > >   Looks good, will have camcorder support which is huge! It needed
>> > to
>> > > > > > support recording video, since all the other 'smart phone'
>> > platforms
>> > > > > > do also. Hopefully it will be an easy upgrade for the G1.
>>
>> > > > > >  Mark
>>
>> > > > > > On Dec 19, 9:37 am, TmobileG1Fans  wrote:
>> > > > > >> I think it's going to be awesome OS update but then again I wish
>> > apps
>> > > > > >> still would be installable from SD card and not OS, i mean this os
>> > is
>> > > > > >> going to take more space and most people are already using 80% of
>> > > > > >> their internal card.
>>
>> > > > > >> Hope they will address that issue:
>>
>> > > > > >> Info about
>> > > > > >> CupCake:
>> > > >http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-.
>> > ..
>>
>> > > > > --
>> > > > > Xavier A. Mathews
>> > > > > Student/Browser Specialist/Developer/Web-Master
>> > > > > Client Based Tech Support Specialist
>> > > > > Hazel Crest Illinois
>> > > > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥
>> > truestar...@yahoo.com
>> > > > > "Fear of a name, only increases fear of the thing itself."
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

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

2008-12-21 Thread Qwavel

Nick,

Thanks for participating in this open conversation about the bluetooth
API - this is the first time that I'm aware of that outside developers
have had the opportunity to express themselves at this stage in the
development of a phone OS/API.

As I'm sure you are aware, Bluetooth data connection between apps are
supported by JSR82.  To the best of my knowledge, the only platform on
which pairing is required for these connections is the Blackberry.  As
far as I can tell, this was done for the pretense of security since
the platform was originally only targeted at the enterprise market.
On the Blackberry dev forums I regularly see confusion and surprise
about this restriction.

The only other platform (beside the Blackberry) which really limits
bluetooth is the iPhone, but this is expected of Apple.

I am being dismissive about the security advantages of the blackberry
approach for these reasons:

- The majority of phones available now (in Europe but not in the US)
allow full access to JSR82, without requiring pairing, and without
even requiring that the midlet be signed.

- More importantly, I've not encountered any regret about this, or any
sense that it is a mistake.  Instead, easy access to JSR82 is
spreading: now, even LG and Samsung are starting to provide this.

- Security concerns like this should not be addressed by limiting the
functionality of the system, when they can be addressed at the
application security level.  I can't comment on the difficulty of
implementing this, but certainly it would be better to produce an OS
that is not limited in the way that the BB and iPhone are.

If you really believe that bluetooth communication without pairing is
a security hole - and I believe that Nokia and SE have shown that it
isn't - then I think it would be better handled by the application
level security mechanisms.

Thanks,
Tom.

On Dec 3, 12:22 pm, Nick Pelly  wrote:
> We are likely to prevent Bluetooth data connections (RFCOMM) from apps
> unless the two phones have been paired. It's really hard to make
> security work any other way.
>
> Nick
> Android Systems Engineer
>
> On Wed, Dec 3, 2008 at 1:37 AM, whitemice  wrote:
>
> > Hi Nick
> > While we are on the subject, I am looking for Android *Ad-hoc*
> >Bluetoothsupport.
>
> > Example: Alice and Bob both have my client running on their phones,
> > and walk withinBluetoothrange of each other in a social setting.  I
> > want the application to:
> > (a) Be able to detect the otherBluetoothphone in the room
> > (b) Detect that the same application is running on the other phone
> > (c) Create a data connection between the two phones without asking for
> > the user's permission (permission is granted beforehand).
>
> > Is this considered a security problem, or will this kind of thing be
> > allowed in the new API?
>
> > Some more info on what I am doing….
> >http://blog.zedray.com/snowball/
>
> > Regards
> > 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

2008-12-21 Thread Brad Gies
Can anyone tell me how to detect when a ListView quits scrolling?

 

And.. On a related note, how would I determine which of the ListView's items
are showing once it does quit scrolling.

 

For Background :

I have a ListView that has from zero to 200 items in it. Each item has an
ImageView and a TextView. The Text I'm filling in as it is received, but I
don't want to download the image (they are small bitmaps) unless the user is
looking at that particular item. I've worked out the background thread that
will download the images I need, but I'm stuck on figuring out which images
I need to download, and when :-). 

 

It would be nice if there was an OnScrollFinished event. but I can't find it
;). By the way, I did try just downloading the images in the GetView event,
but it slows down the scrolling and makes it very jerky, so it is not a very
good solution. 

 

I guess another option would be to just start the background thread and just
start at the first item, and keep downloading all images and storing them in
my data class until the GetView calls for them, but that seems like a waste
of resources, and bandwidth because in general the most relevant items are
at the top, and I don't expect the users to get all the way to the bottom of
the list very often.

 

 

 

Sincerely,

 

Brad Gies

 

 

-

Brad Gies

27415 Greenfield Rd, # 2,

Southfield, MI, USA

48076

-

 

Moderation in everything, including abstinence

 


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

2008-12-21 Thread Disconnect
Google produced a platform that has a bunch of configurable settings. (One
of which, for example, is ro.secure.) And a bunch of optional binaries and
applications. (Such as the API Demo apk and the native 'su' executable.)

It is entirely up to T-mobile as to what they provide on their device.
Period. Full stop. The settings, applications (such as the closed-source IM
clients) and so forth are entirely determined by T-mobile.

If you wanted an ADP1 instead, perhaps you should return your G1 and buy the
phone you want.  If you want the G1 to be changed, perhaps you should call
the people in charge of that (hint: they answer "611" when you dial it) and
ask them to change it.

Google doesn't determine what is on a phone released by a 3rd party. (And
the phone they did release, the ADP1, has 'su' and a bootloader that allows
for custom firmware.) Google doesn't even (unilaterally) decide what
capabilities go into the firmware - thats the point of the open handset
alliance. Its not a collection of companies putting out Android phones - you
don't need to join to do that. It is a collection of companies that are
STEERING THE PLATFORM. T-mobile says "This platform must be able to do FOO,
and we will provide {resources} towards that end. This platform should be
able to BAR, but we will not build that; if it is not there, oh well." etc.

If you want to steer the platform, put the community focus to the test and
submit code (or even a revised security policy) that allows for all the
guarantees the current one does ("the platform must FOO" isn't going to be
wished away) but makes you happy and delivers a pony.  If you put an actual
working model together and a proof of concept, and THEN they reject it, you
can go back to whining.. but so far you are sitting in a volkswagon yelling
at a porsche dealer that your car isn't fast enough

On Mon, Dec 22, 2008 at 12:29 AM, nkijak  wrote:

>
> How can you say it has nothing to do with Google.  They brought
> Android to T-Mobile. For them to not know that cell companies where
> going to lock it down would be ignorance on their part.  Plus you act
> like there was going to be a Dev phone since the beginning.  How was
> anyone supposed to know that the G1 wouldn't be the only phone. Why
> was the dev phone released so many months later? There could have been
> mention of it.
>
> I'm not saying T-Mobile isn't without blame, but to totally dismiss
> Google of everything is illogical.  Where's the Google web client to
> sync my apps?  Google knew they'd be making many different Android
> phones, how do you move from one to the other?
>
> Quit trolling.
>
> On Dec 21, 4:46 pm, Disconnect  wrote:
> > Call 611 and ask. If it becomes a serious enough problem, T-mob will
> assign
> > resources to finding and implementing a solution.
> >
> > If you're unhappy with your purchase from T-mobile, talk to them about
> it.
> > It has absolutely nothing at all to do with google. (Zip. Zero. Nada.
> Sorry
> > you bought a Toyota and wanted a Honda, but moaning and whining about it
> is
> > unlikely to make any sort of magic fairy appear and fix it.)
> >
> > ..I want a pony.
> >
> > On Sun, Dec 21, 2008 at 4:31 PM, nkijak  wrote:
> >
> > > I second the root access.  All us T-Mobile G1 suckers are out cold for
> > > now.  My trackball stopped scrolling to the right and T-Mobile is
> > > sending me a new one but all my data and apps will be lost because
> > > they're all written to internal memory.
> >
> > > I'm a little sad that the Google folks didn't see this as a huge issue
> > > as the iPhone has syncing with iTunes and it's no problem to upgrade/
> > > switch/replace between iPhone/touch hardware.  What's the recommended
> > > way for Android users?
> >
> > > On Dec 20, 1:31 am, "Peter Fisher"  wrote:
> > > > I wish it had multi touch support the browser would be so much better
> if
> > > > they did. =(
> >
> > > > Also there should be an option to allow root access to the device for
> > > > developers...
> >
> > > > On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans <
> ilovetoar...@gmail.com
> > > >wrote:
> >
> > > > > What do you mean there is another SD slot? There is only 1 :) +
> 64mb
> > > > > internal mem.
> >
> > > > > On Dec 19, 2:56 pm, "Xavier Mathews" 
> wrote:
> > > > > > I thought there was another sd slot?
> >
> > > > > > On 12/19/2008, Mark K  wrote:
> >
> > > > > > >   Looks good, will have camcorder support which is huge! It
> needed
> > > to
> > > > > > > support recording video, since all the other 'smart phone'
> > > platforms
> > > > > > > do also. Hopefully it will be an easy upgrade for the G1.
> >
> > > > > > >  Mark
> >
> > > > > > > On Dec 19, 9:37 am, TmobileG1Fans 
> wrote:
> > > > > > >> I think it's going to be awesome OS update but then again I
> wish
> > > apps
> > > > > > >> still would be installable from SD card and not OS, i mean
> this os
> > > is
> > > > > > >> going to take more space and most people are already using 80%
> of
> > > > > > >

[android-developers] Re: Identifying GUI items of the IM chat dialog

2008-12-21 Thread Ralf

FYI the SDK contains a tool called HierarchyViewer. It can connect to
an emulator or actual device via adb and show you the exact UI objects
used by any screen, with all its properties.

R/

On Sun, Dec 21, 2008 at 4:52 AM, Falcon4ever  wrote:
>
> Hi,
>
> currently I am developing a chat like application.
> I would like to use a similar GUI as used in the IM app (Google talk /
> MSN).
>
>
> As a beginner (in Android development) its quite difficult to
> recognize what GUI elements are used.
>
> I made a photo of the IM (Gtalk) GUI:
> http://www.falcon4ever.com/chatscreen_items.jpg
>
> Hopefully someone can help me out and explain which how these elements
> are called.
>
> My guesses:
> 1. A listview? (But how did they made it light pink/white depending on
> the text msg? They used special keywords?)
> 2. EditText
> 3. Button
> 4. A background image? Is it part of the 'listview' or is the listview
> perhaps transparant somehow?
> 5. Blue background, is it some kind of 'group' object or a rectangle
> object?
> 6. Top bar, no clue how its called or how I can set the text.
>
> Kind regards,
> - Laurence
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] error in receiving chat mesg for xmpp client.

2008-12-21 Thread jalandar

I am testing sample for XMPPClient ,
When I send mesg from one emulator instance who is logged on server
with particular userId , to another who is logged on server with
userID2,

" After sending   chat mesg from one instance to another the receiving
instance require to force close it gives mesg "the app chat (process
com.pack.chat2)has stopped unexpectedly . Plz try again "
 I am using smack  API and Openfire server.
Please help me, and repl me suggestions ASAP.

Thank you
jagtap...@gmail.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: Thought's On Android CupCake?

2008-12-21 Thread nkijak

How can you say it has nothing to do with Google.  They brought
Android to T-Mobile. For them to not know that cell companies where
going to lock it down would be ignorance on their part.  Plus you act
like there was going to be a Dev phone since the beginning.  How was
anyone supposed to know that the G1 wouldn't be the only phone. Why
was the dev phone released so many months later? There could have been
mention of it.

I'm not saying T-Mobile isn't without blame, but to totally dismiss
Google of everything is illogical.  Where's the Google web client to
sync my apps?  Google knew they'd be making many different Android
phones, how do you move from one to the other?

Quit trolling.

On Dec 21, 4:46 pm, Disconnect  wrote:
> Call 611 and ask. If it becomes a serious enough problem, T-mob will assign
> resources to finding and implementing a solution.
>
> If you're unhappy with your purchase from T-mobile, talk to them about it.
> It has absolutely nothing at all to do with google. (Zip. Zero. Nada. Sorry
> you bought a Toyota and wanted a Honda, but moaning and whining about it is
> unlikely to make any sort of magic fairy appear and fix it.)
>
> ..I want a pony.
>
> On Sun, Dec 21, 2008 at 4:31 PM, nkijak  wrote:
>
> > I second the root access.  All us T-Mobile G1 suckers are out cold for
> > now.  My trackball stopped scrolling to the right and T-Mobile is
> > sending me a new one but all my data and apps will be lost because
> > they're all written to internal memory.
>
> > I'm a little sad that the Google folks didn't see this as a huge issue
> > as the iPhone has syncing with iTunes and it's no problem to upgrade/
> > switch/replace between iPhone/touch hardware.  What's the recommended
> > way for Android users?
>
> > On Dec 20, 1:31 am, "Peter Fisher"  wrote:
> > > I wish it had multi touch support the browser would be so much better if
> > > they did. =(
>
> > > Also there should be an option to allow root access to the device for
> > > developers...
>
> > > On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans  > >wrote:
>
> > > > What do you mean there is another SD slot? There is only 1 :) + 64mb
> > > > internal mem.
>
> > > > On Dec 19, 2:56 pm, "Xavier Mathews"  wrote:
> > > > > I thought there was another sd slot?
>
> > > > > On 12/19/2008, Mark K  wrote:
>
> > > > > >   Looks good, will have camcorder support which is huge! It needed
> > to
> > > > > > support recording video, since all the other 'smart phone'
> > platforms
> > > > > > do also. Hopefully it will be an easy upgrade for the G1.
>
> > > > > >              Mark
>
> > > > > > On Dec 19, 9:37 am, TmobileG1Fans  wrote:
> > > > > >> I think it's going to be awesome OS update but then again I wish
> > apps
> > > > > >> still would be installable from SD card and not OS, i mean this os
> > is
> > > > > >> going to take more space and most people are already using 80% of
> > > > > >> their internal card.
>
> > > > > >> Hope they will address that issue:
>
> > > > > >> Info about
> > > > > >> CupCake:
> > > >http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-.
> > ..
>
> > > > > --
> > > > > Xavier A. Mathews
> > > > > Student/Browser Specialist/Developer/Web-Master
> > > > > Client Based Tech Support Specialist
> > > > > Hazel Crest Illinois
> > > > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥
> > truestar...@yahoo.com
> > > > > "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] DDM dispatch reg wait timeout

2008-12-21 Thread jalandar

The following mesg appear in emulator console , what the reason behind
it.

DDM dispatch reg wait timeout
ActivityManager: Can't dispatch DDM chunk 52454151: no handler defined
 ActivityManager: Can't dispatch DDM chunk 48454c4f: no handler
defined

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



[android-developers] android.messaging no responding force close

2008-12-21 Thread jalandar

After launching home activity it gives another dialog
"android.messaging no responding force close", what is reason behind
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] warning The opening audio output failed

2008-12-21 Thread jalandar

When I start emulator it gives message on command prompt "The opening
audio output failed"
why this mesg come.

After launching home activity it gives another dialog "android.phone
not responding force close ", what reason behind this mesg.

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

2008-12-21 Thread dileep singh
Thanks a lot  Mark.Sorry for late reply.I was out of station so i didnt
reply u.I will check all suggestions suggested by u and let u know.
Thanks.
dileep.
HAPPY XMAS & NEW YEAR IN ADVANCE.

On Sat, Dec 20, 2008 at 2:28 AM, Mark Murphy wrote:

>
> Mark K wrote:
> >Since Android supports regular Java object serialization, you can
> > just stream objects to and from Java app servers such as Tomcat etc,
> > Using ObjectOutput/Input streams. See Tomcat docs and examples of how
> > do do this. This is a first for a mobile platform!
>
> Out of curiosity, have you tried this?
>
> I wasn't sure if the Dalvik VM might use a different serialization
> structure than would "regular" Java, causing cross-environment
> compatibility problems.
>
> If it works, though, great!
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>
> >
>

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

2008-12-21 Thread David Turner
telnetd has been removed after RC30.

On Mon, Dec 22, 2008 at 1:27 AM, onlythoughtwo...@googlemail.com <
onlythoughtwo...@googlemail.com> wrote:

>
> When i start telnetd via console, as root ,no errors occur. But i
> cannot connect to my phone via telnet and the ps dump also shows that
> no telnetd is running.  I also cannot locate telnetd in /system/
> bin ...anyone else experiencing problems with telnetd on adp1?
> >
>

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

2008-12-21 Thread David Turner
it's simply due to the fact that AT&T 3G uses frequencies that are not
supported by the G1 hardware. So there is no way to get better than Edge on
AT&T networks.

On Sun, Dec 21, 2008 at 2:05 AM, Ramin  wrote:

>
> I have a 1st gen iPhone I use for development and a 3G model for day-
> to-day use. I put the SIM from the 1st gen iPhone in the Dev G1 and
> adjusted the settings. Everything works fine except that I don't get
> any 3G service on the G1. Just came back from running an errand
> downtown (where the 3G signal is strong) and took both phones to try
> out. Signal strength was high. iPhone showed 3G service while G1
> showed only Edge.
>
> Wondering if it's a setting thing, an AT&T thing, or something to do
> with the SIM card coming from an Edge iPhone.
>
> Any ideas?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 dynamically load a share library in android?

2008-12-21 Thread David Turner
Anything not built with the android-toolchain will *not* work on Android.the
only exception are trivial programs like "hello world" that work mostly by
luch, if nothing else.

you should at the very minimum build with the toolchain provided with the
open-source tree, against the Bionic C library (and its limitations).
Moreover, the result is likely to break in a future release of the platform,
but feel free to experiment.

On Sat, Dec 20, 2008 at 5:00 AM, David.C  wrote:

>
> Hello,
> I follow the website
>
> http://honeypod.blogspot.com/2007/12/dynamically-linked-hello-world-for.html
> and successfully dynamically link a shared library for Android.
> But I want to know how to dynamically load a share library for
> android?
> I wrote two simple code to test
> (1) Hello.c
> #include 
> void hello(const char *name){
>  printf("Hello %s\n",name); }
>
> (2) myTest.c
> #include
> #include
> #include
> int main(){
>  void *handle;
>  void (*f)(const char *name);
>  char *error;
>  char *string = "./libmyHello.so";
>  printf("begin\n");
>  handle = dlopen(string,RTLD_LAZY);
>  if(!handle){
>fputs(dlerror(),stderr);
>exit(1);  }
>  f = dlsym(handle, "hello");
>if((error=dlerror())!=NULL){
>fputs(error, stderr);
>exit(1);  }
>  f("world!!");
>  dlclose(handle);
>  printf("end\n");
>  return 0; }
>
> I use "arm-none-linux-gnueabi-gcc –static myTest.c -ldl" to make
> dynamically load executable
> and
> "arm-none-linux-gnueabi-gcc -fPIC -c hello.c"
> "arm-none-linux-gnueabi-gcc -shared -Wl,-soname,libmylib.so -o
> libmylib.so hello.o"
> to build shared library
>
> And push them to Android emulator, but I got an error message "Libc.so.
> 6: cannot open shared object file: No such file or directory"
>
> Is there anything wrong?
> Furthermore, If I want to make Dalvik VM dynamically load a library,
> how to achieve this?
> Thank you.
> Any help 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
-~--~~~~--~~--~--~---



[android-developers] Re: upgrade emulator firmware

2008-12-21 Thread David Turner
you can't have a persistent+writable system image at the moment.

the emulator currently creates a temporary file, copies all of system.img,
then uses this for the /system partition when running. When it exits, the
temp file is destroyed.
this will change in a later release of the SDK. For now, you'll need to hack
the emulator sources to do what you want.

On Sun, Dec 21, 2008 at 12:14 PM, fry  wrote:

>
> Hello,
>
> I'm trying to upgrade firmware in emulator or some parts inside it. I
> have root shell, I can replace any libraries/binaries in the /system
> directory, but after I reboot all my changes are reverted back.
>
> How can I switch this off? For example, if I compile some of
> opensource part of android platform (specific library), how can I push
> it to the emulator and test it?
>
> I also tried to appy rc30 update for G1 to the emulator - following
> this
>
> http://www.intomobile.com/2008/11/10/force-android-rc-30-update-on-your-t-mobile-g1-and-keep-root-access.html
> or this
>
> http://www.intomobile.com/2008/11/03/force-a-software-update-on-your-t-mobile-g1-update-t-mobile-g1-to-android-rc29.html
> instructions (there are may available with the same info)
> I can copy update.zip to the root of the emulated sd card, but the 2nd
> step is "Turn it back on while holding down the "Power" (End Call) and
> "Home" buttons". As I understand, this is special phone startup method
> which enables update process - I can't do the same with the emulator
> because I start it just with the command "emulator" which means usual
> start - probably it might have special command line parameter and
> achieve the same result as with G1 phone "power+home" combination.
>
> Thank's
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can't get threaded progress bars to work

2008-12-21 Thread Keith Wiley

On Dec 21, 6:15 pm, Mark Murphy  wrote:
> Keith Wiley wrote:
> > I'm trying to put up a progress bar while reading and processing a
> > file.  I'm open to title bar vs dialog and determinate vs.
> > indeterminate.  At this point I don't care, I just want to get
> > something working.  The problem occurs as the working thread attempts
> > to turn the progress bar off.  At that point the program crashes.  In
> > the example below ".F" is never written to the log.
>
> You don't indicate what the error is from your log.

The error log is empty.  The only behavior is a crash.  The debugger
stops at ViewRoot.checkThread() line 1849.  The call stack doesn't
contain any of my classes/functions.  It's coming from the system.

> That being said, you are calling
> setProgressBarIndeterminateVisibility(false); from the background
> thread. Since this probably has an impact on the UI, you probably cannot
> call this safely from a background thread.
>
> Instead, arrange to call it on the UI thread, either via a Handler,
> Activity#runOnUiThread(), View#post(), etc.

Okay.  Thanks.  I needed to figure out some way to detect when to
close progress bar.  I admit, I was a little unsure of the best way to
do it.

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



[android-developers] Re: natvie code try/catch statement support or not

2008-12-21 Thread Jean-Baptiste Queru

Native code development is not currently supported.

JBQ

On Sat, Dec 20, 2008 at 4:27 AM, lucky  wrote:
>
> Hi,
>
> Below try/catch code can not pass build:
> #include 
>
> int main()
> {
>try
>{
>printf("try statement\n");
>throw 1;
>}
>catch (...)
>{
>   printf("catch exeption here\n");
>}
> }
>
> Android.mk
> LOCAL_PATH := $(call my-dir)
> include $(CLEAR_VARS)
>
> LOCAL_ARM_MODE := arm
>
> LOCAL_SRC_FILES := \
> ./test.cpp
>
> LOCAL_CFLAGS += -fexceptions
>
> LOCAL_LDFLAGS += -lstdc++
>
> LOCAL_MODULE := test
>
> include $(BUILD_EXECUTABLE)
>
> How can we use try/catch on android? Any other flags needed for
> Android.mk?
>
> Below is compile error message:
> target Executable: test (out/target/product/generic/obj/EXECUTABLES/
> test_intermediates/LINKED/test)
> out/target/product/generic/obj/EXECUTABLES/test_intermediates/./
> test.o: In function `main':
> /home/e12714/workspace/mydroid/try_catch/./test.cpp:9: undefined
> reference to `__cxa_allocate_exception'
> /home/e12714/workspace/mydroid/try_catch/./test.cpp:9: undefined
> reference to `__cxa_throw'
> /home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
> reference to `__cxa_begin_catch'
> /home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
> reference to `__cxa_end_catch'
> /home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
> reference to `__cxa_end_catch'
> /home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
> reference to `__cxa_end_cleanup'
> /home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
> reference to `typeinfo for int'
> out/target/product/generic/obj/EXECUTABLES/test_intermediates/./test.o:
> (.ARM.extab.text.main+0x0): undefined reference to
> `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> make: *** [out/target/product/generic/obj/EXECUTABLES/
> test_intermediates/LINKED/test] Error 1
>
>
> BRs
> lucky
> 2008/12/19
>
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Identifying GUI items of the IM chat dialog

2008-12-21 Thread Mark Murphy

Falcon4ever wrote:
> currently I am developing a chat like application.
> I would like to use a similar GUI as used in the IM app (Google talk /
> MSN).
> 
> As a beginner (in Android development) its quite difficult to
> recognize what GUI elements are used.
> 
> I made a photo of the IM (Gtalk) GUI:
> http://www.falcon4ever.com/chatscreen_items.jpg

BTW, you can use DDMS to take a screenshot of the actual Android
application screen, if you want.

> Hopefully someone can help me out and explain which how these elements
> are called.
> 
> My guesses:
> 1. A listview? (But how did they made it light pink/white depending on
> the text msg? They used special keywords?)

That is probably a ListView. You can control the formatting of
individual list Views by creating them yourself.

You can see examples of how to customize your ListViews, in the context
of custom ListAdapters, in my Fancy ListViews blog series over on
AndroidGuys:

http://androidguys.com/?s=fancy+listviews

Most of the earlier ones in the series are for the older M5 SDK, but the
concepts still hold. Also, forgive the formatting -- AndroidGuys updated
their WordPress theme and my older posts are a bit malformed as a result.

> 4. A background image? Is it part of the 'listview' or is the listview
> perhaps transparant somehow?

ListView, like most Views, supports android:background in layout XML (or
the counterparts in Java). Presumably, this is a background image on the
ListView.

> 5. Blue background, is it some kind of 'group' object or a rectangle
> object?

That is probably the horizontal LinearLayout, with a blue background.

> 6. Top bar, no clue how its called or how I can set the text.

That is your activity's title bar. Use Activity#setTitle() to set the text.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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] Re: Can't get threaded progress bars to work

2008-12-21 Thread Mark Murphy

Keith Wiley wrote:
> I'm trying to put up a progress bar while reading and processing a
> file.  I'm open to title bar vs dialog and determinate vs.
> indeterminate.  At this point I don't care, I just want to get
> something working.  The problem occurs as the working thread attempts
> to turn the progress bar off.  At that point the program crashes.  In
> the example below ".F" is never written to the log.

You don't indicate what the error is from your log.

That being said, you are calling
setProgressBarIndeterminateVisibility(false); from the background
thread. Since this probably has an impact on the UI, you probably cannot
call this safely from a background thread.

Instead, arrange to call it on the UI thread, either via a Handler,
Activity#runOnUiThread(), View#post(), etc.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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@googlegroups.com

2008-12-21 Thread hello tommie

yes, thank you this worked for me also.
just hit the menu button on start up.

On Dec 12, 4:46 pm, Mark K  wrote:
>   Just set the name and apn as you have, leave all the other fields
> blank. This worked for me, moved my SIM card from a BB to my unlocked
> G1phone, now it works fine onAT&T.
>
>                                            Mark
>
> On Dec 11, 11:53 am, Clint Fisher  wrote:
>
> > I just got my AndroidDevPhonetoday and threw myAT&T(formerly
> > Cingular) SIM card in there (with unlimited data plan), and cannot get
> > it to work.
>
> > My APN settings:
>
> > name:AT&T
> > apn: wap.cingular
> > proxy blank
> > port blank
> > username:w...@cingulargprs.com
> > password:CINGULAR1
> > server blank
> > mmsc:http://mmsc.cingular.com
> > mms proxy: wireless.cingular.com
> > mms port: 80
> > mcc:310
> > mnc:410
> > apn type blank
>
> > Any ideas?  Has anyone successfully gotten this to work with their
> >AT&TWireless SIM card?
>
> > Unfortunately, without the initial activation it seems, thephoneis
> > just a spendy brick.  It won't let me get past the google sign-up.
> > Any help would be greatly appreciated.
>
> > Thanks!
> > -Clint

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

2008-12-21 Thread iAmACyborg

You'll have to store the last time and place the update was received
for. Then when you get a new update; compare it to the saved values.
If the difference is >= your minimum, update the stored values and
pass the update on.

On Nov 10, 12:09 pm, "dave.marsden"  wrote:
> I'm using the following statement to request updates on my G1s
> position :
>
> lm.requestLocationUpdates(
>             LocationManager.GPS_PROVIDER,
>             3,
>             30,
>             locationListener);
>
> Which I reckon shuold give me an update every 30sec when the device
> has moved more than 30 metres.
>
> However the device seems to get updates much more frequently. Anybody
> any ideas?

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

2008-12-21 Thread Ramin

I have a 1st gen iPhone I use for development and a 3G model for day-
to-day use. I put the SIM from the 1st gen iPhone in the Dev G1 and
adjusted the settings. Everything works fine except that I don't get
any 3G service on the G1. Just came back from running an errand
downtown (where the 3G signal is strong) and took both phones to try
out. Signal strength was high. iPhone showed 3G service while G1
showed only Edge.

Wondering if it's a setting thing, an AT&T thing, or something to do
with the SIM card coming from an Edge iPhone.

Any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 anybody meet undefined reference to `WebCore::CSSParser::lex()' while compiling android source?

2008-12-21 Thread 品雪

Mac OS X Leopard 10.5.5, flex 2.5.35 and bison 2.4 from macports,
xcode 3.1.2

It always stop as:

target SharedLib: libwebcore (out/target/product/generic/obj/
SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)
out/target/product/generic/obj/SHARED_LIBRARIES/
libwebcore_intermediates/css/CSSParser.o: In function
`WebCore::CSSParser::lex(void*)':
external/webkit/WebCore/css/CSSParser.cpp:3558: undefined reference to
`WebCore::CSSParser::lex()'
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libwebcore_intermediates/LINKED/libwebcore.so] Error 1

I can compile the source in Ubuntu Linux and seems the source code are
exactly same. And I did compiled once in another Leopard machine which
is not available for me now. So that I guess it is environment issue
instead of a bug.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Dev Phone 1(tm)

2008-12-21 Thread Sven Boden
If you look at the FAQ of brightstar (
http://android.brightstarcorp.com/help.php) you will see the phone only gets
shipped with a US cable... the easiest solution if you want to "wall charge"
it is buy an adapter. You can buy them in any electronics store, it's just a
little piece converting the US socket to a xxx socket.

Regards,
Sven


2008/12/20 Eng, Cary 

>
> I'm confused. Are you talking about the 6-pin/4-pin USB wire that doesn't
> fit?  If that's what you're referring to, then you might want to try again.
>  It does fit, although the at first glance it might not appear to.
>
> If you're talking about the wall-charger wire, I have no input for you on
> that one since I'm in the US and it fits perfectly.
>
> -Original Message-
> From: android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] On Behalf Of baker
> Sent: Friday, December 19, 2008 5:07 PM
> To: Android Developers
> Subject: [android-developers] Re: Android Dev Phone 1(tm)
>
>
> Sorry for the repost.
>
> Yes I can charge the phone with USB and yes the cable will connect to
> the wall with a converting. However always charging over USB isn't
> always convenient.
>
> However the socket to the phone is incompatible with the phone. It
> physically doesn't fit, different shape.
>
> Craig.
>
> On Dec 20, 10:02 am, baker  wrote:
> > I received the phone last week but it came packaged with an incorrect
> > power cable. The cable doesn't connect to either my Australian wall
> > socket or the phone. That's right it isn't even compatible with the
> > phone. So what to do, brightstar and google have no contact
> > information should you have any problems with the shipment. None of
> > the emails from birghtstar have a support email.
> >
> > I've emailed both a brightstart email address from there web site and
> > a google market place email, but haven't heard from anybody after many
> > days.
> >
> > I just want a power cable for the phone, can anybody give me some
> > advice as to how I get these goons to send me the phone an equipment I
> > paid for.
> >
> > Thanks,
> >
> > Craig Baker.
> >
> > On Dec 11, 4:31 pm, kpowerinfinity  wrote:
> >
> > > Same problem here. I placed an order, but the order doesn't appear on
> > > the Brightstar tracking page. It says that no orders have been placed.
> > > I have sent 3 emails to andr...@brightstarcorp.com but not received
> > > any useful replies. Anybody here knows how long it will take the
> > > phones to ship?
> >
> > > I am relying on somebody to bring the phone from the US to India for
> > > me ... and in fact I paid extra shipping to ensure it reaches in time.
> > > In case, they delay shipping too much, I would rather cancel the order
> > > because then I can't get the phone brought to India for me, but the
> > > customer services hasn't even replied. Anybody here can help?
> >
> > > Thanks, Krishna.
> > > kkme...@gmail.com
> >
> > > melp wrote:
> > > > I have the same issue. I placed an order twice on 8 Dec and got the
> > > > confirming email. Both times my credit card was charged(!) but my
> > > > orders disappeared off the tracking page.
> >
> > > > Customer service is non-existent. Repeated emails have not received
> > > > any replies and I have tried calling their number during their stated
> > > > operating hours but always get a recorded message that says they are
> > > > closed or serving someone else.
> >
> > > > Any google employees care to comment?
> >
> > > > On Dec 9, 9:33 pm, Logan  wrote:
> > > > > Does anyone know more about this company, I placed an order and all
> I
> > > > > got was an e-mail confirming my order but no way to check shipping
> > > > > status, etc. Are these phones actually shipping now?
> >
> > > > > On Dec 8, 2:49 pm, Pastymage  wrote:
> >
> > > > > > Does anyone have a more detailed FAQ than the text onhttp://
> android.brightstarcorp.com/?Mymain concern is that GPS is
> > > > > > not listed anywhere in the hardware features - does it actually
> > > > > > support GPS, or not?
> >
> > > > > > Aside from that, I'm unclear on how the 3G bands work - what
> would
> > > > > > the actual bandwidth of this device be on AT&T, for example?
> >
> > > > > > -Dave
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why "Dev Phone 1" support 16G SD while "G1" only support 8G?

2008-12-21 Thread roli

as JS already said they are the same. the reason G1 only says 8G is
because there weren't any 16G to test while those numbers were put up.
(so i've heard)

On Dec 20, 4:30 am, Hastala  wrote:
> Why "Dev Phone 1" support 16G SD while "G1" only support 8G?
>
> Is there any hardware difference?

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

2008-12-21 Thread Derek

Not sure is this what you want

Assuming you have your current Context object ctx

Resources appR = ctx.getResources();
CharSequence txt = appR.getText(appR.getIdentifier("app_name",
"string", ctx.getPackageName()));

Derek



On Dec 7, 12:23 pm, Mark Murphy  wrote:
> wyngnut wrote:
> > I am trying to get the Application Name (the one that accompanies the
> > icon in the launcher) for all packages installed in the device.  I
> > have the packageName and name from the ActivityInfo retrived view
> > queryIntentActivities(), but can't seem to locate the Application
> > Name.  Any pointers would be appreciated.
>
> Can you use PackageManager#getApplicationInfo()?
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 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] zimbra, kmail LINUX

2008-12-21 Thread ipalik

Hello!
I have two questions.

1. Is it possible, to sync the android dev phone 1 with kontact or
kmail?
I do not want to use google mail.

2. Is it possible to run zimbra on the phone?

Or to sync zimbra with it?

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] Identifying GUI items of the IM chat dialog

2008-12-21 Thread Falcon4ever

Hi,

currently I am developing a chat like application.
I would like to use a similar GUI as used in the IM app (Google talk /
MSN).


As a beginner (in Android development) its quite difficult to
recognize what GUI elements are used.

I made a photo of the IM (Gtalk) GUI:
http://www.falcon4ever.com/chatscreen_items.jpg

Hopefully someone can help me out and explain which how these elements
are called.

My guesses:
1. A listview? (But how did they made it light pink/white depending on
the text msg? They used special keywords?)
2. EditText
3. Button
4. A background image? Is it part of the 'listview' or is the listview
perhaps transparant somehow?
5. Blue background, is it some kind of 'group' object or a rectangle
object?
6. Top bar, no clue how its called or how I can set the text.

Kind regards,
- Laurence

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] natvie code try/catch statement support or not

2008-12-21 Thread lucky

Hi,

Below try/catch code can not pass build:
#include 

int main()
{
try
{
printf("try statement\n");
throw 1;
}
catch (...)
{
   printf("catch exeption here\n");
}
}

Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_ARM_MODE := arm

LOCAL_SRC_FILES := \
./test.cpp

LOCAL_CFLAGS += -fexceptions

LOCAL_LDFLAGS += -lstdc++

LOCAL_MODULE := test

include $(BUILD_EXECUTABLE)

How can we use try/catch on android? Any other flags needed for
Android.mk?

Below is compile error message:
target Executable: test (out/target/product/generic/obj/EXECUTABLES/
test_intermediates/LINKED/test)
out/target/product/generic/obj/EXECUTABLES/test_intermediates/./
test.o: In function `main':
/home/e12714/workspace/mydroid/try_catch/./test.cpp:9: undefined
reference to `__cxa_allocate_exception'
/home/e12714/workspace/mydroid/try_catch/./test.cpp:9: undefined
reference to `__cxa_throw'
/home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
reference to `__cxa_begin_catch'
/home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
reference to `__cxa_end_catch'
/home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
reference to `__cxa_end_catch'
/home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
reference to `__cxa_end_cleanup'
/home/e12714/workspace/mydroid/try_catch/./test.cpp:11: undefined
reference to `typeinfo for int'
out/target/product/generic/obj/EXECUTABLES/test_intermediates/./test.o:
(.ARM.extab.text.main+0x0): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/EXECUTABLES/
test_intermediates/LINKED/test] Error 1


BRs
lucky
2008/12/19

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

2008-12-21 Thread Rafael Espíndola

I decided to try to run the SDK on a x86-64 fedora install. It is not
to hard to get working once you know the packages you need. The things
I had to install to get the emulator working

glibc-2.9-3.i386
libX11-1.1.4-6.fc10.i386
gdbm-1.8.0-29.fc10.i386
libao-0.8.8-5.fc10.i386
libXau-1.0.4-1.fc10.i386
alsa-lib-1.0.18-6.rc3.fc10.i386
alsa-plugins-pulseaudio-1.0.18-1.rc3.fc10.i386
libXcursor-1.1.9-3.fc10.i386
libgcc-4.3.2-7.i386
libXdmcp-1.0.2-6.fc10.i386
libXext-1.0.4-1.fc9.i386
libICE-1.0.4-4.fc10.i386
e2fsprogs-libs-1.41.3-2.fc10.i386
libselinux-2.0.73-1.fc10.i386
audiofile-0.2.6-9.fc10.i386
libstdc++-4.3.2-7.i386
libxcb-1.1.91-5.fc10.i386
libXrender-0.9.4-3.fc9.i386
libasyncns-0.7-1.fc10.i386
libSM-1.1.0-2.fc10.i386
glib2-2.18.3-2.fc10.i386
esound-libs-0.2.41-1.fc10.i386
gpg-pubkey-4ebfc273-48b5dbf3
zlib-1.2.3-18.fc9.i386
libXrandr-1.2.3-1.fc10.i386
pulseaudio-libs-0.9.13-6.fc10.i386
libXfixes-4.0.3-4.fc10.i386
ncurses-libs-5.6-20.20080927.fc10.i386
libcap-2.10-2.fc10.i386
gamin-0.1.9-6.fc10.i386

This might be more than the minimum. I just used strace and installed
everything it tried to open :-)

To get the eclipse integration working you will need:

tomcat5-jasper-eclipse-5.5.27-6.1.fc10.noarch
eclipse-swt-3.4.1-5.fc10.x86_64
icu4j-eclipse-3.8.1-4.fc10.x86_64
eclipse-jdt-3.4.1-5.fc10.x86_64
eclipse-demos-0.0.1-2.fc8.noarch
eclipse-gef-3.4.1-1.fc10.x86_64
eclipse-ecj-3.4.1-5.fc10.x86_64
eclipse-platform-3.4.1-5.fc10.x86_64
eclipse-rcp-3.4.1-5.fc10.x86_64

After installing this packages the android integration should just work.

Cheers,
Rafael

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

2008-12-21 Thread Pablo

I am not from the US but i have family that will go there for a few
days. Given the ridiculous amount asked for shipping to europe, my
goal is to get the dev phone shipped to the US why my relatives are
there.

However, I can nowhere see how much it takes to ship whithin the US,
or if there are different shipping options. I do not want to pay the
$25 just to check the shipment methods which are available, either.
(Depending on how it goes i might buy it from google or just a G1 from
somewhere else)

Anyone knows from experience how much it really takes to ship the dev
phone within the US ?
Maybe someone could point me to the information i might have missed?

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] Adding a GridView to a TableRow.

2008-12-21 Thread Andi

Hi,
I am trying to add a GridView inside a TableRow and its not working.
The GridView is basically a grid of buttons being populated through an
adapter. If I add it directly to the TableLayout then it displays
fine. I can see the 4X4 grid of buttons. But if I add it to a TableRow
which is then added to the TableLayout the grid of buttons is not
displayed. The adapter for the gridview does executes but i have no
clue why i can't see the grid. Any help here?

PS The layout file only contains a framelayout to which everything is
finally added.

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

2008-12-21 Thread Chad

Hi all.  I prefer to use a different voicemail system than the one
provided by my carrier, one I have been using for a few years.  (If
you care: It uses GSM redirects to make some class of incoming calls
forwarded to a particilar number.  I use Youmail.)

Anyway, the upshot is that the number I want dialed at long-click '1'
in the dialer is not the same as what the phone came with.

I set the new number in the phone settings, and all is well until next
boot.  Then it's reset to the default number my carrier suggests/
provides.  To recreate:

 - go to settings, call settings, voicemail. Note your voicmail
number.
 - Change it to '+17142043114'.  Save.
 - Reboot.
 - Go back to voicemail setting.  Note it is back to the original.

---

Firmware v1.0
Baseband v62.33.20.08H_1.22.12.29

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Usage of ArrayAdapter leads me to Index Array out of Bounds Exception

2008-12-21 Thread manz

I am having the same problem. This problem does not happen in emulator
and happens only on G1. Any pointers?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] AlertDialog OnKeyListener - How to get Focused Item?

2008-12-21 Thread coderiver

I have an AlertDialog with an OnKeyListener.  I need to find the
focused item when the Call key is pressed.
This AlertDialog also has an OnClickListener that works great - I get
the position of the item from my view when it is clicked.
What I also want to do - is get the position of the currently
highlighted (focused right?) item when the CALL key is pressed.
I can detected the CALL key event in my handler - no problem.  But I
do not know how to get the item that had the focus when the key was
pressed.

Here is my OnKey handler and some of the things I have used to try and
get info

public boolean handleKeyPress(DialogInterface dialog, int keyCode,
KeyEvent event) {

Log.d("keyPress", "handleKeyPress :
this.getSelectedItemPosition(): " + this.getSelectedItemPosition());
Log.d("keyPress", "handleKeyPress : this.getSelectedItemId():
" + this.getSelectedItemId());

AlertDialog ad = (AlertDialog)dialog;
View fv = this.getCurrentFocus();
if( fv != null ) {
 Log.d("keyPress", "handleKeyPress  : fv.getId(): " +
fv.getId());
}

ListView lv = this.getListView();
if( lv != null ) {
View fvC = lv.getFocusedChild();
if( fvC != null ) {
Log.d("keyPress", "handleKeyPress : fvC.getId(): " +
fvC.getId());
}
int selectedPos = lv.getSelectedItemPosition();
Log.d("keyPress", "handleKeyPress : selectedPos: " +
selectedPos);
}

return false;
}



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



[android-developers] Re: fitness or workout program

2008-12-21 Thread Yossi

I'm working on an app that will allow to track and monitor your
workout progress both on the device and on a web site.
First app will be for runners and planned to be shipped in a few
weeks.
In case you have any feature requests I would be happy to know about
them.

Yossi

On Dec 19, 11:10 pm, "Xavier Mathews"  wrote:
> What does the app do let you watch work out on the phone or time you
> while you run or tell you what and when to eat for the day??? Ihave
> never heard of this app..
>
> On 12/19/2008, Mark K  wrote:
>
>
>
>
>
> > I think there's a new one at the app store 'WorkItOut' don't know
> > anything else about. Please be kind to the developers, we are after
> > all just giving away software.
>
> >                                       Mark
>
> > On Dec 18, 5:12 am, Peli  wrote:
> >> What would you expect from a fitness or workout program?
>
> >> I've outlined a possible version
> >> here:http://groups.google.com/group/openintents/browse_frm/thread/2a07c31b...
>
> >> That one would be loosely based on our Timesheet application
> >> (http://www.openintents.org/en/node/153) - just instead of tracking
> >> jobs one would track a workout program that one could load from a
> >> file. Would this be something you would be looking for, or did you
> >> have something completely else in mind?
>
> >> Peli
>
> >> On Dec 17, 6:41 pm, Dave  wrote:
>
> >> > I've been waiting for someone to create a workout or fitness program.
> >> > Anything in the works?- Hide quoted text -
>
> >> - Show quoted text -
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Client Based Tech Support Specialist
> Hazel Crest Illinois
> xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> "Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When will star the Android Developer Challenge II ?

2008-12-21 Thread nah0y

HI everybody,

I'm a french student in computer science and i miss the first Android
Developer Challenge,

I'm going to receive my G1 Phone in less than a week, and i'd like to
know when the second ADC will start, because all i can see is :
"This contest will launch after the first handsets built on the
platform become available in the second half of 2008"

But we are at the end of 2008 and i really don't want to miss
registrations.

Thanks for the answer, and sorry if i don't speak english that good.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: HTC G2's home effection is very well,I saw it on www,Is it real or just a flash?

2008-12-21 Thread ipalik

well, google, please tell me if there is an developer edition of the
g2. I have to use it in germany then.
at the moment, i use the dev phone 1.
but does any body know something more about the g2?

thanks

On 20 Dez., 10:50, Al Sutton  wrote:
> Please 
> seehttp://groups.google.com/group/android-discuss/browse_thread/thread/e...
>
> Al.
>
> JBQ wrote:
> > Does anybody know it?

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



[android-developers] onProviderEnabled / onProviderDisabled unexpected behavior

2008-12-21 Thread iAmACyborg

When enabling or disabling a provider in settings; it seems to trigger
a disable event for all providers, then an enable event for any
providers that are still checked. Is this the intended behavior? For
example, if network and gps are enabled, and I disable network - I get
this:

12-20 22:12:42.723: DEBUG/GPSgoTo(673): Provider disabled: gps
12-20 22:12:44.273: DEBUG/GPSgoTo(673): Provider disabled: network
12-20 22:12:44.533: DEBUG/GPSgoTo(673): Provider enabled: gps
12-20 22:12:49.563: DEBUG/GPSgoTo(673): Best Provider: gps

I use a message handler to delay figuring out what provider to use for
5 seconds so my app doesn't hang up with all the changes... but
shouldn't this just trigger a single onProviderDisabled("network")?

Does anyone else experience this problem?

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



[android-developers] Please help: Need to access SMS inbox

2008-12-21 Thread ipeg . student

my name is Suman. i can notify a incoming sms. the code is written
belowimport android.content.BroadcastReceiver;

import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.gsm.SmsMessage;
import android.util.Log;
import android.widget.Toast;


public class SMSReceiver1 extends BroadcastReceiver {
 /** TAG used for Debug-Logging */
 protected static final String LOG_TAG = "SMSReceiver";

 /** The Action fired by the Android-System when a SMS was
received.
  * We are using the Default Package-Visibility */
 private static final String ACTION =
"android.provider.Telephony.SMS_RECEIVED";

 // @Override
public void onReceive(Context context, Intent intent) {

 Log.i(LOG_TAG, "[inside onReceive] ");

 if (intent.getAction().equals(ACTION)) {

   StringBuilder sb = new StringBuilder();
 Bundle bundle = intent.getExtras();

 if (bundle != null) {
 Object[] pdusObj = (Object[]) bundle.get("pdus");
 SmsMessage[] messages = new SmsMessage
[pdusObj.length];
 for (int i = 0; ihttp://schemas.android.com/apk/res/android";
  package="com.android.sms14">




















Now, i have database also.
import java.util.ArrayList;

import android.app.ListActivity;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.EditText;

public class queryandroid extends ListActivity {

 private final String MY_DATABASE_NAME = "myCoolDB_2";
 private final String MY_DATABASE_TABLE = "Users";

 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle icicle) {
  super.onCreate(icicle);

  EditText et = new EditText(this);
  et.setSelection(et.getText().length());
  /* Will hold the 'Output' we want to display at the end. */
  ArrayList results = new ArrayList();

  SQLiteDatabase myDB = null;
  try {
   /* Create the Database (no Errors if it already exists)
*/
  myDB = this.openOrCreateDatabase(MY_DATABASE_NAME,
MODE_PRIVATE, null);

  //myDB.execSQL("DROP TABLE "  + MY_DATABASE_TABLE )   ;

   /* Create a Table in the Database. */
   myDB.execSQL("CREATE TABLE IF NOT EXISTS "
   + MY_DATABASE_TABLE
   + " (MyKey INTEGER PRIMARY KEY
AUTOINCREMENT, MyName VARCHAR,"
   + " MyAge INT(3), MyDate DATE);");

   //create table t1 (t1key INTEGER  PRIMARY KEY,data
TEXT,num double,timeEnter DATE);
   // UPDATE exam SET timeEnter = DATETIME('NOW') WHERE
rowid = new.rowid;

   //myDB.execSQL("DELETE FROM "  +
MY_DATABASE_TABLE )   ;

   /* Add two DataSets to the Table. */
   myDB.execSQL("INSERT INTO "
   + MY_DATABASE_TABLE
   + " (MyName, MyAge)"
   + " VALUES ('Nikhil Narayan', '27');");

   myDB.execSQL("INSERT INTO "
   + MY_DATABASE_TABLE
   + " (MyName, MyAge)"
   + " VALUES ('Suman Ganguly', '22');");


   /
    Insert part

  // String value2 = extras.getString("nikvar");
  // String value3 = extras.getString("niva");

  // String dfname = "Debosree ";
   //String dlname = "Das";
   //int dage = 24;
   //String dcountry = "India";

   //myDB.execSQL("INSERT INTO "
 // + MY_DATABASE_TABLE
   //   + " (LastName, FirstName, Country, Age)"
 // + " VALUES ('"+dfname+"', '"+dlname+"',
'"+dcountry+"', "+dage+");");

    End Insert Part
   /

   /* Query for some results with Selection and
Projection. */
   Cursor c = myDB.rawQuery("SELECT MyKey, MyName,MyAge"
+
" FROM " + MY_DATABASE_TABLE
+ " WHERE MyAge > 0 LIMIT
400;",
null);

   /* Get the indices of the Columns we will need */
   int MyNameColumn = c.getColumnIndexOrThrow("MyName") ;
   int MyAgeColumn = c.getColumnIndexOrThrow("MyAge");

   /* Check if our result was valid. */
   c.moveToFirst

[android-developers] How to dynamically load a share library in android?

2008-12-21 Thread David.C

Hello,
I follow the website
http://honeypod.blogspot.com/2007/12/dynamically-linked-hello-world-for.html
and successfully dynamically link a shared library for Android.
But I want to know how to dynamically load a share library for
android?
I wrote two simple code to test
(1) Hello.c
#include 
void hello(const char *name){
  printf("Hello %s\n",name); }

(2) myTest.c
#include
#include
#include
int main(){
  void *handle;
  void (*f)(const char *name);
  char *error;
  char *string = "./libmyHello.so";
  printf("begin\n");
  handle = dlopen(string,RTLD_LAZY);
  if(!handle){
fputs(dlerror(),stderr);
exit(1);  }
  f = dlsym(handle, "hello");
if((error=dlerror())!=NULL){
fputs(error, stderr);
exit(1);  }
  f("world!!");
  dlclose(handle);
  printf("end\n");
  return 0; }

I use "arm-none-linux-gnueabi-gcc –static myTest.c -ldl" to make
dynamically load executable
and
"arm-none-linux-gnueabi-gcc -fPIC -c hello.c"
"arm-none-linux-gnueabi-gcc -shared -Wl,-soname,libmylib.so -o
libmylib.so hello.o"
to build shared library

And push them to Android emulator, but I got an error message "Libc.so.
6: cannot open shared object file: No such file or directory"

Is there anything wrong?
Furthermore, If I want to make Dalvik VM dynamically load a library,
how to achieve this?
Thank you.
Any help 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
-~--~~~~--~~--~--~---



[android-developers] Using MultiAutoCompleteTextView and Tokenizer

2008-12-21 Thread Torgny

Hello,

I have looked everywhere for any kind of hint of how to implement a
custom Tokenizer using the MultiAutoCompleteTextView.Tokenizer
interface, but have come up empty. As a last resort I was hoping that
someone here could provide me with a basic example of how to implement
the Tokenizer class so that I can hook it into the TextView with the
setTokenizer() method.

These are the examples and reference docs I was looking at:

http://code.google.com/android/reference/android/widget/MultiAutoCompleteTextView.Tokenizer.html
http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/AutoComplete6.html

I know this is probably a very trivial issue. I am new to both Java
and Android and would appreciate any help you can give me. Thank you!

Warm Regards,
Torgny

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

2008-12-21 Thread Vachara Aemavat
I just wondering the next model of dev phone would not release by
Brightstar, please.
-Kukgle-

On Sat, Dec 20, 2008 at 6:07 AM, baker  wrote:

>
> Sorry for the repost.
>
> Yes I can charge the phone with USB and yes the cable will connect to
> the wall with a converting. However always charging over USB isn't
> always convenient.
>
> However the socket to the phone is incompatible with the phone. It
> physically doesn't fit, different shape.
>
> Craig.
>
> On Dec 20, 10:02 am, baker  wrote:
> > I received the phone last week but it came packaged with an incorrect
> > power cable. The cable doesn't connect to either my Australian wall
> > socket or the phone. That's right it isn't even compatible with the
> > phone. So what to do, brightstar and google have no contact
> > information should you have any problems with the shipment. None of
> > the emails from birghtstar have a support email.
> >
> > I've emailed both a brightstart email address from there web site and
> > a google market place email, but haven't heard from anybody after many
> > days.
> >
> > I just want a power cable for the phone, can anybody give me some
> > advice as to how I get these goons to send me the phone an equipment I
> > paid for.
> >
> > Thanks,
> >
> > Craig Baker.
> >
> > On Dec 11, 4:31 pm, kpowerinfinity  wrote:
> >
> > > Same problem here. I placed an order, but the order doesn't appear on
> > > the Brightstar tracking page. It says that no orders have been placed.
> > > I have sent 3 emails to andr...@brightstarcorp.com but not received
> > > any useful replies. Anybody here knows how long it will take the
> > > phones to ship?
> >
> > > I am relying on somebody to bring the phone from the US to India for
> > > me ... and in fact I paid extra shipping to ensure it reaches in time.
> > > In case, they delay shipping too much, I would rather cancel the order
> > > because then I can't get the phone brought to India for me, but the
> > > customer services hasn't even replied. Anybody here can help?
> >
> > > Thanks, Krishna.
> > > kkme...@gmail.com
> >
> > > melp wrote:
> > > > I have the same issue. I placed an order twice on 8 Dec and got the
> > > > confirming email. Both times my credit card was charged(!) but my
> > > > orders disappeared off the tracking page.
> >
> > > > Customer service is non-existent. Repeated emails have not received
> > > > any replies and I have tried calling their number during their stated
> > > > operating hours but always get a recorded message that says they are
> > > > closed or serving someone else.
> >
> > > > Any google employees care to comment?
> >
> > > > On Dec 9, 9:33 pm, Logan  wrote:
> > > > > Does anyone know more about this company, I placed an order and all
> I
> > > > > got was an e-mail confirming my order but no way to check shipping
> > > > > status, etc. Are these phones actually shipping now?
> >
> > > > > On Dec 8, 2:49 pm, Pastymage  wrote:
> >
> > > > > > Does anyone have a more detailed FAQ than the text onhttp://
> android.brightstarcorp.com/?Mymain concern is that GPS is
> > > > > > not listed anywhere in the hardware features - does it actually
> > > > > > support GPS, or not?
> >
> > > > > > Aside from that, I'm unclear on how the 3G bands work - what
> would
> > > > > > the actual bandwidth of this device be on AT&T, for example?
> >
> > > > > > -Dave
> >
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What format is edit_text.xml, and how can I make one?

2008-12-21 Thread brnzn

I'm playing with different ways of presenting validation errors back
to the user and one thing I want to try is changing the background
color of EditText views to red or orange to indicate error or warning
states.  I want to create new drawbles for these states based on the
standard drawable for the EditText background.

EditText uses as it's background android.R.drawable.edit_text, which
is named as an XML file, though it's contents are not XML.  What is
this format?  It doesn't look to be one of the three types discussed
in http://code.google.com/android/reference/available-resources.html#drawables

Cheers,
Bren

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

2008-12-21 Thread Ninad

Why does the Emulator block any Write to sdcard while a Media Player
is playing an audio file?
Is it because Media Player is reading from the sdcard at that time? So
only one IO operation possible at a time?

If thats the case, we can not work on any other file while listening
to audio..
Is it the same with actual devices?

What could be the work around for the same?
Any suggestions ?

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



[android-developers] How to use pdfbox to read pdf file on android

2008-12-21 Thread shen jabco
I want to get the pdf text content by use pdfbox.jar in android app, but
failed to get the message:

*java.lang.verifyerror : org.pdfbox.pdfparser.pdfparser*

but this works fine on my common java app(non-android platform), is there
any different on VMs of android or some permission setting? I am a new
developers , can someone give some suggestion and help

This is part of my code in android app:
*InputStream is = mContext.openFileInput("pdf2.pdf");
PDFParser parser = new PDFParser(is);
parser.parse();  *

pdf2.pdf is in the dir: /data/data/myandroidPackage/files/pdf2.pdf

Jabco

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

2008-12-21 Thread Mark Murphy

Tez wrote:
> I am trying to build a small XMPP client for Android using the Smack
> API for Java. I have setup the API in  my eclipse environment.



> When i debug the app, i get the foll. errors in LogCat
> (The exception is thrown when the conn.connect() method is
> encountered)
> 
> 12-19 20:22:06.552: ERROR/OSNetworkSystem(229): unknown socket error
> -1
> 12-19 20:22:08.932: DEBUG/--EARL--(229): XMPPError connecting to
> jabber.org:5222.: remote-server-error(502) XMPPError connecting to
> jabber.org:5222.
> 12-19 20:22:08.932: DEBUG/--EARL--(229):   -- caused by:
> java.net.SocketException: unknown error

One cause of "unknown socket error -1" is because you don't have the
INTERNET permission in your AndroidManifest.xml file.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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] Re: setStrokeCap(Paint.Cap.ROUND) yields square drawPoints()

2008-12-21 Thread gjs

Hi,

See for example -

http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/FingerPaint.html

Regards

On Dec 20, 2:18 pm, Keith Wiley  wrote:
> Ugh.  I coded this up earlier and it worked, but I left the code on my
> other computer, so now I'm doing it again and it isn't working, but I
> can't believe how ridiculously simple it is.  What could possibly be
> wrong?
>
> I adapted the following from the DrawPoints.java example:
>
> ...From a typical Activity...
> @Override
> protected void onDraw(Canvas canvas) {
>   ...Create a float array of points named 'points'...
>   ...then...
>   Paint paint = mPaint;
>   paint.setColor(Color.RED);
>   paint.setStrokeWidth(8);
>   paint.setStrokeCap(Paint.Cap.ROUND);
>   canvas.drawPoints(points, paint);
>
> }
>
> The points are drawn square.  How can this possibly fail?  I'm missing
> something royally silly aren't I?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Smack API and Android

2008-12-21 Thread Tez

Hi,

I am trying to build a small XMPP client for Android using the Smack
API for Java. I have setup the API in  my eclipse environment.

I am using the foll. code

void sendAMsg()
{
try {

cc = new ConnectionConfiguration("jabber.org", 5222,
"jabber.org");

conn = new XMPPConnection(cc);
conn.connect();
conn.login("earlenceferns", "tezroyd1987");
//Message m = new Message();
//m.setTo("earlencefe...@darkdna.net");
//m.setSubject("Test msg");
//m.setBody("Hey man, what up?");
//m.setType(Message.Type.chat)
;
//conn.sendPacket(m);
conn.disconnect();

}catch(XMPPException ex1) { Log.d("--EARL--", ex1.toString
()); }


}

I just call this method in a button click handler

When i debug the app, i get the foll. errors in LogCat
(The exception is thrown when the conn.connect() method is
encountered)

12-19 20:22:06.552: ERROR/OSNetworkSystem(229): unknown socket error
-1
12-19 20:22:08.932: DEBUG/--EARL--(229): XMPPError connecting to
jabber.org:5222.: remote-server-error(502) XMPPError connecting to
jabber.org:5222.
12-19 20:22:08.932: DEBUG/--EARL--(229):   -- caused by:
java.net.SocketException: unknown error

Please help me figure this error out. I am a little short of time.

(OS - Windows XP, Eclipse version - 3.4 Ganymede, Android SDK version
- android-sdk-windows-1.0_r2)

Thanks,
Earlence 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] Can't get threaded progress bars to work

2008-12-21 Thread Keith Wiley

I'm trying to put up a progress bar while reading and processing a
file.  I'm open to title bar vs dialog and determinate vs.
indeterminate.  At this point I don't care, I just want to get
something working.  The problem occurs as the working thread attempts
to turn the progress bar off.  At that point the program crashes.  In
the example below ".F" is never written to the log.

Any help is appreciated.

Thanks.

The following code subs the actual file reading and processing out and
replace it with sleep() for the time being.

private void read() {
//First test without a thread...this works without crashing, 
but of
course the progress bar is never
//shown or updated because the main thread is locked up doing 
work
(sleeping in this example).

Log.v("Thread/Progress test", "a");
//showDialog(INDETERMINATE_DLOG_ID);
setProgressBarIndeterminateVisibility(true);
Log.v("Thread/Progress test", "b");
try {
Log.v("Thread/Progress test", "c");
Thread.sleep(5000);
Log.v("Thread/Progress test", "d");
} catch (InterruptedException e) {
}
Log.v("Thread/Progress test", "e");
setProgressBarIndeterminateVisibility(false);
Log.v("Thread/Progress test", "f");

//Next try it with a separate working thread.  Progress bar is
shown,
//but program crashes as working threads terminates the progress
bar.

Log.v("Thread/Progress test", "A");
setProgressBarIndeterminateVisibility(true);
Log.v("Thread/Progress test", "B");
new Thread(new Runnable() {
public void run() {
try {
Log.v("Thread/Progress test", ".C");
Thread.sleep(5000);
Log.v("Thread/Progress test", ".D");
} catch (InterruptedException e) {
}

Log.v("Thread/Progress test", ".E");
setProgressBarIndeterminateVisibility(false);
//dismissDialog(INDETERMINATE_DLOG_ID);
Log.v("Thread/Progress test", ".F");
}   //Runnable.run()
}).start();
Log.v("Thread/Progress test", "G");
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] my rotated bitmaps "unrotate" immediately after invoking setCenter() method

2008-12-21 Thread DMT

It seems that invoking the .setCenter(mygeopoint) method on a
MapController object has the side effect of setting the orientation of
any rotated bitmaps back to the original orientation. Has anyone else
also experienced this?

My problem is that I'm writing a map application that needs to rotate
an arrow bitmap to point in the direction of the cellphone's motion,
and I want to periodically automatically re-center the map so that the
user's position does not drift off the map.
However, each time I call 'setCenter(mygeopoint)', my arrow bitmap
"unrotates" back to its original heading, therefore the user loses the
directional information.

Anyone found a workaround for this problem?

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] How to put a Translucent GL View on top of a 2D view?

2008-12-21 Thread Tomei Ningen
I want to put a translucent 3D view on top of a 2D view (so that I can "fly" 
some 3D objects across my 2D view). I modified the 
TranslucentGLSurfaceViewActivity example in ApiDemo -- I created a full screen 
2D custom view that fills the screen in blue color. Then, I have a smaller 3D 
view on top of it that draws the cubes. However, in the 3D view instead of 
showing blue as the BG, it shows the contents of the Activity beneath. See the 
attached picture.
 
What did I do wrong?
 
Thanks
 
--add to AndroidManifest.xml
    
    
    
    
    
    
--TranslucentGLSurfaceViewActivity2.java
package com.example.android.apis.graphics;
import android.app.Activity;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
public class TranslucentGLSurfaceViewActivity2 extends Activity {
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    View lowerView = new LowerView(this);
    mGLSurfaceView = new GLSurfaceView(this);
    mGLSurfaceView.setRenderer(new CubeRenderer(true));
    mGLSurfaceView.getHolder().setFormat(PixelFormat.RGBA_);
    setContentView(lowerView);
    addContentView(mGLSurfaceView, new ViewGroup.LayoutParams(300, 300));
    }
    protected void onResume() {
    super.onResume();
    mGLSurfaceView.onResume();
    }
    protected void onPause() {
    super.onPause();
    mGLSurfaceView.onPause();
    }
    private GLSurfaceView mGLSurfaceView;
    class LowerView extends View {
    public LowerView(Context context) {
    super(context);
    }
    public void onDraw(Canvas canvas) {
    Rect rect = canvas.getClipBounds();
    Paint paint = new Paint();
    canvas.drawColor(Color.BLUE);
    }
    }
}

 
 


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

2008-12-21 Thread Ralf

I'm trying to use a PreferenceActivity with prefs inflated from XML
and at the same time I'd like the window to blur whatever was behind
(i.e. my previous activity where I invoked the settings from.) I tried
something like this below but the background is always black (or
whatever color I select) without any blur/transparency.

Is it possible? what am I doing wrong?

public class PrefsActivity extends PreferenceActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
// Have the system blur any windows behind this one.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

super.onCreate(savedInstanceState);

setTitle(R.string.prefs_title);
addPreferencesFromResource(R.xml.prefs);

View content = findViewById(android.R.id.content);
content.setBackgroundColor(0x7F00);

getListView().setBackgroundColor(0x7F00);
getListView().setCacheColorHint(0x7F00);
}
}

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] How to switch between 2D and 3D views?

2008-12-21 Thread Tomei Ningen

I am trying to combine 2D and 3D views. My app initially starts in 2D.
When the user presses a button, I want to temporarily switch to 3D,
draw some fancy transition effects, and switch back to 2D. However, I
am getting stuck because the 3D view will come out black. It's
reproducible on both the 1.0 SDK and G1 phone.

I have reduced the problem to the following. You can drop the file
into ApiDemo:

1: when "GLSurfaceView2" is launched, initially it shows a blue screen
(2D View).
2: when user presses DPAD_DENTER, I create the 3D view and set it to
current view. However, the screen is completely black.
3: now, press PHONE button to start the dialer, then press the BACK
button, the rotating cubes is rendered on the screen

Is this a bug?

Thanks
-Add to ApiDemo/
AndroidManifest.xml-






-
new-
package com.example.android.apis.graphics;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;

public class GLSurfaceViewActivity2 extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
normalView = new NormalView(this);
setContentView(normalView);
}

public boolean onKeyDown(int keyCode, KeyEvent event) {
switch (keyCode) {
case KeyEvent.KEYCODE_DPAD_CENTER:
if (isNormal) {
mGLSurfaceView = new GLSurfaceView(this);
mGLSurfaceView.setRenderer(new CubeRenderer(false));
setContentView(mGLSurfaceView);
isNormal = false;
}
return true;
}
return super.onKeyDown(keyCode, event);
}

protected void onResume() {
super.onResume();
if (mGLSurfaceView != null) {
mGLSurfaceView.onResume();
}
}

protected void onPause() {
super.onPause();
if (mGLSurfaceView != null) {
mGLSurfaceView.onPause();
}
}

private GLSurfaceView mGLSurfaceView;
private View normalView;
boolean isNormal = true;
}

class NormalView extends View {
public NormalView(Context context) {
super(context);
}

public void onDraw(Canvas canvas) {
Rect rect = canvas.getClipBounds();
Paint paint = new Paint();
paint.setAntiAlias(true);
canvas.drawColor(Color.BLUE);
}
}
-
end---
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Google health and Android is it possible without a phone API

2008-12-21 Thread Jeff

Hello,

I would like to connect to Google health and I was wondering if anyone
knew if this is possible.  I know that the Google Health uses the data
api but I am not sure if the security will allow the phone to
interface with it.  You cannot log into the G Health with a phone
browser.

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] DDMS and Ubuntu 8.10 64-bit

2008-12-21 Thread Mark Murphy

Environment:
-- Ubuntu 8.10 Intrepid Ibex 2.6.27-9-generic x86_64 GNU/Linux
-- Sun Java 6 JDK
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)
-- ia32-libs installed

The emulator runs fine, as does the ant build chain, adb, and
activitycreator.

However, DDMS fails, complaining that tools/lib/libswt-pi-gtk-3236.so
has "wrong ELF class: ELFCLASS32 (Possible cause: architecture word
width mismatch)"

Does anyone have DDMS working on 64-bit Linux? If so...any tips?

Thanks in advance!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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] Problems running telnetd on adp1

2008-12-21 Thread onlythoughtwo...@googlemail.com

When i start telnetd via console, as root ,no errors occur. But i
cannot connect to my phone via telnet and the ps dump also shows that
no telnetd is running.  I also cannot locate telnetd in /system/
bin ...anyone else experiencing problems with telnetd on adp1?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 retrive device log

2008-12-21 Thread Bill Napier

http://code.google.com/android/reference/adb.html#forwardports

You can use adb to do some amount of port forwarding, but I'm not sure
if it works in the direction you're looking for.

You can also use 'adb logcat' to retrieve the system log on the phone.
 And if you keep it running you can get your logging messages there.

b

On Sun, Dec 21, 2008 at 2:39 PM, Mark Nuetzmann
 wrote:
>
> bump
>
> On Dec 19, 9:12 am, Mark  wrote:
>> I am also interested in this.  I would like to know if there is a way
>> to have my application send UPD messages to my laptop/desktop when
>> connected through the USB cable.  I have done this with great success
>> in my Windows Mobile applications.  I have a UDP server running on my
>> laptop that receives the messages and writes the data out to a file.
>> I then have a log file previewer application that has filtering and
>> display logic that allows me to view, filter, copy messages (works
>> great for debugging my apps).
>>
>> thanks,
>> Mark
>>
>> On Dec 19, 8:28 am, Raj  wrote:
>>
>> > Hello All,
>>
>> > I am developint a small application in which I have to show the device
>> > log into the screen. If any one has the solution or any helpful link
>> > then please reply..
>>
>> > Your Friend
>> > Raj
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Locking Down Root Access - Same Sh.., Different Vendor

2008-12-21 Thread Bill Napier

Can you please continue this discussion on android-discuss where it belongs?

But it is nice to know that I'm now cool...  I appreciate that.  :)

On Sun, Dec 21, 2008 at 3:18 PM, mashpl...@gmail.com
 wrote:
>
> The phone mindset is wrong, consumers are not like they were in the
> 80's, now the average user is quickly growing into a "terminal window"
> and root access.  The kid's are into mashing everything just look at
> the sites they make on facebook.  Not only are they comfortable with
> terminal windows and root access but they can code.
>
> Phones for dummy's is old school.  It for a time when nerds were
> uncool and users were computer illiterate.  The world has changed but
> the telecom mindset has not
>
> - V
>
> On Dec 21, 5:50 pm, Al Sutton  wrote:
>> I'd prefer to see more Android 'phones in the hands of users than to see
>> every Android phone have a developer mode.
>>
>> The G1 is a consumer device and should be designed as such (including
>> things like minimising/eliminating the possibility for users to brick
>> the device by using a home-brew firmware). The DP1 is the dev 'phone
>> which you can brick to your hearts content if you so wish.
>>
>> Yes it's annoying that the DP1 was only announced after many of us had
>> bought G1s, yes it would be nice to have a G1 that we could use like a
>> DP1, but that's not the main purpose the G1 is designed to serve.
>>
>> Al.
>>
>>
>>
>> mashpl...@gmail.com wrote:
>> > Hi Thanks for responding, sorry for posting in the wrong place but
>> > this is the group that's impacted.  I think the open community can
>> > respond possibly using a open source license that does not allow
>> > "TIVO" style hardware lock-down.  In addition Google can provide
>> > certification programs that require device manufacturers to
>> > demonstrate open implementations of Android in order to use the
>> > Android logo.   Last Google could market their "unlocked" developer
>> > phone for general use.
>>
>> > ps.  is your book available yet?  I just looked at your website, good
>> > luck with your business model.
>>
>> > On Dec 21, 10:37 am, Mark Murphy  wrote:
>>
>> >> First, this sort of topic belongs on [android-discuss], since this list
>> >> is for assistance on application development.
>>
>> >> mashpl...@gmail.com wrote:
>>
>> >>> Please do not allow the carriers to lock the phones down.
>>
>> >> Android is licensed under the Apache License 2.0. Hardware manufacturers
>> >> and carriers can do what they wish within the confines of that license.
>>
>> >> If you want to complain about locked-down phones, complain to carriers
>> >> and device makers. Hope that some innovative device makers make devices
>> >> that are not locked down, and that the market rewards them for it.
>>
>> >> --
>> >> Mark Murphy (a Commons Guy)http://commonsware.com
>> >> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>>
>> --
>> ==
>> Funky Android Limited is registered in England & Wales with the
>> company number  6741909. The registered head office is Kemp House,
>> 152-160 City Road, London,  EC1V 2NX, UK.
>>
>> The views expressed in this email are those of the author and not
>> necessarily those of Funky Android Limited, it's associates, or it's
>> subsidiaries.
> >
>

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

2008-12-21 Thread Bill Napier

I can't even keep track of the number of times I've wiped the data on
my phone.  Sometimes its gotta be done to test things.  It usually
takes me maybe 10-15 minutes to re-install all my apps and re-setup
all my settings.  IMHO, not that big a deal.  All my contact
info/calendar/etc. sync from gmail so I don't even worry about those,
they just magically appear.

b

On Sun, Dec 21, 2008 at 1:31 PM, nkijak  wrote:
>
> I second the root access.  All us T-Mobile G1 suckers are out cold for
> now.  My trackball stopped scrolling to the right and T-Mobile is
> sending me a new one but all my data and apps will be lost because
> they're all written to internal memory.
>
> I'm a little sad that the Google folks didn't see this as a huge issue
> as the iPhone has syncing with iTunes and it's no problem to upgrade/
> switch/replace between iPhone/touch hardware.  What's the recommended
> way for Android users?
>
> On Dec 20, 1:31 am, "Peter Fisher"  wrote:
>> I wish it had multi touch support the browser would be so much better if
>> they did. =(
>>
>> Also there should be an option to allow root access to the device for
>> developers...
>>
>> On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans wrote:
>>
>>
>>
>> > What do you mean there is another SD slot? There is only 1 :) + 64mb
>> > internal mem.
>>
>> > On Dec 19, 2:56 pm, "Xavier Mathews"  wrote:
>> > > I thought there was another sd slot?
>>
>> > > On 12/19/2008, Mark K  wrote:
>>
>> > > >   Looks good, will have camcorder support which is huge! It needed to
>> > > > support recording video, since all the other 'smart phone' platforms
>> > > > do also. Hopefully it will be an easy upgrade for the G1.
>>
>> > > >  Mark
>>
>> > > > On Dec 19, 9:37 am, TmobileG1Fans  wrote:
>> > > >> I think it's going to be awesome OS update but then again I wish apps
>> > > >> still would be installable from SD card and not OS, i mean this os is
>> > > >> going to take more space and most people are already using 80% of
>> > > >> their internal card.
>>
>> > > >> Hope they will address that issue:
>>
>> > > >> Info about
>> > > >> CupCake:
>> >http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-...
>>
>> > > --
>> > > Xavier A. Mathews
>> > > Student/Browser Specialist/Developer/Web-Master
>> > > Client Based Tech Support Specialist
>> > > Hazel Crest Illinois
>> > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
>> > > "Fear of a name, only increases fear of the thing itself."
> >
>

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

2008-12-21 Thread Bill Napier

The questions your asking would probably be better asked on
android-platform, where they discuss these kinds of things.

But the reason you can't mount it is probably that your system doesn't
have the yaffs2 kernel module loaded.

b

On Sun, Dec 21, 2008 at 4:17 AM, fry  wrote:
>
> I think I can try to modify tools/lib/images/system.img file to
> achieve this - the simple way I see is to mount it on my local system
> in write mode, put modified files to it, unmount and boot emulator
> with modified image. Will this way work at least in theory?
>
> On practice, I even can't mount it:
>
> sudo mount -o loop,offset=32256 -t yaffs2 system.img ./tmp/
> mount: unknown filesystem type 'yaffs2'
>
>
> On Dec 21, 2:14 pm, fry  wrote:
>> Hello,
>>
>> I'm trying to upgrade firmware in emulator or some parts inside it. I
>> have root shell, I can replace any libraries/binaries in the /system
>> directory, but after I reboot all my changes are reverted back.
>>
>> How can I switch this off? For example, if I compile some of
>> opensource part of android platform (specific library), how can I push
>> it to the emulator and test it?
>>
>> I also tried to appy rc30 update for G1 to the emulator - following
>> thishttp://www.intomobile.com/2008/11/10/force-android-rc-30-update-on-yo...
>> or 
>> thishttp://www.intomobile.com/2008/11/03/force-a-software-update-on-your-...
>> instructions (there are may available with the same info)
>> I can copy update.zip to the root of the emulated sd card, but the 2nd
>> step is "Turn it back on while holding down the "Power" (End Call) and
>> "Home" buttons". As I understand, this is special phone startup method
>> which enables update process - I can't do the same with the emulator
>> because I start it just with the command "emulator" which means usual
>> start - probably it might have special command line parameter and
>> achieve the same result as with G1 phone "power+home" combination.
>>
>> Thank's
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Locking Down Root Access - Same Sh.., Different Vendor

2008-12-21 Thread mashpl...@gmail.com

The phone mindset is wrong, consumers are not like they were in the
80's, now the average user is quickly growing into a "terminal window"
and root access.  The kid's are into mashing everything just look at
the sites they make on facebook.  Not only are they comfortable with
terminal windows and root access but they can code.

Phones for dummy's is old school.  It for a time when nerds were
uncool and users were computer illiterate.  The world has changed but
the telecom mindset has not

- V

On Dec 21, 5:50 pm, Al Sutton  wrote:
> I'd prefer to see more Android 'phones in the hands of users than to see
> every Android phone have a developer mode.
>
> The G1 is a consumer device and should be designed as such (including
> things like minimising/eliminating the possibility for users to brick
> the device by using a home-brew firmware). The DP1 is the dev 'phone
> which you can brick to your hearts content if you so wish.
>
> Yes it's annoying that the DP1 was only announced after many of us had
> bought G1s, yes it would be nice to have a G1 that we could use like a
> DP1, but that's not the main purpose the G1 is designed to serve.
>
> Al.
>
>
>
> mashpl...@gmail.com wrote:
> > Hi Thanks for responding, sorry for posting in the wrong place but
> > this is the group that's impacted.  I think the open community can
> > respond possibly using a open source license that does not allow
> > "TIVO" style hardware lock-down.  In addition Google can provide
> > certification programs that require device manufacturers to
> > demonstrate open implementations of Android in order to use the
> > Android logo.   Last Google could market their "unlocked" developer
> > phone for general use.
>
> > ps.  is your book available yet?  I just looked at your website, good
> > luck with your business model.
>
> > On Dec 21, 10:37 am, Mark Murphy  wrote:
>
> >> First, this sort of topic belongs on [android-discuss], since this list
> >> is for assistance on application development.
>
> >> mashpl...@gmail.com wrote:
>
> >>> Please do not allow the carriers to lock the phones down.
>
> >> Android is licensed under the Apache License 2.0. Hardware manufacturers
> >> and carriers can do what they wish within the confines of that license.
>
> >> If you want to complain about locked-down phones, complain to carriers
> >> and device makers. Hope that some innovative device makers make devices
> >> that are not locked down, and that the market rewards them for it.
>
> >> --
> >> Mark Murphy (a Commons Guy)http://commonsware.com
> >> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: openFileOutput and global files

2008-12-21 Thread Mark Murphy

Mark Nuetzmann wrote:
> How do I implement the concept of a central repository for my
> applications without forcing the install of a separate repository app
> to supply the Content Providers?

Put the repository in one of your existing applications. It doesn't have
to be separate. That application is now a prerequisite for the other
applications, but you were going to have *some* prerequisite anyway.

Ideally, in some future Android revision, there will be some notion of
specifying dependencies in an APK, with automatic dependency resolution,
so there is some means of arranging for your ContentProvider to be there
for an application whether it was already there or not.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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] Re: openFileOutput and global files

2008-12-21 Thread Mark Nuetzmann

bump...

How do I implement the concept of a central repository for my
applications without forcing the install of a separate repository app
to supply the Content Providers?

thanks,
Mark


On Dec 19, 7:52 pm, "Dianne Hackborn"  wrote:
> It's there for completeness but very few things I know of use it.  It can be
> useful in some very special situations, such as providing a back-door for
> others to get at some files.
>
>
>
> On Fri, Dec 19, 2008 at 7:08 AM, Mark  wrote:
>
> > The Context provides openFileInput/openFileOutput and also defines the
> > following as parameters to these methods
>
> > MODE_WORLD_READABLE
> > MODE_WORLD_WRITEABLE
>
> > However, everything I read states that files in Android are private to
> > the application and if file data is to be shared you HAVE to use
> > ContentProviders to share the data across applications.
>
> > So what is the intent of the MODE_WORLD_READABLE/MODE_WORLD_WRITABLE
> > values?  Is this a future thing that has not been completed yet?  The
> > reason I ask is I am trying to solve the problem of having two
> > applications that I am writing read and write to the same data whether
> > it be preferences or content.  The idea of a Context Provider is fine,
> > but it implies that a separate app would already be installed that
> > provides the Content Provider to my applications (which is not the
> > case). and I would like to not duplicate code and effort across my
> > applications.
>
> > How do I implement the concept of a central repository for my
> > applications without forcing the install or a separate repository app
> > to supply the Content Providers?
>
> > thanks,
> > Mark
>
> --
> 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.  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: How to retrive device log

2008-12-21 Thread Mark Nuetzmann

bump

On Dec 19, 9:12 am, Mark  wrote:
> I am also interested in this.  I would like to know if there is a way
> to have my application send UPD messages to my laptop/desktop when
> connected through the USB cable.  I have done this with great success
> in my Windows Mobile applications.  I have a UDP server running on my
> laptop that receives the messages and writes the data out to a file.
> I then have a log file previewer application that has filtering and
> display logic that allows me to view, filter, copy messages (works
> great for debugging my apps).
>
> thanks,
> Mark
>
> On Dec 19, 8:28 am, Raj  wrote:
>
> > Hello All,
>
> > I am developint a small application in which I have to show the device
> > log into the screen. If any one has the solution or any helpful link
> > then please reply..
>
> > Your Friend
> > Raj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Thought's On Android CupCake?

2008-12-21 Thread Disconnect
Call 611 and ask. If it becomes a serious enough problem, T-mob will assign
resources to finding and implementing a solution.

If you're unhappy with your purchase from T-mobile, talk to them about it.
It has absolutely nothing at all to do with google. (Zip. Zero. Nada. Sorry
you bought a Toyota and wanted a Honda, but moaning and whining about it is
unlikely to make any sort of magic fairy appear and fix it.)

..I want a pony.

On Sun, Dec 21, 2008 at 4:31 PM, nkijak  wrote:

>
> I second the root access.  All us T-Mobile G1 suckers are out cold for
> now.  My trackball stopped scrolling to the right and T-Mobile is
> sending me a new one but all my data and apps will be lost because
> they're all written to internal memory.
>
> I'm a little sad that the Google folks didn't see this as a huge issue
> as the iPhone has syncing with iTunes and it's no problem to upgrade/
> switch/replace between iPhone/touch hardware.  What's the recommended
> way for Android users?
>
> On Dec 20, 1:31 am, "Peter Fisher"  wrote:
> > I wish it had multi touch support the browser would be so much better if
> > they did. =(
> >
> > Also there should be an option to allow root access to the device for
> > developers...
> >
> > On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans  >wrote:
> >
> >
> >
> > > What do you mean there is another SD slot? There is only 1 :) + 64mb
> > > internal mem.
> >
> > > On Dec 19, 2:56 pm, "Xavier Mathews"  wrote:
> > > > I thought there was another sd slot?
> >
> > > > On 12/19/2008, Mark K  wrote:
> >
> > > > >   Looks good, will have camcorder support which is huge! It needed
> to
> > > > > support recording video, since all the other 'smart phone'
> platforms
> > > > > do also. Hopefully it will be an easy upgrade for the G1.
> >
> > > > >  Mark
> >
> > > > > On Dec 19, 9:37 am, TmobileG1Fans  wrote:
> > > > >> I think it's going to be awesome OS update but then again I wish
> apps
> > > > >> still would be installable from SD card and not OS, i mean this os
> is
> > > > >> going to take more space and most people are already using 80% of
> > > > >> their internal card.
> >
> > > > >> Hope they will address that issue:
> >
> > > > >> Info about
> > > > >> CupCake:
> > >http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-.
> ..
> >
> > > > --
> > > > Xavier A. Mathews
> > > > Student/Browser Specialist/Developer/Web-Master
> > > > Client Based Tech Support Specialist
> > > > Hazel Crest Illinois
> > > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥
> truestar...@yahoo.com
> > > > "Fear of a name, only increases fear of the thing itself."
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Recommended way to transfer /data file to another G1?

2008-12-21 Thread nkijak

This isn't strictly developer related so I apologize, but I know the
Android staff read these.

I have to get my G1 replaced due to a hardware failure with the
trackball.  It is on R30 and the replacement will be on R30 I would
guess so I can't jailbreak. How else can I get the /data directory off
one phone and on to the other?

I don't want to have to go to the Market and re-download everything
and create export files for all my apps then import them again.  I
have a feeling that's what the suggestions are going to be as that was
what the T-Mobile rep told me to do.

I find it very annoying that there's no way to get to the internal
memory. At least on the iPhone/Touch iTunes can write to that
partition/directory to make this sort of thing a non-issue.  What is/
are Google's plans for this situation?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Thought's On Android CupCake?

2008-12-21 Thread nkijak

I second the root access.  All us T-Mobile G1 suckers are out cold for
now.  My trackball stopped scrolling to the right and T-Mobile is
sending me a new one but all my data and apps will be lost because
they're all written to internal memory.

I'm a little sad that the Google folks didn't see this as a huge issue
as the iPhone has syncing with iTunes and it's no problem to upgrade/
switch/replace between iPhone/touch hardware.  What's the recommended
way for Android users?

On Dec 20, 1:31 am, "Peter Fisher"  wrote:
> I wish it had multi touch support the browser would be so much better if
> they did. =(
>
> Also there should be an option to allow root access to the device for
> developers...
>
> On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans wrote:
>
>
>
> > What do you mean there is another SD slot? There is only 1 :) + 64mb
> > internal mem.
>
> > On Dec 19, 2:56 pm, "Xavier Mathews"  wrote:
> > > I thought there was another sd slot?
>
> > > On 12/19/2008, Mark K  wrote:
>
> > > >   Looks good, will have camcorder support which is huge! It needed to
> > > > support recording video, since all the other 'smart phone' platforms
> > > > do also. Hopefully it will be an easy upgrade for the G1.
>
> > > >              Mark
>
> > > > On Dec 19, 9:37 am, TmobileG1Fans  wrote:
> > > >> I think it's going to be awesome OS update but then again I wish apps
> > > >> still would be installable from SD card and not OS, i mean this os is
> > > >> going to take more space and most people are already using 80% of
> > > >> their internal card.
>
> > > >> Hope they will address that issue:
>
> > > >> Info about
> > > >> CupCake:
> >http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-...
>
> > > --
> > > Xavier A. Mathews
> > > Student/Browser Specialist/Developer/Web-Master
> > > Client Based Tech Support Specialist
> > > Hazel Crest Illinois
> > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> > > "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: G1 & BT headset call button

2008-12-21 Thread Raymond Rodgers
Nick Pelly wrote:
> On Sun, Dec 21, 2008 at 12:29 PM, Raymond Rodgers
>  wrote:
>   
>> I just signed up for service with T-mobile and got a G1 yesterday, and
>> right away paired it with my Jabra BT5020 which I've had for about a
>> year now. Right off the bat I  discovered that using the headset's call
>> button does not trigger the voice dialing/command feature of the
>> G1/Android. As it wasn't urgent, I dismissed that, and did a bit of
>> research later. It appears that this functionality is hit and miss with
>> various bluetooth headsets; some messages on various forums report that
>> some headsets work perfectly while others don't, some say that it just
>> doesn't work with Jabra headsets, and still others claim that it's only
>> Jabra headsets that have the problem.
>>
>> I contacted Jabra's tech support and they suggested resetting the phone
>> (by removing the battery for 10 seconds and then powering it back up)
>> and headset (by charging it for 5-10 seconds), but this didn't solve the
>> problem either. I also sent an email to T-mobile's tech support, but I
>> haven't gotten a response back yet. I know it's not my headset itself
>> that is the problem because it still works fine with my previous phone
>> (LG enV/VX9900).
>>
>> Is this an Android compatibility issue? If so, is this something that's
>> being worked on?
>> 
>
> Bluetooth voice dialing support was added in the cupcake codebase.
> It's not in 1.0.
>
> Nick Pelly
> Android Systems Engineer
>   
Excellent, thank you Nick!
Raymond

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

2008-12-21 Thread Aberakkrombie

howdy
 you might want to take a look at this: 
http://www.modmygphone.com/forums/showthread.php?t=8661

also, which cellular provider are you subsribed to?
I'm with Rogers from Canada and the settings I used are:


Service centre address: http://mms.gprs,rogers,com

internet account: Rog MMS

Account Name: Rog MMS
Address: media.com
username: media
password: mda01

use proxy server (check)
address: 172.025.000.107
port: 80

TCPIP automatic

Good Day.


On Nov 28, 12:56 pm, JasonCheng <17hado@gmail.com> wrote:
> Can anyone help me?
> I always can't send MMS , already try A week for setting this.
>
> [APN]
>
> APN: Internet
> MMSC:http://mms
> MMSProxy: 10.1.1.2
> MMSPort: 9201
> MCC: 466
> MNC: 97
>
> [Error Log Like this]
> ---
> E/HttpUtils(  114): Host name may not be null
> E/HttpUtils(  114): java.lang.IllegalArgumentException: Host name may
> not be null
> E/HttpUtils(  114):     at org.apache.http.HttpHost.(HttpHost.java:
> 83)
> E/HttpUtils(  114):     at
> com.android.mms.transaction.HttpUtils.httpConnection(HttpUtils.java:
> 111)
> E/HttpUtils(  114):     at com.android.mms.transaction.Transaction.sendPdu
> (Transaction.java:139)
> E/HttpUtils(  114):     at com.android.mms.transaction.SendTransaction.run
> (SendTransaction.java:106)
> E/HttpUtils(  114):     at java.lang.Thread.run(Thread.java:935)
> E/SendTransaction(  114): Delivery failed.
> I/ActivityManager(   64): Stopping service:
> com.android.mms/.transaction.TransactionService
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: G1 & BT headset call button

2008-12-21 Thread Nick Pelly

On Sun, Dec 21, 2008 at 12:29 PM, Raymond Rodgers
 wrote:
>
> I just signed up for service with T-mobile and got a G1 yesterday, and
> right away paired it with my Jabra BT5020 which I've had for about a
> year now. Right off the bat I  discovered that using the headset's call
> button does not trigger the voice dialing/command feature of the
> G1/Android. As it wasn't urgent, I dismissed that, and did a bit of
> research later. It appears that this functionality is hit and miss with
> various bluetooth headsets; some messages on various forums report that
> some headsets work perfectly while others don't, some say that it just
> doesn't work with Jabra headsets, and still others claim that it's only
> Jabra headsets that have the problem.
>
> I contacted Jabra's tech support and they suggested resetting the phone
> (by removing the battery for 10 seconds and then powering it back up)
> and headset (by charging it for 5-10 seconds), but this didn't solve the
> problem either. I also sent an email to T-mobile's tech support, but I
> haven't gotten a response back yet. I know it's not my headset itself
> that is the problem because it still works fine with my previous phone
> (LG enV/VX9900).
>
> Is this an Android compatibility issue? If so, is this something that's
> being worked on?

Bluetooth voice dialing support was added in the cupcake codebase.
It's not in 1.0.

Nick Pelly
Android Systems Engineer

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

2008-12-21 Thread Raymond Rodgers

I just signed up for service with T-mobile and got a G1 yesterday, and 
right away paired it with my Jabra BT5020 which I've had for about a 
year now. Right off the bat I  discovered that using the headset's call 
button does not trigger the voice dialing/command feature of the 
G1/Android. As it wasn't urgent, I dismissed that, and did a bit of 
research later. It appears that this functionality is hit and miss with 
various bluetooth headsets; some messages on various forums report that 
some headsets work perfectly while others don't, some say that it just 
doesn't work with Jabra headsets, and still others claim that it's only 
Jabra headsets that have the problem.

I contacted Jabra's tech support and they suggested resetting the phone 
(by removing the battery for 10 seconds and then powering it back up) 
and headset (by charging it for 5-10 seconds), but this didn't solve the 
problem either. I also sent an email to T-mobile's tech support, but I 
haven't gotten a response back yet. I know it's not my headset itself 
that is the problem because it still works fine with my previous phone 
(LG enV/VX9900).

Is this an Android compatibility issue? If so, is this something that's 
being worked on?

Thanks,
Raymond

P.S. JBQ & Diane if you read this: Fancy meeting you here! ;-) Tell 
Marco I say "Hi."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 import an already setup Layout in code?

2008-12-21 Thread Moto

Thanks Mark!

I'm very happy with your reply! It works!

The first Tutorial did the trick but a couple things were deprecated.

Here is my final getView Function:

public View getView(int position, View convertView, ViewGroup
parent) {
ElementData radioInfo = radioList.get(position);
View inflatedElementView = View.inflate(context,
R.layout.radio_stream_element_list_bk, null);

//Set Radio Element Information
TextView nowPlaying=(TextView)inflatedElementView.findViewById
(R.id.textNowPlaying);
nowPlaying.setText(radioInfo.getStationName());

TextView genreType =(TextView)inflatedElementView.findViewById
(R.id.textNowPlaying2);
genreType.setText(radioInfo.getGenre());

return inflatedElementView;
}

-Moto
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 import an already setup Layout in code?

2008-12-21 Thread Mark Murphy

Moto wrote:
> Hello currently I'm making my custom ListAdapter and I add my Text
> Views the following way:
> 
> LinearLayout.LayoutParams radioParams = new LinearLayout.LayoutParams
> (320,  LayoutParams.FILL_PARENT);
> 
> radioParams.setMargins(1, 1, 1, 1);
> TextView stationName = new TextView( context );
> stationName.setText( radioInfo.getStationName() );
> stationName.setTextSize(14f);
> stationName.setTextColor(Color.WHITE);
> addView( stationName, radioParams);
> 
> 
> I already have a layout that I want to use for each element
> essentially would be nice if I could just call something like:
> 
> setContentView(R.layout.station_list_element);
> 
> or
> 
> LinearLayout radioParams = new LinearLayout(context,
> R.layout.station_list_element );
> radioParams.textNowPlaying= "Chemical Brothers"
> 
> 
> So that for sure that won't work but how can I create a LinearLayout
> and import my settings which are on my xml? Then how could I access
> the individual fields to update the text on them?

getLayoutInflater().inflate() will inflate an XML layout, returning to
you the root View of the layout. From there, calling findViewById() on
the root View of the layout will give you access to Views within that
layout.

You can see examples of all of this, in the context of custom
ListAdapters, in my Fancy ListViews blog series over on AndroidGuys:

http://androidguys.com/?s=fancy+listviews

Most of the earlier ones in the series are for the older M5 SDK, but the
concepts still hold. Also, forgive the formatting -- AndroidGuys updated
their WordPress theme and my older posts are a bit malformed as a result.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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] How to import an already setup Layout in code?

2008-12-21 Thread Moto

Hello currently I'm making my custom ListAdapter and I add my Text
Views the following way:

LinearLayout.LayoutParams radioParams = new LinearLayout.LayoutParams
(320,  LayoutParams.FILL_PARENT);

radioParams.setMargins(1, 1, 1, 1);
TextView stationName = new TextView( context );
stationName.setText( radioInfo.getStationName() );
stationName.setTextSize(14f);
stationName.setTextColor(Color.WHITE);
addView( stationName, radioParams);


I already have a layout that I want to use for each element
essentially would be nice if I could just call something like:

setContentView(R.layout.station_list_element);

or

LinearLayout radioParams = new LinearLayout(context,
R.layout.station_list_element );
radioParams.textNowPlaying= "Chemical Brothers"


So that for sure that won't work but how can I create a LinearLayout
and import my settings which are on my xml? Then how could I access
the individual fields to update the text on them?

Thanks!

here is my "station_list_element.xml"

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


http://schemas.android.com/apk/res/android";
android:text="Katy Perry"
android:textStyle="bold"
android:textColor="#ff"
android:textSize="20sp"
android:layout_marginLeft="8px"
android:layout_marginTop="5px"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
http://schemas.android.com/apk/res/android";
android:text="I kissed a girl"
android:textStyle="bold"
android:textColor="#ff"
android:textSize="20sp"
android:layout_marginLeft="8px"
android:layout_marginTop="5px"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>


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

2008-12-21 Thread Christine

Do we know when cupcake will be released? How much time will there be
between release of the sdk, and the release for commercial phones? I
guess a lot of apps will need some rework for this release.

On Dec 20, 5:28 pm, Disconnect  wrote:
> There is such an option. Its called "ADP1" .. the Android -Developer- Phone
> 1.
>
> I'm terribly sorry if you bought a phone from a whole different company and
> are now unhappy with it, but you should take that up with the company in
> question (T-mobile). Technically it is a very simple change (ro.secure = 0
> in properties, or ship the 'su' binary that is part of the platform.)
>
> ..I want a pony.
>
> On Sat, Dec 20, 2008 at 1:31 AM, Peter Fisher  wrote:
> > I wish it had multi touch support the browser would be so much better if
> > they did. =(
>
> > Also there should be an option to allow root access to the device for
> > developers...
>
> > On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans 
> > wrote:
>
> >> What do you mean there is another SD slot? There is only 1 :) + 64mb
> >> internal mem.
>
> >> On Dec 19, 2:56 pm, "Xavier Mathews"  wrote:
> >> > I thought there was another sd slot?
>
> >> > On 12/19/2008, Mark K  wrote:
>
> >> > >   Looks good, will have camcorder support which is huge! It needed to
> >> > > support recording video, since all the other 'smart phone' platforms
> >> > > do also. Hopefully it will be an easy upgrade for the G1.
>
> >> > >              Mark
>
> >> > > On Dec 19, 9:37 am, TmobileG1Fans  wrote:
> >> > >> I think it's going to be awesome OS update but then again I wish apps
> >> > >> still would be installable from SD card and not OS, i mean this os is
> >> > >> going to take more space and most people are already using 80% of
> >> > >> their internal card.
>
> >> > >> Hope they will address that issue:
>
> >> > >> Info about
> >> > >> CupCake:
> >>http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-...
>
> >> > --
> >> > Xavier A. Mathews
> >> > Student/Browser Specialist/Developer/Web-Master
> >> > Client Based Tech Support Specialist
> >> > Hazel Crest Illinois
> >> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> >> > "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Thought's On Android CupCake?

2008-12-21 Thread Christine

Do we know when cupcake will be released? How much time will there be
between release of the sdk, and the release for commercial phones? I
guess a lot of apps will need some rework for this release.

On Dec 20, 5:28 pm, Disconnect  wrote:
> There is such an option. Its called "ADP1" .. the Android -Developer- Phone
> 1.
>
> I'm terribly sorry if you bought a phone from a whole different company and
> are now unhappy with it, but you should take that up with the company in
> question (T-mobile). Technically it is a very simple change (ro.secure = 0
> in properties, or ship the 'su' binary that is part of the platform.)
>
> ..I want a pony.
>
> On Sat, Dec 20, 2008 at 1:31 AM, Peter Fisher  wrote:
> > I wish it had multi touch support the browser would be so much better if
> > they did. =(
>
> > Also there should be an option to allow root access to the device for
> > developers...
>
> > On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans 
> > wrote:
>
> >> What do you mean there is another SD slot? There is only 1 :) + 64mb
> >> internal mem.
>
> >> On Dec 19, 2:56 pm, "Xavier Mathews"  wrote:
> >> > I thought there was another sd slot?
>
> >> > On 12/19/2008, Mark K  wrote:
>
> >> > >   Looks good, will have camcorder support which is huge! It needed to
> >> > > support recording video, since all the other 'smart phone' platforms
> >> > > do also. Hopefully it will be an easy upgrade for the G1.
>
> >> > >              Mark
>
> >> > > On Dec 19, 9:37 am, TmobileG1Fans  wrote:
> >> > >> I think it's going to be awesome OS update but then again I wish apps
> >> > >> still would be installable from SD card and not OS, i mean this os is
> >> > >> going to take more space and most people are already using 80% of
> >> > >> their internal card.
>
> >> > >> Hope they will address that issue:
>
> >> > >> Info about
> >> > >> CupCake:
> >>http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-...
>
> >> > --
> >> > Xavier A. Mathews
> >> > Student/Browser Specialist/Developer/Web-Master
> >> > Client Based Tech Support Specialist
> >> > Hazel Crest Illinois
> >> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> >> > "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: support for ad2p and others

2008-12-21 Thread Kaisershrout

Merged implementations into the OS:  looks promising!

http://source.android.com/roadmap/cupcake

On Nov 14, 4:44 pm, "Dan Pou"  wrote:
> I don't have the particular reference, but I believe that the Android
> developers held off including advanced bluetooth because the API was in
> transition.  Currently Bluez is under going major conversion 3.x - 4.x.  I
> assume that once 4.x is stable (i.e. appears in the major Linux
> distributions), it will be updated for Android.
>
> I am eagerly awaiting support as well.  This would really tilt things in my
> favor with the friendly rivalry I have with some iphone users.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Phone?DIY

2008-12-21 Thread clark

Perhaps your DIY acronym is different from the mainstream, which is
"Do-It Yourself"

Some details would be great, assuming you are asking a legit question.


~clark

On Dec 20, 7:34 pm, "cer...@gmail.com"  wrote:
> Can the phone DIY?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] email adress from Contacts.ContactMethods. (again!)

2008-12-21 Thread jphdsn

to get email adress ao one contact, I tried

String[] PROJECTION = new String[] {Contacts.ContactMethods._ID };

Cursor cu =
getContentResolver().query
(Contacts.ContactMethods.CONTENT_EMAIL_URI,
PROJECTION,Contacts.ContactMethods.PERSON_ID
+"=\'"+IDPerson+"\'",null,null);

startManagingCursor(cu);



I found one person that I selected  by a cursor that I build before

 Cursor nameCursor = managedQuery(People.CONTENT_URI, new String[] {
People._ID, People.NAME 
}, null, null, null);

 and I selected one  id

String IDPerson = nameCursor.getString(nameCursor.getColumnIndex
(People._ID));

Could I use this code to get The mail adress  of the person with the
ID: IDPerson  and how!

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



[android-developers] Re: Can I use string begin with '@' in XML

2008-12-21 Thread Oxygen

This worked correct.
Thank you for your advice.

On 12月21日, 上午1时03分, Al  wrote:
> Have you tried escaping it with a \? So in your case value="\...@home"/>
>
> On Dec 19, 3:07 pm, Oxygen  wrote:
>
> > Hello All,
>
> > In android resource, prefix '@' is used to reference another resource.
> > But I want to set an attribute with a string begin with '@', instead
> > of reference resource.
> > For example 
> > How can I escaping the '@'?
>
> > yours,
> > Oxygen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: upgrade emulator firmware

2008-12-21 Thread fry

I think I can try to modify tools/lib/images/system.img file to
achieve this - the simple way I see is to mount it on my local system
in write mode, put modified files to it, unmount and boot emulator
with modified image. Will this way work at least in theory?

On practice, I even can't mount it:

sudo mount -o loop,offset=32256 -t yaffs2 system.img ./tmp/
mount: unknown filesystem type 'yaffs2'


On Dec 21, 2:14 pm, fry  wrote:
> Hello,
>
> I'm trying to upgrade firmware in emulator or some parts inside it. I
> have root shell, I can replace any libraries/binaries in the /system
> directory, but after I reboot all my changes are reverted back.
>
> How can I switch this off? For example, if I compile some of
> opensource part of android platform (specific library), how can I push
> it to the emulator and test it?
>
> I also tried to appy rc30 update for G1 to the emulator - following
> thishttp://www.intomobile.com/2008/11/10/force-android-rc-30-update-on-yo...
> or 
> thishttp://www.intomobile.com/2008/11/03/force-a-software-update-on-your-...
> instructions (there are may available with the same info)
> I can copy update.zip to the root of the emulated sd card, but the 2nd
> step is "Turn it back on while holding down the “Power” (End Call) and
> “Home” buttons". As I understand, this is special phone startup method
> which enables update process - I can't do the same with the emulator
> because I start it just with the command "emulator" which means usual
> start - probably it might have special command line parameter and
> achieve the same result as with G1 phone "power+home" combination.
>
> Thank's
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] email adresses from Contacts.ContactMethods

2008-12-21 Thread jphdsn

hi,
how to get the email adresses from Contacts.ContactMethods
I tried a lot of things without success...


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] upgrade emulator firmware

2008-12-21 Thread fry

Hello,

I'm trying to upgrade firmware in emulator or some parts inside it. I
have root shell, I can replace any libraries/binaries in the /system
directory, but after I reboot all my changes are reverted back.

How can I switch this off? For example, if I compile some of
opensource part of android platform (specific library), how can I push
it to the emulator and test it?

I also tried to appy rc30 update for G1 to the emulator - following
this
http://www.intomobile.com/2008/11/10/force-android-rc-30-update-on-your-t-mobile-g1-and-keep-root-access.html
or this
http://www.intomobile.com/2008/11/03/force-a-software-update-on-your-t-mobile-g1-update-t-mobile-g1-to-android-rc29.html
instructions (there are may available with the same info)
I can copy update.zip to the root of the emulated sd card, but the 2nd
step is "Turn it back on while holding down the “Power” (End Call) and
“Home” buttons". As I understand, this is special phone startup method
which enables update process - I can't do the same with the emulator
because I start it just with the command "emulator" which means usual
start - probably it might have special command line parameter and
achieve the same result as with G1 phone "power+home" combination.

Thank's
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Issue regarding Changing textColor

2008-12-21 Thread De San Nicolas Jean Philippe
hi...

try this   android:textColor="#FF00"

2008/12/21 nithin warier 

> I tried a lot to change the textColor using xml, like
>
> android:textColor = "7FFF00",
> android:textColor = "0x700"
> android:textColor = "@drawable/blue"
>
> like that...
>
> but i cant change the text Color, still showing the default color, i
> changed the backGround Color, but cant change the texColor
>
> what to do, for this
>
> Nithin
>
>  android:layout_height="wrap_content" android:text="Nithin, the crazy Guy"
> android:textSize = "30px" android.textColor = "0x7FFF00" android:textStyle =
> "italic" android:gravity = "center" android:layout_x = "10px"android:layout_y 
> = "180px" />
>
> >
>

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



[android-developers] Issue regarding Changing textColor

2008-12-21 Thread nithin warier
I tried a lot to change the textColor using xml, like

android:textColor = "7FFF00",
android:textColor = "0x700"
android:textColor = "@drawable/blue"

like that...

but i cant change the text Color, still showing the default color, i changed
the backGround Color, but cant change the texColor

what to do, for this

Nithin



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Locking Down Root Access - Same Sh.., Different Vendor

2008-12-21 Thread Al Sutton

I'd prefer to see more Android 'phones in the hands of users than to see 
every Android phone have a developer mode.

The G1 is a consumer device and should be designed as such (including 
things like minimising/eliminating the possibility for users to brick  
the device by using a home-brew firmware). The DP1 is the dev 'phone 
which you can brick to your hearts content if you so wish.

Yes it's annoying that the DP1 was only announced after many of us had 
bought G1s, yes it would be nice to have a G1 that we could use like a 
DP1, but that's not the main purpose the G1 is designed to serve.

Al.


mashpl...@gmail.com wrote:
> Hi Thanks for responding, sorry for posting in the wrong place but
> this is the group that's impacted.  I think the open community can
> respond possibly using a open source license that does not allow
> "TIVO" style hardware lock-down.  In addition Google can provide
> certification programs that require device manufacturers to
> demonstrate open implementations of Android in order to use the
> Android logo.   Last Google could market their "unlocked" developer
> phone for general use.
>
> ps.  is your book available yet?  I just looked at your website, good
> luck with your business model.
>
> On Dec 21, 10:37 am, Mark Murphy  wrote:
>   
>> First, this sort of topic belongs on [android-discuss], since this list
>> is for assistance on application development.
>>
>> mashpl...@gmail.com wrote:
>> 
>>> Please do not allow the carriers to lock the phones down.
>>>   
>> Android is licensed under the Apache License 2.0. Hardware manufacturers
>> and carriers can do what they wish within the confines of that license.
>>
>> If you want to complain about locked-down phones, complain to carriers
>> and device makers. Hope that some innovative device makers make devices
>> that are not locked down, and that the market rewards them for it.
>>
>> --
>> Mark Murphy (a Commons Guy)http://commonsware.com
>> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>> 
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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

2008-12-21 Thread Al Sutton

Maybe he wants it to put some shelves up for him :).

Al.

David Turner wrote:
> what are you talking about ?
>
> On Sun, Dec 21, 2008 at 4:34 AM, cer...@gmail.com 
>  mailto:cer...@gmail.com>> 
> wrote:
>
>
> Can the phone DIY?
>
>
>
> >


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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

2008-12-21 Thread Al Sutton

I'd guess it's more likely a mistake and someone deleted North and South 
Korea for the list of valid countries.

Al.

freeanderson wrote:
> Yes, right. Here is South Korea.
> I don't understand why South Korea is not included in the list.
> Even Uganda has been included. It doesn't make a sense.
> I wonder whether Google is having a special plan for Korea though.
>
> On Dec 21, 3:32 pm, "Justin Collum"  wrote:
>   
>> Is there a South Korea?
>>
>> On Sat, Dec 20, 2008 at 2:03 AM, freeanderson wrote:
>>
>>
>>
>> 
>>> Hi,
>>>   
>>> I'm an android developer living in South Korea and interesting at
>>> Android Market.
>>> Sometimes ago I have tried billing in the market to join.
>>> But there is no 'Korea' in the country list on billing page.
>>> How can I join and billing it? Isn't Korean Android developer accepted
>>> to join to Android Market?
>>> (Sorry, I couldn't find android market newsgroup so wrote here)
>>>   
>>> Thank you.
>>> Andy
>>>   
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get all list of running applications onto the emulator.

2008-12-21 Thread jphdsn

this file manager lists all files in android, by sorting the appyou
can do your work.
http://www.anddev.org/generalized_file_manager_2_-_gfm20-t397.html

On Dec 21, 9:20 am, "Dianne Hackborn"  wrote:
> Use the PackageManager class to find out about installed apps, and
> ActivityManager has some information about running stuff, though it won't be
> until cupcake that we have a list of running apps available.
>
> On Sat, Dec 20, 2008 at 2:45 AM, Raj  wrote:
>
> > Hi,
> >   I want make a list of applications. How many applications installed
> > on to the emulator and among that how many are in running mode at the
> > background. How to get the applications list ?
>
> > Please reply us..
> > Raj
>
> --
> 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.  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: Market Limitation

2008-12-21 Thread freeanderson

Yes, right. Here is South Korea.
I don't understand why South Korea is not included in the list.
Even Uganda has been included. It doesn't make a sense.
I wonder whether Google is having a special plan for Korea though.

On Dec 21, 3:32 pm, "Justin Collum"  wrote:
> Is there a South Korea?
>
> On Sat, Dec 20, 2008 at 2:03 AM, freeanderson wrote:
>
>
>
> > Hi,
>
> > I'm an android developer living in South Korea and interesting at
> > Android Market.
> > Sometimes ago I have tried billing in the market to join.
> > But there is no 'Korea' in the country list on billing page.
> > How can I join and billing it? Isn't Korean Android developer accepted
> > to join to Android Market?
> > (Sorry, I couldn't find android market newsgroup so wrote here)
>
> > Thank you.
> > Andy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MediaStore.Audio.AudioColumns.ALBUM_ART returns -1

2008-12-21 Thread Protocol-X

has anyone sucessfully been able to access album art?  it always
returns a -1 when trying to use it
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Camera Preview is rotated 90. (auto rotates unless keyboard is out)

2008-12-21 Thread chrispix

Any suggestions?

I have made my camera surface preview an activity. While it is set
inside a tab (portrait) it does not matter if i set the surfacepreview
activity in the manifest as portrait or landscape, it is always set to
landscape.

I can't have my application turn all the tabs into landscape view. I
was hoping that I could show the activity inside my tab (which I can
ok - so I am pretty sure my code - while ugly) is working fine as an
activity.

Chris.

On Dec 21, 12:17 am, blindfold  wrote:
> It is a known G1 bug. See 
> alsohttp://groups.google.com/group/android-developers/browse_thread/threa...
>
> A workaround is to design your app for landscape mode and force it to
> always run in that mode, for instance by using
> android:screenOrientation="landscape" in the manifest. It is not the
> preview but your app then that rotates to match the fixed preview
> orientation.
>
> Regards
>
> On Dec 21, 4:15 am, chrispix  wrote:
>
>
>
> > Hopefully this makes sense. I have a camerapreview on a surface, the
> > issue is that it rotated 90degrees. If I rotate the phone the camera
> > preview is still rotated 90 degrees, so it must be using the
> > accelerometer to determine upright.
>
> > If I slide the keyboard out, it fixes it and the image is then
> > vertical. Any suggestions? I have tried the following :
>
> > Camera.Parameters p = camera.getParameters();
> > p.set("rotation", 0);
>
> >         surfaceHolder.getSurface();
> >         Surface.setOrientation(Display.DEFAULT_DISPLAY,
> > Surface.ROTATION_180);
>
> > Any other suggestions?- 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
-~--~~~~--~~--~--~---



  1   2   >