[android-developers] Re: playing video file

2009-04-02 Thread jaimin mehta
thanks for the suggestion but i have solve that with multiply by 16 to my
320*480px and it runs in full screen

On Thu, Apr 2, 2009 at 11:26 AM, Dave Sparks davidspa...@android.comwrote:


 Have you looked at the VideoView widget?

 On Apr 1, 2:41 am, jaimin jaiminmeht...@gmail.com wrote:
  hi,
  i have problem in playing video file. Video file is playing nice but i
  want to play video file in the whole emulator (size).Right now video
  file is playing but in small size.
  so any suggestion or solution plz help me.
 
  thanks.
  jaimin.
 


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



[android-developers] textView

2009-04-02 Thread pramod taragi
Hi 




How to set position of TextView and EditText using java code. i want to set 
EditText just after TextView.





Thanks in advance.


  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.webmessenger.yahoo.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Question regarding unexpected application behaviour (reported by market users)

2009-04-02 Thread EvgenyV

Hi all,

I just uploaded the application and got couple of negative rates like
force closes on start.
On start the tab page populated by Intent which is ListActivity. The
list data is loading from resources. List is really small. No internet
and file system access triggered on start.
The strange thing is that I NEVER got such errors during the
development and testing. The one reason I'm thinking I didn't check
the device available memory... What else?
Did you probably experienced such behaviour? Will appreciate your
opinion.

Thanks,
Evgeny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 can I show the escape characters of a xml file in my app

2009-04-02 Thread manoj

Here is some example.xml:
Person
Name Manoj/Name
class 10th /class
Genre male/Genre
...
/Person

The name field contains '  ' (Manoj as shown in the above example).
When I was parsing it using the DOM parser as shown in the previous
mail, I am getting only  instead of Manoj. Not complete string I am
getting.

How to get the complete values ( even the node values contains ,
 ... etc escape sequence characters).

Can any one please help me.

Thanks,
Manoj.

On Apr 2, 10:39 am, manoj manojkumar.m...@gmail.com wrote:
 Hi I am writing an application which reads the xml data and just
 prints it.

 The xml data consists of some escape sequence characters like , ...

 I am using DOM parser for this.

 When trying to print the data, I am not able to get the original data.

 The code, I am using is:

          Document doc = null;
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                         DocumentBuilder db = dbf.newDocumentBuilder();
                         is = urlConn.getInputStream();
                         doc = db.parse(is);

                         org.w3c.dom.Element feed =
 doc.getDocumentElement();

                         NodeList nl = feed.getElementsByTagName(videoItem);

                         Node el = (Node)nl.item(j);

                                         NodeList nl1 = ( 
 (org.w3c.dom.Element) el).getElementsByTagName
 (id);
                                         if(nl1 != null  nl1.getLength()  0)
                                         {
                                                 Node ele = (Node)nl1.item(0);
                                                 String idVal = ((Node) 
 ele).getFirstChild().getNodeValue();
                                                 System.out.println(channel 
 id is-+idVal);
                                                 videoItem.m_id = idVal;

                                         }

 How can I handle this issue?

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



[android-developers] sms database

2009-04-02 Thread jaimin

hi.
i am new to android .
i want to devlop an appliaction in which i put lots of sms in the
phone's sms database and then i would like to send those sms to
contacts which user selected.

1)so first i want to know how can i see the sms database.
2)and how can i update those sms database

so any suggestio or sources codes to help me?

thanks.
jaimin

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

2009-04-02 Thread jaimin

hi . i am new to android.
i have same problem or questio that u have so if u find any answer
then plz can u share with me?
because i need the solution very badly.


On Mar 16, 12:41 pm, Kenny yxw...@gmail.com wrote:
 Can anybody help? To be clear, I want to write a Android Java program
 to monitor the sent-outSMSand input contacts (like SYNC caused).

 BecauseSMSand Contacts are both stored indatabase, I want to know
 if android.database.ContentObserver is good for this purpose. First I
 wish to listen to ContentObserver::onChange(). Then I will querydatabaseto 
 see ifSMS/Contacts were just added/updated. If this is
 doable, really wish to get some sample code.

 Kenny
 On Mar 15, 12:09 pm, Kenny Yu yxw...@gmail.com wrote:

  WhereSMS/Contacts are added/updated/deleted, how can I write an App-
  Service to know the contents change? The changes are possibly caused
  by App activities or SYNC activity, or any else.

  Any content observer or intents I should look into? Welcome your
  design suggestion.

  Kenny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 make a ListView adapt to dynamic element sizes?

2009-04-02 Thread for android
What am I missing? How can I programmatically tell a container view to
look at its children again in order to resize if necessary?

example in api demos --- Views/Lists/6.ListAdapter Collapsed



On Wed, Apr 1, 2009 at 1:12 PM, Matthias m.kaepp...@googlemail.com wrote:


 Hi,

 I am struggling over another layouting problem again. I render a
 ListView with ellipsized TextView elements, but those text views can
 expand in size when the user clicks it. The problem is: If the
 ListView doesn't already take the whole screen (e.g. because the total
 height of all visible elements is smaller than the screen height),
 then when expanding an element, the ListView's size doesn't also
 expand accordingly, still obscuring most parts of the now taller text
 view.

 I have tried practically everything that seemed reasonable to me to
 make the ListView get aware of the new height of its children,
 including calls to:

 invalidate()
 measure()
 recomputeViewAttributes(textView)

 on all participating views (the list view and its elements), but
 nothing works.

 What am I missing? How can I programmatically tell a container view to
 look at its children again in order to resize if necessary?

 Thanks!
 Matthias
 


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

2009-04-02 Thread David Turner
Can you tell us exactly what you do to access it ?

On Wed, Apr 1, 2009 at 11:37 PM, intbt tacbe...@gmail.com wrote:


 I am trying to access the memory card but Vista says please insert a
 disk into removable disk H: and will not permit me to load files into
 the card.

 Any ideas as to what is wrong?
 


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

2009-04-02 Thread dillirao malipeddi
When you connect the device to your PC then
1) In the phone notification area it will display connect to USB

   open the notification and click on mount

then it will allow you to access memory card

I think it will help you

On Thu, Apr 2, 2009 at 3:07 AM, intbt tacbe...@gmail.com wrote:


 I am trying to access the memory card but Vista says please insert a
 disk into removable disk H: and will not permit me to load files into
 the card.

 Any ideas as to what is wrong?
 



-- 
Dilli Rao. M

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



[android-developers] play video error

2009-04-02 Thread Nithin

Hi to all

 Can any one tell me how to play video in emulator... I
tried but its give error
Code is as below..

package com.example;
import android.app.Activity;
import android.graphics.PixelFormat;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.MediaController;
import android.widget.Toast;
import android.widget.VideoView;

public class VideoViewDemo extends Activity {

/**
 * TODO: Set the path variable to a streaming video URL or a local
media
 * file path.
 */
private String path = C:\Documents and Settings\nithin\My
Documents\Downloads\disney_256v_32a.mp4;
private VideoView mVideoView;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.videoview);
mVideoView = (VideoView) findViewById(R.id.surface_view);

if (path == ) {
// Tell the user to provide a media file URL/path.
Toast.makeText(
VideoViewDemo.this,
Please edit VideoViewDemo Activity, and set path
+  variable to your media file URL/path,
Toast.LENGTH_LONG).show();

} else {

/*
 * Alternatively,for streaming media you can use
 * mVideoView.setVideoURI(Uri.parse(URLstring));
 */
mVideoView.setVideoPath(path);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();

}
}
}


Thank You in advance
Nithin N V
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 the first frame of a video file ?

2009-04-02 Thread Wei

Hi Dave,

Currently, I need use android.media.MediaMetadataRetriever.
I can find MediaMetadataRetriever.java in source code but there is no
MediaMetadataRetriever.class build to out folder.
Where can I get the class file.
I need to import the android.media.MediaMetadataRetriever in my test
AP.
Thanks~~

-wei

On 3月8日, 上午2時29分, Dave Sparks davidspa...@android.com wrote:
 No, we're just adding support for extracting a static thumbnail.

 What is your use case? Where does the video stream come from?

 On Mar 5, 2:06 pm, elcadar mogrif...@gmail.com wrote:



  Will you be able to extract arbitrary frames from a video stream (not
  necessarily a file)? Essentially pull a frame every few seconds from
  outbound video stream and show a little image on screen?

  On Feb 11, 11:14 pm, Dave Sparks davidspa...@android.com wrote:

   There is no support for thumbnail extraction in SDK 1.0. It's coming
   in Cupcake as an adjunct to video record.

   On Feb 11, 7:30 am, Freepine freep...@gmail.com wrote:

Opencore has aframeandmetadatautility, and there is also an API as
android.media.MediaMetadataRetriever.captureFrame()
in Java layer, but it might not be available in public SDK.

On Wed, Feb 11, 2009 at 8:49 PM, trust_chen chen 
trustc...@gmail.comwrote:

 how to get the firstframeof a video file ?
 Are there such APIs in OPENCORE?
  Thanks !- 隱藏被引用文字 -

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



[android-developers] Re: is video recording available in V1.1?

2009-04-02 Thread david

Hi zeeshan,

I also tried audio recording of AMR on G1. But I'm failed. Could you
please share your way with me? Thanks in advance.

david

On Mar 26, 2:46 am, zeeshan genx...@gmail.com wrote:
 Hi Experts,

 i am looking for video recording example, it suppose to be in api-
 sample but not available
 i am wondering if 1.1 release still missing this feature?

 if it does support then in which format and where is the example

 also i am trying to figure out mp3 encoding long ago but still no
 solution
 i have recorded an audio ()which is in AMR by default, how can i
 convert it in mp3 (any external package i can use?)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Starting an ACTIVITY from a SERVICE.

2009-04-02 Thread Zhubham

Hi,

I give the following command to start an Activity from inside a
service:

Intent intentToSaveRecord = new Intent
(android.intent.action.saveRecord);
startActivity(intentToSaveRecord);

This is giving the following run time error:

android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK
flag. Is this really what you want?

How do I fix this??

Please help me with this.

Thanks.

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



[android-developers] Re: is video recording available in V1.1?

2009-04-02 Thread ambrosehua


