[android-developers] Re: How to call an activity of other app from another app

2009-06-24 Thread manoj

Hi, thanks for your help.

Its working fine for me.

Thank you very much.

On Jun 25, 11:04 am, Sujay Krishna Suresh 
wrote:
> Intent i = new Intent();
> //do all ur put extras set data's here...
> i.setComponent(new ComponentName(,
>  ));
> startActivity(i);
>
>
>
>
>
> On Thu, Jun 25, 2009 at 11:29 AM, manoj  wrote:
>
> > can you show me some piece of code?
>
> > Thanks,
> > Manoj.
>
> > On Jun 25, 10:49 am, Sujay Krishna Suresh 
> > wrote:
> > > yes it is possible... make use of the setcomponentname method in ur
> > > intent...
>
> > > On Thu, Jun 25, 2009 at 11:16 AM, manoj 
> > wrote:
>
> > > > Hi,
>
> > > > How can I call an activity of app A from app B.
>
> > > > Is it possible? if so how?
>
> > > > Thanks,
> > > > Manoj.
>
> > > --
> > > Regards,
> > > Sujay
> > > Yogi Berra 
> >  -
> > > "I never said most of the things I said."
>
> --
> Regards,
> Sujay
> Bill Cosby   -
> "A word to the wise ain't necessary - it's the stupid ones that need the
> advice."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 display Japanese character on TextView

2009-06-24 Thread Saurav Mukherjee
well, i dont know where the locale settings r in 1.1. it is better to
upgrade, i mean there is no harm. but u cud try spending some more time to
find out how u change the locale settings in 1.1.

On Thu, Jun 25, 2009 at 12:01 PM, Hiro  wrote:

>
> I mistook the word of locale...
>
> Currently I use Android SDK 1.1, should I upgrade it to v.1.5?
> It seems to me there is no "locale" in "settings" on Android
> emulator...
>
> >
>

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



[android-developers] Re: How to display Japanese character on TextView

2009-06-24 Thread Hiro

I mistook the word of locale...

Currently I use Android SDK 1.1, should I upgrade it to v.1.5?
It seems to me there is no "locale" in "settings" on Android
emulator...

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



[android-developers] Re: How to call an activity of other app from another app

2009-06-24 Thread 楊健
I think it do not work unless do something in the target app’s manifest.xml



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

android:exported

Whether or not the activity can be launched by components of other
applications - "true" if it can be, and "false" if not. If "false", the
activity can be launched only by components of the same application or
applications with the same user ID.

I have not test this yet!

Hope this can help you.



  _

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Sujay Krishna
Suresh
Sent: Thursday, June 25, 2009 3:04 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: How to call an activity of other app from
another app



Intent i = new Intent();
//do all ur put extras set data's here...
i.setComponent(new ComponentName(,
 ));
startActivity(i);

On Thu, Jun 25, 2009 at 11:29 AM, manoj  wrote:


can you show me some piece of code?

Thanks,
Manoj.

On Jun 25, 10:49 am, Sujay Krishna Suresh 
wrote:

> yes it is possible... make use of the setcomponentname method in ur
> intent...
>

> On Thu, Jun 25, 2009 at 11:16 AM, manoj  wrote:
>
> > Hi,
>
> > How can I call an activity of app A from app B.
>
> > Is it possible? if so how?
>
> > Thanks,
> > Manoj.
>
> --

> Regards,
> Sujay
> Yogi Berra 
-

> "I never said most of the things I said."






--
Regards,
Sujay
Bill Cosby    -
"A word to the wise ain't necessary - it's the stupid ones that need the
advice."


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

2009-06-24 Thread Sujay Krishna Suresh
Hi everyone,
i live in India and i wanna own an android phone...
can anyone gimme suggestions as to wat phone i can buy, from where to buy &
wat'd be d approx cost???

-- 
Regards,
Sujay
Laurence J. 
Peter
- "If two wrongs don't make a right, try three."

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

2009-06-24 Thread Alejandro

The Rogers HTC Magic phone is using the 'p' as a pause, but it seems
they haven't changed the PhoneNumberUtils.PAUSE to reflect this. This
is rather unfortunate, because it makes the Rogers build non-standard
and my app breaks. I would hope in the future there are no more
deviations of the standard SDK, otherwise, developing for the Android
platform will become harder.

Alejandro

On Apr 26, 9:57 pm, Dianne Hackborn  wrote:
> At this point there is no "HTC Magic."  I would assume that these people are
> using one of the leaked builds of 1.5, which is from some random pre-final
> build of 1.5 with some random set of changes HTC as done on it.  I would not
> spend my time trying to support it at this point, as it is not a real
> product.
>


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

2009-06-24 Thread Saurav Mukherjee
well its not location, its locale. go to settings-->locale and text-->change
the locale.

On Thu, Jun 25, 2009 at 11:24 AM, Hiro  wrote:

>
> > it's just a suggestion, u can change the locale, that wud print
> everything
> > in japanese...
>
> Would you tell me how to change the location for Android emulator?
> >
>

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



[android-developers] Re: How to call an activity of other app from another app

2009-06-24 Thread Sujay Krishna Suresh
Intent i = new Intent();
//do all ur put extras set data's here...
i.setComponent(new ComponentName(,
 ));
startActivity(i);

On Thu, Jun 25, 2009 at 11:29 AM, manoj  wrote:

>
> can you show me some piece of code?
>
> Thanks,
> Manoj.
>
> On Jun 25, 10:49 am, Sujay Krishna Suresh 
> wrote:
> > yes it is possible... make use of the setcomponentname method in ur
> > intent...
> >
> > On Thu, Jun 25, 2009 at 11:16 AM, manoj 
> wrote:
> >
> > > Hi,
> >
> > > How can I call an activity of app A from app B.
> >
> > > Is it possible? if so how?
> >
> > > Thanks,
> > > Manoj.
> >
> > --
> > Regards,
> > Sujay
> > Yogi Berra 
>  -
> > "I never said most of the things I said."
> >
>


-- 
Regards,
Sujay
Bill Cosby   -
"A word to the wise ain't necessary - it's the stupid ones that need the
advice."

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

2009-06-24 Thread manoj

can you show me some piece of code?

Thanks,
Manoj.

On Jun 25, 10:49 am, Sujay Krishna Suresh 
wrote:
> yes it is possible... make use of the setcomponentname method in ur
> intent...
>
> On Thu, Jun 25, 2009 at 11:16 AM, manoj  wrote:
>
> > Hi,
>
> > How can I call an activity of app A from app B.
>
> > Is it possible? if so how?
>
> > Thanks,
> > Manoj.
>
> --
> Regards,
> Sujay
> Yogi Berra   -
> "I never said most of the things I said."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 display Japanese character on TextView

2009-06-24 Thread Hiro

> it's just a suggestion, u can change the locale, that wud print everything
> in japanese...

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



[android-developers] Re: How to call an activity of other app from another app

2009-06-24 Thread Sujay Krishna Suresh
yes it is possible... make use of the setcomponentname method in ur
intent...

On Thu, Jun 25, 2009 at 11:16 AM, manoj  wrote:

>
> Hi,
>
> How can I call an activity of app A from app B.
>
> Is it possible? if so how?
>
> Thanks,
> Manoj.
> >
>


-- 
Regards,
Sujay
Yogi Berra   -
"I never said most of the things I said."

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

2009-06-24 Thread manoj

Hi,

How can I call an activity of app A from app B.

Is it possible? if so how?

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

2009-06-24 Thread Saurav Mukherjee
it's just a suggestion, u can change the locale, that wud print everything
in japanese...

On Thu, Jun 25, 2009 at 10:49 AM, Hiro  wrote:

>
> Hi,
>
> I'm tring to create SMTP-POP3 mailer application on Android.
> Then I came across a problem when I display e-mail written in
> Japanease.
>
> The subject and body string which is correctly decode (Base64 ,QP, JIS
> -> UTF8) cannot display
> on TextView.
>
> Are there any way which I should do to display Japanese on TextView?
>
> Thx,
> Hiro
> >
>

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



[android-developers] Re: Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread JC

Dear sir,

Actually I meant if there is no five-navigation key or trackball, only
reserve 5 app keys, any potential risk or problem may have? thank you
for answering.

BR,
JC

Delta Foxtrot wrote:
> 2009/6/25 JC 
>
> >
> > Dear sir,
> >
> > Any potential risk or problem may have if I remove five-navigation
> > key?
> > My understanding is some games might need five-navigation key, what
> > else applications may be affected? thanks.
> >
>
> The G1/HTC Dream and other HTC phones use a trackball that is clickable
> instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 display Japanese character on TextView

2009-06-24 Thread Hiro

Hi,

I'm tring to create SMTP-POP3 mailer application on Android.
Then I came across a problem when I display e-mail written in
Japanease.

The subject and body string which is correctly decode (Base64 ,QP, JIS
-> UTF8) cannot display
on TextView.

Are there any way which I should do to display Japanese on TextView?

Thx,
Hiro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Steps for Implementing the SOAP Protocol In Android.

2009-06-24 Thread android.vinny

Hi Every One

Can Any Body explain the Steps for Implementing the SOAP Protocol In
Android.

I have a two methods to call from the server and to get the data from
the server 

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



[android-developers] Re: Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread Delta Foxtrot
2009/6/25 JC 

>
> Dear sir,
>
> Any potential risk or problem may have if I remove five-navigation
> key?
> My understanding is some games might need five-navigation key, what
> else applications may be affected? thanks.
>

The G1/HTC Dream and other HTC phones use a trackball that is clickable
instead.

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

2009-06-24 Thread som

As i was delving into the source code of Android View and Widget, i
found out that it may be explained in the lights of composite design
pattern. i have written my observations in my blog which can be found
at

http://som-itsolutions.blogspot.com/2009/06/composite-design-pattern-in-android.html

Please let me know whether it is easier to understand the Android view
and Widget from this point of view or not.

Will be looking forward to some suggestions on how this write-up can
be improved so that it explains the design principles behind Android
view and Widget in a more lucid manner.

Somenath


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

2009-06-24 Thread biAji


http://code.google.com/p/android-astrid/source/browse/trunk/res/layout/main.xml

is this helpful?

On Jun 21, 11:45 am, Hendrawan  wrote:
> Please some one can help me, where i can get example code for multi
> view programming in android.
> 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: Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread JC

Dear sir,

Any potential risk or problem may have if I remove five-navigation
key?
My understanding is some games might need five-navigation key, what
else applications may be affected? thanks.

BR,
JC

David Turner wrote:
> On Wed, Jun 24, 2009 at 5:57 AM, JC  wrote:
>
> >
> > Dear sir,
> >
> > I learnt that there is a "recommended" minimum device requirements for
> > Android device, however if I want to develop a device without five-way
> > navigation key, is this allowed?
> >
>
> The framework and many applications will assume there is some sort of 5-way
> navigation (DPad or trackball, or something else).
> You're free to modify the system as you wish, just don't expect to run
> anything Android on it if it breaks a few rules.
>
>
> > BR,
> > JC
> >
> >
> > >
> >
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Profiling Andriod apps

2009-06-24 Thread Brett Chabot

No official support, but there was a presentation on this exact
subject at this year's EclipseCon:

http://live.eclipse.org/node/710

