[android-developers] Re: Support for USIM messages in android

2009-02-03 Thread srinivas

Hi,
Can any body please confirm that USIM sim IO, like reading messages
etc are not supported in android.

Thanks
Srinivas

On Feb 3, 3:29 pm, srinivas  wrote:
> hi,
> At present android supports GSM sim messages decoding only.
> Is there any plan for supportingUSIMmessage decoding?
> Can you please give form pointers for implementing this in android?
>
> Thanks
> Srinivas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 update list

2009-02-03 Thread cindy


I implemented the async incoming data on a separate thread which adds
the items to a ArrayList that is connected to the view through my
custom
adapter (inherits BaseAdapter). But when I modified the ArrayList, the
application crashes.

Have you have the same problem?
On Feb 3, 5:03 pm, Emmanuel  wrote:
> Do you mean the data from your adapter has changed, and you want to
> update your list from this ?
>
> To achieve this result, I create the adapter from the new data, and
> reset it to the list.
> There should be another cleaner method, but this is works for me !
>
> Emmanuelhttp://androidblogger.blogspot.com/
>
> On Feb 3, 7:36 pm,cindy wrote:
>
> > I have a list. Which will first show 10 items, user would be able to
> > do pagination with click pagination button.
>
> > The list is extended from listActivity, and the list adapter is
> > extends from BaseAdapter .
>
> > But how to update UI when I get next 10 items back?
>
> > 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] Adding Cipher suite TLS_RSA_WITH_AES_128_CBC_SHA to SSLEngine

2009-02-03 Thread wopeipeipei

Hi Experts,
I know Cipher suite TLS_RSA_WITH_AES_128_CBC_SHA is supported by
SSLSocket in Android since Google modified SSLSocket in Harmony JDK by
using JNI to invoke OpenSSL library but unfortunately, SSLEngine
doesn't support TLS_RSA_WITH_AES_128_CBC_SHA because it's using the
default implementation of Harmony JSSE provider. Since BouncyCastle
JCE provider is there in Android platform and it supports AES Cipher,
I am wondering if it's possible to add support for
TLS_RSA_WITH_AES_128_CBC_SHA to SSLEngine by letting Harmony JSSE
provider call BouncyCastle JCE provider? I have already had a try by
adding TLS_RSA_WITH_AES_128_CBC_SHA related code to CipherSuite.java
but I always got strange padding(or MAC) errors. I have no idea what
was going wrong because I am totally a newbie in this area. Could
anyone here please tell me I am going the correct way or not?

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

2009-02-03 Thread Jeff Oh


 Hi, thanks for your interest.

 I've tested many streams, but the following is the the most
conservative one.
 Video frame is 176x144, 8 fps.
 Video bitrate is around 64kbps, audio bitrate is 80kbps.
 I think this happens only with H.264 video. (base profile)

 The video player I used to test were two. One is Meridian Video
Player downloaded from android market and the other is my own
developed one (they show me the same result).
 I used android sdk r2 with g1 phone rc30.

 The log is like the following.

---
02-04 16:04:57.754: ERROR/QCvdecH264(32): get_parameter: unknown param
0ff7a347
02-04 16:04:57.754: WARN/QCvdec(32): vdec: opened
02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.774: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.774: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.114: DEBUG/dalvikvm(105): GC freed 325 objects / 15208
bytes in 105ms
02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.845: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.854: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:10.114: DEBUG/dalvikvm(997): GC freed 1095 objects / 76232
bytes in 108ms

 I couldn't find what those error message means.

 Also, as I know g1 phone uses QDSP to decode MPEG4 video and H.264
video. Am I right?

Best regards,
 Jeff.

On 2월4일, 오후2시40분, "Jerry Yang"  wrote:
> Hi, Which player are you using? Or just calling the android sdk to play
> the rtsp stream?
> Thanks
> With best wishes
> Jerry
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:android-develop...@googlegroups.com] On Behalf OfJeffOh
> Sent: Tuesday, February 03, 2009 7:59 PM
> To: Android Developers
> Subject: [android-developers] RTSP Streaming on g1 phone
>
>  Hi, I'm trying to receive RTSP streaming video with g1. The video
> file I made was encoded using QuickTime pro, and they are progressive
> streamable with a hint track. Video is encoded in H.264, and audio is
> encoded in AAC LC. File container is MP4. (They can be played via
> sdcard)
>
>  I used Darwin Streaming Server to stream this file.
>
>  With sample media player given from android, I changed 'path' to the
> address like "rtsp://172.29.10.109/test.mp4"
>
>  The results are really odd. It sometimes (like once per 20~30 times)
> runs well, but in other times, only audio is played and video freezes
> after first 1~3 frames.
>
>  Is there anyone having same problem or any idea? Any comments will be
> very appreciated.
>  Thanks in forward.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~

[android-developers] Not able to open a website using WebView

2009-02-03 Thread Pratap

Hi
I am trying to open a website using WebView.
I am behind a proxy, but have already configured the settings database
with the proxy values.
When i try to open any internal website like a Tomcat running on my
desktop, it opens up properly.
The problem comes up when i try to open any external website like
www.yahoo.com.
The screen goes white for sometime and then I get message "Web Page
not available".

Also, the native Android browser is able to open all websites
sucessfully.
This seems to be an issue because of proxy, but I am not able to find
any solution.
Please help me as Ihave been stuck on this for quite some time now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 test the existence of a specific activity ?

2009-02-03 Thread Dan Raaka

This should help
http://www.curious-creature.org/2008/12/15/android-can-i-use-this-intent/

-Dan

On Feb 3, 1:18 pm, hapciu  wrote:
> Is there a way to find out whether a specific activity is present on
> the phone ? I mean without firing an intent to start it and then catch
> the exception.
>
> thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: What is the 'correct' way to set styles programmatically?

2009-02-03 Thread Dianne Hackborn
All of the APIs you need -- Theme.obtainStyledAttributes() in particular --
are part of the SDK.

As we just covered in another thread, there is no API to change/reapply a
style on a view after that view has been constructed.  This is not a matter
of there being a public API, it is simply not something that is supported at
all.

The code you originally posted showed you manually retrieving the values you
are interested in from a style and calling setters on a view, which you can
certainly do.

On Tue, Feb 3, 2009 at 10:35 PM, Kennard Consulting <
rich...@kennardconsulting.com> wrote:

>
> Dianne,
>
> Thanks for the prompt reply. However, I don't think your answer works
> in my case, as what I am trying to do is a little unusual.
>
> I'm trying to apply styles *programmatically*, like the Android
> framework does internally using (I think) AssetManager.applyStyle and/
> or Theme.obtainStyleAttributes. However, neither of these are exposed
> in the public API.
>
> Is there a way, in the public API, to apply a style to a View at
> runtime, given the style id and the View object? For example...
>
>TextView view = new TextView();
>applyStyle( view, R.mystyle );
>
> Regards,
>
> 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.  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: What is the 'correct' way to set styles programmatically?

2009-02-03 Thread Kennard Consulting

Dianne,

Thanks for the prompt reply. However, I don't think your answer works
in my case, as what I am trying to do is a little unusual.

I'm trying to apply styles *programmatically*, like the Android
framework does internally using (I think) AssetManager.applyStyle and/
or Theme.obtainStyleAttributes. However, neither of these are exposed
in the public API.

Is there a way, in the public API, to apply a style to a View at
runtime, given the style id and the View object? For example...

TextView view = new TextView();
applyStyle( view, R.mystyle );

Regards,

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] Upgrading SDK from 1.0 r1 to r2

2009-02-03 Thread lior

Hi all,

could not find any specific upgrade info for upgrading from version
1.0 r1 to 1.0 r2.

Any tips,

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



[android-developers] SD card not detected in Android

2009-02-03 Thread Rajesh N
 Hi all,

 I have ported android successfully on imx31 pdk board,  when I go in
android menu in music , it is not able to detect SD card placed in board,
significantly I haven't seen any device like "/dev/mmcxxx" in /dev  under
android shell , if there are pointers to this issue it would be a great help
for me..

Best Regards,
 Rajesh

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

2009-02-03 Thread Dianne Hackborn
There is no such thing.  There really aren't even folders, so I'm not sure
what you think you'll be protecting.

On Tue, Feb 3, 2009 at 12:09 PM, cH15hTy  wrote:

>
> I am trying to make a folder lock application for android platform.It
> basically involves asking the
> user a pre-set password when he clicks on a specified folder.Sir I am
> not getting any clue regarding how to get the event generated by
> operating system when the user opens the folder.Or if there is any
> such event generated at all.
>
> >
>


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

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

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



[android-developers] Re: broadcast event to trigger an UI

2009-02-03 Thread PRATAP SOLAPUR
Create an intent for ur activity and call
Context.startActivity(urIntent)...In ocRecieve() function u'll be
handled with the context.

On 2/4/09, BB  wrote:
>
>
> I am trying to get a UI to present itself when an incoming SMS
> happens.  When that happens, I would like to present a UI to the user.
>
> I have a BroadcastReceiver class that listens to the SMS_RECEIVED
> event.  I also have an Activity class that is capable of displaying
> the needed UI when the event happens.
>
> The questions is: How do I start the activity from within the
> onReceive method of BroadcastReceiver?
>
> I know others have done this but I can't seem to find any resources
> that illustrates how.
>
> >
>

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

2009-02-03 Thread Muthu Kumar K.

Hi All,
I have the problem while displaying the Multi select list view. I am
able to display the list view with check boxes. But it is not aligned
properly. It is coming along with the text itself (followed by the
text).

I am using two lines of code for displaying this multi select list as
follows,

multiListView.setAdapter(new ArrayAdapter(activityinstance,
android.R.layout.simple_list_item_multiple_choice, ));
multiListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

While checking and un checking  the items (check box) are dancing
(moving left and right).
Can any one suggest me to solve this issue.

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



[android-developers] Re: broadcast event to trigger an UI

2009-02-03 Thread PRATAP SOLAPUR
can u send me the code snippet of ur BroadcastReciever class..i'm
don kn how to use broadcast reciever

Thanks,
Pratap s


On 2/4/09, BB  wrote:
>
>
> I am trying to get a UI to present itself when an incoming SMS
> happens.  When that happens, I would like to present a UI to the user.
>
> I have a BroadcastReceiver class that listens to the SMS_RECEIVED
> event.  I also have an Activity class that is capable of displaying
> the needed UI when the event happens.
>
> The questions is: How do I start the activity from within the
> onReceive method of BroadcastReceiver?
>
> I know others have done this but I can't seem to find any resources
> that illustrates how.
>
> >
>

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

2009-02-03 Thread PRATAP SOLAPUR
U should implement onItemSelectedListener for list items...

On 2/4/09, munish  wrote:
>
>
> Hi All
>
> I want to set the onclicklistner on the each item to be displayed in
> ListVIew.
> Can anyone help me out ASAP.
>
> The code i have written is
>
> package munish.android;
>
> import android.app.ListActivity;
> import android.os.Bundle;
> import android.widget.ArrayAdapter;
>
>
>
> public class List extends ListActivity {
>
>
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>
>// Use an existing ListAdapter that will map an array
>// of strings to TextViews
>setListAdapter(new ArrayAdapter(this,
>android.R.layout.simple_list_item_1, mStrings));
>getListView().setTextFilterEnabled(true);
>}
>
>private String[] mStrings = {
> "ImageView", "Grid View", "List View", "Map View",
>"Image Switcher", "Queso Jalapeno", "Queso Majorero",
>};
> }
>
>
> >
>

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

2009-02-03 Thread PRATAP SOLAPUR
U need to use the ip address of the web..like  http://74.125.19.103 this
is for googlei was also  facing the same problemthis solved
it.emulator doesnt recognize dns names...
On 2/3/09, newuser  wrote:
>
>
> Hi,
>
> I am trying to run the GetDataFromTheWeb app from one of the Android
> tutorial. As I am behind a proxy, I did the proxy settings for
> emulator in Eclipse's Run dialog by specifying -http-proxy
> http://:@:
>
> After doing this setting, I am able to use the browser of the emulator
> but when i try to run the above mentioned app, I get Host is
> unresolved error. I am getting this for any URL i specify in the code
> ( www.anddev.org, www.google.com, etc).
>
> I did read on this forum that a couple of developers encountered this
> problem but there was no solution mentioned.
> If some one knows how to resolve this problem, kindly 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] Re: Using G1 as modem

2009-02-03 Thread cmisak - www.redkite.us

Xavier Mathews

Not so bright are you. tethering your phone (any phone) to your
laptop opens up a powerful traveling and mobile tool... Sure you can
surf your internet on your phone but that can be annoying, and doesn't
support Flash.. So peal open that thing you call a brain.

The problem i have with some of these hacks like teatherbot they scare
me to try. And half the instructions are difficult and incomplete for
someone that doesn't understand SDK.. has anyone found an app or
solution as easy as BlackBerry tethering? For now i'll stick to my
Pearl but i'm keeping a watchful eye on the G1 and maybe the G2 for
tethering and than i'll make the full jump.

Thanks All