It seems that Android doesn't support AMR recording currently, which
is actually different from audio recording
On 4月2日, 下午3时16分, david david...@gmail.com wrote:
 Hi zeeshan,

 I also tried audio recording of AMR on G1. But I'm failed. Could you
 please share your way with me? Thanks in advance.

 david

 On Mar 26, 2:46 am, zeeshan genx...@gmail.com wrote:



  Hi Experts,

  i am looking for video recording example, it suppose to be in api-
  sample but not available
  i am wondering if 1.1 release still missing this feature?

  if it does support then in which format and where is the example

  also i am trying to figure out mp3 encoding long ago but still no
  solution
  i have recorded an audio ()which is in AMR by default, how can i
  convert it in mp3 (any external package i can use?)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Creampuff?

2009-04-02 Thread Rajesh S

Is there any truth about creampuff rumours?
Here s what we heard. Could somebody from google android team confirm?

Creampuff will nave a number of innovative features including:
* Support for the new A5DP Bluetooth standard, for realistic 5.1
surround sound
* Tethering via Bluetooth and WiFi
* USB host support for keyboards, external drives, and EEG
* Root access available by a switch in the user settings
* An expanded Android Market that allows developers to use
descriptions up to 450 characters long instead of the current limit of
325
* A new audio codec especially designed to compress farting sounds
by 95%

Ok the name could be a hoax but are these features planned?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Creampuff?

2009-04-02 Thread Al Sutton

Answered in your cross-post to android-discuss. 


---

* Written an Android App? - List it at http://andappstore.com/ *

==
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. 


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Rajesh S
Sent: 02 April 2009 09:04
To: Android Developers
Subject: [android-developers] Creampuff?


Is there any truth about creampuff rumours?
Here s what we heard. Could somebody from google android team confirm?

Creampuff will nave a number of innovative features including:
* Support for the new A5DP Bluetooth standard, for realistic 5.1
surround sound
* Tethering via Bluetooth and WiFi
* USB host support for keyboards, external drives, and EEG
* Root access available by a switch in the user settings
* An expanded Android Market that allows developers to use descriptions
up to 450 characters long instead of the current limit of
325
* A new audio codec especially designed to compress farting sounds by
95%

Ok the name could be a hoax but are these features planned?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Free paid versions of an app, shared user ID SQLite

2009-04-02 Thread Marcus

Also interesting to me! I have the same problem and no idea for the
best practice.

But I don't even need to use the same database (because I can import
from the free version). But I want to use the same code base. So
should I copy / branch the code? Can I extend from the previous
project?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Starting an ACTIVITY from a SERVICE.

2009-04-02 Thread Dianne Hackborn
You really shouldn't do that.  Use a notification instead.

On Thu, Apr 2, 2009 at 12:27 AM, Zhubham sahilz...@gmail.com wrote:


 Hi,

 I give the following command to start an Activity from inside a
 service:

 Intent intentToSaveRecord = new Intent
 (android.intent.action.saveRecord);
 startActivity(intentToSaveRecord);

 This is giving the following run time error:

 android.util.AndroidRuntimeException: Calling startActivity() from
 outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK
 flag. Is this really what you want?

 How do I fix this??

 Please help me with this.

 Thanks.

 Regards,
 Zhubham.
 



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

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

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



[android-developers] Re: Cannot use custom style that inherit from translucent android theme

2009-04-02 Thread Jeffrey Sharkey

Yea, I'm seeing the same thing.  It looks like touching the style
locally puts a black background behind that window.

I confirmed this by defining android:windowBackground to red with 50%
alpha, and it shows through to a solid black background.

j

On Feb 16, 11:45 pm, Adrien Guichard guichard.adr...@gmail.com
wrote:
 2009/2/17 Greg Krimer gkri...@gmail.com:



  Did you mean:

  style name=MyTranslucent
  parent=android:Theme.Translucent.NoTitleBar/style

 Yes, Translucents Themes are not inherited, other theme are ...

  Anyway, I can confirm that it indeed does not work.

  But this does (in the sense that the title bar is absent):

  style name=MyTranslucent parent=android:Theme.NoTitleBar/
  style

  How odd. I'd like to know what's up with this, too. Anyone have any
  ideas?

 I do find a workaround, from the samples style.xml file (I do not find
 any documentation about items of style):

 style name=Theme.Transparent
     item name=android:windowIsTranslucenttrue/item
     item 
 name=android:windowAnimationStyle@android:style/Animation.Translucent/item
     item 
 name=android:windowBackground@drawable/transparent_background/item
     item name=android:windowNoTitletrue/item
     item name=android:colorForeground#fff/item
 /style
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 jpg into content resolver

2009-04-02 Thread yves...@gmail.com

I successfully adding a jpg file into ContentResolver by using insert,
and I can query contentResolver to get information about the jpg file.
But if I go to Pictures app, the new picture is not showing. I
debugged into the code and found out that in the Camera source code,
when it tries to generate bitmap for this new file, the
BitmapFactory.decodeFileDescriptor(fd, null, options) sets the
options.outwidth and outheight to -1. If I restart the emulator, the
value will be correct 800 X 600. So, what do I need to do to make sure
that after I generate a new file (.jpg) in SDCard and it will be shown
in Pictures right away. I thought about using rescan of content
provider, but because I might need to generate more than one jpg files
at the same time, if they all call rescan, it might be a mess. Any
suggestions?


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



[android-developers] How to avoid garbage collection?

2009-04-02 Thread admin.androidsl...@googlemail.com

So my app is performing ok, but could be running a lot better.

LogCat shows me every 4 - 5 seconds, GC freed usually about 20,000
bytes each time, so clearly I am doing something wrong.

I have gone through the reference material on GC / memory allocation
at
http://developer.android.com/guide/practices/design/performance.html

I have also looked at Android source classes such as View which I know
are designed for performance :
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/view/View.java;h=04447ca4719df5bf274ce4d04e1df7ef28f89a83;hb=HEAD

I don't have any new constructors in my user control loop and I
calculate any 'new' primitives using a final constructor beforehand
like in the samples.

What else do I need to check?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SystemProperties.get()/set()

2009-04-02 Thread Lawrence

Anybody has any idea on this?

On 4月1日, 下午10时43分, Lawrence lejie.zh...@gmail.com wrote:
 Hi all,
 In case of reading/setting properties defined in
 /default.prop
 /system/build.prop
 /system/default.prop
 /data/local.prop,
 i am finding many source code in android release are using
 SystemProperties.get()/set() for this purpose. But i am also finding
 that SystemProperties is not published any more. I am really confused
 about this. Anyone can kindly give me a clue on this?
 Since SystemProperties is not exposed, could System.getProperty()/
 setProperty() take its place?

 Thanks,

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

2009-04-02 Thread admin.androidsl...@googlemail.com

Sounds very useful for performance tuning.

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



[android-developers] Detecting if microphone is mute during a call

2009-04-02 Thread Meti

Hello,

I would like  to detect if microphone in the device or in a headset is
mute during a call.
Currently I've taken the following approach (unfortunately - it does
not work):
1) register PhoneStateListener to detect when a call is started/
finished
2) when call is started then I start a thread that periodically calls
audioManager.isMicrophoneMute() method to discover a microphone
status. (audioManager is obtained by calling getSystemService
(AUDIO_SERVICE) )
3) when call is finished I stop a thread started in bullet 2

Unfortunately audioManager.isMicrophoneMute() always returns 'true',
does not matter if I select or deselect the 'Mute' option in the menu
during a call.

Does anybody know if it is possible to detect the state of a
microphone during a call?
I'd be very grateful for help.

Thanks,
  Meti

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

2009-04-02 Thread David Turner
Note also that some Java 5 idioms will allocate objects for you if you're
not careful.
For example, string concatenation like:

  myString = value of x is + x;

Will allocate a temporary StringBuilder object each time this statement is
executed.
Other cases are using for () to iterate over certain collections.

On Thu, Apr 2, 2009 at 11:15 AM, David Turner di...@android.com wrote:

 Without any detail about what your core loop is doing, there is no way we
 can answer that.
 The general rule of thumb is don't allocate and you won't get a GC at
 all.


 On Thu, Apr 2, 2009 at 10:53 AM, admin.androidsl...@googlemail.com 
 admin.androidsl...@googlemail.com wrote:


 So my app is performing ok, but could be running a lot better.

 LogCat shows me every 4 - 5 seconds, GC freed usually about 20,000
 bytes each time, so clearly I am doing something wrong.

 I have gone through the reference material on GC / memory allocation
 at
 http://developer.android.com/guide/practices/design/performance.html

 I have also looked at Android source classes such as View which I know
 are designed for performance :

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/view/View.java;h=04447ca4719df5bf274ce4d04e1df7ef28f89a83;hb=HEAD

 I don't have any new constructors in my user control loop and I
 calculate any 'new' primitives using a final constructor beforehand
 like in the samples.

 What else do I need to check?
 



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

2009-04-02 Thread zeeshan

try this

Uri recordedAudio = data.getData();