On Tue, Jun 23, 2009 at 9:07 PM, green wrote:
>
> Hi, Can I use Eclipse TPTP (Test and Performance Tools Platform) to
> profile android applications? 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] Invitation to connect on LinkedIn

2009-06-24 Thread Abhinav Iitm_06
LinkedIn




   
I'd like to add you to my professional network on LinkedIn.

- Abhinav

Learn more:
https://www.linkedin.com/e/isd/629396945/qpaNgC6m/


 
--
(c) 2009, LinkedIn Corporation


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



[android-developers] Re: Skins / themes in app drawer

2009-06-24 Thread nEx.Software

Wow, that's great. It will allow widgets to not get bad reviews
because they "don't launch" (or all those skins) without filling the
launcher. Wish I'd have seen this earlier...

On Jun 24, 12:23 pm, Peli  wrote:
> > you can have an activity with the MAIN
> > action an INFO category (this was introduced in Cupcake).
>
> Great! I guess many of us have waited for this feature! :-)
>
> I just found it by accident a couple of days ago when I had to look at
> the Intent documentation, but I was not fully sure what it was for
> (there was no mentioning of Market using it).
>
> Peliwww.openintents.org
>
> On Jun 24, 9:09 pm, Dianne Hackborn  wrote:
>
>
>
> > If you don't want any activities at all in the home screen, but to still
> > have something launched from Market, you can have an activity with the MAIN
> > action an INFO category (this was introduced in Cupcake).
> > If you are saying the app has lots of launcher icons...  well, that is just
> > a broken app, and there is absolutely no reason for them to do that.
>
> > Other than that, I have no idea what you mean by "launchable but not in the
> > app drawer".  If it's not there, how does the user launch it?  (There is a
> > side issue about keeping that more organized as there is a larger number of
> > apps, but that is not really related.)
>
> > On Wed, Jun 24, 2009 at 1:30 AM, David Carson 
> > wrote:
>
> > > ok there's one app who is a big offender here - I think anyone who
> > > uses it will know which one I mean - its in the top paid apps - all
> > > the skins appear in the app drawer.
>
> > > And yet I can sort of understand why he's done it - because you have a
> > > choice of either including these lines in AndroidManifest.xml or not :
> > >            
> > >                
> > >                 > > android:name="android.intent.category.LAUNCHER" />
> > >            
>
> > > If you do, app can be launched and is in app drawer.
> > > If you don't, app can't be launched and is not in app drawer.
>
> > > What would be most useful is the inbetween, i.e. app can be launched
> > > and is not in app drawer. I've played around with all variations in
> > > xml file and nothing achieves this behavior.
>
> > > Publishers want skin packs to be launchable, so that when people
> > > download them wondering what they are, they can include some info
> > > directing you to a website or better still, straight to the main
> > > product in the market.
>
> > > But its inconsiderate to customers to fill up their app drawers with
> > > stuff that is just skin packs / themes.
>
> > > I don't think there is a solution to this, but I think its an issue
> > > that Android need to address.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] java.lang.IllegalArgumentException at android.view.Surface.lockCanvasNative(Native Method)

2009-06-24 Thread daniel.benedykt

Hi

I am getting the following error on the app, and I dont see where I
can cause this on my code.
Anyone knows what it can be?
Thanks

Daniel


06-24 23:13:50.580: ERROR/AndroidRuntime(624): Uncaught handler:
thread main exiting due to uncaught exception
06-24 23:13:50.679: ERROR/AndroidRuntime(624):
java.lang.IllegalArgumentException
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.Surface.lockCanvasNative(Native Method)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.Surface.lockCanvas(Surface.java:196)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.ViewRoot.draw(ViewRoot.java:1175)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.os.Looper.loop(Looper.java:123)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.app.ActivityThread.main(ActivityThread.java:3948)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
java.lang.reflect.Method.invokeNative(Native Method)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
java.lang.reflect.Method.invoke(Method.java:521)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
dalvik.system.NativeStart.main(Native Method)
06-24 23:13:50.718: INFO/Process(582): Sending signal. PID: 624 SIG: 3
06-24 23:13:50.718: INFO/dalvikvm(624): threadid=7: reacting to signal
3
06-24 23:13:50.740: ERROR/ActivityThread(582): Failed to find provider
info for android.server.checkin
06-24 23:13:50.740: ERROR/Checkin(582): Error reporting crash:
java.lang.IllegalArgumentException: Unknown URL 
content://android.server.checkin/crashes

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 stop sound notification/let it only play once?

2009-06-24 Thread Marco Nelissen
What Uri are you using for the notification sound? Sounds like the sound it
points to is a looping sound.


On Wed, Jun 24, 2009 at 6:39 PM, polzifer
wrote:

>
> Since i don't want to have double entries, but would like a fast
> spreading, here's my post:
>
>
>
> http://groups.google.com/group/android-beginners/browse_thread/thread/e17a1da30f922ebb#
>
> THx ,
>
> chris
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 stop sound notification/let it only play once?

2009-06-24 Thread polzifer

Since i don't want to have double entries, but would like a fast
spreading, here's my post:


http://groups.google.com/group/android-beginners/browse_thread/thread/e17a1da30f922ebb#

THx ,

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

2009-06-24 Thread Peter

As described previously, I have two threads that use a handler to
update items in a ListView Adapter. However, as they load, they
briefly show up in two spots in the list. This is really annoying, but
I can't figure out exactly what is going on. One thought I have is
that the reason I see this happen is because of the slowness of the
icons loading, and if it was faster, I wouldn't notice it.

Has anyone else seen an item in a ListView briefly displayed twice? In
my example, if there are six items visible, 1 loads, 6 mirrors it, 2
loads, 5 mirrors it, 3 loads, 4 loads, 5 reloads, 6 reloads.

My code uses a similar pattern to something like the Settings - Manage
Applications page.

On Jun 24, 10:52 am, Peter  wrote:
> No, getView() itself is quite simple. There are threads running while
> getView() is being called, but no threads spawned inside getView().
>
> On Jun 24, 8:24 am, Guru  wrote:
>
>
>
> > Are you running any thread in the getView of the adapter?
>
> > On Wed, Jun 24, 2009 at 2:04 PM, Peter  wrote:
>
> > > I have a listview that is populated by a couple threads that pull in
> > > data from the network. Before that data comes in, there are some
> > > default values displayed. When the screen loads, there are 6 items
> > > displayed, each with the default data. The 1st (index 0) loads and is
> > > updated on the screen, and then number 6 (index 5) is updated with
> > > that same info. Then, item 2 (index 1) loads, and then item 5 (index
> > > 4) mirrors that data. Then item 3 loads, then item 4 reloads with the
> > > correct data, then then item 5 with the correct data, then item 6.
>
> > > Why are items 5 and 6 briefly showing the data from other elements in
> > > the list? I can't figure out what in the world could be causing this.
>
> > --
> > Thanks and Regards
> > Gurudutt P.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: App adds a button to another app

2009-06-24 Thread Peli

Another way to put oneself into a built-in Android app, albeit only
into the Launcher, is by implementing the ACTION_CREATE_SHORTCUT.

(Other more trivial possibilities are CATEGORY_INFO for the Market
app, and CATEGORY_LAUNCHER for the Launcher app)

Yet another possibility is to implement the actions of the existing
Android apps, so that one is presented a choice which app to use (for
example for viewing a photo).

But I see the point that customer service could become very
complicated if people have problems with the built-in applications,
and it is not clear anymore, which part really is built-in and which
is an add-on.

Luckily, at OpenIntents, we can have a more experimental attitude
towards interacting with 3rd party apps, so we try to provide hooks
for other developers wherever possible. If one is missing, please let
us know :-)

Peli
www.openintents.org

On 25 Jun., 00:23, Dianne Hackborn  wrote:
> On Wed, Jun 24, 2009 at 3:12 PM, Mark Murphy wrote:
>
> > I've never seen a "share button" anywhere in Android. There is a "share
> > page" menu choice in Browser, but a quick survey of other built-in apps
> > that I use show neither a share button nor a share menu choice. Perhaps
> > I use all the wrong apps.
>
> Camera has a share option.  It is how you upload pictures to picasso, videos
> to youtube, send through e-mail, etc.  All of these features are just
> individual apps saying they can do that action.
>
> > The Browser's "share page" menu choice uses Intent.createChooser(),
> > which is cool and all, but that only seems to be used six times in the
> > current source code, based on Google Code Search:
>
> > MMS
> > Email (message composition?)
> > Music
> > Camera
> > Home (picking wallpaper, twice)
>
> > Are there other "share" buttons/menu choices/whatever in built-in
> > Android apps that are using other techniques for sharing besides
> > createChooser()?
>
> Those are probably the main uses.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: findviewbyid in service?

2009-06-24 Thread Taewoong Kim
  Hi Marco Nelissen
>
>
>
> I know you say.
>
> Well…
>
>
>
> But I would like to change key_image(icon) on runtime software keyboard
> which is developed by me.
>
> Android softkeyboard change xml file for changing only one key_icon(ex.
> search->ennter).
>
> I don’t like this way.
>
> So I want to modify only a key_icon in resource xml file.
>
>
>
> Is possible?
>
>
>
> *From:* android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] *On Behalf Of *Marco Nelissen
> *Sent:* Wednesday, June 24, 2009 11:33 PM
> *To:* android-developers@googlegroups.com
> *Subject:* [android-developers] Re: findviewbyid in service?
>
>
>
> Why do you need this? A service does not have a UI, so there should be no
> need to get a View.
>
>  On Wed, Jun 24, 2009 at 1:19 AM, brilliant winger 
> wrote:
>
>
> HI!
>
>
> I develop an application.
> This don't use activity class.
> only use service class..
>
> I need method(findviewbyid). but service don't have this method.
>
> how to use?
>
>
>
> >

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

2009-06-24 Thread 김태웅
Hi Marco Nelissen

 

I know you say.

Well…

 

But I would like to change key_image(icon) on runtime software keyboard
which is developed by me.

Android softkeyboard change xml file for changing only one key_icon(ex.
search->ennter).

I don’t like this way.

So I want to modify only a key_icon in resource xml file.

 

Is possible?

 

From: android-developers@googlegroups.com [mailto:android-
develop...@googlegroups.com] On Behalf Of Marco Nelissen
Sent: Wednesday, June 24, 2009 11:33 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: findviewbyid in service?

 

Why do you need this? A service does not have a UI, so there should be no
need to get a View.



On Wed, Jun 24, 2009 at 1:19 AM, brilliant winger  wrote:


HI!


I develop an application.
This don't use activity class.
only use service class..

I need method(findviewbyid). but service don't have this method.

how to use?





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



[android-developers] Re: Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread David Turner
On Wed, Jun 24, 2009 at 5:57 AM, JC  wrote:

>
> Dear sir,
>
> I learnt that there is a "recommended" minimum device requirements for
> Android device, however if I want to develop a device without five-way
> navigation key, is this allowed?
>

The framework and many applications will assume there is some sort of 5-way
navigation (DPad or trackball, or something else).
You're free to modify the system as you wish, just don't expect to run
anything Android on it if it breaks a few rules.


> BR,
> JC
>
>
> >
>

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

2009-06-24 Thread Romain Guy