On Dec 11 2008, 1:04 pm, "Xavier Mathews" 
wrote:
> U No and why would anybody want to use the G1 as a phone modem?
>
> On 12/11/2008, Tee  wrote:
>
>
>
> > Hi, the burning question on everyones lips are when is a developer
> > going to make an app that allows us to use the G1 phone as a modem?
>
> > Is there anything in progress out there...besides the hacked version
> > which seems like too much hassle
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Google Group Client Based Tech Support Specialist
> Hazel Crest Illinois
> xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> "Fear of a name, only increases fear of the thing itself."

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



[android-developers] Re: Media controller

2009-02-03 Thread Darky

You need just to extend the MediaController class and override the hide
() method. (you should leave it blank)

On Jan 30, 6:53 am, chn  wrote:
> Hi,
>
> I have created a media controller to for a media player. But the media
> controller disappears after 3 seconds of inactivity and it again
> visible if i touch the video surface. How can I make it stay
> continuously till the video clip ends?
>
> Following is the my code snippet..
>
>        MediaControllermCntrl = newMediaController(this);
>         mMediaView = new VideoView(this);
>         mMediaView.setMediaController(mCntrl);
>         mMediaView.setVideoPath(path);
>         setContentView(mMediaView);
>         mMediaView.requestFocus()l;
>
> Cheers
> chn

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



[android-developers] TV out for the T-Mobile G1 aka HTC DREAM possible ?

2009-02-03 Thread bassbox

Is there a way to write an application which sends out an SVideo or
simmilar signal over the extusb ?

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



[android-developers] folder lock application

2009-02-03 Thread cH15hTy

I am trying to make a folder lock application for android platform.It
basically involves asking the
user a pre-set password when he clicks on a specified folder.Sir I am
not getting any clue regarding how to get the event generated by
operating system when the user opens the folder.Or if there is any
such event generated at all.

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



[android-developers] Touch screen Issue with Android + i.MX31- Help

2009-02-03 Thread Rocky

Hi,

 I been working on Android for past few weeks , I have progressed
significantly on porting Android on IMX31 platform , now I am facing
problems with touch screen, it is not working !

 I have checked "cat /dev/input/event1" I get some junk info whenever
I touch screen which proves something is working around the driver,
off late I have seen mail listing on android and issues with
touchscreen, which mentions using of "TSLIB" for android file system.

 Can u provide me some inputs on following issues;

(a) How to "statically"  compile and integrate "TSLIB" to android
filesystem, this would be a great help as far I have seen on mailing
list most of them have failed to compile it statically!

(b) I would like to know if any patch or modification needs to be done
to "mxc_ts.c" file in  "../drivers/input/touchscreen/"
  I am attaching my "mxc_ts.c" file with mail , Kindly have a look
at it.

I will highly appreciate u r help/ suggestions on touch screen issues
& awaiting for u r responce.

Best Regards,
Rajesh

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



[android-developers] Linking Directly To An App In The Market?

2009-02-03 Thread fdsfsdf

Is there any way to link directly to an application in the
Marketplace? You know, so you could use something like AdMob to launch
the Marketplace and bring users to your app. Or to launch the
Marketplace from a URL or something.

Been trying to figure out how to do this. Anyone sniff any G1 traffic
yet?

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



[android-developers] base64 in the sdk ?

2009-02-03 Thread hapciu

Is there a base64 encoding/decoding utility anywhere in the Android
SDK ?
I wouldn't want to reinvent the wheel.

thanks

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



[android-developers] how to test the existence of a specific activity ?

2009-02-03 Thread hapciu

Is there a way to find out whether a specific activity is present on
the phone ? I mean without firing an intent to start it and then catch
the exception.

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] Major media company seeking vendor for Android app development

2009-02-03 Thread tom

Hi all,

I'm a mobile media product developer at a major media company in New
York City, and we are looking for a vendor with experience in Android,
web apps, and mobile in general. I understand Android is new, but if
you've got something out there to see already, that would really help.
Please reply with a brief description of your Android experience and a
link or a word about yourself and your company.

Thanks,
Tom



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



[android-developers] Upload Error (corrupt manifest)

2009-02-03 Thread ryan

After using apkbuilder to make an apk file and then jarsigning it with
a certificate good for 100 years, I'm getting this strange error when
attempting to upload:

The file is invalid: W/ResourceType(29469): Bad XML block: header size
28024 or total size 1702240364 is larger than data size 973 ERROR:
AndroidManifest.xml is corrupt

This is the same error I get if I let apkbuilder sign it.

The application builds and runs just fine on my phone via ABD/DDMS in
Eclipse. Couldn't find anything relating to this error out on the web.

Here is my manifest:


http://schemas.android.com/apk/res/android";
android:versionCode="1" android:versionName="1.0.0"
package="info.yoosefi.android.scout">















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



[android-developers] Question: How to debug Calendar or other default applications

2009-02-03 Thread Cliff

I've setup my debug environment and I can generate android projects
like "api demo" using eclipse and adt, and I can debug it as well.

Now's the problem, when I generated a Calendar app from the raw
source. I found many imports are missing. Like
android.provider.Calendar.Reminders; android.text.format.DateFormat
etc. So it can't be compiled at all.

Can anyone give me some hint about how to debug these projects like
this one? Thank you very much.

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



[android-developers] CallLog.Calls.NEW - what is it?

2009-02-03 Thread Dan

Hello,

The javadoc description for this column is: "Whether or not the call
has been acknowledged".  Acknowledged how, and by whom or by what?

As far as I can tell with the emulator, a missed call has NEW value 0,
and incoming and outgoing calls have value 1.  And nothing I do from
the call log seems to change this value (e.g. returning a missed call,
etc.).

A related question:  how do I simulate a waiting voicemail on the
emulator?  I tried checking the "send directly to voicemail" box on a
contact and then having that number call in, but the call just rings
until one end or the other hangs up.

Thanks,
dan

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



[android-developers] broadcast event to trigger an UI

2009-02-03 Thread BB

I am trying to get a UI to present itself when an incoming SMS
happens.  When that happens, I would like to present a UI to the user.

I have a BroadcastReceiver class that listens to the SMS_RECEIVED
event.  I also have an Activity class that is capable of displaying
the needed UI when the event happens.

The questions is: How do I start the activity from within the
onReceive method of BroadcastReceiver?

I know others have done this but I can't seem to find any resources
that illustrates how.

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



[android-developers] Onclick listener on ListView items

2009-02-03 Thread munish

Hi All

I want to set the onclicklistner on the each item to be displayed in
ListVIew.
Can anyone help me out ASAP.

The code i have written is

package munish.android;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;



public class List extends ListActivity {


public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Use an existing ListAdapter that will map an array
// of strings to TextViews
setListAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_item_1, mStrings));
getListView().setTextFilterEnabled(true);
}

private String[] mStrings = {
 "ImageView", "Grid View", "List View", "Map View",
"Image Switcher", "Queso Jalapeno", "Queso Majorero",
};
}


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



[android-developers] Read Image with multiple Frames - Animated Gif

2009-02-03 Thread Siva Rajaraman

Hello Everyone,

I would like to know how to read in an image file which has multiple
frames in it. Something like an animated gif file. I would like to
perform frame by frame animation with a file of this type. I don't
want to have each frame as drawables in the resource directory. Can
anyone trhow some light on how to perform the above mentioned tasks.

Thanks

Siva

P.S - I have already checked the example in the API demos where an
animated gif is read as an object of type Movie. I don't want to read
it in as a movie file.

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



[android-developers] getting problem in playing h264 file on emulator

2009-02-03 Thread ankit

hi all.i m trying to run an h264 file on emulator but it shows
message "sorry,can't play this clip" on emulator .In logcat traces i
found error <-4,0>.
Can u please give suggestions to rectify this?

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] can't kill dhcpcd completely?

2009-02-03 Thread Bai.Luo

i find that init process will periodically check all of the service,
when the init found through PID does not exist,which created by the
init process, init process will then start again

this may cause something wrong:

in the init.rc script
...
service dhcpcd /system/bin/dhcpcd eth0
disabled

and i modified it like this

service dhcpcd /system/bin/dhcpcd eth0
disabled
oneshot

but everytime i open the wifi,the system will fork a new dhcpcd
process,and after i shutdown the wifi,the dhcpcd process is still
alive.
so after i open and close the wifi many times,there are many dhcpcd
process exist

the ps log is here.there are three dhcpcd process:
 677 root 0 DW<  [SDIO Helper]
 679 root 0 DW<  [SDIO Helper]
 681 root   724 S/system/bin/sh
 682 1000   796 S/system/bin/servicemanager
 683 root  1824 S/system/bin/mountd
 685 root   652 S/system/bin/debuggerd
 686 root  8280 R/system/bin/rild
 687 root 70372 Szygote /bin/app_process -Xzygote /system/bin
--zygote
 688 1013 16844 S/system/bin/mediaserver
 692 root   788 S/system/bin/installd
 694 root  3328 S/sbin/adbd
 697 root  1592 S/sbin/getty ttyMSM2 115200 vt100
 722 1000  165m Ssystem_server
 771 root   732 S/system/bin/sh -
 773 1001 97660 Scom.android.phone
 937 1000  104m Rcom.android.settings
 997 1014   732 S/system/bin/dhcpcd eth0
1086 1014   764 R/system/bin/dhcpcd eth0
2575 root  1860 S/system/bin/wpa_supplicant -Dwext -ieth0 -c/
data/misc
2622 1014   692 S/system/bin/dhcpcd eth0
2624 1000193544 Sandroid.process.media
2637 root  1596 Rps


so my question is: where is the proble?and :how to fix this problem?


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



[android-developers] Re: cupcake/development/tools/eclipse/scripts/build_server.sh failed on Mac OS -- HELP

2009-02-03 Thread Jerry Yang

I use a unbentu VM to run the Darwin streaming server, it seems working
well.
On windows mobile platform, I also tried to optimize the rtsp on media
player, it seems cases are quit complex. I suggest you to use the VLC as
reference media player.
With best wishes
Jerry

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of
enetconsult...@comcast.net
Sent: Wednesday, February 04, 2009 1:47 PM
To: android-developers@googlegroups.com
Subject: [android-developers]
cupcake/development/tools/eclipse/scripts/build_server.sh failed on Mac
OS -- HELP


I am using  Mac Pro which has "Darwin" linux.  I tried to ADT 0.9.0 by
running the script at

cupcake/development/tools/eclipse/scripts/build_server.sh

The script keeps failing with error saying that it only works on Linux.


I am in need of the ADT 0.9.0.  Is there a way for me to successfully
building this from the cupcake source ?

If not, can someone send me a built ADT 0.9.0 ? 

Any help is greatly appreciated.   Please, email me at
'enetconsult...@comcast.net

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] cupcake/development/tools/eclipse/scripts/build_server.sh failed on Mac OS -- HELP

2009-02-03 Thread enetconsultant

I am using  Mac Pro which has "Darwin" linux.  I tried to ADT 0.9.0 by running 
the script at

cupcake/development/tools/eclipse/scripts/build_server.sh

The script keeps failing with error saying that it only works on Linux.  

I am in need of the ADT 0.9.0.  Is there a way for me to successfully building 
this from the cupcake source ?

If not, can someone send me a built ADT 0.9.0 ? 

Any help is greatly appreciated.   Please, email me at 
'enetconsult...@comcast.net

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: RTSP Streaming on g1 phone

2009-02-03 Thread Jerry Yang

Hi, Which player are you using? Or just calling the android sdk to play
the rtsp stream?
Thanks
With best wishes
Jerry

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh
Sent: Tuesday, February 03, 2009 7:59 PM
To: Android Developers
Subject: [android-developers] RTSP Streaming on g1 phone



 Hi, I'm trying to receive RTSP streaming video with g1. The video
file I made was encoded using QuickTime pro, and they are progressive
streamable with a hint track. Video is encoded in H.264, and audio is
encoded in AAC LC. File container is MP4. (They can be played via
sdcard)

 I used Darwin Streaming Server to stream this file.

 With sample media player given from android, I changed 'path' to the
address like "rtsp://172.29.10.109/test.mp4"

 The results are really odd. It sometimes (like once per 20~30 times)
runs well, but in other times, only audio is played and video freezes
after first 1~3 frames.

 Is there anyone having same problem or any idea? Any comments will be
very appreciated.
 Thanks in forward.




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

2009-02-03 Thread for android
notifyDataSetChanged().

On Wed, Feb 4, 2009 at 6:33 AM, Emmanuel  wrote:

>
> Do you mean the data from your adapter has changed, and you want to
> update your list from this ?
>
> To achieve this result, I create the adapter from the new data, and
> reset it to the list.
> There should be another cleaner method, but this is works for me !
>
> Emmanuel
> http://androidblogger.blogspot.com/
>
> On Feb 3, 7:36 pm, cindy  wrote:
> > I have a list. Which will first show 10 items, user would be able to
> > do pagination with click pagination button.
> >
> > The list is extended from listActivity, and the list adapter is
> > extends from BaseAdapter .
> >
> > But how to update UI when I get next 10 items back?
> >
> > 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] Re: RTSP Streaming on g1 phone

2009-02-03 Thread Dave Sparks

Frame size? Video and audio bitrate? Anything in the log?