On Apr 1, 5:45 am, estivenrpo estiven...@gmail.com wrote:
 Hi,

 I try to use the android.provider.MediaStore.RECORD_SOUND intent and
 it work perfect, the problem that i have is whit the uri when the file
 is saved...  the file is saved on /sdcard but i don't know the path or
 the uri of the file...   I try to send a uri through the putExtra but
 it did not work

     Intent i = new Intent(android.provider.MediaStore.RECORD_SOUND);
     i.putExtra(output, Uri.parse(file:///sdcard/audio));
     startActivityForResult(i, 0);

         @Override
         protected void onActivityResult(int requestCode, int resultCode,
 Intent data) {
                 Log.d(tiferson, Entro a onActivityResult);
                 switch (requestCode) {
                 case 0:
                         if (resultCode == RESULT_OK) {
                                 Log.d(tiferson, on the result ok...);
                                 String s = data.getAction();
                                 Log.d(tiferson, despues del 
 data.getExtras...);
                                 if(s == null) {
                                         Log.d(tiferson, don't return 
 getAction);
                                 }
                                 Bundle b = data.getExtras();
                                 if(b == null) {
                                         Log.d(tiferson, don't return 
 getExtras);
                                 }
                       }

 And on the logcat i can see:  don't return getAction and don't
 return getExtras.

 can i  know the path where the file is saved or send the path for it?

 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 avoid garbage collection?

2009-04-02 Thread David Turner
Without any detail about what your core loop is doing, there is no way we
can answer that.
The general rule of thumb is don't allocate and you won't get a GC at all.

On Thu, Apr 2, 2009 at 10:53 AM, admin.androidsl...@googlemail.com 
admin.androidsl...@googlemail.com wrote:


 So my app is performing ok, but could be running a lot better.

 LogCat shows me every 4 - 5 seconds, GC freed usually about 20,000
 bytes each time, so clearly I am doing something wrong.

 I have gone through the reference material on GC / memory allocation
 at
 http://developer.android.com/guide/practices/design/performance.html

 I have also looked at Android source classes such as View which I know
 are designed for performance :

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/view/View.java;h=04447ca4719df5bf274ce4d04e1df7ef28f89a83;hb=HEAD

 I don't have any new constructors in my user control loop and I
 calculate any 'new' primitives using a final constructor beforehand
 like in the samples.

 What else do I need to check?
 


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



[android-developers] Why does not SoundRecoder work on G1

2009-04-02 Thread david

hi everyone,

I can see 'Sound Recorder' under Setting/Manage Applications. But I
can not find any entry to run it.  Please help me.

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

2009-04-02 Thread StefanK

I recently had the same issue. What I found is that you have to clear
history AFTER the (first) page loads. It appears that the history
clears everything before the current page so if your browser is at
page A, you clear history and navigate to page B your history will
be A B, not just B, but if you clear history when B finishes
loading you will have only B.
In my case I end up using onPageFinished  method of the
WebViwClient, but in this case you have to know what your start page
is and clear the history only after it otherwise you will be clearing
the history after every page navigated after the first.

Stefan

On Mar 31, 6:05 pm, nEx.Software justin.shapc...@gmail.com wrote:
 I call WebView.clearHistory(), but I am still able to go back after
 doing so. I want to reuse a WebView, but I don't want the back button
 to allow the user to go back further than the current session of
 using the WebView. Anybody know what is the best way to handle this? I
 thought for sure that clearHistory() would do it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] OutOfMemoryError (external allocation too large for this process)

2009-04-02 Thread zeeshan

Hi Experts,

I am beating my head against a wall since 3 days trying to resolve out
of memory exception but still no success.
here is the line giving me this error


 image_view.setImageURI(image_uri);

everytime when i change the orientation or start this activity again,
it gives me out of memory exception

VM won't let us allocate 6291456 bytes.

it seems i am not leting GC to release my memory.
any solution would be appreciated
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 (external allocation too large for this process)

2009-04-02 Thread Mark Murphy

zeeshan wrote:
 Hi Experts,
 
 I am beating my head against a wall since 3 days trying to resolve out
 of memory exception but still no success.
 here is the line giving me this error
 
 
  image_view.setImageURI(image_uri);
 
 everytime when i change the orientation or start this activity again,
 it gives me out of memory exception
 
 VM won't let us allocate 6291456 bytes.
 
 it seems i am not leting GC to release my memory.
 any solution would be appreciated

Use a different image.

The G1 has a 320x480 pixel display. Your image is consuming ~41 bytes
per pixel...which seems a little high. More likely, it is a much higher
resolution picture than the G1 display can handle.

So, use a different image. Or scale down the one you have before
displaying it (and cache the smaller one to reuse on the rotation):

http://www.anddev.org/resize_and_rotate_image_-_example-t621.html

Also, call recycle() when you are done with the Bitmap, which may help
GC it faster.

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

Android App Developer Training: http://commonsware.com/training.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: How can I show the escape characters of a xml file in my app

2009-04-02 Thread Mark Murphy

manoj wrote:
 Hi I am writing an application which reads the xml data and just
 prints it.
 
 The xml data consists of some escape sequence characters like , ...
 
 I am using DOM parser for this.
 
 When trying to print the data, I am not able to get the original data.

That is because you are assuming there is only one child node of your
Element. Android's DOM may give you several child nodes. Iterate over
the children rather than only looking at the first one.

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

Android App Developer Training: http://commonsware.com/training.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: Question regarding unexpected application behaviour (reported by market users)

2009-04-02 Thread Evgeny V
Found and fixed the problem. It's my responsibility.

On Thu, Apr 2, 2009 at 9:17 AM, EvgenyV evgen...@gmail.com wrote:


 Hi all,

 I just uploaded the application and got couple of negative rates like
 force closes on start.
 On start the tab page populated by Intent which is ListActivity. The
 list data is loading from resources. List is really small. No internet
 and file system access triggered on start.
 The strange thing is that I NEVER got such errors during the
 development and testing. The one reason I'm thinking I didn't check
 the device available memory... What else?
 Did you probably experienced such behaviour? Will appreciate your
 opinion.

 Thanks,
 Evgeny
 


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

2009-04-02 Thread AlexK

Hi,

today I publish small utility/tool that should help all Android
developers providing easier localizations. You can now ask own
customers in helping you to localize program for there native
language.

It's a small Windows OS GUI utility written on C#, and requires .NET
Framework 2.0. Project is open source, so everyone can take sources
and add additional features into it.

Application can be downloaded from: 
http://www.artfulbits.com/android/Localizer.aspx

I hope that utility will help everyone providing localizations easy
and fast.

P.S. Our team use that utility for Cupcake brunch localization on
Ukraine language.

Thanks,
Good Luck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-04-02 Thread blindfold

Yes, you are right, for many applications it may not be that critical.
It rather reflects my own disappointment with the fact that whereas
modern Nokia phones meet my real-time requirements with Java ME and
offer satisfactory performance for users without any need to mess with
native code, the speed loss of a factor 5-10 under Android means that
my app isn't really usable under Android for some time to come. AFAIK
there's nothing on the public Android roadmap either concerning a JIT
compiler, or a native vector processing library with an Android API,
and an ETA for the NDK is still missing, so there is currently not
much point in planning ahead here when one needs more performance
while maintaining CPU independence at the coding level (say for ARM
and x86).

On Apr 1, 10:28 pm, dm1973 david050...@gmail.com wrote:
 Just remember that  for a lot of  applications most of the time is
 spent calling native routines not executing java code.  It isn't great
 for battery life but it isn't as bad as you first think since in a lot
 of apps, you spend almost all your time in wait loops so the CPU drain
 isn't as important as screen and radio power management.

 Not having the most advanced VM in the world is not a show stopper to
 me in a 1.0 product. It would be nice to see a roadmap  explaining
 where google/OMA is going. But I also understand that maybe this info
 is only shared with OMA partners.

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



[android-developers] loading the jpg image problem

2009-04-02 Thread manoj

Hi friends,

I am downloading the images from a remote site.

the images may be .png or .jpg files.

I have no problem of loading the png images.

But when the app tries to load the .jpg images, I got the following
error and couldn't load the jpg images.

Here is the error description:

I/global  ( 1220): Apr 2, 2009 6:13:08 PM java.io.BufferedInputStream
init
I/global  ( 1220): INFO: Default buffer size used in
BufferedInputStream constructor. It would be better to be explicit if
a 8k buffer is required.
D/skia( 1220): xx failure to skip request 5176 actual
1736
D/skia( 1220): xxx jpeg error 91 Miscellaneous marker 0x
%02x, length %u

Can any one please tell me how to solve this problem.

Thanks,
Manoj.




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



[android-developers] Re: How can I show the escape characters of a xml file in my app

2009-04-02 Thread Evgeny V
May be it will help you.
http://www.fileformat.info/info/unicode/char/search.htm

The  ' (quote) sign I replaced by \u0027 and it works.

Thanks,
Evgeny

On Thu, Apr 2, 2009 at 9:18 AM, manoj manojkumar.m...@gmail.com wrote:


 Here is some example.xml:
 Person
Name Manoj/Name
class 10th /class
Genre male/Genre
 ...
 /Person

 The name field contains '  ' (Manoj as shown in the above example).
 When I was parsing it using the DOM parser as shown in the previous
 mail, I am getting only  instead of Manoj. Not complete string I am
 getting.

 How to get the complete values ( even the node values contains ,
  ... etc escape sequence characters).

 Can any one please help me.

 Thanks,
 Manoj.

 On Apr 2, 10:39 am, manoj manojkumar.m...@gmail.com wrote:
  Hi I am writing an application which reads the xml data and just
  prints it.
 
  The xml data consists of some escape sequence characters like , ...
 
  I am using DOM parser for this.
 
  When trying to print the data, I am not able to get the original data.
 
  The code, I am using is:
 
   Document doc = null;
  DocumentBuilderFactory dbf =
 DocumentBuilderFactory.newInstance();
  DocumentBuilder db = dbf.newDocumentBuilder();
  is = urlConn.getInputStream();
  doc = db.parse(is);
 
  org.w3c.dom.Element feed =
  doc.getDocumentElement();
 
  NodeList nl =
 feed.getElementsByTagName(videoItem);
 
  Node el = (Node)nl.item(j);
 
  NodeList nl1 = (
 (org.w3c.dom.Element) el).getElementsByTagName
  (id);
  if(nl1 != null  nl1.getLength()
  0)
  {
  Node ele =
 (Node)nl1.item(0);
  String idVal = ((Node)
 ele).getFirstChild().getNodeValue();
 
 System.out.println(channel id is-+idVal);
  videoItem.m_id = idVal;
 
  }
 
  How can I handle this issue?
 
  Thanks,
  manoj.
 


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



[android-developers] Re: OutOfMemoryError (external allocation too large for this process)

2009-04-02 Thread zeeshan

thanks for the reply Mark, yes u r right issue is something related to
image pixels
i checked another image which is ok but i really need to display that
image.
i am getting the path of the image from DB in activity A and passing
it in extra to activity B to set as imageUri to ImageView.
 here is my code:

Activity B:

 public void onCreate(Bundle icicle) {
super.onCreate(icicle);
 setContentView(R.layout.my_View);
  loadSelectedImage();

}

public void loadSelectedUtter(){

 Bundle extras = getIntent().getExtras();
if(extras !=null)
{
imageFile= extras.getString(image);


if(imageFile != null){
  image= Uri.parse(imageFile);

imageicon.setImageURI(image);
}

}

}
 }


ImageView
android:id=@+id/imageicon

android:src=@drawable/image
android:adjustViewBounds=true
android:maxWidth=291dip
android:maxHeight=55dip
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=center
/

it loads the image for first time but gives exception on rotation or
2nd load.

plz advise if u have any alternative solution or how can i call recycle
() on it.





On Apr 2, 12:43 pm, Mark Murphy mmur...@commonsware.com wrote:
 zeeshan wrote:
  Hi Experts,

  I am beating my head against a wall since 3 days trying to resolve out
  of memory exception but still no success.
  here is the line giving me this error

   image_view.setImageURI(image_uri);

  everytime when i change the orientation or start this activity again,
  it gives me out of memory exception

  VM won't let us allocate 6291456 bytes.

  it seems i am not leting GC to release my memory.
  any solution would be appreciated

 Use a different image.

 The G1 has a 320x480 pixel display. Your image is consuming ~41 bytes
 per pixel...which seems a little high. More likely, it is a much higher
 resolution picture than the G1 display can handle.

 So, use a different image. Or scale down the one you have before
 displaying it (and cache the smaller one to reuse on the rotation):

 http://www.anddev.org/resize_and_rotate_image_-_example-t621.html

 Also, call recycle() when you are done with the Bitmap, which may help
 GC it faster.

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

 Android App Developer Training:http://commonsware.com/training.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] How can the user event callback be invoked?

2009-04-02 Thread Bin Chen

See:

public class CompassActivity extends Activity implements Renderer,
SensorEventListener {

The CompassActivity implements SensorEventListener  and override the
onSensorChanged() method. I am curious when the hardware accelerator
is moving, how can the system invoke this callback? I mean how can the
Compass application register itself to the system so that the system
can know it has the registered callback need to be notified when the
events happen?

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

2009-04-02 Thread jayesh

Hi Mark,

Did u get solution of your problem?

On Mar 25, 2:55 am, mark.ka...@gmail.com wrote:
   Anyone, anyone? Bueller?  ...   I'll answer my own question, I'll
 try using the uri content://sms/sim

 On Mar 20, 1:14 pm, mark.ka...@gmail.com wrote:

That is programmaticallydeletemessages from the SIM card...

  On Mar 20, 12:58 pm, Mark K mark.ka...@gmail.com wrote:

   Anyone know how todeleteSMSmessages from the SIM card? Thanks!

Mark- 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: SD Card

2009-04-02 Thread Jean-Baptiste Queru

You're asking in the wrong group - this group is to support developers
creating apps using the official SDK.

JBQ

On Wed, Apr 1, 2009 at 8:04 PM, Eric Chen jude...@gmail.com wrote:
 I met the same problem from two weeks ago, if any one fixed it pls help me.
 Best Regards

 Eric Chen


 On Wed, Apr 1, 2009 at 5:54 PM, l hx lihongxia8...@gmail.com wrote:

 Hi.
  today i get the newest code and make it .but when i mksdcard, and
 mount it as same as i did before. but now i can not acces sd card int the
 emulate. who know why?



 




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

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

2009-04-02 Thread shaun

I took a look at Anton's demo on a G1 device, and I was glad to see
the integration of accelerometer as it really added value.  I assume
the calculations for collision detection and response are fairly
basic, which allows for that performance.

Simpull will also provide good performance for a scene of that nature
(all verlet, no joints).  At least I believe it will.  The point where
simpull becomes slow is when a more complex scene is in play with 10s
of objects with many joints connecting some of them.  Since the engine
is all verlet and no rigid body dynamics, joints are one way to
acheive a similar result, but with a very bad performance hit due to
all the new temporary objects and new calculations.

I would be super impressed to see a demo like Anton's with rigid body
dynamics involved with at least some rectangles, if not other polygons
and perhaps a joint or two.  That is where the performance degrades
quickly in my experience.

On Apr 1, 2:45 pm, mscwd01 mscw...@gmail.com wrote:
 Thanks Lajos for pointing APE out, I hadn't heard of it until now.

 Unfortunately your link to your Android port is broken, can you mend
 it as I dont fancy spending another hour porting another library to
 Android :D

 Thanks

 On Mar 31, 9:50 pm, lkelemen tridc...@gmail.com wrote:



  Hello everyone,

  I was also disappointed with jbox2d's performance so I checked APE
  (Actionscript Physics Engine) fromhttp://www.cove.org/ape/.
  It was converted to java (http://www.cove.org/ape/java_ape.zip) so I
  started to convert the java version to Android.

  The performance is quite OK for 10-20 objects at the first start of
  the app but if you exit with the back key and restart it form the
  installed copy
  (either in the emulator or on the dev phone) then it gets slower and
  slower with each start. If you restart it from the emulator (by
  reinstalling it) then it is faster again.
  Neither the pressed keys are not working (probably it is because of my
  poor Android programming knowledge).

  Here is a zipped Android project of it. Please experiment with it and
  send results to here i.e. is it slow for you also after re-re-re-..
  staring?www.kotiposti.net/lkelemen/android/testape2d.zip

  thanks
  Lajos Kelemen

  On Mar 31, 9:26 pm, shaun shashepp...@gmail.com wrote:

   I started going down the path of Object pooling.  It seemed the only
   solution when taking an existing engine and making work on a resource
   constrained system like Android on a phone.  Determining the strategy
   for returning objects to the pool proved quite tough for me.  I have
   no doubt there are some experts on embedded systems programming with
   tons of experience with object pooling.  We just would be too lucky if
   that person(s) was also experienced with Java, physics engines and had
   a passion for open source and games!  Is that too much to ask?  LOL!!

   On Mar 31, 12:17 pm, mscwd01 mscw...@gmail.com wrote:

Thanks for your feedback Shaun, I too unfortunately think a bespoke
engine will need to be written for Android, which is a real pity as
the iPhone has several physics engines which can easily handle
hundreds of objects.

Having said that Anton (2nd reply) has said he has an engine running,
it would be nice to see a demo of this if that'd be possible?

Clark, i'd definately host any .apk's on my own site, I wouldn't put
it on the marketplace if it wasn't a finished app - do people
actually do that?!

I think i'll stay away from developing games with physics for the time
being and concentrate on something else, I cant see it being feasible
to include it any time soon which is a real pity.

On Mar 31, 3:28 pm, shaun shashepp...@gmail.com wrote:

 I am the author ofsimpull.

 Sorry guys for the demo being out of whack forSimpullto the Core.
 The version of PulpCore that I integratedsimpullwith did not support
 Chrome, but you should be able to see it in IE, FF Safari.  It is nice
 to take a look at that demo to get a feel for what the engine is
 capable of, but the performance does not translate over to the fixed
 point branch/version ofsimpullwhen running on Android.

 I ran tests on both the emulator and the actual device and there was a
 significant increase in performance because of the fixed point
 implementation, but I got very frustrated that it still did not
 support the amount of objects in a scene that I considered good for a
 physics-based game.  It seemed to handle ~10 objects moving and
 colliding OK.  It has been a while since I was playing with it, so I
 do not really remember the exact number of objects or the frame rate.
 I mostly remember being upset with it.

 I am leaving the physics ideas for games out of the picture when
 thinking Android for now.  Someone would have to write a ground up
 engine with all the performance and memory concerns of Android in
 mind, which was not the 

[android-developers] Re: testing using EasyMock

2009-04-02 Thread gyuri

I see! Thanks for your help!
Gy

On Mar 29, 6:21 pm, matthias m.kaepp...@googlemail.com wrote:
 Hi,

 On Mar 26, 4:15 pm, gyuri gyorgy.tar...@gmail.com wrote:

  CanEasyMockbe used with Android SDK totestmy code?
  ...

 How did you run thattestcase? You cannot run tests against Android
 classes (or tests which stub them) just by running your tests as a
 Junit program or whatever. You cannot access Android classes from
 outside the emulator, so you will have to use Android's
 Instrumentation mechanisms to run your tests. Doing so should get rid
 of weird class loader errors.

 Cheers,
 Matthias
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: BroadcastReceiver for data SMS - static works, dynamic does not

2009-04-02 Thread Gulfam

Hi thesquib,

  I am trying to receive sms like you. My requirements this I dont
want to show my specific messqage in default Inbox. Can you help me
regarding this. can you share your sms receiving code with me ?.I Have
used xml for receiver as you mentioned above but my receiver is not
invoking on receiving SMS on emulator and sms is going to default
inbox. can you help me regarding this.

Thanks,
Gulfam

On Apr 2, 2:02 am, thesquib thesq...@gmail.com wrote:
 It should be noted that there is a spelling mistake in the code
 version, this is how it should read:
 IntentFilter mFilter = new IntentFilter
 (android.intent.action.DATA_SMS_RECEIVED);
 I typed it up in a browser and made the mistake.

 Thanks.

 On Mar 30, 11:24 am, thesquib thesq...@gmail.com wrote:

  I have created a broadcast receiver statically by specifying it within
  the Manifest, and I have also created the same broadcast receiver in
  code and have registered it with the application context.  The static
  way works very well, but the dynamic way does not receive the expected
  broadcast. It could be that I am not creating the intent filter
  correctly, or that I need to register it with some other context
  somewhere. Please see the code examples to see what I am doing. This
  is related to receivingdataSMS, it works very well on a device using
  a broadcast receiver defined in the Manifest. The correct permissions
  are set for both examples.

  The following is from the Manifest, and the resulting receiver gets
  the expected broadcasts:
   receiver android:name=.MyReceiver
   intent-filter
   action android:name=android.intent.action.DATA_SMS_RECEIVED /
   dataandroid:scheme=sms android:host=localhost
  android:port=6432/
   /intent-filter
   /receiver

  The following is the code example that doesn't work (it does work with
  an intent like android.provider.Telephony.SMS_RECEIVED but not 
  fordatasms):
   MyReceiver mReceiver = new MyReceiver();
   IntentFilter mFilter = new IntentFilter
  (android.intent.action.DATA_SMS_RECEIVER); //also tried an empty
  filter
   intentFilter.addDataAuthority(localhost, 6432);
   intentFilter.addDataScheme(sms);
   context.registerReceiver(mReceiver, mFilter);

  The question is - why does this broadcast receiver get notified of the
  incomingdatamessages? It seems some other resource is notified when
  the Manifest version of the receiver is created...

  Thank you,
  Squib


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



[android-developers] Deleting a full database record in SQLite

2009-04-02 Thread Zhubham

Hi,

I need to introduce a menu option on clicking which the whole SQLite
database file stored at data/data/com.company.packName/databases/
gets deleted. Using DROP TABLE command would only delete the table
under a particular database.

How can i achieve this??

Thanks in advance.

Best Regards,
Zhubham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: WebView bug with pageDown() ?

2009-04-02 Thread pperotti

That is what it means but if you pass true to the boolean argument
it means that the page will be scrolled to the bottom. It seems that
after invoking loadData(), the contents is moved to the bottom but
once the web view has finished loading its data, the scroll is
resetted to the top.

Is there any way to be notified when a page has been completely loaded
using web view?

On 2 abr, 01:42, Romain Guy romain...@google.com wrote:
 pageDown() does not mean scroll the web page to the bottom it means
 scroll down by one page. Just like the page down key on a computer
 keyboard.

 On Wed, Apr 1, 2009 at 9:33 PM, pperotti pablo.pero...@gmail.com wrote:

  Hi Everyone,

  Does anybody know how can I sort out a problem with the
  WebView.pageDown( boolean ) method that simple does not remains in the
  bottom of the web view after invoking loadData() ?

  The behavior in the emulator moves to the bottom and right after that
  moves back to the top.

  Thanks in advance,
  Pablo

 --
 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] contact changed timestamp

2009-04-02 Thread gyuri

Hi!

I am familiarizing with android and getting names, phone number,
emails etc from contacts.
Getting them is not a problem however,  I would need the info when any
of those data was last modified.
I don't see if it is possible at all? Is there anyone who knows how to
figure out when they were last changed (by the user or someone else)?

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



[android-developers] Source Code for dx

2009-04-02 Thread ScottG

Anybody know where one can obtain the source code for dx all in one
downloadable blob?

The following gives dx a file at a time:

http://www.netmite.com/android/mydroid/dalvik/dx/src/com/android/dx/

Thanks for any insight.

Cheers, Scott

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

2009-04-02 Thread ellipsoidmob...@googlemail.com

Did you take a look at the allocation tracker in DDMS? This is a
really useful tool - you can see exactly what objects you are creating
in your control loop.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: send nmea data to android emulator

2009-04-02 Thread malt

Hera are some of my nmea records, all RMC-records have status 'A':

$GPGSV,2,1,08,26,64,173,40,09,49,277,41,29,49,161,39,28,40,058,43*78
$GPGSV,2,2,08,07,35,109,37,18,31,287,34,05,10,224,25,08,06,089,*75
$GPRMC,060738.799,A,5219.5448,N,01022.2971,E,5.11,25.65,090104,,*3D
$GPGGA,060740.799,5219.5491,N,01022.2976,E,1,06,1.6,145.4,M*05
$GPGSA,A,3,07,26,29,18,05,09,,,2.6,1.6,2.1*3F
$GPGSV,2,1,08,26,64,173,42,09,49,277,44,29,49,161,40,28,40,058,43*71
$GPGSV,2,2,08,07,35,109,35,18,31,287,34,05,10,224,24,08,06,089,*76
$GPRMC,060740.799,A,5219.5491,N,01022.2976,E,7.82,8.70,090104,,*02
$GPGGA,060742.799,5219.5560,N,01022.2974,E,1,06,1.6,143.4,M*0C
$GPGSA,A,3,07,26,29,18,05,09,,,2.6,1.6,2.1*3F
$GPGSV,2,1,08,26,64,173,41,09,49,277,41,29,49,161,40,28,40,058,42*76
$GPGSV,2,2,08,07,35,109,34,18,31,287,31,05,10,224,21,08,06,089,*77
$GPRMC,060742.799,A,5219.5560,N,01022.2974,E,11.52,3.83,090104,,*30
$GPGGA,060744.799,5219.5654,N,01022.2969,E,1,06,1.6,142.0,M*07
$GPGSA,A,3,07,26,29,18,05,09,,,2.6,1.6,2.1*3F
$GPGSV,2,1,08,26,64,173,41,09,49,277,41,29,49,161,39,28,40,058,42*78
$GPGSV,2,2,08,07,35,109,34,18,31,287,35,05,10,224,19,08,06,089,*78
$GPRMC,060744.799,A,5219.5654,N,01022.2969,E,14.85,2.31,090104,,*39
$GPGGA,060746.799,5219.5764,N,01022.2964,E,1,06,1.6,140.9,M*01

On Apr 1, 3:18 pm, David Turner di...@android.com wrote:
 Do you have example sentences that demonstrate the problem.
 For the record, the emulator-specific GPS support in the system will only
 record GPRMC sentence with a fix status of 'A'



 On Tue, Mar 31, 2009 at 1:51 PM, malt alt.mi...@googlemail.com wrote:

  I'm writing a Android gps application using locationmanager with
  locationlistener and I'm only testing with the emulator. This is my
  problem.
  - When sending only $GPGGA nmea sentences to emulator by telnet,
  everything works fine.
  - When sending only $GPRMC nmea sentences to emulator by telnet, the
  first location is recognized by locationmanager, the gps provider goes
  into status 2, next $GPRMC sentence is not recognized.

  This happens not only with my application, the Google Maps application
  and also others show the same behaviour: they get only the first
  $GPRMC location.

  When sending a $GPGGA sentence after the $GPRMC, the locationlistener
  gets controll and location is shown.- 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: Capturing HEADSET_PLUG (android.intent.action.HEADSET_PLUG)

2009-04-02 Thread Henning Schaefer

Sure... you need to implement two classes. One, derived from
BroadcastReceiver, which actually captures the broadcast. And, of
course, the service that keeps the receiver alive all the time. The
service is the easy part. You only need to override two methods:

@Override
public void onCreate() {
/* register receiver */
apr = new APReceiver(); /* replace this by your receiver class */
IntentFilter inf = new IntentFilter();
inf.addAction(android.intent.action.HEADSET_PLUG);
registerReceiver(apr, inf);
}

@Override
public void onDestroy() {
unregisterReceiver(apr);
}

Of course, apr (type of your receiver class) must be a private field
of your service class.

Then, you derive your receiver class from BroadcastReceiver and fill
in the onReceive method:

public void onReceive(Context context, Intent intent) {
if (intent.getExtras().getInt(state) == 0) {
/* HEADSET IS OR HAS BEEN DISCONNECTED */
}else{
/* HEADSET IS OR HAS BEEN CONNECTED */
}
}

However, you need to be aware that HEADSET_PLUG is a sticky event,
every BroadcastReceiver subscribed to that event will receive it upon
construction; I don't know if there is a possibility to determine if
the event has captured at the exact time or been sticked for a
while.

I hope, this short excerpt helps ;)

On 26 Mrz., 18:37, Gerby stephan.gerb...@googlemail.com wrote:
 hi henning

 do you have some example code for me, how to create a service to
 detect the headset, please?

 Cheers

 On 16 Feb., 17:21, zero zeroo...@googlemail.com wrote:

  on a side note, i recommend the logcat app for such 
  momentshttp://code.google.com/p/android-random/

  On Feb 16, 5:04 pm, Henning Schaefer henning.schae...@gmail.com
  wrote:

   OK, after digging into the android system code, I think I figured out
   what's wrong here... the class HeadsetObserver from the base system
   actually sends out this intent with its FLAG_RECEIVER_REGISTERED_ONLY
   flag set... obviously, there's no way to receive this intent without
   implementing a service.

   On 15 Feb., 12:59, Henning Schaefer henning.schae...@gmail.com
   wrote:

Hi all,

yesterday, I spent several hours trying to figure out how to capture
the HEADSET_PLUG intent with a BroadcastReceiver. The manifest defines
the receiver, with its intent-filter set to action
android:name=android.intent.action.HEADSET_PLUG /.

The receiver is working correctly (I verified that by changing the
intent filter to capture things like SMS_RECEIVED including the proper
permissions and the receiver fired as expected on receiving an SMS),
but when listening for HEADSET_PLUG, it never fires. Debugging the
whole thing is a bit complicated, as the emulator doesn't seem to
support headsets and I have to disconnect my target device (a HTC
Dream) from USB in order to attach a headset (so there's no logfile
viewing). Are there any special permissions required for applications
to capture the HEADSET_PLUG intent (and if so, which? I've tried
several, to no avail)?

Maybe the Dream doesn't fire such an intent at all (that'd be bad luck
for me), but I guess that it must be an issue related to application
permissions. The documentation says extremely little (well, actually:
nothing) about the single permissions needed to perform all the
actions described in the API docs, so this is absolutely something to
be improved.