Just put the header outside of the ListView :)

On Wed, Jun 24, 2009 at 3:44 PM, Mike wrote:
>
> There must be a way to do this.   How can you tell a ListView that has
> a header to not scroll it when the user scrolls the contents?  I want
> it to stay in a "stuck" position so that the user can always see what
> column the content applies to.
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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



[android-developers] Re: Can't use/set Ringtone?

2009-06-24 Thread polzifer

Hi. Did you solve this problem?

I think your uri wasn't correct as the filename
"content://settings/system/
ringtone" is not valid?



On 9 Mai, 09:13, Yan Shi  wrote:
> Has anyone got this problem?
>
> Need help.
>
> On May 9, 11:01 am, Yan Shi  wrote:
>
> > In 1.5, I can't setringtonefor my own app'snotificationand neither
> > can I get anynotificationsound.
>
> > I always get this:
> > E/MediaPlayerService(  542): Couldn't open fd for 
> > content://settings/system/ring
> > tone
> > E/MediaPlayer(  574): Unable to to create media player
> > W/NotificationService(  574): error loading sound for 
> > content://settings/system/
> >ringtone
> > W/NotificationService(  574): java.io.IOException: setDataSource
> > failed.: status
> > =0x8000
> > W/NotificationService(  574):   at
> > android.media.MediaPlayer.setDataSource(Nativ
> > e Method)
> > W/NotificationService(  574):   at
> > android.media.MediaPlayer.setDataSource(Media
> > Player.java:610)
> > W/NotificationService(  574):   at android.media.AsyncPlayer$Thread.run
> > (AsyncPla
> > yer.java:76)
>
> > And when I go to APIDemos->App->Notification->Status Bar and click
> > "Sound" button, I got the same error.
>
> > I am using Eclipse in Vista 32 with 1.5 R1. So what's wrong and how
> > can I do this?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How To Keep ListView Header From Scrolling With ListView Content

2009-06-24 Thread Marco Nelissen
The documentation is a bit misleading. A view that you add with
addHeaderView moves with the list, it's not fixed in place as the
documentation implies.
To add a static header, just take the view that you added with
addHeaderItem, and place it above the ListView in your layout.


On Wed, Jun 24, 2009 at 3:44 PM, Mike wrote:

>
> There must be a way to do this.   How can you tell a ListView that has
> a header to not scroll it when the user scrolls the contents?  I want
> it to stay in a "stuck" position so that the user can always see what
> column the content applies to.
>
> >
>

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

2009-06-24 Thread Gavin Aiken
Hi,

I run into a bunch of errors when running my app and calling these methods
from multiple threads.

Namely;

SqlLiteMisuseException (Library called out of sequence)

SqlLiteException (unknown)  Error while compiling statement

IllegalStateException trying to use a closed reference

I understand this is poor coding on my part but I'm in deep now and i was
wondering if anyone had some reference code for good database use. It has to
be from a helper class available to multiple threads and not be an activity
in itself. I'm doing more than just display items in a list and all I can
find is examples of code that use a database for that purpose.

// Called from multiple threads
public Filter getFilter(int _id) {
// A sub call to another db query method
Filter filter = getBasicFilterDetails(_id);

Cursor c = getFilterNodes(_id);

c.moveToFirst();

Map> filterNodes = new HashMap>();

while (!c.isAfterLast()) {
// Mapping to an object from DB rows

c.moveToNext();
}
c.close();
c = null;
// Return the output node
filter.setNodes(filterNodes);
return filter;
}

etc.

Should I just synchronize these methods?

Any thoughts appreciated.

Kind regards,

Gavin

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

2009-06-24 Thread Mike

There must be a way to do this.   How can you tell a ListView that has
a header to not scroll it when the user scrolls the contents?  I want
it to stay in a "stuck" position so that the user can always see what
column the content applies to.

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

2009-06-24 Thread fadden

On Jun 24, 12:20 pm, Stefan  wrote:
> I am trying to track some excessive memory allocations in my
> application. For some reason the use of
> Debug.setAllocationLimit  or VMDebug.setAllocationLimit  appears to
> have no effect.

DroidDoc sayeth:

 * The feature may be disabled in the VM configuration.  If so,
this
 * call has no effect, and always returns -1.

You can tell whether or not it's enabled by running "adb shell
dalvikvm -help" and looking for the configuration line:

  Configured with: debugger profiler hprof extra_gc_checks
dalvik_assert show_exception=1

If "alloc_limits" doesn't appear, it's not enabled in the VM you're
running.  Because it has small but nonzero performance consequences,
and didn't actually get used for much internally, it's disabled by
default.

You'd need to enable WITH_ALLOC_LIMITS in dalvik/vm/Android.mk and
rebuild the VM before you can use it.

In any event, it's more useful for regression tests (e.g. you declare
that some piece of code doesn't allocate memory, and let the alloc
limit fire if that changes).  The "allocation tracker" in the stand-
alone DDMS is probably more useful, though you need to insert some
pause-points in your app to give you a chance to manually start/update
the tracker around a specific piece of code.

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



[android-developers] Re: Showing Toasts in a service from worker threads with service reference.

2009-06-24 Thread Dianne Hackborn
You can go here: http://source.android.com/submit-patches

On Wed, Jun 24, 2009 at 1:21 PM, Richard Schilling <
richard.rootwirel...@gmail.com> wrote:

>
> Sounds good.  Thanks for the confirmation.
>
> I'd like to write some more documentation for the Looper class.  Where
> do I submit the patch?
>
> Richard
>
>
> >
>


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

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

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



[android-developers] Re: App adds a button to another app

2009-06-24 Thread Dianne Hackborn
On Wed, Jun 24, 2009 at 3:12 PM, Mark Murphy wrote:

> I've never seen a "share button" anywhere in Android. There is a "share
> page" menu choice in Browser, but a quick survey of other built-in apps
> that I use show neither a share button nor a share menu choice. Perhaps
> I use all the wrong apps.


Camera has a share option.  It is how you upload pictures to picasso, videos
to youtube, send through e-mail, etc.  All of these features are just
individual apps saying they can do that action.


> The Browser's "share page" menu choice uses Intent.createChooser(),
> which is cool and all, but that only seems to be used six times in the
> current source code, based on Google Code Search:
>
> MMS
> Email (message composition?)
> Music
> Camera
> Home (picking wallpaper, twice)
>
> Are there other "share" buttons/menu choices/whatever in built-in
> Android apps that are using other techniques for sharing besides
> createChooser()?


Those are probably the main uses.

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

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

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



[android-developers] Re: App adds a button to another app

2009-06-24 Thread Mark Murphy

Dianne Hackborn wrote:
> Sure, for the share button, and everywhere else you get an activity
> picker to perform an operation.

OK, I'm apparently being dense. It won't be the first time...

I've never seen a "share button" anywhere in Android. There is a "share
page" menu choice in Browser, but a quick survey of other built-in apps
that I use show neither a share button nor a share menu choice. Perhaps
I use all the wrong apps.

The Browser's "share page" menu choice uses Intent.createChooser(),
which is cool and all, but that only seems to be used six times in the
current source code, based on Google Code Search:

MMS
Email (message composition?)
Music
Camera
Home (picking wallpaper, twice)

Are there other "share" buttons/menu choices/whatever in built-in
Android apps that are using other techniques for sharing besides
createChooser()?

Thanks!

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

_Android Programming Tutorials_ Version 1.0 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: Scaling an image

2009-06-24 Thread Marco Nelissen
On Wed, Jun 24, 2009 at 2:37 PM, Gavin Aiken wrote:

> Hey all!
>
> This has been frustrating me for a while, all I want is to scale an image
> to dimensions that I define whilst keeping an aspect ratio. So for example,
> image comes in at 500 * 500, I want to scale to 320 * 480 so I need 320 *
> 320 so as not to distort the image.
>
> This must be a simple 3 lines of code using a matrix? I just can't do it,
> it's lame, i'm very tired and it turns out I suck at programming. One of
> those days! :)
>
> Any help greatly appreciated, what you have to work with is this;


It might help if you told us what "newWidth" and "width" are, and what goes
wrong when you run the code.


> float scaleWidth = ((float) newWidth) / width;
> float scaleHeight = ((float) newHeight) / height;
>
> scale = larger of the two scales;
>
> // createa matrix for the manipulation
> Matrix matrix = new Matrix();
> // resize the bit map
> matrix.postScale(scale, scale);
>
> // recreate the new Bitmap
> Bitmap resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0, 0,
>   width, height, matrix, true);
>
>
> Gav
>
>
> >
>

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



[android-developers] Re: App adds a button to another app

2009-06-24 Thread Dianne Hackborn
On Wed, Jun 24, 2009 at 2:50 PM, Mark Murphy wrote:

> Is this technique implemented in the current edition of any apps
> distributed with Android?


Sure, for the share button, and everywhere else you get an activity picker
to perform an operation.


> If so, and if we're not to use addIntentOptions(), how do we get
> included in the "list of additional things that other apps can do"?


You are welcome to use the function, if it makes sense for a particular
situation.  All I am saying is that we have found it less useful than
expected, and most often move over to using intent choosers.

For getting included in a list, you implement in the appropriate intent
protocol.  For example, if you want to be an option for supplying content to
someone (such as for an attention), you implement GET_CONTENT.

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

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

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



[android-developers] Re: App adds a button to another app

2009-06-24 Thread Mark Murphy

Dianne Hackborn wrote:
> Our preference at this point is to have one menu item that
> goes to another list of additional things that other apps can do.

Is this technique implemented in the current edition of any apps
distributed with Android?

If so, and if we're not to use addIntentOptions(), how do we get
included in the "list of additional things that other apps can do"?

Thanks!

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

_Android Programming Tutorials_ Version 1.0 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: App adds a button to another app

2009-06-24 Thread Dianne Hackborn
We have moved away from addIntentOptions() because allowing arbitrary items
to be added to the menu makes providing a decent UI very problematic.
Usually app menus are carefully structured to have the most important items
in the main menu, with less important ones in the secondary.  Our preference
at this point is to have one menu item that goes to another list of
additional things that other apps can do.

On Wed, Jun 24, 2009 at 2:12 PM, Mark Murphy wrote:

>
> s wrote:
> > They do not provide the possibility for menu additions?
>
> If you search the Android source code for addIntentOptions(), you'll
> find few references.
>
> Why this is, I have no idea.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 Available!
>
> >
>


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

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

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



[android-developers] Scaling an image

2009-06-24 Thread Gavin Aiken
Hey all!

This has been frustrating me for a while, all I want is to scale an image to
dimensions that I define whilst keeping an aspect ratio. So for example,
image comes in at 500 * 500, I want to scale to 320 * 480 so I need 320 *
320 so as not to distort the image.

This must be a simple 3 lines of code using a matrix? I just can't do it,
it's lame, i'm very tired and it turns out I suck at programming. One of
those days! :)

Any help greatly appreciated, what you have to work with is this;


float scaleWidth = ((float) newWidth) / width;
float scaleHeight = ((float) newHeight) / height;

scale = larger of the two scales;

// createa matrix for the manipulation
Matrix matrix = new Matrix();
// resize the bit map
matrix.postScale(scale, scale);

// recreate the new Bitmap
Bitmap resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0, 0,
  width, height, matrix, true);