On Feb 3, 3:59 am, Jeff Oh  wrote:
>  Hi, I'm trying to receive RTSP streaming video with g1. The video
> file I made was encoded using QuickTime pro, and they are progressive
> streamable with a hint track. Video is encoded in H.264, and audio is
> encoded in AAC LC. File container is MP4. (They can be played via
> sdcard)
>
>  I used Darwin Streaming Server to stream this file.
>
>  With sample media player given from android, I changed 'path' to the
> address like "rtsp://172.29.10.109/test.mp4"
>
>  The results are really odd. It sometimes (like once per 20~30 times)
> runs well, but in other times, only audio is played and video freezes
> after first 1~3 frames.
>
>  Is there anyone having same problem or any idea? Any comments will be
> very appreciated.
>  Thanks in forward.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Table layout without using Android XML

2009-02-03 Thread Muthu Kumar K.

Hi,
Thanks for your help, I got some idea.
But here I am trying to make use of the following XML,

http://schemas.android.com/apk/res/
android"

android:layout_width="200dip"
android:layout_height="200dip">


















If possible can you help me how to write code equivalent to this XML??

Thanks in Advance,
Muthu Kumar K.


On Feb 4, 6:25 am, Emmanuel  wrote:
> Should MainLayout be the layout you want to add your Table Layout in,
> and MyActivity, your activity ( odds are great that this one is simply
> 'this' ) :
>
> TableLayout curTable = new TableLayout( MyActivity);
> for (int i = 0; i < mNbRows; i++)
> {
>         TableRow CurRow = new TableRow( MyActivity );
>         for (int j = 0; j < mNbColumns; j++)
>         {
>                 // Add your content in your curRow here
>                 // for instance for a button :
>                 Button CurButton = new Button( MyActivity );
>                 CurRow.addView(CurButton);
>         }
>         curTable.addView( CurRow );}
>
> MainLayout.addView ( curTable );
>
> Emmanuelhttp://androidblogger.blogspot.com/
>
> On Feb 3, 8:26 am, "Muthu Kumar K."  wrote:
>
> > Hi all,
> > Can any one help me how to create table layout with out using the
> > Android XML.
>
> > Thanks in Advance,
> > Muthu Kumar K.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: What is the 'correct' way to set styles programmatically?

2009-02-03 Thread Dianne Hackborn
You can just do your own  of the set of attribute
resources you want, and use that like you were doing before.

On Tue, Feb 3, 2009 at 8:15 PM, Kennard Consulting <
rich...@kennardconsulting.com> wrote:

>
> Dear All,
>
> Given a widget and a int that references a style (defined in my res/
> values/style.xml), what is the 'correct' way to programmatically apply
> the style to the widget?
>
> Up until now I've been hacking this by...
>
> protected void applyStyle( View view, int style ) {
>
>TypedArray attributes = getContext().obtainStyledAttributes( style,
> android.R.styleable.View );
>
>int padding = attributes.getDimensionPixelSize
> ( android.R.styleable.View_padding, -1 );
>view.setPadding( padding, padding, padding, padding );
> }
>
> ...but with the demise of android.R.styleable in 1.0 Release 2, I
> guess it's time to implement this properly?
>
> I note:
>
> 1. AssetManager.applyStyle is package-protected
> 2. Theme.obtainStyleAttributes is hardcoded to use XmlBlock$Parser,
> not just an AttributeSet
>
> So what is the 'official' way?
>
> Regards,
>
> 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.  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-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Dianne Hackborn
It means that the SDK does not include support for native ARM code.
Figuring out tricks to use it is just like working around the SDK to use
some other unsupported API: you will most likely break at some point in the
future when your users receive an OTA update that changes the API you are
using.  In this case, the API is the entire set of APIs for native code: the
calling conventions, posix and c library, etc.

Sorry but that is all I have time to post on this topic.  You can do a
search on the group to find numerous other discussions on it.

On Tue, Feb 3, 2009 at 8:35 PM, Jerry Yang  wrote:

>  Hi, Dianne
>
> I also see some declaration that says the native code is not supported in
> current SDK.
>
>
>
> I am a little bit confused.
>
> So is this API can work for loading a C written library? That means the
> android java platform can use the function implied in the library( .so
> cross-compiled by arm based GCC), is that right?
>
> Maybe my conception is not correct, but what is the exact meaning of
> "Native code support"? is it means the JNI or anything else?
>
>
>
> Thanks
>
> With best wishes
>
> Jerry
>
>
>
> *From:* android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] *On Behalf Of *Dianne Hackborn
> *Sent:* Wednesday, February 04, 2009 12:09 PM
>
> *To:* android-developers@googlegroups.com
> *Subject:* [android-developers] Re: [android-developers]Using JNI to call
> C lib on android platform
>
>
>
> That API is part of the SDK, but native code is not a part of the SDK, so
> it probably won't do you much good.
>
> On Tue, Feb 3, 2009 at 7:41 PM, Jerry Yang  wrote:
>
> Hi, Dianne
>
> I find an api with the name 
> "*java.lang.System.*loadLibrary
> "
>
> Is this api not supported in Android SDK now?
>
> Thanks
>
> With best wishes
>
> Jerry
>
>
>
> *From:* android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] *On Behalf Of *Dianne Hackborn
> *Sent:* Wednesday, February 04, 2009 11:25 AM
> *To:* android-developers@googlegroups.com
> *Subject:* [android-developers] Re: [android-developers]Using JNI to call
> C lib on android platform
>
>
>
> Sorry, native code is not currently supported in the SDK.
>
> On Tue, Feb 3, 2009 at 6:27 PM, Jerry Yang  wrote:
>
> Hi, all
>
> Does anyone have any information about using the external C written lib?
>
> I have a C lib(no user interface, can be compiled like dll or lib) that
> need to be used in the app, but I cannot find any document in android SDK
> about how to use the external lib.
>
>
>
> My idea is: I should cross-compile the lib with arm based detain GCC and
> use the interface to Android app. Any one has any document or example about
> this?
>
> Appreciate for your help!
>
>
>
> With best wishes
>
> Jerry Yang
>
>
>
>
>
>
>
>
>
>
>
>
> --
>
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
>
>
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
>
> >
>


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

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

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



[android-developers] Re: [android-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Jerry Yang
Hi, Dianne

I also see some declaration that says the native code is not supported
in current SDK.

 

I am a little bit confused.

So is this API can work for loading a C written library? That means the
android java platform can use the function implied in the library( .so
cross-compiled by arm based GCC), is that right?

Maybe my conception is not correct, but what is the exact meaning of
"Native code support"? is it means the JNI or anything else?

 

Thanks

With best wishes

Jerry 

 

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Dianne
Hackborn
Sent: Wednesday, February 04, 2009 12:09 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: [android-developers]Using JNI to call
C lib on android platform

 

That API is part of the SDK, but native code is not a part of the SDK,
so it probably won't do you much good.

On Tue, Feb 3, 2009 at 7:41 PM, Jerry Yang 
wrote:

Hi, Dianne

I find an api with the name "java.lang.System.loadLibrary
 "

Is this api not supported in Android SDK now?

Thanks

With best wishes

Jerry

 

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Dianne
Hackborn
Sent: Wednesday, February 04, 2009 11:25 AM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: [android-developers]Using JNI to call
C lib on android platform

 

Sorry, native code is not currently supported in the SDK.

On Tue, Feb 3, 2009 at 6:27 PM, Jerry Yang 
wrote:

Hi, all

Does anyone have any information about using the external C written lib?

I have a C lib(no user interface, can be compiled like dll or lib) that
need to be used in the app, but I cannot find any document in android
SDK about how to use the external lib.

 

My idea is: I should cross-compile the lib with arm based detain GCC and
use the interface to Android app. Any one has any document or example
about this?

Appreciate for your help!

 

With best wishes

Jerry Yang

 

 

 

 




-- 

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

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



 

 




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

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




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



[android-developers] Re: Template for Activity

2009-02-03 Thread for android


On Tue, Feb 3, 2009 at 9:58 PM, mat  wrote:

>
> Hi All,
> Is it possible to add the same element e.g ImageView, TextView to all
> activity layouts ? Can I do it by specifying some kind of template,
> theme maybe in order to omit adding the same component to every
> layout.
>
> 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] What is the 'correct' way to set styles programmatically?

2009-02-03 Thread Kennard Consulting

Dear All,

Given a widget and a int that references a style (defined in my res/
values/style.xml), what is the 'correct' way to programmatically apply
the style to the widget?

Up until now I've been hacking this by...

protected void applyStyle( View view, int style ) {

TypedArray attributes = getContext().obtainStyledAttributes( style,
android.R.styleable.View );

int padding = attributes.getDimensionPixelSize
( android.R.styleable.View_padding, -1 );
view.setPadding( padding, padding, padding, padding );
}

...but with the demise of android.R.styleable in 1.0 Release 2, I
guess it's time to implement this properly?

I note:

1. AssetManager.applyStyle is package-protected
2. Theme.obtainStyleAttributes is hardcoded to use XmlBlock$Parser,
not just an AttributeSet

So what is the 'official' way?

Regards,

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: [android-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Dianne Hackborn
That API is part of the SDK, but native code is not a part of the SDK, so it
probably won't do you much good.

On Tue, Feb 3, 2009 at 7:41 PM, Jerry Yang  wrote:

>  Hi, Dianne
>
> I find an api with the name 
> "*java.lang.System.*loadLibrary
> "
>
> Is this api not supported in Android SDK now?
>
> Thanks
>
> With best wishes
>
> Jerry
>
>
>
> *From:* android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] *On Behalf Of *Dianne Hackborn
> *Sent:* Wednesday, February 04, 2009 11:25 AM
> *To:* android-developers@googlegroups.com
> *Subject:* [android-developers] Re: [android-developers]Using JNI to call
> C lib on android platform
>
>
>
> Sorry, native code is not currently supported in the SDK.
>
> On Tue, Feb 3, 2009 at 6:27 PM, Jerry Yang  wrote:
>
> Hi, all
>
> Does anyone have any information about using the external C written lib?
>
> I have a C lib(no user interface, can be compiled like dll or lib) that
> need to be used in the app, but I cannot find any document in android SDK
> about how to use the external lib.
>
>
>
> My idea is: I should cross-compile the lib with arm based detain GCC and
> use the interface to Android app. Any one has any document or example about
> this?
>
> Appreciate for your help!
>
>
>
> With best wishes
>
> Jerry Yang
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
>
> >
>


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

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

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



[android-developers] Re: CoolReader Open Source

2009-02-03 Thread babyblue

Cool. Well done!

On Feb 2, 2:15 pm, SinFrancis  wrote:
> CoolReader Open Source
>
> source address :http://androidos.cc/bbs/viewthread.php?tid=675&extra=page%3D1
>
> CoolReader? is based on the Android platform for readers, the current
> version 0.7.0.0, the following documents in support of sdcard
>
> browsing, support for Txt file reading, specific functions are as
> follows:
>
> * support sdcard file browser
> * support Txt documents read
> * support for large file read (up to test 50M)
> * to support the font settings
> * support custom background settings
> * to support the unlimited class bookmark
> * support bookmarks deleted, Jump
> * support percentages
> * support screen rotation
> * to support the keyboard and flip Scroll
> * to support the touch screen and flip Scroll
>
> If you are a user directly download the installation package and can
> install and use manual.
>
> Address:http://code.google.com/p/coolreader/downloads/list
>
> If you are a developer, please use the Eclipse Ganymede 3.4 version,
> SDK for RC2, ADT 0.8, JDK 1.6 Version
>
> And Eclipse working directory encoding for UTF-8.
>
> If you join us, the availability of the Android OS community training
> and technical support.
>
> Address:http://androidos.cc/bbs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Jerry Yang
Hi, Dianne

I find an api with the name "java.lang.System.loadLibrary
 "

Is this api not supported in Android SDK now?

Thanks

With best wishes

Jerry

 

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Dianne
Hackborn
Sent: Wednesday, February 04, 2009 11:25 AM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: [android-developers]Using JNI to call
C lib on android platform

 

Sorry, native code is not currently supported in the SDK.

On Tue, Feb 3, 2009 at 6:27 PM, Jerry Yang 
wrote:

Hi, all

Does anyone have any information about using the external C written lib?

I have a C lib(no user interface, can be compiled like dll or lib) that
need to be used in the app, but I cannot find any document in android
SDK about how to use the external lib.

 

My idea is: I should cross-compile the lib with arm based detain GCC and
use the interface to Android app. Any one has any document or example
about this?

Appreciate for your help!

 

With best wishes

Jerry Yang

 

 

 

 




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

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




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



[android-developers] Re: How to acquire device name with code

2009-02-03 Thread Stanley.lei

Thanks a lot. I will have a try.

Stanley

On Feb 4, 10:58 am, "Jerry Yang"  wrote:
> I believe this link may helpful for 
> u.http://code.google.com/android/reference/android/os/Build.html
> With best wishes
> Jerry
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:android-develop...@googlegroups.com] On Behalf Of Stanley.lei
> Sent: Wednesday, February 04, 2009 10:22 AM
> To: Android Developers
> Subject: [android-developers] How to acquire device name with code
>
> Hi,
>
> As we know, when we connect the G1 phone with USB, we could use "adb
> devices" to show its device name. My question is whether there is a
> method to detect this device name in phone with code, or how to judge
> the "device name" is the just "myself" with code?
>
> Any comment will be appreciated.
>
> Thanks,
>
> Stanley
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Dianne Hackborn
Sorry, native code is not currently supported in the SDK.