What I want to do: Upon detecting a headset, I want to re-route the
ringtones from the speakers to the headset, so as not to annoy people
in my vicinity by a harsh ringing sound (I'm used to this behaviour
from my old phone) - by default, the speaker just keeps on ringing, no
matter whether a headset is attached or not. This part is already
working, but now I need to know how to detect headset attachment/
detachment events.

Thanks in advance,

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

2009-04-02 Thread manoj

when I put the same image (downloaded from the remote site and stored)
in local server.

Then it is working. I dont understand why the image is not loading
when i tried to access the same image from remote site.

Can any one please suggest me how to solve this issue.

Thanks,
Manoj.

On Apr 2, 5:48 pm, manoj manojkumar.m...@gmail.com wrote:
 Hi friends,

 I am downloading the images from a remote site.

 the images may be .png or .jpg files.

 I have no problem of loading the png images.

 But when the app tries to load the .jpg images, I got the following
 error and couldn't load the jpg images.

 Here is the error description:

 I/global  ( 1220): Apr 2, 2009 6:13:08 PM java.io.BufferedInputStream
 init
 I/global  ( 1220): INFO: Default buffer size used in
 BufferedInputStream constructor. It would be better to be explicit if
 a 8k buffer is required.
 D/skia    ( 1220): xx failure to skip request 5176 actual
 1736
 D/skia    ( 1220): xxx jpeg error 91 Miscellaneous marker 0x
 %02x, length %u

 Can any one please tell me how to solve this problem.

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



[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-04-02 Thread Al Sutton

Just for completeness of the records of this thread, this problem is
fixed by installing unzip.

Al.

On Mar 25, 10:41 am, Al Sutton a...@funkyandroid.com wrote:
 Tried a checkout and build of the cupcake branch this morning and got;

 Output:
 out/host/common/obj/JAVA_LIBRARIES/temp_layoutlib_intermediates/javalib.jar
 Input :
 out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar
 Input :
 out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar
 Exception in thread main java.lang.NoClassDefFoundError:
 org/objectweb/asm/ClassWriter
         at com.android.tools.layoutlib.create.Main.main(Main.java:45)
 Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassWriter
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         ... 1 more
 make: ***
 [out/host/common/obj/JAVA_LIBRARIES/temp_layoutlib_intermediates/javalib.ja­r
 ] Error 1

 Al.

   _  

 From: android-developers@googlegroups.com
 [mailto:android-develop...@googlegroups.com] On Behalf Of Dianne Hackborn
 Sent: 25 March 2009 00:46
 To: android-developers@googlegroups.com
 Subject: [android-developers] Re: Cupcake coming in April? Where is the SDK?

 On Tue, Mar 24, 2009 at 5:04 PM, Stoyan Damov stoyan.da...@gmail.com
 wrote:

 Android engineers say there's no date for cupcake, 1.5 SDK, etc., yet
 there is this video of what appears to NOT be an Android 1.1 phone,
 AND Vodaphone claims it will start selling them this April.

 You can download the current tree and run cupcake today, and have been able
 to for a month or two.  Just because it is running on some hardware doesn't
 mean it is finished.

 I checked in a couple cupcake bug fixes today, so I can assure you that it
 is not yet done.

 --
 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] How to refer TextAppearence

2009-04-02 Thread Iroid

Hello All,
I am trying to migrate from SDK 1.0 to SDK 1.1
for this i have to remove all the references of R.Styleable.  from my
code.

While working on this - I am facing two problems:

Problem 1:

I have created one attrs.xml and declaring attributes there which
intern referring to android attributes. as mentioned in below sample:

 declare-styleable name=Gallery1
attr name=android:galleryItemBackground /
 /declare-styleable

But I do not know how to do it for arrays like TextAppearence which
contains array of attributes :(


Problem 2:
I have to use these resources in different application through:
appContext = context.createPackageContext(package_name,
Context.CONTEXT_IGNORE_SECURITY);

appContext.getResources().


this is again a problem as class Resources does not provide any method
to retrieve array by passing the name.


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: OutOfMemoryError (external allocation too large for this process)

2009-04-02 Thread Jean-Baptiste Queru

Use smaller images. You're trying to allocate a bitmap that's 20 times
larger than the screen. That's just unrealistic on a constrained
device like a cell phone.

JBQ

On Thu, Apr 2, 2009 at 8:08 AM, zeeshan genx...@gmail.com wrote:

 any solution?


 On Apr 2, 2:05 pm, zeeshan genx...@gmail.com wrote:
 thanks for the reply Mark, yes u r right issue is something related to
 image pixels
 i checked another image which is ok but i really need to display that
 image.
 i am getting the path of the image from DB in activity A and passing
 it in extra to activity B to set as imageUri to ImageView.
  here is my code:

 Activity B:

  public void onCreate(Bundle icicle) {
 super.onCreate(icicle);
  setContentView(R.layout.my_View);
   loadSelectedImage();

 }

 public void loadSelectedUtter(){

  Bundle extras = getIntent().getExtras();
 if(extras !=null)
 {
 imageFile= extras.getString(image);

 if(imageFile != null){
   image= Uri.parse(imageFile);

 imageicon.setImageURI(image);
 }

 }

 }
  }

 ImageView
 android:id=@+id/imageicon

 android:src=@drawable/image
 android:adjustViewBounds=true
 android:maxWidth=291dip
 android:maxHeight=55dip
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=center
 /

 it loads the image for first time but gives exception on rotation or
 2nd load.

 plz advise if u have any alternative solution or how can i call recycle
 () on it.

 On Apr 2, 12:43 pm, Mark Murphy mmur...@commonsware.com wrote:

  zeeshan wrote:
   Hi Experts,

   I am beating my head against a wall since 3 days trying to resolve out
   of memory exception but still no success.
   here is the line giving me this error

image_view.setImageURI(image_uri);

   everytime when i change the orientation or start this activity again,
   it gives me out of memory exception

   VM won't let us allocate 6291456 bytes.

   it seems i am not leting GC to release my memory.
   any solution would be appreciated

  Use a different image.

  The G1 has a 320x480 pixel display. Your image is consuming ~41 bytes
  per pixel...which seems a little high. More likely, it is a much higher
  resolution picture than the G1 display can handle.

  So, use a different image. Or scale down the one you have before
  displaying it (and cache the smaller one to reuse on the rotation):

 http://www.anddev.org/resize_and_rotate_image_-_example-t621.html

  Also, call recycle() when you are done with the Bitmap, which may help
  GC it faster.

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

  Android App Developer Training:http://commonsware.com/training.html
 




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

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

2009-04-02 Thread Nox

This would be very well, but this is only working with Debian,
and I've got Ubuntu 8.05,so it isn't working!!!


Do you know where else I can download Jarsigner for Ubuntu???



Please help me!

On 28 Mrz., 20:34, Pd lotusscr...@gmail.com wrote:
 The Internet is a big place but does have little nuggets.

 Try here:  http://www.openjdk.org/install/

 Pd.

 Nox wrote:
  Sorry, it ins't working!!!

  On 28 Mrz., 18:33, Mark Murphy mmur...@commonsware.com wrote:

  Nox wrote:

  So, how can I run or execute the JDK???

 http://java.sun.com/javase/6/webnotes/install/jdk/install-linux.html

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

  _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: Source Code for dx

2009-04-02 Thread David Turner
Use the snapshot link in gitweb to get a tarball for a given directory,
for example:

http://android.git.kernel.org/?p=platform/dalvik.git;a=snapshot;h=8fbe0f8db412961fa412cc1387d55deab5a8206c;sf=tgz

will give you the dex sources

On Thu, Apr 2, 2009 at 4:11 PM, ScottG sguth...@gmail.com wrote:


 Anybody know where one can obtain the source code for dx all in one
 downloadable blob?

 The following gives dx a file at a time:

 http://www.netmite.com/android/mydroid/dalvik/dx/src/com/android/dx/

 Thanks for any insight.

 Cheers, Scott

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-04-02 Thread Tom

On Apr 1, 10:34 am, Streets Of Boston flyingdutc...@gmail.com wrote:
 Do *not* use volatile variables. They are not guaranteed to be atomic.
 It's just a compiler hint.


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

2009-04-02 Thread binklee

Hi everybody,

I unfortunately don't find the necessary documentation to retrieve the
SMS already received in the inbox.

My goal is to do smthg like :

ContentResolver cr = mCtx.getContentResolver();
Cursor cur = cr.query(Uri.parse(content://sms/inbox),
null, null, null, null);

while (cur.moveToNext()) {
  // HOW TO KNOW HOW SHOULD I USE MY CURSOR?
}


My questions are :
* Is the URI correct ? I heard about content://sms/inbox  and
content://sms/conversation.
* What are the columns where my cursor points ? Where can I find this
kind of information?
* Am I using the good method ?

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



[android-developers] Re: Why isn't the standby instruction able to stop the thread?

2009-04-02 Thread Augustin.CL

Could anyone give me some helps?

On 4月1日, 下午5時17分, Augustin.CL iamaugus...@gmail.com wrote:
 Dear  All,
 Recently, I have tried to know what would happen to an
 alive thread, when the device goes to sleep. I program a simple
 activity that will create and start a thread printing HERE AM I
 repeatedly through Log.d. I expect the thread would be stopped after I
 echostandby /sys/android_power/request_state. The screen is off,
 but the thread still keeps alive and prints out HERE AM I. I don't
 know why the thread can't be stopped. I test this through emulator
 (1.5cupcake) and G1(1.1?), but the results are the same. Could anyone
 give me some suggestions or hints about this question? Thanks in
 advanced.

The following is my simple activity.

 ===CODE
 HERE=
 ublic class TestServiceDroid extends Activity {

 PowerManager.WakeLock lock;
 Thread h;

 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);

 Thread h = new Thread(new Runnable(){
 public void run(){
 while(true){
 try {
 Log.d(TEST SERVICE,HERE AM I);
 
 Thread.currentThread().sleep(3000);
 } catch (InterruptedException e) {
 // TODO Auto-generated catch 
 block
 e.printStackTrace();
 }
 }
 }
 });
 h.start();
 }}

 ===CODE
 HERE=

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



[android-developers] Re: Why isn't the standby instruction able to stop the thread?

2009-04-02 Thread Mark Murphy

 Could anyone give me some helps?

Most of what you are doing (e.g., request_state) are not in the SDK.
Questions regarding firmware operations are best asked on a discussion
list pertaining to firmware:

http://source.android.com/discuss

-- 
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] Creating a private jar

2009-04-02 Thread Cyril M

I'm currently developping my own Android widgets. To help me in future
projects and speed up my developments, I've been trying to create a
private jar that contains all those widgets (that extend from Android
classes such as View or ViewGroup).
To do that, I created a project and included all files (.java and
ressources) in this project. I exported this as a jar file.
To test this jar file I created a new project and tried to include my
widgets using an XML layout. Unfortunatly, it seems that the sytem
does not see my ressources.
Looking at the Android source code, I noticed that android.jar
contains its own ressources so I assume this is possible.

I'm sure I've done something wrong...but what? What is the problem?
And how to solve it?

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



[android-developers] wap solution

2009-04-02 Thread bin


Hi android engineers.

I knew that android does not support wap, but I think that wap is a
important feature in many countries and districts, so does someone
know that how can add the wap feature or where/who already have some
solution?

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



[android-developers] Open files in res.raw by name - File not found error

2009-04-02 Thread cruiseru...@gmail.com

Hi, i have problem with opening files...
this.res=imsLoader.context.getResources();
this.context=imsLoader.context;
InputStream istream=null;
...
...
istream=res.openRawResource(R.raw.l6); //- it works correcty that
file is on res/raw/l6.lvl
istream=context.openFileInput(l3.lvl); // it give me FileNotFound
exception
istream=context.openFileInput(l+level+.lvl); // it give me
FileNotFound exception

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



[android-developers] Re: Creating a private jar

2009-04-02 Thread Mark Murphy

 Looking at the Android source code, I noticed that android.jar
 contains its own ressources so I assume this is possible.

Yeah, but that's special.

There is no way for JARs written to support SDK-level applications to
embed resources that I have found.

Instead, you need to package your resources separately (e.g., a ZIP file)
and distribute them for reusers of your JAR to unpack in their APK
project's res/ tree (or to replace with their own editions of the
resources, as they see fit). Then, adjust your API to accept resource IDs
as parameters (like you see for many of the APIs), so your code no longer
has R.id or R.drawable references itself -- those refererences would be in
the calling application, who has the resources and the corresponding
R.java file.

If there's another way around this, I'm certainly interested to hear about
it...

-- 
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: Open files in res.raw by name - File not found error

2009-04-02 Thread Mark Murphy

 Hi, i have problem with opening files...
 this.res=imsLoader.context.getResources();
 this.context=imsLoader.context;
 InputStream istream=null;
 ...
 ...
 istream=res.openRawResource(R.raw.l6); //- it works correcty that
 file is on res/raw/l6.lvl
 istream=context.openFileInput(l3.lvl); // it give me FileNotFound
 exception
 istream=context.openFileInput(l+level+.lvl); // it give me
 FileNotFound exception

Use openRawResource() to open raw resources. Use openFileInput() to open
files stored in your app-private file store
(/data/data/your.package.name/files).

If you want to access resources by name, build yourself a
MapString,Integer mapping string names (l3.lvl) to corresponding raw
resource IDs (R.raw.l3).

-- 
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: java.lang.NoSuchMethodError in Eclipse layout editor

2009-04-02 Thread Matt

For the time being, I have gotten around this problem by having a
second initializer which calls the methods that are throwing the
problems.

I believe this is a bug, to be honest.  At the very least, if there
are separate classes for the actual Android SDK and the Android SDK
that Eclipse uses, I would think that the layout editor should catch
these exceptions.  Why the Paint class would have setStyle() available
and not setStrokeJoin() available in the 'separate' SDK is beyond me.

Does anyone know how to report a bug?

On Mar 30, 11:40 pm, Matt matthew.quig...@gmail.com wrote:
 In thelayouteditor inEclipse, I have created a custom view.  For
 some reason, there are a few methods which cause NoSuchMethodError
 exceptions in the code.  Here is the code in the initializer of the
 custom view:

         mPaint = new Paint();
         mPaint.setAntiAlias(true);
         mPaint.setDither(true);
         mPaint.setColor(0x);
         mPaint.setStyle(Paint.Style.STROKE);

         try {
                 //mPaint.setStrokeJoin(Paint.Join.ROUND);
                 //mPaint.setStrokeCap(Paint.Cap.ROUND);
         } catch (Exception e) {

         }
         mPaint.setStrokeWidth(12);

 The code which is causing no such method exceptions are the ones
 surrounded in a try-catch.  By the way, the try-catch does NOT stop
 thelayouteditor from getting the exception (and therefore failing to
 render).

 Does anyone have any clue of why a few methods on the Paint class are
 throwing errors?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Socket problems: broken pipe

2009-04-02 Thread prs(tm)

Hi all,

I create and open a socket like this:

try {
socket = new Socket();
InetSocketAddress addr = new InetSocketAddress(hostName,
port);
socket.connect(addr);

dis = new DataInputStream(socket.getInputStream());
dos = new DataOutputStream(socket.getOutputStream());

} catch(IOException e) {
state = PEConnectionStateError;
Log.d(TAG, Open failed, e);
return false;
}

which succeeds. Later on, I try to write a message to the socket,
which consists of
super.writeToStream(os); // writes two ints
os.writeInt(version);
os.writeInt(flags);
os.writeUTF(sessionId);
os.writeUTF(clientId);
os.writeInt(sequenceId);
os.writeInt(sequenceHash);

At the writeInt(flags), I get a java.net.SocketException: Broken pipe.
I'm not sure, but I don't think the server ever sees the connection. I
do have  uses-permission android:name=android.permission.INTERNET /
 in the manifest.

Is there some sort of setup I need to do in Eclipse or the emulator to
get this to work? Has anyone else gotten a sockets app working?


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



[android-developers] com.android.phone.InCallScreen activity

2009-04-02 Thread Ruben

Is it possible to intercept the intent of calling and answering and by
doing that replacing the calling/answering screen. I see from the
logcat that right now com.android.phone.InCallScreen activity is been
started. Anyway to overwrite that to have my own activity to show up?

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



[android-developers] Detecting navigation input method on device

2009-04-02 Thread summers

Hi all,

Does anyone know how to detect what primary non-touch navigation
method (trackball, dpad, wheel, etc) a device is using within the
code?

I know that an app can structure the /res/ folders to detect it like
this:
/res/
 drawable-nonav
 drawable-dpad
 drawable-trackball
 drawable-wheel

But what if I want my app to behave differently depending on the
navigation input method- is there a way to do this in the code?

Much appreciated!

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



[android-developers] Detecting navigation input method on device

2009-04-02 Thread summers

Hi all,

Does anyone know how to detect what primary non-touch navigation
method (trackball, dpad, wheel, etc) a device is using within the
code?

I know that an app can structure the /res/ folders to detect it like
this:
/res/
  drawable-nonav
  drawable-dpad
  drawable-trackball
  drawable-wheel

But what if I want my app to behave differently depending on the
navigation input method- is there a way to do this in the code?

Much appreciated!

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



[android-developers] London Android User Group - 16th April in Clerkenwell

2009-04-02 Thread natalieskillsmatter

We are pleased to announce the next London Android User Group led by
Android developer and evangelist Carl-Gustaf Harroch. The group meet
to discuss and demo Android platform possibilities. Details of the
next meetup are as follows:

Thursday 16th April @ 6.30pm - 8pm (approx) followed by drinks at the
Crown Tavern
Location: Skills Matter, 1 Sekforde St, Clerkenwell, London EC1R 0BE
Agenda:
1. What is Android and why should you care?
2. Android’s internal architecture
3. Android vs J2ME
4. Design pattern idioms
5. QA and Workshop if time permit

Speakers: Carl-Gustaf Harroch  Kieran Gutteridge.

This group is supported by Google. Come along and join the community!
Ideas for future talks and sessions etc are always welcome.

Register now for this free event at
http://skillsmatter.com/podcast/ajax-ria/android-an-introduction-to-the-open-platform

We look forward to seeing you there!

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



[android-developers] about input method

2009-04-02 Thread 打工者

hi ,
how can I add special input method to android ? could anyone tell
me ? 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] Best way to draw street name on a maps app

2009-04-02 Thread Iulian

Hello all,

I'm working on a maps application that draws streets from vectorial
data using OpenGL.

I encountered a bottleneck while drawing street names; as OpenGL can't
render fonts by it's own,
I followed the SurfaceOverlay API demo and put another view on top of
the GLSurfaceView.

The problem is that drawing something like 80 texts using
canvas.drawTextOnPath() takes 1.2+ seconds, which is unacceptable
(drawing 300 lines takes around 130ms).

Any suggestions on how to do work this out? I was thinking of drawing
every character as a series of lines in OpenGL, but it sounds pretty
painfull.

Thanks,
Iulian

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



[android-developers] Does Android support progressive download via methods other than chunked transfer coding?

2009-04-02 Thread Ethan

As title, also please remind me where to find specifications related
to these sorts of question.
Thanks for your help!

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



[android-developers] How to compile android app with static library?could somebody give me a example?thanks

2009-04-02 Thread 打工者

How to compile android app with static library?could somebody give me
a example?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] opening androidmanifest.xml in apk

2009-04-02 Thread sree

Hi,

I cant see the contents of androidmanifest.xml in apk. How to see
them? any tool provided to view that file?

Thanks
Sree

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



[android-developers] Socket problems: broken pipe

2009-04-02 Thread prs(tm)

Hi all,

(Apologies if this double-posts, it didn't seem to come through
earlier)

I create and open a socket like this:

try {
   socket = new Socket();
   InetSocketAddress addr = new InetSocketAddress
(hostName,
port);
   socket.connect(addr);

   dis = new DataInputStream(socket.getInputStream());
   dos = new DataOutputStream(socket.getOutputStream());

   } catch(IOException e) {
   state = PEConnectionStateError;
   Log.d(TAG, Open failed, e);
   return false;
   }

which succeeds. Later on, I try to write a message to the socket,
which consists of
   super.writeToStream(os); // writes two ints
   os.writeInt(version);
   os.writeInt(flags);
   os.writeUTF(sessionId);
   os.writeUTF(clientId);
   os.writeInt(sequenceId);
   os.writeInt(sequenceHash);

At the writeInt(flags), I get a java.net.SocketException: Broken pipe.
I'm not sure, but I don't think the server ever sees the connection. I
do have  uses-permission android:name=android.permission.INTERNET /
 in the manifest.

Is there some sort of setup I need to do in Eclipse or the emulator to
get this to work? Has anyone else gotten a sockets app working?

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



[android-developers] Debugging in Eclipse - current line wrong for methods with multiple return points

2009-04-02 Thread Jesper T

Hi,

While doing debugging with Eclipse I noted that the debugger
highlights the wrong line as next line to execute for methods with
multiple return points. It fools the developer that the last line of
the method is executed, where in fact it is not.

Does anyone know if this is some kind of known issue? My colleagues
have also experienced this but we have never seen it when doing on-
device-debugging on e.g. the Sony Ericsson SDK.

I couldn't find anything at http://code.google.com/p/android/issues/list
There was a similar post in android-beginners 2007-11-25. No replies,
though.
http://groups.google.com/group/android-beginners/browse_thread/thread/60277af9bdca002f/805692d0e6689c6e?lnk=gstq=John+Wiedey#805692d0e6689c6e

Any help would be deeply appreciated. It seems hard to know where in
the tool chain to begin looking for the problem.

Br, Jesper


Steps to reproduce (works with both emulator and dev phone 1)

1. In the code below, set a break point at line 18: if (i == 1) {
2. Project, Debug
3. If prompted select Android application and target device
4. Debugger will stop at line 18
5. Press F5 (step into) - debugger advances to line 19: return 0;
6. Press F5 again. Now the debugger indicates that the next line to be
executed is 22: return 1 which is wrong.
7. Press F5 again and you are back to line 14 in calling code as
expected.

If the code line 12 is modified so that the call is m(2), the if-
statement is not executed and the debugger is correct. A similar
example can be made with a try-catch where it looks like the last line
of the catch block is executed even if no exception is thrown.

Code (first line is line 1)

package com.wayfinder.example;

import android.app.Activity;
import android.os.Bundle;

public class DebugProblem1 extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

m(1);

setContentView(R.layout.main);
}

private int m(int i) {
if (i == 1) {
return 0;
}

return 1;
}
}

Environment

SDK 1.1
Eclipse 3.4.2
ADT installed and used.

More details including dump available on request.

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



[android-developers] alternative to sms manager

2009-04-02 Thread sree

Hi

I want to send a message to only specific application in other device
but i dont want SMS client to pick that.
How is it possible?

Thanks
Sree

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



[android-developers] How to switch the view from horizontal to Vertical ?

2009-04-02 Thread Eric

Hi,all

How can I change the Android view from horizontal to Vertical by
force? Can the view switch dynamicly?

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



[android-developers] Re: How to add more bluetooth profiles into android

2009-04-02 Thread Moyo

Yeah, this is very very annoying, many basic phones do support a wide
variety of bluetooth profiles. Yet we are just limited to one. Theres
got to be a way, and forgive me but the primary developers need to
make adding more bluetooth profiles a huge top priority.

