[android-developers] Need help in compile android source under ubuntu 10.04

2010-07-30 Thread hap 497
Hi, I have following android web site and install the necessary libraries for building android under ubuntu. But i am getting the following linker error. Can you please tell me how can I resolve that? host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so) host C: libneo_cgi =

[android-developers] How to add an image to my background drawable?

2010-03-18 Thread hap 497
Hi, How can I add a background image (stretch if necessary) in my following drawable? Right now, I set my widget to have a border when it has focus. I want to make it so that when it has focus, it has a border and an image, when it does not has a focus, it has an image. how can I do that?

[android-developers] How to place a dialog at the bottom on the screen?

2010-03-05 Thread hap 497
Hi, Can you please tell me how can I place a dialog at the bottom on the screen? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] How can I specify android's highlight color (orange) in my layout xml file

2010-02-22 Thread hap 497
Hi, In my own android xml file, how can I specify to use android's highlight color (orange) ? i.e. how can I fill in the following field so that i uses android's highlight color? android:color=..' Thank you. -- You received this message because you are subscribed to the Google Groups

[android-developers] How can find out the TextAppearance of the TextView

2010-02-17 Thread hap 497
Hi, What is the default TextAppearance of the TextView object? And how can I find out the line height of the TextView? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Where can I find android's DynamicLayout example

2010-02-11 Thread hap 497
Hi, Can you please tell me where I can example in using android's Dynamic Layout? I know android's TextView uses it. But I am looking for a simpler example in showing how to use Dynamiclayout for Text Wrapping? Thank you. -- You received this message because you are subscribed to the Google

[android-developers] Debug certificate expired error in eclipse android plugins

2010-02-03 Thread hap 497
I am using eclipse android plugins to build a project, But i am getting this error in the console window: [2010-02-03 10:31:14 - androidVNC]Error generating final archive: Debug certificate expired on 1/30/10 2:35 PM! Does anyone know how to fix it? Thank you. -- You received this message

Re: [android-developers] Debug certificate expired error in eclipse android plugins

2010-02-03 Thread hap 497
11:24 AM, hap 497 hap...@gmail.com wrote: I am using eclipse android plugins to build a project, But i am getting this error in the console window: [2010-02-03 10:31:14 - androidVNC]Error generating final archive: Debug certificate expired on 1/30/10 2:35 PM! Does anyone know how to fix

[android-developers] How can I upgrade mydroid repository

2010-02-01 Thread hap 497
Hi, I create an android repository based on 'donut' branch: repo init -u git://android.git.kernel.org/platform/manifest.git -b donut Can you please tell me how can I 'repo sync' to an newer branch , e.g. eclair? Thank you. -- You received this message because you are subscribed to the Google

[android-developers] How to run unit test under 'tests' directory

2010-01-28 Thread hap 497
Hi, In android source, it has unit tests under 'tests' directory. Can you please tell me how can I run those unit tests? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How can I force the display mode of my android activity

2010-01-27 Thread hap 497
Thanks. But that is not what i am looking for. For some reason , that app always shows in 'landscape mode' regardless the emulator is in landscape mode or portrait mode. On Wed, Jan 27, 2010 at 1:43 PM, Greg Donald gdon...@gmail.com wrote: On Wed, Jan 27, 2010 at 3:41 PM, hap 497 hap

[android-developers] How to run a i-jetty on a G1

2010-01-26 Thread hap 497
Hi, I am trying to run i-jetty on G1: http://code.google.com/p/i-jetty/w/list On G1, I go to browser, and enter ' http://localhost:8080/console'. It works. But when i go to my desktop browser and enter http://{phone ip}:8080/console', I get a connection not found. I have tried using the ip

[android-developers] Running multiple emulator on same desktop

2010-01-26 Thread hap 497
Hi, If I run multiple emulator on same desktop, is there anyway that I can assign an ip address to each of them (for testing purpose). So that each emulator can communicate to another using ip address? Thank you. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] How to run a i-jetty on a G1

2010-01-26 Thread hap 497
outside the 127.0.0.1/localhost loop back. Curious, why a server on the phone? What's the use of running a relatively heavy application on a mobile device that is generally a client device, not a server. On Tue, Jan 26, 2010 at 5:09 PM, hap 497 hap...@gmail.com wrote: Hi, I am trying

[android-developers] What functions my activity will get called when the phone comes back from screen saver?

2010-01-21 Thread hap 497
Hi, Can you please tell me what functions my activity will get called when the phone comes back from screen saver? When the phone is showing my activity, and then I leave the phone untouched, and then I press Menu to wake it up. What function of my activity will get called by andriod framework?

[android-developers] android.os.DeadObjectException

2009-12-17 Thread hap 497
Hi, I am seeing the following android.os.DeadObjectException exception in 'adb logcat'. Can you please tell me how can I determine that it is caused by my app? And how can i trouble-shoot within my app? Thank you. D/AKMD( 55): Compass OPEN D/SurfaceFlinger( 76): Screen about to return,

[android-developers] How can I combine 2 styles in android: Theme.Translucent and Theme.NoTitleBar

2009-12-16 Thread hap 497
In android, there are 2 styles, android:theme=@android:style/Theme.Translucent android:theme=@android:style/Theme.NoTitleBar How can I combine them together for my activity so that it is both Trnaslucent and has no title bar? Thank you. -- You received this message because you are subscribed

[android-developers] How can I keep current screen (contentView) when l Iaunch a new Activity

2009-12-15 Thread hap 497
Hi, I have an NoContentViewActivity which has no Content View (i.e. I did not call setContentView() in the onCreate of my Activity). My question is how can I keep the content view of the launching activity on the screen? Right now, I am getting a blank screen whenever I launch

[android-developers] Difference between pressing 'Back' button and 'Menu button

2009-12-14 Thread hap 497
Hi, I have an activity on Android with a content view. After I launch my activity, and I launch another activity on top of it. And when click 'Back' Button, my activity looks fine (all the text view and text view values are there). But when I launch my activity, leave the phone idle and have the

[android-developers] How does a ContentProvider get destoryed

2009-12-09 Thread hap 497
Hi, Can you please tell me why a ContentProvider does not have an onDestory() method? It has a onCreate() method, but not onDestory(). What if I create and register a content oberver for another URI of another ContentProvider, how can I unregister that? Thank you. -- You received this message

[android-developers] How does Email app switch its 'main' activity

2009-12-04 Thread hap 497
Hi, In android Email app, when I first launch it, it will shows me the 'account setup wizard' activity. But when I launch the Email app(after the account is set) again, it wont' show the 'account setup wizard' activity, it will show the 'Folder list activity ' instead. How can it does the main

Re: [android-developers] Samsung Behold II Info

2009-12-03 Thread hap 497
And Does anyone know what is version of android Behold II is running? On Thu, Dec 3, 2009 at 12:04 PM, jez0o0z floresje...@gmail.com wrote: Can anyone with a Samsung Behold || tell me the model name? Specifically, the value of the string: android.os.Build.MODEL. Thank you. -- You received

[android-developers] How to layout 3 ImageButton evenly distributed on a row

2009-12-02 Thread hap 497
Hi, I have the following layout which display 3 buttons on a row. how can i make it so that each button is evenly distributed across the row? Right now, they are all crowded in the center of the row. Thank you. LinearLayout android:layout_width=fill_parent

Re: [android-developers] How to layout 3 ImageButton evenly distributed on a row

2009-12-02 Thread hap 497
Thank you Mark. That is what I am asking. On Wed, Dec 2, 2009 at 12:19 PM, Mark Murphy mmur...@commonsware.com wrote: I have the following layout which display 3 buttons on a row. how can i make it so that each button is evenly distributed across the row? Right now, they are all crowded in

[android-developers] How to specify id when uses include in layout xml file

2009-11-18 Thread hap 497
Hi, In my layout xml file, I have included other layout xml file (each with a different android id). include layout=@layout/view_contact_name android:id=+id/test1/ include layout=@layout/view_contact_name android:id=+id/test2/ But when I run it in the emulator, and start Hierarchy Viewer, each

[android-developers] Relationship between MediaPlayer's audioStreamType and AudioManger's mode

2009-11-14 Thread hap 497
Hi, Is there any relationship between MediaPlayer's audioStreamType and AudioManger's mode? Like setting MediaPlayer's audioStream Type will put AudioManager into different mode? Or these 2 value are completely different? Thank you. -- You received this message because you are subscribed to

[android-developers] How to play media via speaker phone

2009-11-13 Thread hap 497
I am able play a media using MediaPlayer. The media played via the ear piece. But how can I play the media with speaker phone? I have tried: AudioManager audioManager = (AudioManager) mActivity.getSystemService(Context.AUDIO_SERVICE); audioManager.setSpeakerphoneOn(true); But that does not

[android-developers] how can I pull photo from a G1 via 'adb shell'?

2009-11-11 Thread hap 497
Hi, I took some photos with my G1. How can I pull all the photos from a G1 via 'adb shell'? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] SMS/MMS confirmation message

2009-10-20 Thread hap 497
All, Is there anyway for my application to get notify when the SMS /MMS message have been received by the destination phone number? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: How can I android 2.0 source code

2009-10-19 Thread hap 497
But that only has the donut code. I think. I am looking for android 2.0 source. Any idea? Or I am incorrect? On Sun, Oct 18, 2009 at 5:57 PM, Ishwor Gurung ishwor.gur...@gmail.com wrote: Is it possible to get the android 2.0 source? Yes. http://android.git.kernel.org/ -- Regards,

[android-developers] How can I android 2.0 source code

2009-10-18 Thread hap 497
Hi, In this article, it talks about android 2.0, http://gizmodo.com/5383485/android-20-first-look-fresh-face-sick-speed Is it possible to get the android 2.0 source? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How to make an activity destory when user presses 'Back button?

2009-09-27 Thread hap 497
Hi, When I currently have my activity on the font of the screen, how can I make Android to 'destory' my activity when user clicks 'back' button? (i.e. onDestory of my Activity gets called)? Thank you. --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Writing my ListAdapter for ListView

2009-09-18 Thread hap 497
Hi, I am trying to write a ListAdapter for an android ListView. In my ListAdapter's bindView(), I need to read a local file, generate a Bitmap and set the imageView of the row to this Bitmap. I find this kind of slow when running on G1. Is there any idea to help performance? Thank you.

[android-developers] Re: Writing my ListAdapter for ListView

2009-09-18 Thread hap 497
will end up spawning 1 thread per row in ListView, so that is kind of expensive. My ListView can ~ 50 rows. On Fri, Sep 18, 2009 at 4:37 PM, Mark Murphy mmur...@commonsware.com wrote: hap 497 wrote: Hi, I am trying to write a ListAdapter for an android ListView. In my ListAdapter's bindView(), I

[android-developers] How to query MMS or SMS message ID based on a phone number

2009-09-17 Thread hap 497
Hi, How can I query all the MMS/SMS messages from the same phone number? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] How are SMS and MMS save on android phone

2009-09-15 Thread hap 497
Hi, Can you please tell me if SMS and MMS are saved in 1 sql tables on android phone? Or each saved in its own table? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How are SMS and MMS save on android phone

2009-09-15 Thread hap 497
, Sep 15, 2009 at 9:46 PM, Alex Tang tangli1987...@gmail.com wrote: sms has its own table, separate with mms. On Sep 16, 9:23 am, hap 497 hap...@gmail.com wrote: Hi, Can you please tell me if SMS and MMS are saved in 1 sql tables on android phone? Or each saved in its own table? Thank you

[android-developers] Re: WebView and #links

2009-09-14 Thread hap 497
Hi, This email thread happened in Sept 2008. Can you please tell me if this bug is fixed (named anchor won't load in Webview) in cupcake builds? Thank you. On Sep 25, 5:45 pm, Mark Murphy [EMAIL PROTECTED] wrote: Tauno T wrote: I have a problem with WebView. If I call loadData() with a

[android-developers] How to listen for any change in the contact database

2009-09-09 Thread hap 497
Hi, I am trying to listen for any change in the contact database. So I create my contentObserver which is a child class of ContentObserver: private class MyContentObserver extends ContentObserver { public MyContentObserver() { super(null); } @Override

[android-developers] How to find out the width of a string when rendered using a certain text appearance?

2009-09-03 Thread hap 497
Hi, Is there any api to find out the width of a string when rendered using a certain text appearance? For example, I want to find out how long is the width if I render a string 'hello world' using ?android:attr/textAppearanceLargeInverse programatically in Java Code. Thank you.

[android-developers] Re: How to find out the width of a string when rendered using a certain text appearance?

2009-09-03 Thread hap 497
Thank you. But how can i specify a certain TextAppearance before calling Paint.getTextWidths()? On Thu, Sep 3, 2009 at 3:19 PM, gregsep...@eduneer.com wrote: Have you read about Paint.getTextWidths()? On Sep 3, 5:15 pm, hap 497 hap...@gmail.com wrote: Hi, Is there any api to find out

[android-developers] How does ResolverActivity or ChooserActivity getting launched?

2009-08-31 Thread hap 497
Hi, I am studying android's code, I can find how ResolverActivity or ChooserActivity is being launched? Can you please tell me how do they get launched? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: How does ResolverActivity or ChooserActivity getting launched?

2009-08-31 Thread hap 497
by Intent.createChooser On Mon, Aug 31, 2009 at 3:41 PM, hap 497 hap...@gmail.com wrote: Hi, I am studying android's code, I can find how ResolverActivity or ChooserActivity is being launched? Can you please tell me how do they get launched? Thank you. -- Dianne Hackborn Android framework engineer

[android-developers] How to use apache commons in my android application

2009-08-19 Thread hap 497
HI, Can you please tell me how to use apache.commons in my android application. I put the right import, but when I compile it I get the following error: : package org.apache.commons.io does not exist import org.apache.commons.io.IOUtils; Thank you for any help.

[android-developers] Re: How to use apache commons in my android application

2009-08-19 Thread hap 497
...@gmail.com wrote: If you're using eclipse, add the jar to the libs folder, right click the project, and add it to the libraries required. On Wed, Aug 19, 2009 at 7:51 PM, hap 497 hap...@gmail.com wrote: HI, Can you please tell me how to use apache.commons in my android application. I put

[android-developers] Re: How to simulate a TrackBall Event in emulator?

2009-07-27 Thread hap 497
event is moving left or moving right? I tried called event.getEdgeFlags() in the motion event, it always return 0. Thank you for any tip. On Jul 25, 11:45 am, hap 497 hap...@gmail.com wrote: i don't understand the answer. How can I do that on the emulator manually? E.g. I have

[android-developers] Re: How to simulate a TrackBall Event in emulator?

2009-07-25 Thread hap 497
: Mock testing see apiDemos for details..all the cool kids are doing it Fred Grott http://mobilebytes.wordpress.com On Jul 24, 1:48 pm, hap 497 hap...@gmail.com wrote: Hi, Can you please tell me how can I simulate a TrackBall Event in emulator? I just the left/right black button

[android-developers] How to simulate a TrackBall Event in emulator?

2009-07-24 Thread hap 497
Hi, Can you please tell me how can I simulate a TrackBall Event in emulator? I just the left/right black button in the middle of the emulator, but i set break point in dispatchKeyEvent() and dispatchTrackBallEvent() of the View.java. But only dispatchKeyEvent() breakpoint get activated. I want to

[android-developers] How to overlay an icon image on top of an existing view

2009-07-16 Thread hap 497
Hi, If I have a reference to a view, how can I overlay an icon image on top of an exisiting view? In the screenshot below: http://android.kanokgems.com/sms-unread-count It overlay an icon at the top right corner of the dialer icon. How can I do that? Thank you.

[android-developers] How to get an IM client runs on emulator

2009-07-16 Thread hap 497
Hi, The emulator does not install with any IM app. For testing purposing, I would like to have an IM application on the emulator. Can you please tell me how can I get one of these IM apps run on emulator? http://www.gandroidmix.com/im-clients-for-android-os/ Thank you.

[android-developers] How can I overlay an image on top of a view

2009-06-29 Thread hap 497
Hi, If I have a reference of a View (e.g. construct by inflating a xml file), how can add an image on top of it programically (not thru xml file)? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] IMAGE_CAPTURE Intent never returns to onActivityResult(int, int, Intent);

2009-06-26 Thread hap 497
Hi, I start an IMAGE_CAPTURE Intent like this, and my activity's onActivityResult() get called: Intent i = new Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); i.putExtra(return-data, true); startActivityForResult(i, PICK_ICON_FROM_CAMERA_ID); But, if I start my Intent like this,

[android-developers] How to attach a Bitmap when launching ACTION_SEND intend

2009-06-25 Thread hap 497
Hi, I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); startActivity(intent); which successfully launches an Messaging App on android. But how can i attach a Bitmap object when launching the intent? I have read

[android-developers] Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent

2009-06-25 Thread hap 497
HI, From the JavaDoc, the EXTRA_STREAM parameter when launching an intent needs to be an URI. How can I pass a Bitmap object which I get from launching a android.provider.MediaStore.ACTION_IMAGE_CAPTURE intent? /** * A content: URI holding a stream of data associated with the Intent,