On Tue, Feb 3, 2009 at 6:27 PM, Jerry Yang  wrote:

>  Hi, all
>
> Does anyone have any information about using the external C written lib?
>
> I have a C lib(no user interface, can be compiled like dll or lib) that
> need to be used in the app, but I cannot find any document in android SDK
> about how to use the external lib.
>
>
>
> My idea is: I should cross-compile the lib with arm based detain GCC and
> use the interface to Android app. Any one has any document or example about
> this?
>
> Appreciate for your help!
>
>
>
> With best wishes
>
> Jerry Yang
>
>
>
>
>
> >
>


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

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

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



[android-developers] Re: How to acquire device name with code

2009-02-03 Thread Jerry Yang

I believe this link may helpful for u.
http://code.google.com/android/reference/android/os/Build.html
With best wishes
Jerry

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Stanley.lei
Sent: Wednesday, February 04, 2009 10:22 AM
To: Android Developers
Subject: [android-developers] How to acquire device name with code


Hi,

As we know, when we connect the G1 phone with USB, we could use "adb
devices" to show its device name. My question is whether there is a
method to detect this device name in phone with code, or how to judge
the "device name" is the just "myself" with code?

Any comment will be appreciated.

Thanks,

Stanley



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



[android-developers] Re: eclipse in ubantu

2009-02-03 Thread Fred Grott(shareme)

Vidya I run Ubuntu 8.10 did you find your answer?

If not let me know I can step you through it..



vidya wrote:
> unable run or installing a eclipse on ubantu.
> Thanks
> vidya
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] [android-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Jerry Yang
Hi, all

Does anyone have any information about using the external C written lib?

I have a C lib(no user interface, can be compiled like dll or lib) that
need to be used in the app, but I cannot find any document in android
SDK about how to use the external lib.

 

My idea is: I should cross-compile the lib with arm based detain GCC and
use the interface to Android app. Any one has any document or example
about this?

Appreciate for your help!

 

With best wishes

Jerry Yang

 

 


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

2009-02-03 Thread Stanley.lei

Hi,

As we know, when we connect the G1 phone with USB, we could use "adb
devices" to show its device name. My question is whether there is a
method to detect this device name in phone with code, or how to judge
the "device name" is the just "myself" with code?

Any comment will be appreciated.

Thanks,

Stanley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Questions about using Android native apps on commercial products

2009-02-03 Thread Mark Murphy

bercago wrote:
> One more question, what is "Licensed under Apache 2.0"?
> Is "Apache 2.0" a kind of agreement or ?

She is referring to the Apache License, Version 2.0:

http://www.apache.org/licenses/LICENSE-2.0

-- 
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] Re: Questions about using Android native apps on commercial products

2009-02-03 Thread bercago

Hi Dianne,
Thanks for your reply!

One more question, what is "Licensed under Apache 2.0"?
Is "Apache 2.0" a kind of agreement or ?

I tried to google what is "Apache 2.0",
most of the web pages said it is a software to build a server
(but I believe this is not what we talk about here).
And some pages try to explain it but I am not familiar with laws or
intellectual property rights .

Could you tell me what is "Apache 2.0" in short and can we use them on
commercial device?
I believe we can :)

Thanks again!
bercago

On Feb 4, 1:59 am, Dianne Hackborn  wrote:
> Nearly all of the code in Android is licensed under Apache 2.0, which lets
> you do pretty much whatever you want with it.  You should look at the exact
> license associated with the specific code to make sure it is okay.
>
> As far as sample code...  well those are there to show you how to write
> apps, so it would be pretty silly to not allow you to copy the code to write
> your app. :}
>
>
>
>
>
> On Tue, Feb 3, 2009 at 12:01 AM, bercago  wrote:
>
> > Hi,
> > Not sure if my previous post success or not, so I post it again.
>
> > Can we use the applications that released with Android Open Source
> > Project in our commercial products?
>
> > For example, the "Browser" and the "Contacts".
>
> > And I also found some demo applications in SDK\Samples, like Home and
> > NotePad, can them be used for commercial products? Do we need to pay
> > extra license fee for using these open source applications?
>
> > Thanks
> > bercago
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: collections vs arrays?

2009-02-03 Thread Romain Guy

Collections are also often backed by arrays or linked list (which
implies extra objects) so the overhead can be significant over an
array. If you need a growing array though, you might want to stick
with collections. android.view.ViewGroup uses its own growing array
implementation to avoid the extra cost of ArrayList for instance.

On Tue, Feb 3, 2009 at 5:48 PM, David Turner  wrote:
> if you need to access them in a tight loop, arrays are much faster than
> collections
> (because accessing an array element is very fast compared to calling an
> interface method to get at the corresponding item in a collection)
>
> On Wed, Feb 4, 2009 at 2:37 AM, gsmd  wrote:
>>
>> The 'Writing Efficient Android Code' paper doesn't mention this: are
>> arrays preferred over Collections in terms of performance? To what
>> extend?
>> TIA.
>>
>
>
> >
>



-- 
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: collections vs arrays?

2009-02-03 Thread David Turner
if you need to access them in a tight loop, arrays are much faster than
collections
(because accessing an array element is very fast compared to calling an
interface method to get at the corresponding item in a collection)

On Wed, Feb 4, 2009 at 2:37 AM, gsmd  wrote:

>
> The 'Writing Efficient Android Code' paper doesn't mention this: are
> arrays preferred over Collections in terms of performance? To what
> extend?
> TIA.
> >
>

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



[android-developers] Re: Question about android instrumentation

2009-02-03 Thread Dianne Hackborn
On Tue, Feb 3, 2009 at 5:22 PM, Meryl Silverburgh <
silverburgh.me...@gmail.com> wrote:

> When you mean 'main' thread, does that mean the thread create by the
> android.test.InstrumentationTestRunner when running my TestCase?


No, the test case runs in a separate thread, so the main application thread
is free to run.  There is an API you can call to have work done on the main
thread.


> Thank you. Can you please tell me where I can find an example of "can
> add an activity watcher to look for the launch, cancel it, and return
> the desired result"? I did try google it, but I don't see the anything
> useful.


Look at the docs on Instrumentation, there are methods and such for this.
Sorry I don't have any specific example code handy, maybe someone else can
help.

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

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

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



[android-developers] collections vs arrays?

2009-02-03 Thread gsmd

The 'Writing Efficient Android Code' paper doesn't mention this: are
arrays preferred over Collections in terms of performance? To what
extend?
TIA.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OutOfMemoryError when scrolling ListView

2009-02-03 Thread Romain Guy

Then your app just uses way too much memory and the ListView drawing
cache happens to make you go over the limit. You can also disable
ListView's scrolling cache but it will just postpone your memory
issues a little bit, not fix them.

On Tue, Feb 3, 2009 at 5:27 PM, Matt Hall  wrote:
>
> I'm struggling with the same problem, but aren't able to fix things
> like the previous poster. When I switched to reusing views as
> previously suggested I seem to have delayed the crash, but it still
> happens. I am drawing a custom bitmap as part of my list items and
> have tried to keep their generation to a minimum, but the drawing
> cache still seems to cause the force quit no matter what I do/reuse.
>
> I'll post here if I figure out anything further, but from what I can
> see just reusing the views doesn't completely fix this problem.
>
> Matt
>
> On Jan 29, 11:06 am, muckwarrior  wrote:
>> Never mind, I've managed to solve the problem myself with a hint from
>> the other similar thread that I didn't see before posting.
>>
>> For anyone that encounters the same problem, I fixed it by using
>> convertView as explained herehttp://androidguys.com/?p=635
>>
>> On Jan 29, 2:23 pm, muckwarrior  wrote:
>>
>> > I'm having problems with ListViews in my application. I thought
>> > everything was fine until I noticed that if I scrolled up and down
>> > through the list quickly a number of times, sooner or later the app
>> > would crash with an OutOfMemoryError.
>>
>> > When I searched for the error I noticed a number of posts related to
>> > loading images. As my list items included a small arrow png, I assumed
>> > the problem lay here. However even after removing this and all other
>> > drawables I had (gradient background and list separator) the problem
>> > still remains.
>>
>> > Here's the stack trace
>>
>> > ERROR/dalvikvm-heap(2362): 66560-byte external allocation too large
>> > for this process.
>> > ERROR/(2362):VMwon't let us allocate 66560 bytes
>> > DEBUG/AndroidRuntime(2362): Shutting downVM
>> > WARN/dalvikvm(2362): threadid=3: thread exiting with uncaught
>> > exception (group=0x40013e28)
>> > ERROR/AndroidRuntime(2362): Uncaught handler: thread main exiting due
>> > to uncaught exception
>> > ERROR/AndroidRuntime(2362): java.lang.OutOfMemoryError:bitmapsize
>> >exceedsVMbudget
>> > ERROR/AndroidRuntime(2362): at android.graphics.Bitmap.nativeCreate
>> > (Native Method)
>> > ERROR/AndroidRuntime(2362): at android.graphics.Bitmap.createBitmap
>> > (Bitmap.java:343)
>> > ERROR/AndroidRuntime(2362): at android.view.View.buildDrawingCache
>> > (View.java:5219)
>> > ERROR/AndroidRuntime(2362): at android.view.View.getDrawingCache
>> > (View.java:5112)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
>> > (ViewGroup.java:1355)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
>> > (ViewGroup.java:1192)
>> > ERROR/AndroidRuntime(2362): at
>> > android.widget.AbsListView.dispatchDraw(AbsListView.java:1125)
>> > ERROR/AndroidRuntime(2362): at android.widget.ListView.dispatchDraw
>> > (ListView.java:2778)
>> > ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
>> > 5422)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
>> > (ViewGroup.java:1420)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
>> > (ViewGroup.java:1192)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
>> > (ViewGroup.java:1418)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
>> > (ViewGroup.java:1192)
>> > ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
>> > 5329)
>> > ERROR/AndroidRuntime(2362): at android.widget.FrameLayout.draw
>> > (FrameLayout.java:324)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
>> > (ViewGroup.java:1420)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
>> > (ViewGroup.java:1192)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
>> > (ViewGroup.java:1418)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
>> > (ViewGroup.java:1192)
>> > ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
>> > 5329)
>> > ERROR/AndroidRuntime(2362): at android.widget.FrameLayout.draw
>> > (FrameLayout.java:324)
>> > ERROR/AndroidRuntime(2362): at
>> > com.android.internal.policy.impl.PhoneWindow$DecorView.draw
>> > (PhoneWindow.java:1701)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewRoot.draw
>> > (ViewRoot.java:980)
>> > ERROR/AndroidRuntime(2362): at
>> > android.view.ViewRoot.performTraversals(ViewRoot.java:829)
>> > ERROR/AndroidRuntime(2362): at android.view.ViewRoot.handleMessage
>> > (ViewRoot.java:1103)
>> > ERROR/AndroidRuntime(2362): at android.os.Handler.dispatchMessage
>> > (Handler.java:88)
>> > ERROR/AndroidRuntime(2362): at android.os.Looper.loop(Looper.java:
>> >

[android-developers] Re: OutOfMemoryError when scrolling ListView

2009-02-03 Thread Matt Hall

I'm struggling with the same problem, but aren't able to fix things
like the previous poster. When I switched to reusing views as
previously suggested I seem to have delayed the crash, but it still
happens. I am drawing a custom bitmap as part of my list items and
have tried to keep their generation to a minimum, but the drawing
cache still seems to cause the force quit no matter what I do/reuse.

I'll post here if I figure out anything further, but from what I can
see just reusing the views doesn't completely fix this problem.

Matt

On Jan 29, 11:06 am, muckwarrior  wrote:
> Never mind, I've managed to solve the problem myself with a hint from
> the other similar thread that I didn't see before posting.
>
> For anyone that encounters the same problem, I fixed it by using
> convertView as explained herehttp://androidguys.com/?p=635
>
> On Jan 29, 2:23 pm, muckwarrior  wrote:
>
> > I'm having problems with ListViews in my application. I thought
> > everything was fine until I noticed that if I scrolled up and down
> > through the list quickly a number of times, sooner or later the app
> > would crash with an OutOfMemoryError.
>
> > When I searched for the error I noticed a number of posts related to
> > loading images. As my list items included a small arrow png, I assumed
> > the problem lay here. However even after removing this and all other
> > drawables I had (gradient background and list separator) the problem
> > still remains.
>
> > Here's the stack trace
>
> > ERROR/dalvikvm-heap(2362): 66560-byte external allocation too large
> > for this process.
> > ERROR/(2362):VMwon't let us allocate 66560 bytes
> > DEBUG/AndroidRuntime(2362): Shutting downVM
> > WARN/dalvikvm(2362): threadid=3: thread exiting with uncaught
> > exception (group=0x40013e28)
> > ERROR/AndroidRuntime(2362): Uncaught handler: thread main exiting due
> > to uncaught exception
> > ERROR/AndroidRuntime(2362): java.lang.OutOfMemoryError:bitmapsize
> >exceedsVMbudget
> > ERROR/AndroidRuntime(2362):     at android.graphics.Bitmap.nativeCreate
> > (Native Method)
> > ERROR/AndroidRuntime(2362):     at android.graphics.Bitmap.createBitmap
> > (Bitmap.java:343)
> > ERROR/AndroidRuntime(2362):     at android.view.View.buildDrawingCache
> > (View.java:5219)
> > ERROR/AndroidRuntime(2362):     at android.view.View.getDrawingCache
> > (View.java:5112)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> > (ViewGroup.java:1355)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> > (ViewGroup.java:1192)
> > ERROR/AndroidRuntime(2362):     at
> > android.widget.AbsListView.dispatchDraw(AbsListView.java:1125)
> > ERROR/AndroidRuntime(2362):     at android.widget.ListView.dispatchDraw
> > (ListView.java:2778)
> > ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
> > 5422)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> > (ViewGroup.java:1420)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> > (ViewGroup.java:1192)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> > (ViewGroup.java:1418)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> > (ViewGroup.java:1192)
> > ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
> > 5329)
> > ERROR/AndroidRuntime(2362):     at android.widget.FrameLayout.draw
> > (FrameLayout.java:324)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> > (ViewGroup.java:1420)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> > (ViewGroup.java:1192)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> > (ViewGroup.java:1418)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> > (ViewGroup.java:1192)
> > ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
> > 5329)
> > ERROR/AndroidRuntime(2362):     at android.widget.FrameLayout.draw
> > (FrameLayout.java:324)
> > ERROR/AndroidRuntime(2362):     at
> > com.android.internal.policy.impl.PhoneWindow$DecorView.draw
> > (PhoneWindow.java:1701)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewRoot.draw
> > (ViewRoot.java:980)
> > ERROR/AndroidRuntime(2362):     at
> > android.view.ViewRoot.performTraversals(ViewRoot.java:829)
> > ERROR/AndroidRuntime(2362):     at android.view.ViewRoot.handleMessage
> > (ViewRoot.java:1103)
> > ERROR/AndroidRuntime(2362):     at android.os.Handler.dispatchMessage
> > (Handler.java:88)
> > ERROR/AndroidRuntime(2362):     at android.os.Looper.loop(Looper.java:
> > 123)
> > ERROR/AndroidRuntime(2362):     at android.app.ActivityThread.main
> > (ActivityThread.java:3742)
> > ERROR/AndroidRuntime(2362):     at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > ERROR/AndroidRuntime(2362):     at java.lang.reflect.Method.invoke
> > (Method.java:515)
> > ERROR/AndroidRuntime(2362):     at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.r