Yes A2DP

On Mar 31, 6:56 am, chen.ju...@zte.com.cn chen.ju...@zte.com.cn
wrote:
 Now android only supports bluetooth voice,How to add more bluetooth
 profiles,e.g.A2DP,OBEX.

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



[android-developers] com.android.phone.InCallScreen activity

2009-04-02 Thread Ruben

Is it possible to intercept the intent of calling and answering and by
doing that replacing the calling/answering screen. I see from the
logcat that right now com.android.phone.InCallScreen activity is been
started. Anyway to overwrite that to have my own activity to show up?

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



[android-developers] How to display soft keyboard unlock screen for keyguard in cupcake

2009-04-02 Thread HelenB

Hi,

I'm trying to write customized unlock screen for use in the keyguard
window. This unlock screen has a TextView with inputType=Text and in
a normal test Activity, the soft keyboard pops up when it gains focus.
However, when running in the context of the KeyGuard as part of
unlockscreen view, it's never displayed. When the unlock screen is
finished, I can see the soft keyboard behind it and disappears
quickly. It seems that the soft keyboard is behind the unlock screen
all along. I searched around in the source code and found some
constants for window layers in PhoneWindowManager.java based on window
type, and KEYGUARD_LAYER is almost at the top, above
INPUT_METHOD_LAYER. Can I switch the layer numbers to make it work? Is
there a way to force the soft keyboard to be shown on the top in
context of the keyguard?

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



[android-developers] Curl for android

2009-04-02 Thread Max

Any one know a function that acts like curl or wget does for linux?

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

2009-04-02 Thread John B. Hansen

Hi all,

   Seems like when the user is on HOME screen and presses an
   alphabetic key, a Contacts search is started.

   For my application, I want to do something different with key
presses.
   How do I capture those key presses?  Do I have to write a new HOME
application (which seems
   like overkill)? Or, can I capture a keyEvent in a
BroadcastReciever?

jh

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



[android-developers] How can make Calendar in Android relate to my Gmail account?

2009-04-02 Thread Eric

Hi,
In Android 1.0 there's Calendar program,  when I try to run it, it
shows Waiting for sync.  And there's no any gmail related apks to
log in gmail account. And I know Google won't open source Gmail apk
code.

What should I do to make sync run normally ?  Should I have to get
Gmail.apk from Google?

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



[android-developers] Can Maps.apk in SDK1.0 run on Android 1.0?

2009-04-02 Thread Eric

Hi,
 I found that Google Maps didn't exist in Android 1.0 release version.
So I tried to put Maps.apk/GoogleApps.apk/Street.apk into /system/app
but it didn't run.
  So I'd like to kown if Maps.apk from SDK 1.0 can run on Android
1.0 ? What modification should I do? 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: google map

2009-04-02 Thread vivien wu

Hi, All,

I met the same issue with Bin.
Maps exists on SDK 1.0, 1.1, and G1 but doesn't exist on emulator
build by myself with SDK source code.
How to install maps as the default application ?
I can't find source code for maps under android\packages\apps.
Does it require additional license with Google ?
Thanks.

Regards,
Vivien


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

2009-04-02 Thread aow

you first check you have write permission to /sdcard,use adb to
connect G1,and then use command like these:
adb shell
touch /sdcard/test.txt

On 4月2日, 下午12时50分, ambrosehua huang.p...@zte.com.cn wrote:
 Are you sure that you have  write permission to /sdcard ( sdcard
 mounted with RW and the directory /sdcard i writable) ?
 I suggest you  run another app to  store some information  in /sdcard
 for a test

 On 4月2日, 下午12时23分, BJP bjpcalt...@gmail.com wrote:



  Thanks Mark, but I'm debugging the application on a T-Mobile G1 with
  installed SD card (real hardware) ~ no emulator, just the real thing.
  Is there a permission needed that I'm not recognizing?  Or, is there a
  special exclusive way to deal with files on the SD card?  Any help or
  pointing in the right direction would be very helpful!

  Thanks,
  Ben

  On Apr 1, 10:36 am, Mark Murphy mmur...@commonsware.com wrote:

   BJP wrote:
I would like to write a file to the SD card from my application, but
the following code throws an IOException when debugged on a T-Mobile
G1:

String p = Environment.getExternalStorageDirectory() + /log.txt;
File recfile = new File(p);
recfile.createNewFile();

The last line throws an IOException with detailMessage = Cannot
create: /sdcard/log.txt.  The MOUNT_UNMOUNT_FILESYSTEMS permission is
set in the manifest.  And yes, I really do want to write to the SD
card; I don't want to use the logging features Android includes for
this particular application.  The Android documentation does not seem
to give any specifics on how one might write files to removable
storage in Data Storage under Framework Topics.  What am I doing
wrong, or where can I read more about this topic?

   If you are running this on the emulator, do you have an SD card image
   set up? The emulator does not have SD card storage by default -- you
   need to use mksdcard to create an image and then tell the emulator to
   use that image via a command-line switch at startup.

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

   Warescription: Three Android Books, Plus Updates, $35/Year- 隐藏被引用文字 -

 - 显示引用的文字 -

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



[android-developers] How to compensate for gravity when using the accelerometer?

2009-04-02 Thread Gaizka

I am trying to write a simple app that calculates velocity based on
the current acceleration (between sampling times).
I have no problem obtaining the device’s acceleration from the
accelerometer, nor calculating the velocity based on the reading.
My question has to do with how to compensate for the fact that gravity
(or the normal to gravity) is always part of the force exerted on the
device.
In other words if we were in space (or in microgravity), the device
would have 0 acceleration on each axis when at rest. Moving the
device, would show the corresponding acceleration and thus a simple
calculation would derive the velocity.
I read something about a Kalman filter to either low-pass or high-pass
filter the change of acceleration.
The only conclusion from that information was to use a high-pass
filter to recognize the gravity vector then subtract that vector from
the total acceleration vector.
Does anyone have any sample code that shows how to account for gravity
to obtain the net acceleration vector (once gravity is removed)?
Maybe I am looking at this from the wrong reference frame…
Should I instead use the GPS to obtain locations and calculate an
average velocity based on distance over time?
Maybe a combination of both?
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] How to compensate for gravity reading in order to calculate velocity

2009-04-02 Thread Gaizka Navarro
I am trying to write a simple app that calculates velocity based on the
current acceleration (between sampling times).

I have no problem obtaining the device's acceleration from the
accelerometer, nor calculating the velocity based on the reading.

My question has to do with how to compensate for the fact that gravity (or
the normal to gravity) is always part of the force exerted on the device.

In other words if we were in space (or in microgravity), the device would
have 0 acceleration on each axis when at rest. Moving the device, would show
the corresponding acceleration and thus a simple calculation would derive
the velocity.

I read something about a Kalman filter to either low-pass or high-pass
filter the change of acceleration.

The only conclusion from that information was to use a high-pass filter to
recognize the gravity vector then subtract that vector from the total
acceleration vector.

Does anyone have any sample code that shows how to account for gravity to
obtain the net acceleration vector (once gravity is removed)?

Maybe I am looking at this from the wrong reference frame.

Should I instead use the GPS to obtain locations and calculate an average
velocity based on distance over time?

Maybe a combination of both?

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] Paying $50 for someone to design an application...

2009-04-02 Thread Matthew110607

I am not much of a programmer...my last programming class was FORTRAN.
But I love this phone with the exception of one problem:  I hate the
autolock feature of the phone.

http://androidforums.com/application-requests/4517-paying-50-app.html

I can provide references via eBay or the Corvette Forums as to my
credibility that I will pay immediately upon usage of an application
that does this very simple action:

Simply turn off the default autolock feature.  As it stands now the
phone locks once the screen times out.  This battery is not good
enough on the G1 to leave the backlight on at all times nor should it
be necessary.  Yes I realize you only need to hit the menu button
twice but that gets annoying when texting back and forth.

I have tried Autolock and Lock 2.0 and neither fulfills this
requirement.

I look forward to hearing from you.  You can contact me at
matthew.a.jo...@us.army.mil or on the forums that I provided above.

I am not the only person with this problem.  It should have been an
option from the get-go to turn off or leave on.

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



[android-developers] Open the mail go to top level income on next day

2009-04-02 Thread SHIVA80

Hai

You Click the WEb Site and all
Next day your daiy income 100% go to top level



http://www.homemadeincome.weebly.com

.





Thanks for your click
Shiv

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

2009-04-02 Thread Sean Bannister

I'm just looking at the Android's native IM app and wondering if it's
possible to create new providers? I know other people have written
seperate IM clients but it'd be great to add to list in the native IM
app.

The 3 I'd like to work on is Facebook, MySpaceIM, Skype.

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

2009-04-02 Thread Hsiung , Chuan-Da 熊全達
Hi,

I got some diopen() fails in my native library. I guess the reason is
insufficient memory. I conduct some experiments by exhausting the memory and
then dynamically load some .so files. Yes, dlopen() failed again. At first I
thought the .so files listed in prelink-linux-arm.map are libraries
pre-loaded into memory, and dlopen won't fail if the target is in the map.
However, that's not true. Anybody here knows what's the use of the map? Or
where did I go wrong? Thanks.

Hsiung

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

2009-04-02 Thread aow

I think you need find sleep interface about your platform and disable
sleep operating in your app!

On 4月2日, 下午1时33分, manoj manojkumar.m...@gmail.com wrote:
 Hi,

 I have written a video player app. Its working fine, but the problem
 is the screen is going to in sleep mode after playing some time. When
 I click on Menu button on the device, then only it wakes up.

 How can I solve this?

 Thanks,
 Manoj.

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



[android-developers] about YAFFS2 Image

2009-04-02 Thread 打工者

Hi all:
 I know to make yaffs2 image from rootfs using mkyaffs2imag tool.
But sometimes I need to know the content of the yaffs2 image. how to
know to it or how to convert yaff2 image to rootfs?any ideas? 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 run apk file on SDcard?

2009-04-02 Thread aow

Can apk file run on SDcard of G1?

On 4月2日, 上午1时22分, Fred Grott(shareme) fred.gr...@gmail.com wrote:
 not possible



 Stephen Le wrote:
  Hi all,
  How to run one or more apk programmess base on Emulator's SDcard?
  Thanks!
  --
  Sincerely!- 隐藏被引用文字 -

 - 显示引用的文字 -

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

2009-04-02 Thread Mark Murphy

 Can apk file run on SDcard of G1?

Not presently.

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



  1   2   >