Gav

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

2009-06-24 Thread sleith

thx for reply
did u mean font's paint?
i believe it's not that the font is cannot be drawn.
i think it's the position of the position 0,0 of the bitmap is not
really 0,0 (it's out of bounds)
because when i move the position of bitmap (bitmap.translate) with
some x and y, i could see the text and text background is drawn.

On Jun 24, 11:22 pm, MrChaz  wrote:
> setTextSize() and setStyle() need to be called on the Paint object I
> think.
>
> On Jun 23, 4:37 pm, sleith  wrote:
>
> > hi, i'm trying to draw bitmap in canvas.
> > the bitmap is used to draw text and background using canvas (named
> > canvasBitmap)
> > but the text or background that are drown to bitmap is not displayed,
> > as if it's out of bounds.
> > i have to translate the canvasBitmap at some points to make it draw at
> > right position.
> > The problem is i don't know how many pixel i should translate to.
>
> > here's the code example:
>
> > public OnDraw(Canvas c){
>
> >   Paint mBackgroundPaint = new Paint();
> >   mBackgroundPaint.setColor(Color.RED);
>
> >   String mText = "Testing";
>
> >   Paint mFontPaint = new Paint();
> >   mFontPaint.setColor(Color.WHITE);
>
> >   //setting rect
> >   Rect mBackgroundRect = new Rect();
> >   mFontPaint.getTextBounds(mText, 0, mText.length(), mBackgroundRect);
>
> >   //the bitmap to be drawn a text and backgroundRect
> >   Bitmap mBitmap = Bitmap.createBitmap(mBackgroundRect.width(),
> >                                 mBackgroundRect.height(), 
> > Bitmap.Config.ARGB_);
> >   Canvas mCanvasBitmap = new Canvas(mBitmap);
>
> >   //draw text and background to bitmap
> >   mCanvasBitmap.drawColor(Color.CYAN);
> >   mCanvasBitmap.drawRect(mBackgroundRect, mBackgroundPaint);
> >   mCanvasBitmap.drawText(mText, 0, 0, mFontPaint);
>
> >   //draw bitmap to canvas
> >   c.drawBitmap(mBitmap, 0, 0, null);
>
> > }
>
> > this will only drawn Cyan color, the text and red background is not
> > displayed
> > i have to translate for example :
> > mCanvasBitmap.translate(0, mBackgroundRect.height())
>
> > to make it displayed (but not 100% correctly position)
> > please help >.<
> > thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Marco Nelissen
If you use a Cursor instead of an ArrayList (you could copy ArrayListCursor
in to your application to wrap your current ArrayList), then you could use
SimpleCursorAdapter, which allows you map each column to its own view.


On Wed, Jun 24, 2009 at 1:58 PM, Rick  wrote:

>
> Thanks for that example az. Sorry to say it's not quite what I am
> looking for.
>
> I've come across that example in my searching Mark. However, I seem to
> have some difficulty getting it to play nicely with the way the rest
> of the program has been written to this point. I feel confident that
> inflation is the way to go, but just have to get it to gel.
>
> Thanks for all the help.
>
> On Jun 24, 4:20 pm, Mark Murphy  wrote:
> > Rick wrote:
> > > I'm not sure I follow. Below is some sample code:
> >
> > > view.setAdapter(new ArrayAdapter(this,
> > > R.layout.custom_listview, R.id.label, this.titleList));
> >
> > > where titleList right now is an ArrayList of strings.
> >
> > > Are you suggesting to make a second adapter and use that textview in
> > > that?
> >
> > Step 1: Put both TextView widgets in res/layot/custom_listview.xml,
> > formatted however you wish
> >
> > Step 2: Override getView() and either:
> >
> > Step 2a: chain to the superclass, let it inflate
> > R.layout.custom_listview for you, then you do findViewById() on the row
> > to pour in your additional data, or
> >
> > Step 2b: inflate and customize R.layout.custom_listview yourself
> >
> > You can see examples of the 2b scenario by reading the Fancy ListViews
> > series of blog posts linked to from here:
> >
> > http://wiki.andmob.org/samplecode
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://twitter.com/commonsguy
> >
> > _Android Programming Tutorials_ Version 1.0 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: App adds a button to another app

2009-06-24 Thread Mark Murphy

s wrote:
> They do not provide the possibility for menu additions?

If you search the Android source code for addIntentOptions(), you'll
find few references.

Why this is, I have no idea.

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

_Android Programming Tutorials_ Version 1.0 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: Better Looper documentation, please ....

2009-06-24 Thread Marco Nelissen
On Wed, Jun 24, 2009 at 1:44 PM, Richard Schilling <
richard.rootwirel...@gmail.com> wrote:
(...)

> How does Looper know what handler class to send messages to?  And,

where does it get its messages from in the first place?  When I have a


The message usually comes from Handler.obtainMessage(), and will have its
target set to that Handler, so that the Looper knows where to send it.

thread that calls Looper.prepare(), then Looper.loop(), then
> Looper.exit(), it's not clear how Looper is getting messages for my
> class.  Looper.loop() looks like it blocks.  So, how do I make sure
> Looper.loop() doesn't stall my thread waiting for messages?


Looper.loop() does "stall". It blocks, because it's what runs the message
loop.

And, in the case where I want a message handler to process messages in
> a different thread, it's not clear how Looper knows what class to send
> the messages to.  The messages just seem to "come out of the sky" from
> somewhere.


See above.

>
> > 3. What do I need to do when I get the "Can't create handler inside
> >
> > > thread that has not called Looper.prepare()" message?
> >
> > You call Looper.prepare() before you create the Handler, then some time
> > later you call Looper.loop() to start the message handling loop, exactly
> as
> > done in the sample code at the top ofhttp://
> developer.android.com/reference/android/os/Looper.html
> > If you don't want your message processing to be done in that thread,
> create
> > the Handler somewhere else (your main application thread for example).
>
> Sounds good - I am envisioning my thread receiving messages somehow.
> Perhaps that's my problem here.  With Looper.prepare() being called in
> my thread, how do I redirect the messages to the handler?  How do I
> tell my thread to tell Looper where the handler is?


Not sure what you mean. You normally don't have to deal with the Looper
anymore once it has been created and is running. You just use
Handler.obtainMessage() to get a Message, and then Handler.sendMessage() or
Message.sendToTarget() to send the message.

> 4. How do I use LocationManager.requestLocationUpdates with Looper,
> >
> > > and why does this call require a Looper object?
> >
> > Because internally those updates are sent as Messages, so a Handler is
> > needed to receive them, so you need a Looper to run the message loop.
> > You don't *have* to specify a Looper, but in that case the calling thread
> > must have a Looper. For example, you can call the non-Looper method from
> > your app's main thread.
>
> I got around my problem here by calling requestLocationUpdates
> (LocationManager.GPS_PROVIDER, 0, 0, locListen, Looper.getMainLooper
> ()).  What's confusing about this is that I'm expecting locListen to
> just have gotten the messages anyway like a normal callback.  This
> suggests, then, that the application's main message handler is being
> used to dispatch messages to locListen.  Right?


Yes.

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

2009-06-24 Thread Richard Schilling

Perhaps this will help, too get my questions answered:

Of course, I see in

http://developer.android.com/reference/android/os/Handler.html

a description of how the handler is used from the application's main
thread: "When a process is created for your application, its main
thread is dedicated to running a message queue that takes care of
managing the top-level application objects (activities, broadcast
receivers, etc) and any windows they create. You can create your own
threads, and communicate back with the main application thread through
a Handler. This is done by calling the same post or sendMessage
methods as before, but from your new thread. The given Runnable or
Message will than be scheduled in the Handler's message queue and
processed when appropriate. "

What that doesn't answer though is this: given the following code
snippet, how does the application know to send messages to
LooperThread?  mHandler is just an object reference created and
doesn't get sent anywhere

  class LooperThread extends Thread {
  public Handler mHandler;

  public void run() {
  Looper.prepare();

  mHandler = new Handler() {
  public void handleMessage(Message msg) {
  // process incoming messages here
  }
  };

  Looper.loop();
  }
  }


Thanks.

Richard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Rick

Thanks for that example az. Sorry to say it's not quite what I am
looking for.

I've come across that example in my searching Mark. However, I seem to
have some difficulty getting it to play nicely with the way the rest
of the program has been written to this point. I feel confident that
inflation is the way to go, but just have to get it to gel.

Thanks for all the help.

On Jun 24, 4:20 pm, Mark Murphy  wrote:
> Rick wrote:
> > I'm not sure I follow. Below is some sample code:
>
> > view.setAdapter(new ArrayAdapter(this,
> > R.layout.custom_listview, R.id.label, this.titleList));
>
> > where titleList right now is an ArrayList of strings.
>
> > Are you suggesting to make a second adapter and use that textview in
> > that?
>
> Step 1: Put both TextView widgets in res/layot/custom_listview.xml,
> formatted however you wish
>
> Step 2: Override getView() and either:
>
> Step 2a: chain to the superclass, let it inflate
> R.layout.custom_listview for you, then you do findViewById() on the row
> to pour in your additional data, or
>
> Step 2b: inflate and customize R.layout.custom_listview yourself
>
> You can see examples of the 2b scenario by reading the Fancy ListViews
> series of blog posts linked to from here:
>
> http://wiki.andmob.org/samplecode
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 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: Design

2009-06-24 Thread Andy_Sthml

Thanks for good thoughts! What I did not explain was that my idea is
to eventually publish my app. Then servers of other users will be
returning data to the app - and possibly returning much more data
(list items). I do not have access to a "huge" worst-case data-source
and I do not know how to simulate one.

Here is where my questions arose: Is there a way to find a suitable
"happy medium" without trial and error testing on a huge database?

Some reflections on your ideas:

- Prefetch and cache: It would be perfectly ok for the user to wait a
few secs for "loading" at application startup. I have been thinking
about reading the complete data from the server, and filling a
background array of custom data-objects with it. Then the listView
could be fed and filled from the background array independently of
what the user-selection might be (different content depending on
selection). However, I get back to the same question: How do I know
there is enough memory to hold the complete background array, and if
not - what the "happy medium" is?

- Reusing: If only enough items for one display is loaded (added to
the ArrayAdapter) - won't this then interrupt the nice sliding feel /
momentum feel of the scrolling listview?

- XML: No plans for XML, however, the data returned by the server is a
huge long URL-encoded text string, So after parsing out the single
elemnts with String-methods, I am currently using the URLDecoder-class
and the decode-method to get the pretty-printed strings out. I do not
see a way around this.

- Load and decompress in a non-UI thread: I understand what you mean,
and also sense this might be a good solution. Though, I do not have
any idea how to begin with this. Links to any guidelines would be
appreciated.

Thanks! /Andy


On 24 Juni, 19:33, "Yusuf T. Mobile"  wrote:
> Hi Andy. Some ideas are:
> - implement the simplest design first (i.e., load everything into
> memory) and profile early and often
> - iff (if and only if) and wherre (where and only where - I made that
> one up:) it croaks, some possible optimizations are:
>     - don't put thousands of items on one list. Sublists may be an
> alternative.
>     - prefetch and cache data - especially the images, rather than
> loading them real-time from URLs. Loading everything is in theory the
> most efficient, but may make the user wait at first, which ruins
> responsiveness. Depending on the data characterization and use cases,
> you will have to find a happy medium.
>     - reuse objects rather than incur the cost of memory allocation
> and GC. For example, if you have a custom list item class, only create
> as many as are needed to display on the screen, and update their data
> as the user scrolls up and down, rather than creating lots of new ones
> and abandoning old ones as the user scrolls.
>     - don't use XML, it has many advantages, but bandwidth and parsing
> efficiency are not among them. Use a streaming (rather than tree)
> parser, with a compressed protocol. Google's protobuf may be an
> option.
>     - load and decompress in a non-UI thread. You don't have to wait
> until everything is loaded and decompressed to show something, you can
> do so selectively depending on what the user is looking at and may
> soon be looking at.
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Jun 23, 2:06 pm, Andy_Sthml  wrote:
>
>
>
> > This is mainly a design question :
>
> > My app connects to a server from where data is retrieved and presented
> > in a listview. Depending on user-selection different data is retreived
> > and filled in the list. A typical list item consists of a text string
> > of up to some 50 or 60 characters depending what the server returns.
> > Additionally, a small image icon is shown next to each string. The
> > server may return any number of items from 0 up to many hundred or
> > even thousands. It is possble to ask the server to iteratively return
> > subsets of the content. The images are actually links to http-
> > addresses, but I guess this still requires/allocates memory for the
> > listview by Android.
>
> > How do I design for efficiency and responsiveness, considering memory
> > consumption?
> > Are there any generic guide lines on how many list items, Strings or
> > Bytes to keep in memory?
>
> > On the one hand I would like to have as many items in the list as
> > possible - from a users perspective *all* items returned from the
> > server would be expected. On the other, sending many queries to the
> > server makes the app slower. I am not sure how to handle this
> > situation since I do not have a feel for what android can handle in
> > terms of memory.
>
> > Any ideas would be of help.- Dölj citerad text -
>
> - Visa citerad text -
--~--~-~--~~~---~--~~
You received this message bec

[android-developers] Re: Better Looper documentation, please ....

2009-06-24 Thread Richard Schilling

Beautiful.  Thank you very much.

>
> 2. How does the Android phone use Looper to coordinate message
>
> > handling?
>
> Not sure what you mean by "coordinate" in this context.

Apologies about being vague here.  I'm trying to envision the call
stack from the phone's perspective when it sends a message to the
Looper created in my thread.  I looked at the code for Looper and got
minimal insight: looks like Looper registers itself with a lower level
API call?  What gets registered?

How does Looper know what handler class to send messages to?  And,
where does it get its messages from in the first place?  When I have a
thread that calls Looper.prepare(), then Looper.loop(), then
Looper.exit(), it's not clear how Looper is getting messages for my
class.  Looper.loop() looks like it blocks.  So, how do I make sure
Looper.loop() doesn't stall my thread waiting for messages?

And, in the case where I want a message handler to process messages in
a different thread, it's not clear how Looper knows what class to send
the messages to.  The messages just seem to "come out of the sky" from
somewhere.


>
> 3. What do I need to do when I get the "Can't create handler inside
>
> > thread that has not called Looper.prepare()" message?
>
> You call Looper.prepare() before you create the Handler, then some time
> later you call Looper.loop() to start the message handling loop, exactly as
> done in the sample code at the top 
> ofhttp://developer.android.com/reference/android/os/Looper.html
> If you don't want your message processing to be done in that thread, create
> the Handler somewhere else (your main application thread for example).

Sounds good - I am envisioning my thread receiving messages somehow.
Perhaps that's my problem here.  With Looper.prepare() being called in
my thread, how do I redirect the messages to the handler?  How do I
tell my thread to tell Looper where the handler is?

>
> 4. How do I use LocationManager.requestLocationUpdates with Looper,
>
> > and why does this call require a Looper object?
>
> Because internally those updates are sent as Messages, so a Handler is
> needed to receive them, so you need a Looper to run the message loop.
> You don't *have* to specify a Looper, but in that case the calling thread
> must have a Looper. For example, you can call the non-Looper method from
> your app's main thread.

I got around my problem here by calling requestLocationUpdates
(LocationManager.GPS_PROVIDER, 0, 0, locListen, Looper.getMainLooper
()).  What's confusing about this is that I'm expecting locListen to
just have gotten the messages anyway like a normal callback.  This
suggests, then, that the application's main message handler is being
used to dispatch messages to locListen.  Right?

Thanks for all your help.

Richard Schilling
Root Wireless

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



[android-developers] Re: App adds a button to another app

2009-06-24 Thread s

So the stock applications absolutely cannot be modified?  They do not
provide the possibility for menu additions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Showing Toasts in a service from worker threads with service reference.

2009-06-24 Thread Richard Schilling

Sounds good.  Thanks for the confirmation.

I'd like to write some more documentation for the Looper class.  Where
do I submit the patch?

Richard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Mark Murphy

Rick wrote:
> I'm not sure I follow. Below is some sample code:
> 
> view.setAdapter(new ArrayAdapter(this,
> R.layout.custom_listview, R.id.label, this.titleList));
> 
> where titleList right now is an ArrayList of strings.
> 
> Are you suggesting to make a second adapter and use that textview in
> that?

Step 1: Put both TextView widgets in res/layot/custom_listview.xml,
formatted however you wish

Step 2: Override getView() and either:

Step 2a: chain to the superclass, let it inflate
R.layout.custom_listview for you, then you do findViewById() on the row
to pour in your additional data, or

Step 2b: inflate and customize R.layout.custom_listview yourself

You can see examples of the 2b scenario by reading the Fancy ListViews
series of blog posts linked to from here:

http://wiki.andmob.org/samplecode

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

_Android Programming Tutorials_ Version 1.0 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: Android .apks running in a Browser

2009-06-24 Thread guruk

Hi Dianne,

i am happy someone from the android team comes in that discussion.

Just you may missunderstood.
Its not about to download that app in the Browser and run it on a
mobile.

Its about to compile that App (i called it apk) for a BrowserVersion.

Just think, We have GWT (to generate Browser App), Android for Mobile
Apps.

I think it would be so cool to code one app and just compile it for
Android
or Browser.
Finaly, yes I wrote .apk, because I thought should there be already an
apk
we just would need like an emulator plugin for a browser and could run
the
apk directly in the browser, just as a browser application.

For sure I can not use all functions in the browser as in the Mobile.
But that would be just a few /* */ and not like now writing the same
app
totaly again from the ground just to have a Browser Version from it.
I think right now about my app "My Days". 99% would look same in a
browser
but now if I like to have a browser version (bigger screen and just
for people
without android mobile) I have to code all again.

I asked that, because I think if someone have the power to create
something
like that its google. You have GWT you have Android... something that
would
make a GWT Source from my Android source...

I guess you got the point where I am looking for.
To make Android really a CrossOver language.
Let it run as application in LInux, under Windows, in a Browser and
for sure
still on Android Mobiles :)

Greets
Chris

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread az9702

I have a custom view with three texts & one image:

* image on left
* text1 in small font below image
* text2 & text3 to image's right & w/ different font sizes

Below is the View.onDraw() that renders these objects & may be
helpful:

protected void onDraw(Canvas canvas) {
super.onDraw(canvas);

int text1Width=(int)(mPaint1.measureText(mText1));
int text2Width=(int)(mPaint2.measureText(mText2));
int text3Width=(int)(mPaint3.measureText(mText3));

int text1Height = (int)(-mPaint1.ascent() + mPaint1.descent());
int text2Height = (int)(-mPaint2.ascent() + mPaint2.descent());
int text3Height = (int)(-mPaint3.ascent() + mPaint3.descent());

int imgWidth = mBitmap.getWidth();
int imgHeight = mBitmap.getHeight();


//Draw bitmap on left
float imgLeft = getPaddingLeft();
float imgTop = getPaddingTop();
canvas.drawBitmap(mBitmap, imgLeft, imgTop, null);


//Draw text1 below bitmap
int text1x = getPaddingLeft();
int text1y = getPaddingTop()+imgHeight
+GAP_IMAGE_TEXT1+text1Height;

canvas.drawText(mText1, text1x, text1y, mPaint1);

//assert (text1Width <= imgWidth)
int view23Width = getWidth()-getPaddingLeft()-imgWidth -
GAP_IMAGE_TEXT2;
int text23Width = text2Width + GAP_TEXT2_TEXT3 + text3Width;

int gap12 = GAP_IMAGE_TEXT2;
if( text23Width < view23Width) {
gap12 = (int)((view23Width-text23Width)/2.0f);
}

//Draw text2 on right & centerY
int text2x = imgWidth+gap12;
canvas.drawText(mText2, text2x, getHeight()/2.0f, mPaint2);

//Draw text3 to right of text2 w/ a different Paint
int text3x = text2x+text2Width+GAP_TEXT2_TEXT3;
canvas.drawText(mText3, text3x, getHeight()/2.0f, mPaint3);

}


There are limitations as the text portion is not as nearly flexible as
TextView.




On Jun 24, 12:55 pm, Marco Nelissen  wrote:
> Just map that textview to a different column in your result set.
>
> On Wed, Jun 24, 2009 at 12:52 PM, Rick  wrote:
>
> > I am also looking to do something with an image on the left and two
> > textviews arranged as below:
>
> > +
> > | +---+     TextView1
> > | | Image |
> > | +---+     TextView2
> > +
>
> > It appears possible to use one textview, but TextView2 needs to have
> > smaller font size compared to TextView1. I am able to create it so
> > that there is the image and one textview, but how could I change the
> > data for the second textview?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Rick

I'm not sure I follow. Below is some sample code:

view.setAdapter(new ArrayAdapter(this,
R.layout.custom_listview, R.id.label, this.titleList));

where titleList right now is an ArrayList of strings.

Are you suggesting to make a second adapter and use that textview in
that?


On Jun 24, 3:55 pm, Marco Nelissen  wrote:
> Just map that textview to a different column in your result set.
>
> On Wed, Jun 24, 2009 at 12:52 PM, Rick  wrote:
>
> > I am also looking to do something with an image on the left and two
> > textviews arranged as below:
>
> > +
> > | +---+     TextView1
> > | | Image |
> > | +---+     TextView2
> > +
>
> > It appears possible to use one textview, but TextView2 needs to have
> > smaller font size compared to TextView1. I am able to create it so
> > that there is the image and one textview, but how could I change the
> > data for the second textview?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 .apks running in a Browser

2009-06-24 Thread Dianne Hackborn
I wouldn't expect this to happen soon -- being able to run an .apk from the
browser essentially means installing it, so that the security permissions it
requests can be granted to it, so the user needs to be involved with what is
going on.  At the end of the day, I can't really see this as being a whole
lot easier than just having a link to the app on Market.
I think there is a really important distinction between something the
browser runs for the user, vs. something the user explicitly decides to
install.  The former you want to much more tightly sandbox and control; once
you pass the line to the user explicitly installing it, things open up a lot
more.

Also as a purely practical matter, right now the browser runs as a single
uid; to be able to download an .apk and run it in the browser (assuming we
are okay with not giving this code any special permissions so no need to
involve the user) would require creating and assigning it a temporary uid
and running it in its own process...  which is again basically installing it
as a full-fledged app, just not showing a permissions dialog (because there
are none).  There is also a lot in the framework that closely depends on an
application being published in the package manager as a real app, which the
activity manager and others can manage, for most of the basic Android APIs
to work.

On Sat, Jun 6, 2009 at 10:25 AM, guruk  wrote:

>
> Hi,
> first I like to thank you the whole Android Team and all Users who
> helped me over time with me Questions.
> Amazing Work. My simple App "My Days" is now in the Top 100 from
> Android Apps.
>
> What I like to suggest now for the Android Project is the Option to
> run ".apk's" in a Browser.
> That may sound a bit crazy, but also imagine how cool it would be to
> see your App running in a Browser
>
> http://code.google.com/p/drine/
>
> is the first Project I saw working on that Idea and I like it a lot.
>
> In my View it would need a Plugin from Google Android for a Browser
> like Chrome, FF, IE ...
> that would allow to run .apks
>
> Is something like that planned or just what do you think about?
>
> Greets
> Chris
>
> >
>


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

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

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



[android-developers] Showing Toasts in a service from worker threads with service reference.

2009-06-24 Thread Richard Schilling

This is somewhat related to

http://groups.google.com/group/android-developers/browse_thread/thread/e83f452ae9f307b8/cc1a379efbc27b51?lnk=gst&q=toast+from+a+thread#cc1a379efbc27b51


I have a service running in the background.  I have a background
thread that gets a reference to the service from the application's
main activity.  But when the background thread calls a method in the
service to display a toast, I get the "Looper not initialized
exception".  Why, if I have a valid, bound reference to a Service,
does this still happen?


public MyActivity extends Activity{

private static MyService service;

public static MyService getMyService()

private ServiceConnection sConnection = new  ServiceConnection(){
public void onServiceConnected(ComponentName className, IBinder
service) {
service = 
((MyService.MyServiceBinder)service).getService();
}

public void onServiceDisconnected(ComponentName className) {
service = null;
}

};


public void onCreate(Bundle savedInstanceState) {

   super.onCreate(savedInstanceState);

Intent bindIntent = new Intent(this, NomadService.class);
bindService(bindIntent, sConnection,
Context.BIND_AUTO_CREATE);



// start the service.
nomadServiceComponent = startService(
new Intent(this, MyService.class));


   new MyThread().start();
}

}


public class MyService{

// normal code for MyService omitted for discussion purposes


public void toast(String t){
Context ctx = getApplicationContext();
try{
Toast.makeText(ctx, t, Toast.LENGTH_LONG);

} catch (Throwable th){
Log.i("Nomad", th.getMessage());
th.printStackTrace();
}
}

}

public class MyThread extends Thread{

  public void run(){


  MyService s = MyActivity.getMyService();
  if (s != null)
   s.toast("You're toasted.");
   // causes this exception to occur: "Can't create
handler inside thread that has not called Looper.prepare()"
  }

}



Richard Schilling
Root Wireless



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Marco Nelissen
Just map that textview to a different column in your result set.


On Wed, Jun 24, 2009 at 12:52 PM, Rick  wrote:

>
> I am also looking to do something with an image on the left and two
> textviews arranged as below:
>
> +
> | +---+ TextView1
> | | Image |
> | +---+ TextView2
> +
>
> It appears possible to use one textview, but TextView2 needs to have
> smaller font size compared to TextView1. I am able to create it so
> that there is the image and one textview, but how could I change the
> data for the second textview?
> >
>

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

2009-06-24 Thread deepdr...@googlemail.com

it is said that Flash for Android will come early 2010.

--
http://www.deepdroid.com


On Jun 24, 6:42 pm, "lafemin...@aol.com"  wrote:
> can we please get a flah player for the g2 and g1 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: Showing Toasts in a service from worker threads with service reference.

2009-06-24 Thread Dianne Hackborn
You need to do this from a message queue / looper thread, such as the main
thread.  Just post a message to the main thread and show your toast from
there.

On Wed, Jun 24, 2009 at 12:48 PM, Richard Schilling <
richard.rootwirel...@gmail.com> wrote:

>
> This is somewhat related to
>
>
> http://groups.google.com/group/android-developers/browse_thread/thread/e83f452ae9f307b8/cc1a379efbc27b51?lnk=gst&q=toast+from+a+thread#cc1a379efbc27b51
>
>
> I have a service running in the background.  I have a background
> thread that gets a reference to the service from the application's
> main activity.  But when the background thread calls a method in the
> service to display a toast, I get the "Looper not initialized
> exception".  Why, if I have a valid, bound reference to a Service,
> does this still happen?
>
>
> public MyActivity extends Activity{
>
>private static MyService service;
>
>public static MyService getMyService()
>
>private ServiceConnection sConnection = new  ServiceConnection(){
>public void onServiceConnected(ComponentName className,
> IBinder
> service) {
>service =
> ((MyService.MyServiceBinder)service).getService();
>}
>
>public void onServiceDisconnected(ComponentName className) {
>service = null;
>}
>
>};
>
>
>public void onCreate(Bundle savedInstanceState) {
>
>   super.onCreate(savedInstanceState);
>
>Intent bindIntent = new Intent(this, NomadService.class);
>bindService(bindIntent, sConnection,
> Context.BIND_AUTO_CREATE);
>
>
>
>// start the service.
>nomadServiceComponent = startService(
>new Intent(this, MyService.class));
>
>
>   new MyThread().start();
>}
>
> }
>
>
> public class MyService{
>
>// normal code for MyService omitted for discussion purposes
>
>
>public void toast(String t){
>Context ctx = getApplicationContext();
>try{
>Toast.makeText(ctx, t, Toast.LENGTH_LONG);
>
>} catch (Throwable th){
>Log.i("Nomad", th.getMessage());
>th.printStackTrace();
>}
>}
>
> }
>
> public class MyThread extends Thread{
>
>  public void run(){
>
>
>  MyService s = MyActivity.getMyService();
>  if (s != null)
>   s.toast("You're toasted.");
>   // causes this exception to occur: "Can't create
> handler inside thread that has not called Looper.prepare()"
>  }
>
> }
>
>
>
> Richard Schilling
> Root Wireless
>
>
>
> >
>


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

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

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



[android-developers] Re: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Rick

I am also looking to do something with an image on the left and two
textviews arranged as below:

+
| +---+ TextView1
| | Image |
| +---+ TextView2
+

It appears possible to use one textview, but TextView2 needs to have
smaller font size compared to TextView1. I am able to create it so
that there is the image and one textview, but how could I change the
data for the second textview?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: App adds a button to another app

2009-06-24 Thread Peli

What is meant is to add a menu button - or menu item - in another
application.

This is only possible if the hosting application explicitly provides
this possibility.

We do this in our OI applications, so that 3rd party applications can
add additional functionality on-the-fly... for example OI Voice Notes
appears as a menu extension in OI Notepad.

For this purpose, the hosting activity (OI Notepad) must call
addIntentOptions() when they create the menu
http://code.google.com/p/openintents/source/browse/trunk/NotePad/src/org/openintents/notepad/NoteEditor.java

while the other activity (OI Voice Notes) that wants to be included in
the first application shall specify an intent filter in the category

http://code.google.com/p/openintents/source/browse/trunk/VoiceNote/AndroidManifest.xml

Peli
www.openintents.org

On Jun 24, 3:44 pm, s  wrote:
> How can I cause my app to add a button to another app, the text
> messaging app for instance?  I want to add a button and then listen
> for when it is pressed, at which point code from my app would
> execute.  In the notepad exercise 1 tutorial from the dev guide,
> there's a link that says "add a button to an existing application!"
> but this just links to the common development tasks.  I've searched
> this but haven't found anything helpful.
>
> Any help would be greatly appreciated!
>
> Thanks,
> 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: Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread Marco Nelissen

On Tue, Jun 23, 2009 at 8:57 PM, JC wrote:
>
> Dear sir,
>
> I learnt that there is a "recommended" minimum device requirements for
> Android device, however if I want to develop a device without five-way
> navigation key, is this allowed?

Sure, why wouldn't it be? You don't need anyone's permission to
develop an android device.

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

2009-06-24 Thread Peli

> you can have an activity with the MAIN
> action an INFO category (this was introduced in Cupcake).

Great! I guess many of us have waited for this feature! :-)

I just found it by accident a couple of days ago when I had to look at
the Intent documentation, but I was not fully sure what it was for
(there was no mentioning of Market using it).

Peli
www.openintents.org

On Jun 24, 9:09 pm, Dianne Hackborn  wrote:
> If you don't want any activities at all in the home screen, but to still
> have something launched from Market, you can have an activity with the MAIN
> action an INFO category (this was introduced in Cupcake).
> If you are saying the app has lots of launcher icons...  well, that is just
> a broken app, and there is absolutely no reason for them to do that.
>
> Other than that, I have no idea what you mean by "launchable but not in the
> app drawer".  If it's not there, how does the user launch it?  (There is a
> side issue about keeping that more organized as there is a larger number of
> apps, but that is not really related.)
>
> On Wed, Jun 24, 2009 at 1:30 AM, David Carson 
> wrote:
>
>
>
>
>
> > ok there's one app who is a big offender here - I think anyone who
> > uses it will know which one I mean - its in the top paid apps - all
> > the skins appear in the app drawer.
>
> > And yet I can sort of understand why he's done it - because you have a
> > choice of either including these lines in AndroidManifest.xml or not :
> >            
> >                
> >                 > android:name="android.intent.category.LAUNCHER" />
> >            
>
> > If you do, app can be launched and is in app drawer.
> > If you don't, app can't be launched and is not in app drawer.
>
> > What would be most useful is the inbetween, i.e. app can be launched
> > and is not in app drawer. I've played around with all variations in
> > xml file and nothing achieves this behavior.
>
> > Publishers want skin packs to be launchable, so that when people
> > download them wondering what they are, they can include some info
> > directing you to a website or better still, straight to the main
> > product in the market.
>
> > But its inconsiderate to customers to fill up their app drawers with
> > stuff that is just skin packs / themes.
>
> > I don't think there is a solution to this, but I think its an issue
> > that Android need to address.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem using Debug.setAllocationLimit

2009-06-24 Thread Stefan

I am trying to track some excessive memory allocations in my
application. For some reason the use of
Debug.setAllocationLimit  or VMDebug.setAllocationLimit  appears to
have no effect.

I have test code that does something like:

Debug.setAllocationLimit(0);

String s = new String("");

Debug.setAllocationLimit(-1);

expecting the second line to throw an allocation exception but it does
not.

What is the correct way to track allocations between 2 points in the
code execution?
Is there some global place where allocations tracking must be turned
on before they can be counted?

Stefan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Out of memory exceptions and difference between emulator and hardware (dev phone)

2009-06-24 Thread Dianne Hackborn
It has nothing to do with the memory available -- both the emulator and
device give 16MB to apps heaps.  I would guess it is a timing difference
between them causing your app to behave differently, but there really isn't
enough information here to help.
And why do you need to replicated this on the emulator?  Debugging on a
device is really not any harder than on the emulator.

On Tue, Jun 23, 2009 at 3:03 PM, lakuad  wrote:

>
> Hi,
>   I have read a couple of threads about Bitmap creation and release
> using "recycle()" but still have a problem with an OOM when running my
> app (that creates bitmaps) on hardware - the dev phone 1 in this case.
> Multiple passes through my application screens work fine in the
> emulator but performing the same actions on the device results in an
> OOM exception almost immediately.
>   At this point I would really like a deterministic way to replicate
> the scenario on the emulator which I thought should be possible by
> limiting its memory (though I did read somewhere that the emulator and
> the dev phone 1 have the same default memory so this should be moot
> but whatever) i.e. -memory 64, but I am having zero success.
>   Am I using the correct emulator args to limit the memory and/or
> what is the strategy for making the emulator exactly the same as the
> device at least with respect to memory constraints/pressure?
>
> thnx,
> L.
>
> >
>


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

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

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



[android-developers] Re: Dueling Activities Over the Intent's Hand in Marriage

2009-06-24 Thread Dianne Hackborn
Could you please post a concrete example?  In general, if your app wants to
allow parts of its UI to be replaced, then it should use an implicit intent;
if it doesn't want to support this it should use an explicit intent to
directly launch the activity it wants.  The places in the system app where
implicit intents are used, this is done deliberately because it is a point
of potential replacement, and the user can decide to use something else
there (and set that as the default if they want).
If you don't want the user to have the option to use other activities within
your app, just use explicit intents to completely control your flow.

On Tue, Jun 23, 2009 at 3:10 PM, Ryan  wrote:

>
> There have been many posts concerning developers attempting to extend
> or overwrite Android's default applications: contacts, home, etc.
> These often end in an explanation of the user prompt that allows the
> user to decide upon the default activity to handle the intent. I
> understand and agree with the reasoning behind protecting these
> essential applications and alerting the user to any changes, but I
> believe there are so many questions about this topic because the
> system in place for setting a new default activity seems rigid and
> unfinished. It makes sense to have a user select from a list of
> similar activities when opening up something like an image editing/
> viewing app, and perhaps selecting a favorite default, but to prompt a
> user for every activity in a larger application, such as user-
> interface overhaul, would be cumbersome for a user; in addition, it
> could have unintended consequences if a user only accepted some of the
> application's activities, but not others.
>
> Something like a default activity list that could be selected or
> rejected upon installation of the application would seem to be a
> better solution. This sort of bundling could also be used when
> switching back to the initial default applications (e.g. if one is
> reverted, the rest are reverted, and the application itself is
> notified of this activity in some way). So, I guess my question is
> whether or not something similar to this solution is being developed
> or if there's another answer to this problem?
>
> >
>


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

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

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



[android-developers] Re: Skins / themes in app drawer

2009-06-24 Thread Dianne Hackborn
If you don't want any activities at all in the home screen, but to still
have something launched from Market, you can have an activity with the MAIN
action an INFO category (this was introduced in Cupcake).
If you are saying the app has lots of launcher icons...  well, that is just
a broken app, and there is absolutely no reason for them to do that.

Other than that, I have no idea what you mean by "launchable but not in the
app drawer".  If it's not there, how does the user launch it?  (There is a
side issue about keeping that more organized as there is a larger number of
apps, but that is not really related.)

On Wed, Jun 24, 2009 at 1:30 AM, David Carson wrote:

>
> ok there's one app who is a big offender here - I think anyone who
> uses it will know which one I mean - its in the top paid apps - all
> the skins appear in the app drawer.
>
> And yet I can sort of understand why he's done it - because you have a
> choice of either including these lines in AndroidManifest.xml or not :
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
> If you do, app can be launched and is in app drawer.
> If you don't, app can't be launched and is not in app drawer.
>
> What would be most useful is the inbetween, i.e. app can be launched
> and is not in app drawer. I've played around with all variations in
> xml file and nothing achieves this behavior.
>
> Publishers want skin packs to be launchable, so that when people
> download them wondering what they are, they can include some info
> directing you to a website or better still, straight to the main
> product in the market.
>
> But its inconsiderate to customers to fill up their app drawers with
> stuff that is just skin packs / themes.
>
> I don't think there is a solution to this, but I think its an issue
> that Android need to address.
>
> >
>


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

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

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



[android-developers] Re: Android .apks running in a Browser

2009-06-24 Thread guruk

are there any plans for that... one user of mine told me he heared
about...
but i did not found news here?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp

2009-06-24 Thread Mark Murphy

Gopal wrote:
> I've also getting this error "Could not find method
> javax.microedition.io.Connector.open, referenced from method
> org.ksoap2.transport.ServiceConnectionMidp."
> 
> Can anyone please help me ?

Presumably, ksoap2 does not work on Android without modifications. There
is no javax.microedition.io.Connector in Android.

You might wish to talk to the ksoap2 developers about an Android port.
Or, use something other than SOAP.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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



[android-developers] Re: App adds a button to another app

2009-06-24 Thread Mark Murphy

s wrote:
> How can I cause my app to add a button to another app, the text
> messaging app for instance?

You can't. If you could, that would be a serious security hole.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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

2009-06-24 Thread feda al-shahwan
Thank you for your response but could you please give me more details
because my soap envelope doesnot contain a method it is just hello and what
to put in the property field?
Thanks

On Tue, Jun 23, 2009 at 5:25 AM, sagar.indianic wrote:

>
> You dont need to parse manually...
> First get the "ksoap2-j2se-full-2.1.2.jar".. Search you will get it..
>
> then use the following code..
>
> private static String SOAP_ACTION = "namespace/FunName";
>private static String METHOD_NAME = "method_name";
>private static final String NAMESPACE = "namespace";
>private static final String URL = "Url of web service";
>
> SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
>request.addProperty("field of web service", variable);
>
>SoapSerializationEnvelope envelope = new
> SoapSerializationEnvelope(SoapEnvelope.VER11);
>envelope.setOutputSoapObject(request);  // same as
> envelope.bodyOut = request;
>
>HttpTransportSE httpTransport = new HttpTransportSE(URL);
>httpTransport.call(SOAP_ACTION, envelope); //This sends a soap
> request and response will be in envelope only.
>
> Now check for envelope.bodyIn will give you response from webservice.
> This will give you SoapObject. Retrieve response strings from the
> SoapObject method.
>
>
> On Jun 22, 10:17 am, Desu Vinod Kumar  wrote:
> > Hi  everyone
> >
> > i am looking for soap web services in android. my hand also will help to
> u
> >
> > actually i need to connect the PHP soap web services in android
> >
> > i need to get the response from the PHP server and should return it in
> xml
> > format.
> >
> > can any body give me suggestions regarding this
> >
> > i have tried some small code but it is unexpectedly quiting
> >
> > if any android runtime errors in log cat is any problem
> >
> > how can i clear that android runtime errors in log cat what i am getting
> ...
> >
> > Here is my code
> >
> > protected void onCreate(Bundle icicle)
> > {
> >
> > super.onCreate(icicle);
> >
> > // SOAP Request for the FindServiceSOAP.GetRatingInfo web service
> > String soapRequestXML = " encoding=\"utf-8\"?>\n" +
> > " http://schemas.xmlsoap.org/soap/envelope/\"; " +
> > "   xmlns:xsi=\"
> http://www.w3.org/2001/XMLSchema-instance\"; " +
> > "   xmlns:xsd=\"
> http://www.w3.org/2001/XMLSchema\";>\n" +
> > "http://tempuri.org
> \">\n"
> > +
> > "\n" +
> > "  \n" +
> > "";
> >
> > String url = "http://www.hasdhs.com/ask.php";;
> > HttpClient client = new HttpClient();
> >
> > PostMethod postMethod = new PostMethod(url);
> >
> >  // Construct a SOAP request by hand
> > StringBuffer request = new StringBuffer();
> > request.append(soapRequestXML);
> >
> > postMethod.setRequestBody(request.toString());
> > postMethod.setRequestHeader("Content-Type","text/xml;
> charset=utf-8");
> > postMethod.setRequestHeader("SOAPAction",
> >  "\"http://tempuri.org\"";);
> >
> > int statusCode = 0;
> > try {
> > statusCode = client.executeMethod(postMethod);
> > } catch (IOException e) {
> > Log.d("ReverseGeoCoder", e.toString(), e);
> > }
> >
> >  // Parse the SOAP Response
> > MyContentHandler myContentHandler = new MyContentHandler();
> > try {
> > SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
> >
> > } catch (Exception e) {
> > Log.d("ISizzle", e.toString(), e);
> > }
> >
> > // Display the response details.
> > List list = myContentHandler.getRating();
> > String[] items = new String[list.size()];
> > for (int i = 0; i < list.size(); i++)
> > {
> > MyContentHandler.GetRating rating = (MyContentHandler.GetRating)
> > list.get(i);
> > }
> >  // Show the data in the list view
> > ListView listView = (ListView) findViewById(R.id.data);
> > listView.setAdapter(new ArrayAdapter(this,
> > android.R.layout.simple_list_item_1,
> > items));
> > postMethod.releaseConnection();
> > }
> >
> > }
> >
> > thanks in advance
> >
> >
> >
> > On Sat, Jun 20, 2009 at 8:08 PM, fifi  wrote:
> >
> > > I would like to parse a soap envelope using KSOAP2 how can  I start   I
> > > am new and I tried the following code but i couldnot. Also I would
> > > like to display the parsed elements on the screen?Thanks
> >
> > > package parsingsteps;
> >
> > > import java.io.*;
> > > import org.ksoap2.SoapEnvelope;
> > > import org.kxml2.io.KXmlParser;
> > > import org.xmlpull.v1.XmlPullParserException;
> >
> > > /**
> > >  *
> > >  * @author fa00064
> > >  */
> > > public class ParsingSteps {
> >
> > >/**
> > > * @param args the command line arguments
> > > */
> > >public static void mai

[android-developers] Is five-way navigation key a mandatory requirement?

2009-06-24 Thread JC

Dear sir,

I learnt that there is a "recommended" minimum device requirements for
Android device, however if I want to develop a device without five-way
navigation key, is this allowed?

BR,
JC

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

2009-06-24 Thread s1516

Hi,

I have this query which gets all people in Contacts:

// Get a cursor with all people in Contacts
Cursor c = getContentResolver().query(People.CONTENT_URI, null, null,
null, null);

But how can I filter out some result based on GROUP value?

I was thinking of using the ' String selection, String[]
selectionArgs' argument in the query, but I can't since the Database
of the is like this, It does not has GROUP as its column:

CREATE TABLE people (_id INTEGER PRIMARY KEY
AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_time
TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT
NULL DEFAULT 0,_sync_mark INTEGER,name TEXT COLLATE LOCALIZED,notes
TEXT COLLATE LOCALIZED,times_contacted INTEGER NOT NULL DEFAULT
0,last_time_contacted INTEGER,starred INTEGER NOT NULL DEFAULT
0,primary_phone INTEGER REFERENCES phones(_id),primary_organization
INTEGER REFERENCES organizations(_id),primary_email INTEGER REFERENCES
contact_methods(_id),photo_version TEXT,custom_ringtone
TEXT,send_to_voicemail INTEGER,phonetic_name TEXT COLLATE LOCALIZED);

Thank you for any 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] How to create toggle buttons that have 'jointed' appereance?

2009-06-24 Thread fhucho

Hi,
how can I create a group of 3 toggle buttons that look like there are
a single widget (they look 'jointed').
If it is not clear what I mean, look at the bottom buttons in iPhone
map application.
Or the buttons for choosing car/walk/transit directions in the new
maps for android app.

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

2009-06-24 Thread lafemin...@aol.com

can we please get a flah player for the g2 and g1 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] Audio Streams

2009-06-24 Thread Eddie

I am developing an Android application in which I would like the audio
of my application to play 'over' background music (in particular,
music from the built in music app).  Ideally my application will mute
any music currently being played (I would like to have pausing be an
option but would prefer to have mute be the default) while it is
playing a short sound effect (no more than 1 second long).  One way to
do this is to play my audio on a different stream (STREAM_ALARM or
STREAM_NOTIFICATION) and mute the STREAM_MUSIC using the AudioManager
class.  The problem with this is that I will need to modify the volume
level of whichever stream type I choose to play my sound effect so
that the user can hear it (assuming the initial value of the chosen
stream is low).  Is there any way to mute just the sound coming from
the built in music application without muting all STREAM_MUSIC?  Are
there any alternative solutions (i.e. can a developer create their own
stream type, STREAM_DEV, and play their sound effects on this stream
while muting the music stream)?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp

2009-06-24 Thread Gopal

Hi Everyone,



I've also getting this error "Could not find method
javax.microedition.io.Connector.open, referenced from method
org.ksoap2.transport.ServiceConnectionMidp."

Can anyone please help me ?

Thanks in Advance:
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] getView from CustomizedAdapter called several times

2009-06-24 Thread jabu

Hi Everyone,

I am implementing my own adapter that inherits from BaseAdapter (this
is something very classic).
Then when I start the activity that owns the listView binded to this
adapter I can see that the getView() method is called more times than
what the number of view actually available in the list.
For instance, I do have 2 rows in my list and when I first set the
adapter getView is called 6 times. Then If I make a call to
notifyDataSetChanged(), getView is called 4 times.
I understand that when you scroll up and down getView must be called
to generate or re use a view but I don't scroll up or down, I am
really wondering why getView is called so many time.


Thanks a lot in advance for your responses.
Jabu

My code just in case even though it is a pretty basic piece of code:

public View getView(int position, View convertView, ViewGroup
parent)
{
ViewHolder holder;
if (convertView == null)
{
convertView = mInflater.inflate(R.layout.row_action, 
null);
// Creates a view holder
holder = new ViewHolder();
...
convertView.setTag(holder);
}
else
{
holder = (ViewHolder)convertView.getTag();
}
holder.params.set
return convertView;
 }

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

2009-06-24 Thread lafemin...@aol.com

have a flash player for the g2 or g1

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

2009-06-24 Thread s

I want to develop an app that adds a button to the stock text
messaging app, and then executes code when that button is pressed. Is
this possible?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp.

2009-06-24 Thread Gopal

Hi,

   Is your problem solved now? I am also facing the same problem.
Kindly help me.

Thanks & Regards:
Gops

On May 27, 10:24 pm, "kevin.cho...@googlemail.com"
 wrote:
> Hi Everyone,
>
> I've been getting this error "Could not find method
> javax.microedition.io.Connector.open, referenced from method
> org.ksoap2.transport.ServiceConnectionMidp."
>
> Can anyone help?
>
> 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] App adds a button to another app

2009-06-24 Thread s

How can I cause my app to add a button to another app, the text
messaging app for instance?  I want to add a button and then listen
for when it is pressed, at which point code from my app would
execute.  In the notepad exercise 1 tutorial from the dev guide,
there's a link that says "add a button to an existing application!"
but this just links to the common development tasks.  I've searched
this but haven't found anything helpful.

Any help would be greatly appreciated!

Thanks,
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: Transparency/Translucency working on emulator but not device

2009-06-24 Thread Ehermit

I played with Transparency and fullscreen settings for a few hours.
This is what I found:
- The API Demo does not adequately describe the process of setting up
transparency and translucency.
- For the G1 with SDk1.5, Transparency is a Window setting so it needs
to be set early before you start adding views to the window.
(I found newsgroup postings which set the transparency late. I presume
this worked on SDK1.0+Emulator)

- Setting the activity's theme in the xml to transparent is the
simplest way to achieve this effect.

- Watch out: Translucent and Fullscreen options do not play together
as expected (the status bar is still above your application; only when
the window is not translucent the app is truly fullscreen). If you can
figure out how to create a true Translucent+Fullscreen window, please
let me know!

Setup:
* Setup your translucent colors in colors.xml -
You'll need this to set the windowBackground in the style

#


Set up your basic style in style.xml -



 

@drawable/
transparent_background
true
false
   true
@android:style/
Animation.Translucent
 

Add  your translucent theme to your activity:
 /platforms/android-1.5/data/res/values/themes.xml

To add a blur effect, add the following code before you inflate your
view:
final Window w = getWindow();
int flag = WindowManager.LayoutParams.FLAG_BLUR_BEHIND;
w.setFlags(flag, flag);
... now inflate your view

I doubt the above notes are complete or the whole story - but I hope
they're useful.
Regards,
Ehermit


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

2009-06-24 Thread lafemin...@aol.com

can someone develop an mlb at bat app like the iphone has  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] new app please

2009-06-24 Thread lafemin...@aol.com

can someone come up with an app to watch streamming baseball and get
audio for baseball games like the iphone has please im begging like
the 1 mlb has on the iphone apps

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

2009-06-24 Thread Ehermit

You can browse the source for the SDK1.5. camera app here-

http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=tree;hb=dafe31ead98304414f84f021bd0c155e62d833c2

Take a look at  AndroidManifest.xml intents and the source code of the
Activities inside the src/ directory)

-Ehermit

On Jun 23, 3:27 am, N0m0r3l13s  wrote:
> Hi.
>
> I suppose there must be an Intent to call the camera app.
>
> Other thing is if you want to capture video directly from camera.
> The best way you can do it is analyzing the camera application that
> comes from
> google. And follow up the steps to set it up in you program.
>
> Sorry, cannot help more.
>
> On 23 jun, 07:38, cindy  wrote:
>
> > I want to call camera application from my own application, take video.
> > Then I want to get the video back and return to my application. How
> > Can I do it?
>
> > Thanks!
>
> > April

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

2009-06-24 Thread green

Hi, Can I use Eclipse TPTP (Test and Performance Tools Platform) to
profile android applications? 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: Use own map layer in Google Maps

2009-06-24 Thread petru bouros
Hi,
someone saw the www.recomandari-imobiliare.ro
I want to do a link exchange, like someone?



2009/6/24 JP 

>
> Hi John,
>
> Thanks for your reply. Gonna look into that tomorrow for sure!
>
> In your example you have added a point to the map, and I also get a
> javascript error. I am interested in adding a shape. Kind of like
> this:
>
> http://www.weather.com/maps/activity/garden/index_large.html
>
> I was trying to find a temperature map, but this will do ;-). There
> are shapes in red, yellow and green, and I have a similar map with a
> rating I use. I want to know which chape I am currently in.
>
> But thanks for the pointer, I will look into it!
>
> JP
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp.

2009-06-24 Thread Gopal

Testing mail. Please ignore

On May 28, 8:39 am, "Mark Murphy"  wrote:
> > I've been getting this error "Could not find method
> > javax.microedition.io.Connector.open, referenced from method
> > org.ksoap2.transport.ServiceConnectionMidp."
>
> > Can anyone help?
>
> Android is not JavaME and therefore does not contain javax.microedition.*
> classes.
>
> With regards to kSOAP2, there is a separate project where the Android port
> of it is being maintained, though I don't have the URL handy right now.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 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] Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread JC

Dear sir,

I learnt that there is a "recommended" minimum device requirements for
Android device, however if I want to develop a device without five-way
navigation key, is this allowed?

BR,
JC


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp.

2009-06-24 Thread Gopal

Hi,
Is your problem solved? I am also facing this problem. Can u please
help me?
If u have the link kindly send me.

Thanks in advance:

Thanks & Regards:
Gops

On May 28, 8:39 am, "Mark Murphy"  wrote:
> > I've been getting this error "Could not find method
> > javax.microedition.io.Connector.open, referenced from method
> > org.ksoap2.transport.ServiceConnectionMidp."
>
> > Can anyone help?
>
> Android is not JavaME and therefore does not contain javax.microedition.*
> classes.
>
> With regards to kSOAP2, there is a separate project where the Android port
> of it is being maintained, though I don't have the URL handy right now.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 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] getting an image from a video on android

2009-06-24 Thread Jaouad

Please, can someone help me about this issue I’m facing?

I want to retrieve a shot/picture from a video (mp4 or 3gp) and
display it before playing the video itself on an android project.

How can I do it?

Thanks in advance for any response,

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

2009-06-24 Thread Sharyu

Hi,

I'm doing instrment test on context menu to verify following things:
1. The number of menu item in context menu is correct.
2. Text of each menu item is right.
3. Click action of each menu item is right.

Here is my code to call context menu which can be run successfully:

View v = _listactivity.getListView().getChildAt(0);
Instrumentation inst = getInstrumentation();
TestUtil.longclickOn(inst, v);
inst.waitForIdleSync();

Then I want to get Menu object of the context menu, so that I can get
menu.size(), access each menu item and check them. However I have no
idea of how to get the Menu object. Is there any method like
View.getContextMenu(), or others?

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: Wifi reconnects all the time while in background mode

2009-06-24 Thread othy74

I'm facing the same issue. Without manual intervention (switching wi-
fi off and on again) it can sometimes take several hours for wi-fi to
reestablish itself.

Setting 'Wi-Fi sleep policy' to 'never' also does not seem to help.

I assume this is the same as issue 2059. Any update on 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] 404 on maps key signup on a site, and the other doesn't work

2009-06-24 Thread Zied Hamdi

Hi,

I have the following 404 error when I try to signup with my
fingerprint

http://code.google.com/intl/fr/android/add-ons/google-apis/signup.html?agreeTerms=1&fp=31%3AC9%3A5F%3A87%3AD9%3A9D%3A77%3A65%3A90%3A71%3AF6%3AD3%3AD9%3A4B%3A74%3A78

I have verified: the page signup doesn't exist really, this is
problematic for me to generate my key, I'm developing an app for the
Android.

After a search on the net I found this other adress:
http://code.google.com/intl/fr/android/maps-api-signup.html

This time a key is generated for my debug keystore but the map stil
won't show.
http://www.google.com/glm/mmap/a/api?fp=31%3AC9%3A5F%3A87%3AD9%3A9D%3A77%3A65%3A90%3A71%3AF6%3AD3%3AD9%3A4B%3A74%3A78

In my code I use the keymap
mapView = new MapView(this,
"0i_wgL9EbKDC7Ut39ZTFvfTEwbbGLOI30CtaI1w");
But in my LogCat (under eclipse) I still have the following log
06-24 09:39:48.970: ERROR/ActivityThread(710): Failed to find provider
info for com.google.settings
06-24 09:39:50.042: INFO/MapActivity(710): Handling network change
notification:CONNECTED
06-24 09:39:50.042: ERROR/MapActivity(710): Couldn't get connection
factory client


Please any help will be very appreciated.

Regards,
Zied

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