[android-developers] ADT0.9 plugin can't work

2009-02-03 Thread tony

I have built a ADT0.9 plugin with the android release of 20090102,but
seems it still have error in recognizing resource files.
Does anyone have succeeded in using the 0.9 plugin?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Table layout without using Android XML

2009-02-03 Thread Emmanuel

Should MainLayout be the layout you want to add your Table Layout in,
and MyActivity, your activity ( odds are great that this one is simply
'this' ) :

TableLayout curTable = new TableLayout( MyActivity);
for (int i = 0; i < mNbRows; i++)
{
TableRow CurRow = new TableRow( MyActivity );
for (int j = 0; j < mNbColumns; j++)
{
// Add your content in your curRow here
// for instance for a button :
Button CurButton = new Button( MyActivity );
CurRow.addView(CurButton);
}
curTable.addView( CurRow );
}
MainLayout.addView ( curTable );


Emmanuel
http://androidblogger.blogspot.com/




On Feb 3, 8:26 am, "Muthu Kumar K."  wrote:
> Hi all,
> Can any one help me how to create table layout with out using the
> Android XML.
>
> Thanks in Advance,
> Muthu Kumar K.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Question about android instrumentation

2009-02-03 Thread Meryl Silverburgh

On Tue, Feb 3, 2009 at 4:52 PM, Dianne Hackborn  wrote:
> If you just want to have the method called, you can post work to the main
> thread and directly call the method on the activity.

When you mean 'main' thread, does that mean the thread create by the
android.test.InstrumentationTestRunner when running my TestCase?



>
> If you want to mock out some other activity it is launching to return your
> own result, you can add an activity watcher to look for the launch, cancel
> it, and return the desired result.


Thank you. Can you please tell me where I can find an example of "can
add an activity watcher to look for the launch, cancel it, and return
the desired result"? I did try google it, but I don't see the anything
useful.

Thank you for any more pointers.


>
> On Tue, Feb 3, 2009 at 2:46 PM, silverburgh.me...@gmail.com
>  wrote:
>>
>> Hi,
>>
>> Can you please tell me if you know how to get the Andorid unit test
>> instrementation to call my activity's onActivityResult()?
>>
>> I can't find anything here:
>> http://code.google.com/android/reference/android/app/Instrumentation.html
>>
>> Thanks in advance.
>>
>>
>>
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
> >
>

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



[android-developers] Re: how to update list

2009-02-03 Thread Emmanuel

Do you mean the data from your adapter has changed, and you want to
update your list from this ?

To achieve this result, I create the adapter from the new data, and
reset it to the list.
There should be another cleaner method, but this is works for me !

Emmanuel
http://androidblogger.blogspot.com/

On Feb 3, 7:36 pm, cindy  wrote:
> I have a list. Which will first show 10 items, user would be able to
> do pagination with click pagination button.
>
> The list is extended from listActivity, and the list adapter is
> extends from BaseAdapter .
>
> But how to update UI when I get next 10 items back?
>
> 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] Re: Listview layout and other widgets

2009-02-03 Thread Dianne Hackborn
You should be able to either connect the left and right edges of the text
view to the right of its container and left of the inner linear layout, or
put it all in a linear layout and give the text view a layout_width of 0px
and layout_weight of 1.

On Tue, Feb 3, 2009 at 1:11 PM, Al  wrote:

>
> I have but with the LinearLayout, the images don't show up, the text
> forces it out of the visible screen area.
>
> On Feb 3, 7:44 pm, Mark Roberts  wrote:
> > Have you tried changing the RelativeLayout to a LinearLayout?
> >
> > On Feb 3, 2:07 pm, Al  wrote:
> >
> > > In my listview, I'm trying to make the list row show 2 imageviews as
> > > well as the textview which holds the data. The layout of a single row
> > > is like this: [textview | img1| img2]. The problem is the text inside
> > > the textview overlaps the imageviews. I've tried various layout
> > > options but can't seem to get it right. This is my layout file:
> >
> > > 
> > >  > > android:layout_width="fill_parent"
> > > android:layout_height="wrap_content"
> > > android:padding="5px"
> > > xmlns:android="http://schemas.android.com/apk/res/android";
> >
> > >  > > android:id="@+id/label"
> > > android:layout_width="wrap_content"
> > > android:layout_height="wrap_content"
> > > android:paddingLeft="2dip"
> > > android:textColor="#eee"
> >
> > > />
> >
> > >  > > android:layout_width="wrap_content"
> > > android:layout_height="wrap_content"
> > > android:layout_alignParentRight="true"
> >
> > > >
> > >  > > android:id="@+id/alert"
> > > android:layout_width="wrap_content"
> > > android:layout_height="wrap_content"
> > >
> android:src="@drawable/stat_notify_alarm"
> > > android:tag="alarm"
> > > />
> >
> > >  > > android:id="@+id/delete"
> > > android:layout_width="wrap_content"
> > > android:layout_height="wrap_content"
> > >
> android:src="@android:drawable/ic_delete"
> > > android:layout_toRightOf="@id/alert"
> > > android:paddingLeft="10px"
> > > android:tag="del"
> > > />
> >
> > > 
> >
> > > 
> >
> > > and this is the code I'm using for generating the list:
> >
> > > setListAdapter(new ArrayAdapter(this, R.layout.favs,
> > > R.id.label, shows);
> >
> > > Thanks.
> >
>


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

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

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



[android-developers] Re: Question about android instrumentation

2009-02-03 Thread Dianne Hackborn
If you just want to have the method called, you can post work to the main
thread and directly call the method on the activity.

If you want to mock out some other activity it is launching to return your
own result, you can add an activity watcher to look for the launch, cancel
it, and return the desired result.

On Tue, Feb 3, 2009 at 2:46 PM, silverburgh.me...@gmail.com <
silverburgh.me...@gmail.com> wrote:

>
> Hi,
>
> Can you please tell me if you know how to get the Andorid unit test
> instrementation to call my activity's onActivityResult()?
>
> I can't find anything here:
> http://code.google.com/android/reference/android/app/Instrumentation.html
>
> Thanks in advance.
>
>
>
> >
>


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

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

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



[android-developers] Re: Generate .apk without debug info in .class

2009-02-03 Thread Dianne Hackborn
The .apk generated by ADT in Eclipse does not have any extraneous debug
information.

On Tue, Feb 3, 2009 at 2:50 PM, Nanard  wrote:

>
> Hi,
>
> If I test my application and generate a .apk, or if I use the 'Export
> unsigned' menu, I get the
> same application size.
>
> How can I remove debug information for my final releases ?
>
> I use Eclipse.
>
> Thanks.
> >
>


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

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

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



[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-02-03 Thread fadden

On Feb 3, 1:42 am, blindfold  wrote:
> One thing that kept me from further working with this a few days ago
> is that I ran the monkey tool with the --hprof option, which according
> tohttp://code.google.com/intl/zh-TW/android/reference/monkey.html
> puts results in the data/misc folder. However, it seems impossible
> (prohibited) to access that folder on the phone to retrieve the
> generated profiling results? So can this only be used by people who
> flash their own phones with a development build, or did I overlook
> something (I did not dig for long)?

The VM is listening for two signals, SIGQUIT and SIGUSR1.  If you send
it a SIGQUIT it will dump the stacks from all running threads; if you
send it a SIGUSR1 it will dump the heap profiling data.

On a production device, you can't send signals to arbitrary processes,
so "adb shell kill -10 " isn't going to work.  You can, however,
send the process a signal from itself, using
android.os.Process.sendSignal(myPid(), SIGNAL_USR1).  Unfortunately
(as you've noted) this isn't useful unless (a) the process can write
to /data/misc, and (b) you can "adb pull" the files out once they have
been written.

In not-yet-public Cupcake there's a new call in android.os.Debug that
will dump the heap profiling data to a file you specify.  In the
future we hope to be able to control this through DDMS.

In the mean time, you need to use a development device or the
emulator, either of which will allow you to "chmod 777 /data/misc".

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

2009-02-03 Thread Mark Nuetzmann

mcswd01,

You also might take a look at using the onDestroy() event of the first/
main Activity.  onDestroy for the main activity will only get called
if you hit back from that activity of call finish() for that
activity.  I think this is what you are looking for.

On Jan 17, 10:13 am, mscwd01  wrote:
> Okay, I'll have to opt for the stop/start approach each time you
> switch from Activity to Activity - its not a very elegant solution
> though.
>
> Im suprised theres not a "whole application has lost focus".onPause().
>
> On Jan 17, 3:27 pm, Mark Murphy  wrote:
>
> > mscwd01 wrote:
> > > Isn't onPause() called when one Activity calls another too?
>
> > Sure.
>
> > > I want to know when an entire Activity has lost focus,
>
> > What is "an entire Activity"?
>
> > > if I use onPause
> > > () in an Activity which calls another, when the other Activity has
> > > started the initiating Activity's onPause() method is called.
>
> > Correct. Suspend network activity on every onPause(); re-enable network
> > processing on every onResume(). Then, if any activity is active, network
> > processing is in operation; if all are paused, network processing is
> > stopped.
>
> > If by "an entire Activity" you really mean "an entire application", so
> > long as all the components are in the same process, and so long as you
> > use loose coupling so garbage collection isn't impeded, you can
> > communicate among collaborating activities however you wish.
>
> > --
> > 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] Re: Selected state of WebView in a ListView does not show selection

2009-02-03 Thread Romain Guy

We built an app at some point that was made of a ListView of WebViews.
I haven't tried this in a while though.

On Tue, Feb 3, 2009 at 3:00 PM, Mark Murphy  wrote:
>
> Mark Nuetzmann wrote:
>> Question, is there a way to show that a WebView item contained as a
>> item in a ListView is selected?  Right now the WebView does not seem
>> to display its contents transparently like every other control so it
>> takes up the entire view and does not show its state as selected.
>
> I'd be fairly stunned if WebView worked well in a ListView or other
> selection widget.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
>
> >
>



-- 
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: Selected state of WebView in a ListView does not show selection

2009-02-03 Thread Mark Murphy

Mark Nuetzmann wrote:
> Question, is there a way to show that a WebView item contained as a
> item in a ListView is selected?  Right now the WebView does not seem
> to display its contents transparently like every other control so it
> takes up the entire view and does not show its state as selected.

I'd be fairly stunned if WebView worked well in a ListView or other
selection widget.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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



[android-developers] Generate .apk without debug info in .class

2009-02-03 Thread Nanard

Hi,

If I test my application and generate a .apk, or if I use the 'Export
unsigned' menu, I get the
same application size.

How can I remove debug information for my final releases ?

I use Eclipse.

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] Question about android instrumentation

2009-02-03 Thread silverburgh.me...@gmail.com

Hi,

Can you please tell me if you know how to get the Andorid unit test
instrementation to call my activity’s onActivityResult()?

I can’t find anything here:
http://code.google.com/android/reference/android/app/Instrumentation.html

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: how to pass object as a parameter when starting a service

2009-02-03 Thread zero

You can pass a Bundle into the Intent that starts the service,
so as long as your object fits into a Bundle, no problem.

On Feb 3, 10:30 pm, CJ  wrote:
> any hints?
>
> On Feb 3, 10:53 am, CJ  wrote:
>
> > Here I have a broadcastreceiver where i need to start a service. but,
> > the service need an object from this broadcastreceiver in order to
> > function. so, far, i have not found a solution.
> > Can anybody help me out?
> > 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: Some Activities never display UIs?

2009-02-03 Thread Andrew Stadler

Ron-

This is not comprehensive, but here is one example:

You can create an Activity that serves to accept Intents, process or
react to them in a non-UI way, and then either send a new Intent or a
response.

Here's how:  Do all of the work in onCreate(), never call
setContentView(), and on the way out of onCreate, be sure to call
finish().

--Andy


On Mon, Feb 2, 2009 at 8:03 PM, Ron DuPlain  wrote:
>
> I hear that "some Activities never display UIs" according to
> http://code.google.com/android/devel/building-blocks.html.  My
> question: is this true?
>
> I have yet to find a way to make an Activity without a UI.
> Documentation suggests an Activity can be non-visual.  For example,
> Activity.getWindow() returns the "current window, or null if the
> activity is not visual."  When would an Activity have a null Window?
> The docs say "the Activity class takes care of creating a window for
> you..." at http://code.google.com/android/reference/android/app/Activity.html.
>
> Any idea?
>
> Ron
>
>
> PS - Yes, I know a Service does not have a UI.  My question is about
> the Activity class.
>
> >
>

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



[android-developers] Mships.com << Can you help review, etc?

2009-02-03 Thread Mships

Hi guys!
Asking for a bunch of immediate feedback on Mships.com
Please go to http://www.mships.com and email what you think of the
site, give feedback, suggestions for launching, specific online groups
this might appeal to, ideas on how to promote easily, quickly online,
virally etc.

What I am asking for
1. Do you understand the point? Good deed actions daily specified by
players, spreading around the world.
2. Can you leave a few messages? Thanks, we collect great messages.
3. Anyone see this launching for Android?
4. Is there anyone, or a few people, who can give feedback, guidance,
and∫ help?

Brief Mships OverView
Mships is a bunch of "kindness games." People around the world follow
TodaysInstructions for each game. One simple daily action sent in by
other players, and hand chosen. TodaysInstructions,
TomorrowsInstructions + "SpreadTheGame," todays instructions for all
of us spreading the game using Twitter, FaceBook, blogs + other social
sites.

What I want from you
I am hoping to appeal with a new, unusual "game" about making positive
moves every day, coordinating kindness actions around the world with
fun simple silly games. I am new to being a developer... for iPhone
and Android. Just started. Can use any help I can get! Also looking
for an iPhone & an Android development partner. This could be easy. A
lot of where we're at right now is sending + collecting messages, and
players using the wallpapers in the game to see if others made today's
game "move(s)!" + in spreading the kindness games.

THANKS!
Jonathan
Mships.com
Game to reach the greatest Earth through simple daily moves.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 pass object as a parameter when starting a service

2009-02-03 Thread CJ

any hints?

On Feb 3, 10:53 am, CJ  wrote:
> Here I have a broadcastreceiver where i need to start a service. but,
> the service need an object from this broadcastreceiver in order to
> function. so, far, i have not found a solution.
> Can anybody help me out?
> 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: Serialization problem with objects, when using ksoap

2009-02-03 Thread Michael MacDonald

Maybe it's as simple as PAT_DETAILS is not implementing
java.io.Serializable?

sooraj.rit wrote:
> Hi i want to implement a webmethod to search some data and I have done
> it well in C#.net . Now i want to access that method from android .
> The real problem I am facing is that, I have to use a complex data
> type. ( a class containing two strings ). when I call the webmethod,
> an exception is thrown (Runtime exception saying -" cannot serialize
> my class "). I have attached the code.pls help me.
>
>
> I am using a class to hold my data as
>
> class PAT_DETAILS
> {
> String PatName;
> String PatID;
> }
>
> and in my java code
>
> public class SearchData extends Activity
> {
> private static final String SOAP_ACTION = "http://MobWebService.org/
> GetPatDetails";
> private static final String METHOD_NAME = "GetPatDetails";
> private static final String NAMESPACE = "http://MobWebService.org/";;
> private static final String URL = "http://10.1.26.21/Webservice/
> SearchService.asmx";
> PAT_DETAILS m_PatDetails;
>
> @Override
> public void onCreate( Bundle savedInstanceState )
> {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
> m_PatDetails.PatName = "John";
> m_PatDetails.PatID ="123";
>
> SoapObject request = new SoapObject( NAMESPACE, METHOD_NAME );
> SoapSerializationEnvelope envelope = new SoapSerializationEnvelope
> ( SoapEnvelope.VER11 );
> envelope.dotNet = true;
> // request.addProperty( "PatientName", patname );
> // request.addProperty( "PatID", patientId );
>
> request.addProperty( "patientDetails", m_PatDetails );
> envelope.setOutputSoapObject( request );
> HttpTransportSE htransport = new HttpTransportSE( URL );
> try
> {
>
> try
> {
> htransport.call( SOAP_ACTION, envelope ); // throws exception
> }
> catch( IOException exp )
> {
> exp.printStackTrace();
> }
> SoapObject ResultRequestSOAP = (SoapObject)envelope.bodyIn;
>
> // Remaining codesnippet here..
> }
> catch ( Exception aE )
> {
> aE.printStackTrace (); //Runtime exception here - "cannot serialize my
> class "
> }
> }
> >   


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



[android-developers] Re: Listview layout and other widgets

2009-02-03 Thread Al

I have but with the LinearLayout, the images don't show up, the text
forces it out of the visible screen area.

On Feb 3, 7:44 pm, Mark Roberts  wrote:
> Have you tried changing the RelativeLayout to a LinearLayout?
>
> On Feb 3, 2:07 pm, Al  wrote:
>
> > In my listview, I'm trying to make the list row show 2 imageviews as
> > well as the textview which holds the data. The layout of a single row
> > is like this: [textview | img1| img2]. The problem is the text inside
> > the textview overlaps the imageviews. I've tried various layout
> > options but can't seem to get it right. This is my layout file:
>
> > 
> >  >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:padding="5px"
> >         xmlns:android="http://schemas.android.com/apk/res/android";
>
> >          >                 android:id="@+id/label"
> >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >             android:paddingLeft="2dip"
> >             android:textColor="#eee"
>
> >         />
>
> >          >                         android:layout_width="wrap_content"
> >                         android:layout_height="wrap_content"
> >                         android:layout_alignParentRight="true"
>
> >                 >
> >                  >                                 android:id="@+id/alert"
> >                                 android:layout_width="wrap_content"
> >                                 android:layout_height="wrap_content"
> >                                 android:src="@drawable/stat_notify_alarm"
> >                                 android:tag="alarm"
> >                         />
>
> >                          >                                 android:id="@+id/delete"
> >                                 android:layout_width="wrap_content"
> >                                 android:layout_height="wrap_content"
> >                                 android:src="@android:drawable/ic_delete"
> >                                 android:layout_toRightOf="@id/alert"
> >                                 android:paddingLeft="10px"
> >                                 android:tag="del"
> >                         />
>
> >         
>
> > 
>
> > and this is the code I'm using for generating the list:
>
> > setListAdapter(new ArrayAdapter(this, R.layout.favs,
> > R.id.label, shows);
>
> > 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: Starting multiple services sequentially

2009-02-03 Thread Al Sutton

Bingo

Sir, I doff my hat to your greater knowledge.

Thanks,

Al.

Peli wrote:
> Have you looked at ordered broadcasts?
> http://code.google.com/android/reference/android/content/Context.html#sendOrderedBroadcast(android.content.Intent,%20java.lang.String%29
>
> Maybe this is what you need?
>
> Peli
>
> On Feb 3, 9:03 pm, Al Sutton  wrote:
>   
>> I'm not limited to services, so if there is a way to do this with an
>> activity I'd be happy to do that.
>>
>> The problem with timeouts is that it's possible for the app to still be
>> alive and the timeout to kick in, which is not what I want.
>>
>> I hope there is a way to do this :).
>>
>> Al.
>>
>> Peli wrote:
>> 
>>> I think it is impossible to know whether a service has finished or not
>>> unless the service itself lets you know that.
>>>   
>>> If you just check whether the service is still alive - it may be
>>> waiting for a server response - or it may have finished and processing
>>> some other application's requests.
>>>   
>>> So, I guess you have to request that all services let you know by a
>>> callback when they are done, so that you can continue with the next
>>> service. Probably you also need a timeout, in case a service never
>>> finishes.
>>>   
>>> Peli
>>>   
>>> On Feb 3, 8:37 pm, Al Sutton  wrote:
>>>   
 The services come from different APKs.
 
 Best way to think about it is the main application does some processing
 and an additional number of APKs can contain perform contributions to
 that processing. For example, there may be many APKs each of which has a
 particular stock trading prediction forumla, and a main APK has stock
 price data, the main APK calls each of the strategy APKs with the stock
 history content provider URI and each strategy APK can process the
 history and do what it wants.
 
 The strategy APKs may not come from one place and may be written by many
 different companies (hence why they are seperate APKs)
 
 Hope that clarifies things a bit.
 
 Al.
 
 Dianne Hackborn wrote:
 
> If they are running in the same process, you could just use globals to
> keep track of who is running and decide what next to do.
>   
> If you really just want one thing to run at a time, though, why not
> just put it all in one service?  A common pattern is to have a service
> that you submit work to with startService(), which does each thing
> given to it in order and stops itself when done.  There is an ApiDemo
> showing how to structure such a service (the one with three buttons to
> submit work to it, I can't remember the exact name off-hand).
>   
> On Tue, Feb 3, 2009 at 9:12 AM, Al Sutton  > wrote:
>   
> I have an app which will start multiple separate services which
> perform
> an action and then exit. I don't want them all to run at the same time
> (because this may bog down the OS).
>   
> I have the code for finding the services and starting the
> services, but
> does anyone know how I can make sure one service has completed before
> the next starts.
>   
> Due to what the app does it will have to start multiple services
> and the
> actions the services perform have no GUI and may take tens of
> seconds or
> minutes (hence why I'm using a service so the user isn't just shown a
> blank screen every time the next service starts).
>   
> Anyone have any ideas?
>   
> Al.
>   
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>   
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>   
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com 
>   
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them.
>   
 --
 ==
 Funky Android Limited is registered in England & Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.
 
 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.
 
> >
>   


--~--~-

[android-developers] Re: How to use proxy server on the g1?

2009-02-03 Thread friedger

I am interested as well.
Friedger

On Jan 30, 3:18 pm, joff  wrote:
> Anyone figured this one out yet?
>
> On Jan 24, 9:38 pm, DJMoran  wrote:
>
> > I also need the exact same help, my school uses a proxy server to
> > access the web.
>
> > Also my home wireless doesn't need a proxy to access the web.
>
> > I know the iPhone and iPod touch can use multiple proxy settings
> > depending on the network it is connected to but what about the G1
>
> > On Jan 10, 1:52 pm, "kevkev...@googlemail.com"
>
> >  wrote:
> > > Does anyone know how to connect to the internet via a proxy server on
> > > a g1 handset? I need to use a proxy server at school to get on the
> > > internet on wifi.
>
> > > Cheers
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Get your own affiliatesite today and start earning real money

2009-02-03 Thread brilliant.danielw...@gmail.com

Are you tired of promoting others people products without seeing any
result?

If yes, then you don't have to worry any more,
because with your own affiliatesite, you will start
promoting your own products. Which means you get more money
than you used to do when you were promoting others people products.
So what are you waiting for? Click here today to get your own
affiliatesite and start promoting your own products.

http://www.dollarmonitor.com/affsites/afx/143306.html

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



[android-developers] Re: I am getting SICK of 1 star ratings for charging!

2009-02-03 Thread Beshoy Girgis
nice!  at least they're doing something about it
and yay, finally! an update! lol

Sincerely,

Beshoy Girgis
Owner
One Design Studios, LLC
http://www.ODSLabs.com
816.347.8637


On Tue, Feb 3, 2009 at 1:57 PM, blindfold  wrote:

>
> Somewhat in this direction goes the new RC33 G1 firmware,
>
> http://forums.t-mobile.com/tmbl/board/message?board.id=87&thread.id=30897
>
> allowing visitors to
>
> > Tap Mark this as SPAM.
>
> in the application's comments.
>
> Regards
>
>
> On Feb 3, 7:59 pm, Beshoy Girgis  wrote:
> > I think some cool additions to the market would be to be able to rate a
> > comment with a thumbs up or down... then from there, show the top ten
> rated
> > comments or what not.. no need to show all 1000 of them.
> >
> > Sincerely,
> >
> > Beshoy Girgis
> > Owner
> > One Design Studios, LLChttp://www.ODSLabs.com
> > 816.347.8637
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: MMS ( Messaging App ) ACTION_SEND "text/plain"

2009-02-03 Thread Alexey

oh .. man .. i was thinking i'm going mad ..looking at the source and
didn't realized that it already changed .. oh well ..
THANKS !!!

On Feb 3, 2:03 pm, Peli  wrote:
> The answer is 
> simple:http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=blo...
>
> The original version of MMS only had the intent filter for image/*
> MIME type. As you can see in the diff, video/* and text/plain MIME
> types have been added later (in cupcake), but are not available on the
> device yet.
>
> Peliwww.openintents.org
>
> On Feb 3, 8:20 pm, Alexey  wrote:
>
> > Hi All i'm looking for answer why Messaging is not showing up in the
> > activity chooser dialog.
> > Looking at the manifest it should do exactly that
>
> >          >                   android:configChanges="orientation|keyboardHidden">
> >             
> >                 
> >                  > android:name="android.intent.category.DEFAULT" />
> >                 
> >             
> >             
> >                 
> >                 
> >                  > android:name="android.intent.category.DEFAULT" />
> >                  > android:name="android.intent.category.BROWSABLE" />
> >                 
> >                 
> >             
> >             
> >                 
> >                 
> >                  > android:name="android.intent.category.DEFAULT" />
> >                  > android:name="android.intent.category.BROWSABLE" />
> >                 
> >                 
> >             
> >            
> >                
> >                 > android:name="android.intent.category.DEFAULT" />
> >                
> >            
> >            
> >                
> >                 > android:name="android.intent.category.DEFAULT" />
> >                
> >            
> >            
> >                
> >                 > android:name="android.intent.category.DEFAULT" />
> >                
> >            
> >         
>
> > But if i create my intent like that :
>
> > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> >                 sendIntent.putExtra(Intent.EXTRA_TEXT, "Body");
> >                 sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Header");
> >                 sendIntent.putExtra("sms_body", "The SMS text");
> >                 sendIntent.setType("text/plain");
> >                 try {
> >                         
> > getContext().startActivity(Intent.createChooser(sendIntent,
> > getContext().getText(R.string.share_this_story)));
> >                 } catch (android.content.ActivityNotFoundException ex) {
> >                         Toast.makeText(getContext(), "Can't share the 
> > Story",
> > Toast.LENGTH_SHORT).show();
> >                 }
>
> > Only gmail is an option or gmail +k9 if k9 installed.
> > Changing intent type to */* works but it's not really a good options
> > since i have a plain text.
>
> > thanks Alex.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Starting multiple services sequentially

2009-02-03 Thread Peli

Have you looked at ordered broadcasts?
http://code.google.com/android/reference/android/content/Context.html#sendOrderedBroadcast(android.content.Intent,%20java.lang.String%29

Maybe this is what you need?

Peli

On Feb 3, 9:03 pm, Al Sutton  wrote:
> I'm not limited to services, so if there is a way to do this with an
> activity I'd be happy to do that.
>
> The problem with timeouts is that it's possible for the app to still be
> alive and the timeout to kick in, which is not what I want.
>
> I hope there is a way to do this :).
>
> Al.
>
> Peli wrote:
> > I think it is impossible to know whether a service has finished or not
> > unless the service itself lets you know that.
>
> > If you just check whether the service is still alive - it may be
> > waiting for a server response - or it may have finished and processing
> > some other application's requests.
>
> > So, I guess you have to request that all services let you know by a
> > callback when they are done, so that you can continue with the next
> > service. Probably you also need a timeout, in case a service never
> > finishes.
>
> > Peli
>
> > On Feb 3, 8:37 pm, Al Sutton  wrote:
>
> >> The services come from different APKs.
>
> >> Best way to think about it is the main application does some processing
> >> and an additional number of APKs can contain perform contributions to
> >> that processing. For example, there may be many APKs each of which has a
> >> particular stock trading prediction forumla, and a main APK has stock
> >> price data, the main APK calls each of the strategy APKs with the stock
> >> history content provider URI and each strategy APK can process the
> >> history and do what it wants.
>
> >> The strategy APKs may not come from one place and may be written by many
> >> different companies (hence why they are seperate APKs)
>
> >> Hope that clarifies things a bit.
>
> >> Al.
>
> >> Dianne Hackborn wrote:
>
> >>> If they are running in the same process, you could just use globals to
> >>> keep track of who is running and decide what next to do.
>
> >>> If you really just want one thing to run at a time, though, why not
> >>> just put it all in one service?  A common pattern is to have a service
> >>> that you submit work to with startService(), which does each thing
> >>> given to it in order and stops itself when done.  There is an ApiDemo
> >>> showing how to structure such a service (the one with three buttons to
> >>> submit work to it, I can't remember the exact name off-hand).
>
> >>> On Tue, Feb 3, 2009 at 9:12 AM, Al Sutton  >>> > wrote:
>
> >>>     I have an app which will start multiple separate services which
> >>>     perform
> >>>     an action and then exit. I don't want them all to run at the same time
> >>>     (because this may bog down the OS).
>
> >>>     I have the code for finding the services and starting the
> >>>     services, but
> >>>     does anyone know how I can make sure one service has completed before
> >>>     the next starts.
>
> >>>     Due to what the app does it will have to start multiple services
> >>>     and the
> >>>     actions the services perform have no GUI and may take tens of
> >>>     seconds or
> >>>     minutes (hence why I'm using a service so the user isn't just shown a
> >>>     blank screen every time the next service starts).
>
> >>>     Anyone have any ideas?
>
> >>>     Al.
>
> >>>     --
> >>>     ==
> >>>     Funky Android Limited is registered in England & Wales with the
> >>>     company number  6741909. The registered head office is Kemp House,
> >>>     152-160 City Road, London,  EC1V 2NX, UK.
>
> >>>     The views expressed in this email are those of the author and not
> >>>     necessarily those of Funky Android Limited, it's associates, or it's
> >>>     subsidiaries.
>
> >>> --
> >>> Dianne Hackborn
> >>> Android framework engineer
> >>> hack...@android.com 
>
> >>> Note: please don't send private questions to me, as I don't have time
> >>> to provide private support.  All such questions should be posted on
> >>> public forums, where I and others can see and answer them.
>
> >> --
> >> ==
> >> Funky Android Limited is registered in England & Wales with the
> >> company number  6741909. The registered head office is Kemp House,
> >> 152-160 City Road, London,  EC1V 2NX, UK.
>
> >> The views expressed in this email are those of the author and not
> >> necessarily those of Funky Android Limited, it's associates, or it's
> >> subsidiaries.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---

[android-developers] Re: Starting multiple services sequentially

2009-02-03 Thread Al Sutton

I'm not limited to services, so if there is a way to do this with an 
activity I'd be happy to do that.

The problem with timeouts is that it's possible for the app to still be 
alive and the timeout to kick in, which is not what I want.

I hope there is a way to do this :).

Al.

Peli wrote:
> I think it is impossible to know whether a service has finished or not
> unless the service itself lets you know that.
>
> If you just check whether the service is still alive - it may be
> waiting for a server response - or it may have finished and processing
> some other application's requests.
>
> So, I guess you have to request that all services let you know by a
> callback when they are done, so that you can continue with the next
> service. Probably you also need a timeout, in case a service never
> finishes.
>
> Peli
>
> On Feb 3, 8:37 pm, Al Sutton  wrote:
>   
>> The services come from different APKs.
>>
>> Best way to think about it is the main application does some processing
>> and an additional number of APKs can contain perform contributions to
>> that processing. For example, there may be many APKs each of which has a
>> particular stock trading prediction forumla, and a main APK has stock
>> price data, the main APK calls each of the strategy APKs with the stock
>> history content provider URI and each strategy APK can process the
>> history and do what it wants.
>>
>> The strategy APKs may not come from one place and may be written by many
>> different companies (hence why they are seperate APKs)
>>
>> Hope that clarifies things a bit.
>>
>> Al.
>>
>>
>>
>> Dianne Hackborn wrote:
>> 
>>> If they are running in the same process, you could just use globals to
>>> keep track of who is running and decide what next to do.
>>>   
>>> If you really just want one thing to run at a time, though, why not
>>> just put it all in one service?  A common pattern is to have a service
>>> that you submit work to with startService(), which does each thing
>>> given to it in order and stops itself when done.  There is an ApiDemo
>>> showing how to structure such a service (the one with three buttons to
>>> submit work to it, I can't remember the exact name off-hand).
>>>   
>>> On Tue, Feb 3, 2009 at 9:12 AM, Al Sutton >> > wrote:
>>>   
>>> I have an app which will start multiple separate services which
>>> perform
>>> an action and then exit. I don't want them all to run at the same time
>>> (because this may bog down the OS).
>>>   
>>> I have the code for finding the services and starting the
>>> services, but
>>> does anyone know how I can make sure one service has completed before
>>> the next starts.
>>>   
>>> Due to what the app does it will have to start multiple services
>>> and the
>>> actions the services perform have no GUI and may take tens of
>>> seconds or
>>> minutes (hence why I'm using a service so the user isn't just shown a
>>> blank screen every time the next service starts).
>>>   
>>> Anyone have any ideas?
>>>   
>>> Al.
>>>   
>>> --
>>> ==
>>> Funky Android Limited is registered in England & Wales with the
>>> company number  6741909. The registered head office is Kemp House,
>>> 152-160 City Road, London,  EC1V 2NX, UK.
>>>   
>>> The views expressed in this email are those of the author and not
>>> necessarily those of Funky Android Limited, it's associates, or it's
>>> subsidiaries.
>>>   
>>> --
>>> Dianne Hackborn
>>> Android framework engineer
>>> hack...@android.com 
>>>   
>>> Note: please don't send private questions to me, as I don't have time
>>> to provide private support.  All such questions should be posted on
>>> public forums, where I and others can see and answer them.
>>>   
>> --
>> ==
>> Funky Android Limited is registered in England & Wales with the
>> company number  6741909. The registered head office is Kemp House,
>> 152-160 City Road, London,  EC1V 2NX, UK.
>>
>> The views expressed in this email are those of the author and not
>> necessarily those of Funky Android Limited, it's associates, or it's
>> subsidiaries.
>> 
> >
>   


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



[android-developers] Re: MMS ( Messaging App ) ACTION_SEND "text/plain"

2009-02-03 Thread Peli

The answer is simple:
http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=blobdiff;f=AndroidManifest.xml;h=bdb822cd1b5014bf0814160138e8ac0c3cce29c7;hp=772fc2270e138a1f3d2bf077a17908fb7ca8a122;hb=HEAD;hpb=8eed706474910ccb978acda03e85d3261037da6e

The original version of MMS only had the intent filter for image/*
MIME type. As you can see in the diff, video/* and text/plain MIME
types have been added later (in cupcake), but are not available on the
device yet.

Peli
www.openintents.org

On Feb 3, 8:20 pm, Alexey  wrote:
> Hi All i'm looking for answer why Messaging is not showing up in the
> activity chooser dialog.
> Looking at the manifest it should do exactly that
>
>                            android:configChanges="orientation|keyboardHidden">
>             
>                 
>                  android:name="android.intent.category.DEFAULT" />
>                 
>             
>             
>                 
>                 
>                  android:name="android.intent.category.DEFAULT" />
>                  android:name="android.intent.category.BROWSABLE" />
>                 
>                 
>             
>             
>                 
>                 
>                  android:name="android.intent.category.DEFAULT" />
>                  android:name="android.intent.category.BROWSABLE" />
>                 
>                 
>             
>            
>                
>                 android:name="android.intent.category.DEFAULT" />
>                
>            
>            
>                
>                 android:name="android.intent.category.DEFAULT" />
>                
>            
>            
>                
>                 android:name="android.intent.category.DEFAULT" />
>                
>            
>         
>
> But if i create my intent like that :
>
> Intent sendIntent = new Intent(Intent.ACTION_SEND);
>                 sendIntent.putExtra(Intent.EXTRA_TEXT, "Body");
>                 sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Header");
>                 sendIntent.putExtra("sms_body", "The SMS text");
>                 sendIntent.setType("text/plain");
>                 try {
>                         
> getContext().startActivity(Intent.createChooser(sendIntent,
> getContext().getText(R.string.share_this_story)));
>                 } catch (android.content.ActivityNotFoundException ex) {
>                         Toast.makeText(getContext(), "Can't share the Story",
> Toast.LENGTH_SHORT).show();
>                 }
>
> Only gmail is an option or gmail +k9 if k9 installed.
> Changing intent type to */* works but it's not really a good options
> since i have a plain text.
>
> thanks Alex.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Market statistics for apps targeting The Netherlands are not correct

2009-02-03 Thread Ronald van der Lingen

Justin,

Thanks for looking into the situation. I will wait and see whether the
statistics will be updated in the next couple of days. The app has
been in the market for 5 days, so there is already quite a big delay.

One interesting thing is that the ratings do show up in the developer
console (8 at this moment), but the download count remains 0.

Kind regards,
Ronald


On Feb 3, 7:43 pm, "Justin (Google Employee)"  wrote:
> Ronald,
>
> I've talked with the Market team and there may be a delay in
> statistics gathering. My recommendation is to wait a day or two and
> see what your results are then. Either way, please post back with your
> results in a day or two.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Feb 3, 9:51 am, Ronald van der Lingen  wrote:
>
> > The name of my application is "PimPam".
>
> > Thank you,
> > Ronald
>
> > On Feb 3, 5:07 pm, "Justin (Google Employee)"  wrote:
>
> > > What is the name of your application? If you're not comfortable
> > > sharing this publicly, please message me privately.
>
> > > Cheers,
> > > Justin
> > > Android Team @ Google
>
> > > On Feb 3, 1:58 am, Ronald van der Lingen  wrote:
>
> > > > Last week I published our first app to the Market, which is a game
> > > > targeted to users in The Netherlands. Now that the G1 has been
> > > > available over here for a couple of days, we have received feedback
> > > > from several of our users.
>
> > > > When I look at the developers console in the market however, the
> > > > download count still shows 0. Also on the device it is listed as <50.
> > > > When looking around in the Market, I see that all applications
> > > > targeted to The Netherlands are listed as having <50 downloads, even
> > > > an application that received a lot of publicity.
>
> > > > Have other developers noticed the same?
>
> > > > Kind regards,
> > > > Ronald
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Leaked window in PreferenceActivity

2009-02-03 Thread AusR

Anyone?

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: I am getting SICK of 1 star ratings for charging!

2009-02-03 Thread blindfold

Somewhat in this direction goes the new RC33 G1 firmware,

http://forums.t-mobile.com/tmbl/board/message?board.id=87&thread.id=30897

allowing visitors to

> Tap Mark this as SPAM.

in the application's comments.

Regards


On Feb 3, 7:59 pm, Beshoy Girgis  wrote:
> I think some cool additions to the market would be to be able to rate a
> comment with a thumbs up or down... then from there, show the top ten rated
> comments or what not.. no need to show all 1000 of them.
>
> Sincerely,
>
> Beshoy Girgis
> Owner
> One Design Studios, LLChttp://www.ODSLabs.com
> 816.347.8637

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

2009-02-03 Thread Peli

I think it is impossible to know whether a service has finished or not
unless the service itself lets you know that.

If you just check whether the service is still alive - it may be
waiting for a server response - or it may have finished and processing
some other application's requests.

So, I guess you have to request that all services let you know by a
callback when they are done, so that you can continue with the next
service. Probably you also need a timeout, in case a service never
finishes.

Peli

On Feb 3, 8:37 pm, Al Sutton  wrote:
> The services come from different APKs.
>
> Best way to think about it is the main application does some processing
> and an additional number of APKs can contain perform contributions to
> that processing. For example, there may be many APKs each of which has a
> particular stock trading prediction forumla, and a main APK has stock
> price data, the main APK calls each of the strategy APKs with the stock
> history content provider URI and each strategy APK can process the
> history and do what it wants.
>
> The strategy APKs may not come from one place and may be written by many
> different companies (hence why they are seperate APKs)
>
> Hope that clarifies things a bit.
>
> Al.
>
>
>
> Dianne Hackborn wrote:
> > If they are running in the same process, you could just use globals to
> > keep track of who is running and decide what next to do.
>
> > If you really just want one thing to run at a time, though, why not
> > just put it all in one service?  A common pattern is to have a service
> > that you submit work to with startService(), which does each thing
> > given to it in order and stops itself when done.  There is an ApiDemo
> > showing how to structure such a service (the one with three buttons to
> > submit work to it, I can't remember the exact name off-hand).
>
> > On Tue, Feb 3, 2009 at 9:12 AM, Al Sutton  > > wrote:
>
> >     I have an app which will start multiple separate services which
> >     perform
> >     an action and then exit. I don't want them all to run at the same time
> >     (because this may bog down the OS).
>
> >     I have the code for finding the services and starting the
> >     services, but
> >     does anyone know how I can make sure one service has completed before
> >     the next starts.
>
> >     Due to what the app does it will have to start multiple services
> >     and the
> >     actions the services perform have no GUI and may take tens of
> >     seconds or
> >     minutes (hence why I'm using a service so the user isn't just shown a
> >     blank screen every time the next service starts).
>
> >     Anyone have any ideas?
>
> >     Al.
>
> >     --
> >     ==
> >     Funky Android Limited is registered in England & Wales with the
> >     company number  6741909. The registered head office is Kemp House,
> >     152-160 City Road, London,  EC1V 2NX, UK.
>
> >     The views expressed in this email are those of the author and not
> >     necessarily those of Funky Android Limited, it's associates, or it's
> >     subsidiaries.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com 
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them.
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Starting multiple services sequentially

2009-02-03 Thread Al Sutton

The services come from different APKs.

Best way to think about it is the main application does some processing 
and an additional number of APKs can contain perform contributions to 
that processing. For example, there may be many APKs each of which has a 
particular stock trading prediction forumla, and a main APK has stock 
price data, the main APK calls each of the strategy APKs with the stock 
history content provider URI and each strategy APK can process the 
history and do what it wants.

The strategy APKs may not come from one place and may be written by many 
different companies (hence why they are seperate APKs)

Hope that clarifies things a bit.

Al.

Dianne Hackborn wrote:
> If they are running in the same process, you could just use globals to 
> keep track of who is running and decide what next to do.
>
> If you really just want one thing to run at a time, though, why not 
> just put it all in one service?  A common pattern is to have a service 
> that you submit work to with startService(), which does each thing 
> given to it in order and stops itself when done.  There is an ApiDemo 
> showing how to structure such a service (the one with three buttons to 
> submit work to it, I can't remember the exact name off-hand).
>
> On Tue, Feb 3, 2009 at 9:12 AM, Al Sutton  > wrote:
>
>
> I have an app which will start multiple separate services which
> perform
> an action and then exit. I don't want them all to run at the same time
> (because this may bog down the OS).
>
> I have the code for finding the services and starting the
> services, but
> does anyone know how I can make sure one service has completed before
> the next starts.
>
> Due to what the app does it will have to start multiple services
> and the
> actions the services perform have no GUI and may take tens of
> seconds or
> minutes (hence why I'm using a service so the user isn't just shown a
> blank screen every time the next service starts).
>
> Anyone have any ideas?
>
> Al.
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
>
>
>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com 
>
> Note: please don't send private questions to me, as I don't have time 
> to provide private support.  All such questions should be posted on 
> public forums, where I and others can see and answer them.
>
>
> >


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

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


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



[android-developers] Re: Listview layout and other widgets

2009-02-03 Thread Mark Roberts

Have you tried changing the RelativeLayout to a LinearLayout?

On Feb 3, 2:07 pm, Al  wrote:
> In my listview, I'm trying to make the list row show 2 imageviews as
> well as the textview which holds the data. The layout of a single row
> is like this: [textview | img1| img2]. The problem is the text inside
> the textview overlaps the imageviews. I've tried various layout
> options but can't seem to get it right. This is my layout file:
>
> 
>          android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:padding="5px"
>         xmlns:android="http://schemas.android.com/apk/res/android";
>
>                          android:id="@+id/label"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>             android:paddingLeft="2dip"
>             android:textColor="#eee"
>
>         />
>
>                                  android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:layout_alignParentRight="true"
>
>                 >
>                                                  android:id="@+id/alert"
>                                 android:layout_width="wrap_content"
>                                 android:layout_height="wrap_content"
>                                 android:src="@drawable/stat_notify_alarm"
>                                 android:tag="alarm"
>                         />
>
>                                                          android:id="@+id/delete"
>                                 android:layout_width="wrap_content"
>                                 android:layout_height="wrap_content"
>                                 android:src="@android:drawable/ic_delete"
>                                 android:layout_toRightOf="@id/alert"
>                                 android:paddingLeft="10px"
>                                 android:tag="del"
>                         />
>
>         
>
> 
>
> and this is the code I'm using for generating the list:
>
> setListAdapter(new ArrayAdapter(this, R.layout.favs,
> R.id.label, shows);
>
> 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: How to get lists of email from contact application?

2009-02-03 Thread dileep singh
Thanks a lot mark.I will try the above code.

On Tue, Feb 3, 2009 at 10:46 PM, Mark Roberts  wrote:

>
> If you are looking for the emails for  a specific contact then you
> could do it like this where id is the id of the contact for which you
> are trying to get the data:
>
> public static final String[] METHODS_PROJECTION = new String[] {
>People.ContactMethods._ID,
>People.ContactMethods.KIND,
>People.ContactMethods.DATA,
>People.ContactMethods.TYPE,
>People.ContactMethods.LABEL,
>People.ContactMethods.ISPRIMARY,
>};
> mUri = ContentUris.withAppendedId(Uri.parse("content://contacts/
> people"), id)
> Uri methodsUri = Uri.withAppendedPath(mUri,
> People.ContactMethods.CONTENT_DIRECTORY);
> Cursor methodsCursor = getContentResolver().query(methodsUri,
> METHODS_PROJECTION, "kind=1", null, null);
>
> On Feb 3, 12:05 pm, dilu  wrote:
> > Hi,
> > Please tell me how to get lists of email from contact application in
> > android?If possible then please provide me some sample code or
> > tutorial on this.
> > please help me.
> > Thanks
> > dileep
> >
>

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



[android-developers] MMS ( Messaging App ) ACTION_SEND "text/plain"

2009-02-03 Thread Alexey

Hi All i'm looking for answer why Messaging is not showing up in the
activity chooser dialog.
Looking at the manifest it should do exactly that























   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


But if i create my intent like that :

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "Body");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Header");
sendIntent.putExtra("sms_body", "The SMS text");
sendIntent.setType("text/plain");
try {

getContext().startActivity(Intent.createChooser(sendIntent,
getContext().getText(R.string.share_this_story)));
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(getContext(), "Can't share the Story",
Toast.LENGTH_SHORT).show();
}

Only gmail is an option or gmail +k9 if k9 installed.
Changing intent type to */* works but it's not really a good options
since i have a plain text.

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



[android-developers] Unable to access contacts from device

2009-02-03 Thread Rockingteam

Hi,
our application can accesses contacts when it is run on an emulator
and when it is installed on a device,
we are unable to access contacts.
any suggestions???


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

2009-02-03 Thread Al

In my listview, I'm trying to make the list row show 2 imageviews as
well as the textview which holds the data. The layout of a single row
is like this: [textview | img1| img2]. The problem is the text inside
the textview overlaps the imageviews. I've tried various layout
options but can't seem to get it right. This is my layout file:


http://schemas.android.com/apk/res/android";
>











and this is the code I'm using for generating the list:

setListAdapter(new ArrayAdapter(this, R.layout.favs,
R.id.label, shows);

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: I am getting SICK of 1 star ratings for charging!

2009-02-03 Thread Beshoy Girgis
I think some cool additions to the market would be to be able to rate a
comment with a thumbs up or down... then from there, show the top ten rated
comments or what not.. no need to show all 1000 of them.

Sincerely,

Beshoy Girgis
Owner
One Design Studios, LLC
http://www.ODSLabs.com
816.347.8637


On Tue, Feb 3, 2009 at 11:33 AM, Bobby Kolev  wrote:

>
> I fully agree!
>
> Don't know what Google were thinking, but the current download and
> review model pushed me away from Android and back to BlackBerry and
> iPhone, where we have better control over quality and - at the very
> least - a chance to defend against both stupidity and purposeful
> attacks against our brand and products.
>
> In the curent Android Marketplace you're not just on your own, you're
> without any control whatsoever.
>
> The ability to charge for applications will be one small way to change
> that, but it's not going to be a big thing by itself.
>
> I hope someone from the Android team reads that and doesn't ignore it
> on the basis of it being non-technical. They'd just repeat the mistake
> they did back at Palm.
>
> We *are* technical. You're just preventing us from showing it on your
> platform.
>
> - bobby
>
> On Feb 3, 8:51 am, gsmd  wrote:
> > The whole non-moderated comment system is broken from the start.  I
> > don't want spam on MY app's page! Wish they added an option to disable
> > comments alltogether.
> > Besides that, not being able to charge for app through Android Market
> > makes it just a free (ugly!) showroom for demo versions.
> >
>
> >
>

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



[android-developers] Re: Market statistics for apps targeting The Netherlands are not correct

2009-02-03 Thread Justin (Google Employee)

Ronald,

I've talked with the Market team and there may be a delay in
statistics gathering. My recommendation is to wait a day or two and
see what your results are then. Either way, please post back with your
results in a day or two.

Cheers,
Justin
Android Team @ Google

On Feb 3, 9:51 am, Ronald van der Lingen  wrote:
> The name of my application is "PimPam".
>
> Thank you,
> Ronald
>
> On Feb 3, 5:07 pm, "Justin (Google Employee)"  wrote:
>
> > What is the name of your application? If you're not comfortable
> > sharing this publicly, please message me privately.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Feb 3, 1:58 am, Ronald van der Lingen  wrote:
>
> > > Last week I published our first app to the Market, which is a game
> > > targeted to users in The Netherlands. Now that the G1 has been
> > > available over here for a couple of days, we have received feedback
> > > from several of our users.
>
> > > When I look at the developers console in the market however, the
> > > download count still shows 0. Also on the device it is listed as <50.
> > > When looking around in the Market, I see that all applications
> > > targeted to The Netherlands are listed as having <50 downloads, even
> > > an application that received a lot of publicity.
>
> > > Have other developers noticed the same?
>
> > > Kind regards,
> > > Ronald
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >