[android-developers] Why there is no call back when a ContentProvider is shut down/destory

2011-02-11 Thread n179911
Hi, In android API, there is an onCreate() callback when a ContentProvider is created. Can you tell me why there is no call back when a ContentProvider is shut down/destory? And how can I perform some clean up actions when a ContentProvider is shut down/destoryed? Thank you. -- You received thi

[android-developers] Question about Launcher layout file

2010-12-16 Thread n179911
Hi, In the launcher layout file (launcher.xml), it uses android:layout_width="match_parent" in both DragLayer and Workspace. My question is why it uses 'match_parent' instead of 'wrap_content'? In the launcher, the whole DragLayer should contains 5 cells, each spans 1 phone screens. So shouldn't

[android-developers] What is Keyguard in andriod

2010-11-29 Thread n179911
Hi, In android source code, it has a class called "KeyguardViewManager" which said 'Manages creating, showing, hiding and resetting the keyguard.'. Can you please tell me how can I invoke Keyguard on my phone? is there an example in my android any default application which shows how the Keyguard i

[android-developers] Compile froyo source on Mac OS X

2010-09-24 Thread n179911
Hi, Can you please tell me if we can still compile froyo source on Mac OS X 10.5? Is it true that we need a 64 bit environment and Java 6 in order to compile froyo source? I don't think 10.5 is 64 bits and has Java6. Thank you. -- You received this message because you are subscribed to the Goo

[android-developers] Why there is no drawable-ldpi directory under frameworks/base/core/res/res

2010-07-16 Thread n179911
Hi, In android source code, frameworks/base/core/res/res are where android resource files are being saved. My question is why there is no drawable-lpi, there are only drawable-hpi , drawable-mpi. Isn't drawable-lpi is for low density resources, whereas drawable-hpi for high density and drawable-mp

[android-developers] How can I build a sdk so that I can use it with android eclipse

2010-03-02 Thread n179911
Hi, I am able to download and compile android source on my MacOSX environment. Can you please tell me how can I configure my android adp eclipse plugins so that it uses the android emulator that I built (out/host/darwin-x86/bin/emulator)? Thank you. -- You received this message because you are

[android-developers] How can I configure list view so that it can put focus to a focusable item within a list item

2010-02-20 Thread n179911
Hi, Can you please tell me how can I configure list view so that it can put focus to a focusable item within a list item? Android by default puts focus on the whole list item. Can I change it so that it can put focus to a focusable item within that item (e.g. a button)? Thank you. -- You receiv

[android-developers] How can I create TextAppearanceSpan which looks like an anchor

2010-02-18 Thread n179911
Hi, Can you please tell me how can I create a TextAppearanceSpan which looks like an anchor (a blue text with a blue underline under the text)? Thank you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] How can I configure TextView to draw text like an anchor

2010-02-15 Thread n179911
Hi, Is it possible to setText in TextView to draw like html anchor? (i.e text in blue with a blue underline) Thank you. Sam -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegrou

Re: [android-developers] Re: How can I align an ImageView to the right of the Parent?

2010-02-10 Thread n179911
b 10, 2010 at 7:47 PM, n179911 wrote: >> >> Basically, I want: >> >> >> --- >> | Imag

[android-developers] Re: How can I align an ImageView to the right of the Parent?

2010-02-10 Thread n179911
'android:layout_alignParentRight="true"' in my 2nd ImageView, but that does not align to the right of the parent. Any idea please? On Tue, Feb 9, 2010 at 2:23 PM, n179911 wrote: > Hi, > > I have the following l relative layout, which I want an Image to the > left and

[android-developers] How can I align an ImageView to the right of the Parent?

2010-02-09 Thread n179911
Hi, I have the following l relative layout, which I want an Image to the left and an Image to the right, then the rest is filled by TextView. But I can't get the last image to align right of the parent. I have added 'android:layout_alignParentRight="true"' but it does not work. Any idea please?

[android-developers] Error in compiling android source under ubuntu 9.10

2010-01-30 Thread n179911
Hi, I have download android source to ubuntu 9.10. And when i 'make', it runs fine for a while. And then I get see this error: host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt) /usr/bin/ld: out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutil

Re: [android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread n179911
On Tue, Jan 5, 2010 at 11:30 AM, Iroid wrote: > set the layout weight of TextView to 1. >                android:singleLine="true" >                android:layout_width="fill_parent" >                android:layout_height="wrap_content" >                android:layout_weight= "1" >              

[android-developers] How can I add a button to a linear layout 'right justified'

2010-01-05 Thread n179911
Hi, I have a linear layout like this: And I need to add a button to the above layout programatically which is right justified? I need to do that in code instead of layout xml file (this is because i can't modify that layout xml file) Here is what I am doing: LinearLayout

Re: [android-developers] Re: Need help in compiling android source on ubuntu 9.10

2009-12-22 Thread n179911
t; > Just a wildshot, try installing: > sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl > libncurses5-dev zlib1g-dev > > -- > Best regards, > Pawel > > On Dec 21, 6:04 am, n179911 wro

[android-developers] Need help in compiling android source on ubuntu 9.10

2009-12-20 Thread n179911
Hi, i am trying to compile android (download the source of the master trunk) on ubuntu 9.10. I am getting the following linker error. Can anyone please tell me how to fix it? Thank you. host Executable: acc (out/host/linux-x86/obj/EXECUTABLES/ acc_intermediates/acc) /usr/bin/ld: out/host/linux-

Re: [android-developers] Re: How to play the music in the earpiece instead of speaker?

2009-12-17 Thread n179911
Thank you. But how can I do this in Donut release? The setRouting is private. And when I look at AudioManger.java itself, it does not set Routing to ROUTE_EARPIECE anywhere. On Mon, Oct 19, 2009 at 7:39 PM, feeling3_4 wrote: > > I have find the solution, hope it can help others > AudioManager

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

2009-12-17 Thread n179911
Thanks Stoffe, Can you please tell me what you mean by using voice call setting? AudioManager.setMode() ? or Acivity.setVolumeControlStream(int streamType) ? On Mon, Nov 16, 2009 at 5:19 PM, Stoffe wrote: > Hi Hap! > > Try to use the voice call setting. > At least when used on AudioTrack the c

Re: [android-developers] How to draw a border like each row in a list view

2009-12-16 Thread n179911
Hi, I have tried to draw a horizontal line at the BOTTOM of my linear layout. Here is my linear layout file: http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="cente

[android-developers] How can I embed a ListVIew in my layout xml

2009-12-16 Thread n179911
Hi, I have a layout xml file which embeds a ListView: I have an adapter to bind/build views for the ListView. It works okay in portrait mode. But when I rotate the device (the height of the screen is shorter, the whole complete does not fit), there is

[android-developers] How can I alway instantiate my ContentProvider

2009-12-15 Thread n179911
Hi, In my application, I have created a ContentProvider. Is there a way for me to instantiate this ContentProvider when my apk is started? RIght now, the ContentProvider only instantiate when some one does a query. Thank you. -- You received this message because you are subscribed to the Google

[android-developers] The proper way to set a timer in android

2009-12-09 Thread n179911
Hi, What is the proper way to set a timer in android in order to kick off a task (a function that I create which does not change the UI)? Use this the Java way: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html Or there is a better way in android (android's handler)? Thank you. -- Y

[android-developers] How to show a 'Progress View' during a ListView is loading

2009-12-07 Thread n179911
Hi, In the android market app, the ListView shows a 'ProgressView' during the loading of the content of the ListView, and then when the loading is done, it shows the content of the ListView. Can you please tell me how to achieve that? Thank you. -- You received this message because you are sub

Re: [android-developers] Re: ListView not responding to Click or KeyPress

2009-12-04 Thread n179911
id:clickable="true" (and > > android:focusable="true") > > > > On Dec 2, 1:37 pm, n179911 wrote: > >> Hi, > >> > >> I have a simple ListView in my layout.xml file. > >> > >> >> android:layout_wi

[android-developers] ListView not responding to Click or KeyPress

2009-12-02 Thread n179911
Hi, I have a simple ListView in my layout.xml file. And in my javacode, I add a setOnItemClickListener() to my listview: listView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView parent, View view, int position, long id) {

[android-developers] How to draw a border like each row in a list view

2009-12-01 Thread n179911
Hi, Between each row in list view, android draw a horizontal line (fades away at both ends). If I have a LinearLayout view, how can i add a border like that? Thank you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

[android-developers] android Contacts application theme/style

2009-11-19 Thread n179911
Hi, Can you please tell me why the android Contacts application theme/style is using 'dark' theme? For example, the activity's background is Black instead of White. I have looked at their Android Manifest xml file and their layout xml file (e.g. call details.xml) file, but i don't see how they spe

[android-developers] How to make a LinearLayout fousable and its children change foreground color

2009-11-18 Thread n179911
Hi, I have a LinearLayout with 2 text View as its children. How can I make the children of LinearLayout to change foreground color (in this case, the text color of the text view) when the linearlayout has focus? Thank you. -- You received this message because you are subscri

[android-developers] How can CheckedTextView be instantiated?

2009-10-30 Thread n179911
In the android source code, CheckedTextView (frameworks/base/core/java/android/widget/CheckedTextView.java) is an abstract class. And yet, in select_dialog_singlechoice (/Volumes/android/mydroid-faves/frameworks/base/core/res/res/layout/select_dialog_singlechoice.xml), it is using CheckedTextView

[android-developers] Problems in putting android source in eclipse

2009-10-21 Thread n179911
Hi, I have followed this instruction to put android source in eclipse. http://source.android.com/using-eclipse But I get this error: The project was not built due to "A resource exists with a different case: '/donut/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/clas

[android-developers] What is the difference between 'mmm' and 'mm' command

2009-10-15 Thread n179911
Hi, In android build environment, what is the difference between 'mmm' and 'mm' command? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] How to fix android.os.DeadObjectException

2009-10-14 Thread n179911
When android unbind a service I created (service.MyService), I see the following DeadObjectException. Can you please tell me how can I fix this exception? W/ActivityManager( 583): Exception when unbinding service com.mycompany/.service.MyService W/ActivityManager( 583): android.os.DeadObjectEx

[android-developers] Is it possible to check if an activity is enabled or not?

2009-10-02 Thread n179911
Hi, If i know an activity by class name, is it possible to check if that activity is enabled or not? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] How to build the aidl tool

2009-09-29 Thread n179911
Hi, I get the android source. How can I build the aidl too that is part of android (the one which generates java file from an aidl file)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Does starting a query will notify content observer?

2009-09-28 Thread n179911
Hi, I have called an AsyncQueryHandler's startQuery function with a specified URL, will all the content observer observing that URL get notified? I asked this question because I don't understand how RecentCallsListActivity's Delete All function works. Here is the code, with comment:

[android-developers] Re: How to pass a LIst of MyObject in .aidl

2009-09-22 Thread n179911
/src/com/mycompany/mypackage/MyObject.java] Error 1 I appreciate if anyone can help me. On Tue, Sep 22, 2009 at 5:12 PM, n179911 wrote: > I have this method in my .aidl file: > > void getObjects(out List objList); > But I get this error > > src/com/mycompany/mypackage/ITestService.ai

[android-developers] How to pass a LIst of MyObject in .aidl

2009-09-22 Thread n179911
I have this method in my .aidl file: void getObjects(out List objList); But I get this error src/com/mycompany/mypackage/ITestService.aidl:26 parameter objList (1) unknown type List objList How to create a List of MyObject in .aidl? I know I need to create a Java class MyObject which implements

[android-developers] Question about API Demo Remote Service example

2009-09-21 Thread n179911
Hi, I am studying RemoteService example in Android's APISample. In the manifest file, it declares the service like this: My question is how can I specify the service to be 'auto-start', i.e. it gets start whenever the phone start?

[android-developers] How to force a ListView to rebuild/repaint itself

2009-09-16 Thread n179911
Hi, Is there anyway to force ListView to rebuild/repaint itself? i.e. re-get item from the ListAdapter (it can be a CursorAdapter or ArrayAdapter) and then repaint the all the list view which are visible? Thank you. --~--~-~--~~~---~--~~ You received this message

[android-developers] Why TabHost always setFocusableInTouchMode to true

2009-08-31 Thread n179911
Hi, Can you please tell me why TabHost always setFocusableInTouchMode to true? >From TabHost source code: private final void initTabHost() { setFocusableInTouchMode(true); setDescendantFocusability(FOCUS_AFTER_DESCENDANTS); } --~--~-~--~~~---~--

[android-developers] Re: How to change /sdcard to be not a read-only file system

2009-08-19 Thread n179911
er > ・T・ ・ ・Mobile・ stick together > > The views, opinions and statements in this email are those of > the author solely in their individual capacity, and do not > necessarily represent those of T-Mobile USA, Inc. > > > On Aug 19, 5:07 pm, n179911 wrote: >> Yes, i did st

[android-developers] Re: How to change /sdcard to be not a read-only file system

2009-08-19 Thread n179911
u using the SDK with an AVD? If so, this should not happen. > Otherwise, trying using the -sdcard option, as in: > mksdcard 32M mysdcard.img > emulator -sdcard mysdcard.img > > On Wed, Aug 19, 2009 at 3:28 PM, n179911 wrote: >> >> Hi, >> >&g

[android-developers] Re: How to change /sdcard to be not a read-only file system

2009-08-19 Thread n179911
views, opinions and statements in this email are those of > the author solely in their individual capacity, and do not > necessarily represent those of T-Mobile USA, Inc. > > > > On Aug 19, 3:28 pm, n179911 wrote: >> Hi, >> >> I am trying to copy a

[android-developers] How to change /sdcard to be not a read-only file system

2009-08-19 Thread n179911
Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png&#

[android-developers] How to query SMS and MMS Inbox

2009-08-18 Thread n179911
Hi, Is there a way to query SMS and MMS Inbox? There is a SMS.Inbox.CONTENT_URI and MMS.Inbox.CONTENT_URI but there is MmsSms does not has any Inbox.CONTENT_URI? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] How to register for SMS database changes

2009-08-16 Thread n179911
Hi, How can I register for SMS database changes? I tried: mCursor = mActivity.getContentResolver().query(Sms.CONTENT_URI, new String[] { Sms.ADDRESS }, null, null, null); mCursor.registerDataSetObserver(mydataSetObserver); where mydataSetObserver is implemented like t

[android-developers] How to register for SMS receiver action

2009-08-14 Thread n179911
Hi, Can you please tell me how to register SMS received ACTION? I tried the following, but when I set up a breakpoint in onReceive() never get called. Please help if you have any idea. import android.provider.Telephony.Sms.Intents; registerReceiver(new MyReceiver, new IntentFilter(Intents.SMS_

[android-developers] Help in using shape drawable as my background xml

2009-08-14 Thread n179911
I really appreciate if someone can help me with using how to use shape drawable as my background xml for my view. This is what I tried: But I never get the color. Android always gives me black text on white background, regardless what color attribute I put. http://schemas.android.com/apk/res/an

[android-developers] Re: using shape as my background never show the color I specify

2009-08-13 Thread n179911
I tried using http://schemas.android.com/apk/res/android"; android:shape="oval"> It should gives me a white circle for my view's background. Any idea? Thank you. On Thu, Aug 13, 2009 at 12:34 PM, n179911 wrote: > Hi, > > i specify the follo

[android-developers] using shape as my background never show the color I specify

2009-08-13 Thread n179911
Hi, i specify the following xml as my background for my view. It shows the oval, but the color is always white. I have played around with the android:color field, but the color never changes, it is always white. I tried "#FF", "#ff", "#00ff" Any idea? Thank you. http://schemas.an

[android-developers] How to simulate a MMS message on android emulator?

2009-08-11 Thread n179911
Hi, How to simulate a MMS message on emulator? >From the eclipse android plugins, I can only see 'SMS' option. I don't see any MMS message. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Re: TrackBall 'flinging'

2009-08-06 Thread n179911
> On Thu, Aug 6, 2009 at 9:11 AM, n179911 wrote: >> >> Hi, >> >> In android address book, I can 'fling' with a TrackBall. i.e. the >> ListView page up/down if I 'fling' with TrackBall (not fling on touch >> screen). >> However, wh

[android-developers] TrackBall 'flinging'

2009-08-06 Thread n179911
Hi, In android address book, I can 'fling' with a TrackBall. i.e. the ListView page up/down if I 'fling' with TrackBall (not fling on touch screen). However, when I look at the AddressBook Code or ListView Code, I don't see it implements 'dispatchTrackBall' method. Can you please tell me how is

[android-developers] How can I specify a border color for an ImageView when it has focus

2009-08-03 Thread n179911
Hi, In android, how can I specify a border color for an Image View when it has focus? e.g. how to put an orange border around an Image View when it has focus? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] What is the difference between findFocus() and focusSearch()

2009-07-29 Thread n179911
In ViewGroup, there are 2 public functions regarding moving focus: * findFocus() * focusSearch() So I have a ViewGroup, and I would like to customize who focus is being pass from one child to another via Key Left/Key Right/Key Up/Key down. Can you please tell me which method I should over-ride?

[android-developers] How to customize focus navigation in a ViewGroup

2009-07-28 Thread n179911
Hi, I have a View Group and it has 2 focusable Views as its children. I would like know how I can customize how focus is being passed between these 2 Views. In other words, when I press the Down Key or the Up Key in the emulator, i want to control which of these children has focus. I read the Ja

[android-developers] How does android Gallery scrolls on a TrackBall Event

2009-07-25 Thread n179911
Hi, Can you please tell me how can I make Gallery scrolls on TrackBall Event? Right now, it scrolls when I 'fling' it? Can you please tell me how can I do configure a Gallery to do the same (scrolls left/right) using TrackBall Events? Thank you. --~--~-~--~~~---~--~-

[android-developers] How to make andorid plugin does not start everything I launch eclipse

2009-07-24 Thread n179911
Hi, Is it possible to configure android eclipse plugin that it does not start up whenever I launch eclipse? I don't have android perspective enable, and yet android plugin start itself up as part of eclipse launch (i can tell by ddms port is no available). I would like android plugin to start whe

[android-developers] Re: Question about setComponent() of Iintent

2009-07-17 Thread n179911
On Fri, Jul 17, 2009 at 5:01 AM, Peli wrote: > > It is always best to look into the source code of the MMS app. > The Manifest defines *either* SENDTO + mms-URI *or* SEND + media URI: > http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=blob;f=AndroidManifest.xml;h=dd380e50427e78dbd

[android-developers] Re: Question about setComponent() of Iintent

2009-07-16 Thread n179911
:41 PM, Dianne Hackborn wrote: > That is not what it is for; it is to specify an Intent that is directly > targeted to one of your own components. > > On Thu, Jul 16, 2009 at 7:32 PM, n179911 wrote: >> >> Hi, >> >> I would like to know how to use the

[android-developers] Question about setComponent() of Iintent

2009-07-16 Thread n179911
Hi, I would like to know how to use the setComponent() of Intent. I read the javadoc. But how can I specify the Text Messaging Application when callings setComponent()? * @param component The name of the application component to handle the * intent, or null to let the system find one for

[android-developers] Phone number format when writing to Contact database in android

2009-07-16 Thread n179911
Hi, Is Phone number normalized to a standard format before writing to the Contacts Database? For example, if user enter 222333 or 222- when 'edit contact', it will be 'normalized' to a standard format (e.g. 222-). If the phone number is normalized to 1 format, then when search for a par

[android-developers] Re: Problem in running the android sky widget

2009-07-14 Thread n179911
devices, otherwise you could hard-code > values when debugging. > Thank you. Can you please tell me how to hard-code values? (i.e. which classes to put what hard code values) > j > > > On Tue, Jul 14, 2009 at 5:04 AM, bhoj wrote: >> >> same here even I am facing the s

[android-developers] How to query the number of unread SMS

2009-07-14 Thread n179911
Hi, Can you please tell me how can i query the number of unread SMS in android programmically? i.e. How can I implement the SMS unread count like this link: http://android.kanokgems.com/sms-unread-count/ Thank you. --~--~-~--~~~---~--~~ You received this message

[android-developers] Problem in running the android sky widget

2009-07-13 Thread n179911
Hi, I have download the android sky project and able to get it to compile it under eclipse. http://code.google.com/p/android-sky/ But when i try to add a 'Forecast' Widget on emulator, it pops up a 'Configure forecast widget', then I click 'Manual search' , I entered '60005' as my zip code. The

[android-developers] "Complete Action Using" dialog

2009-07-11 Thread n179911
Hi, Can you please tell me where in the android source code which invokes the "Complete Action Using" dialog? i.e. when I start an Intent, Android pops up a "Complete Action Using" dialog. Thank you for any help/pointer. --~--~-~--~~~---~--~~ You received this m

[android-developers] Can android run java class files

2009-07-09 Thread n179911
Hi, There are a lot of language which compiles into Java class files when can run on JVM (e.g. JRuby, Scala, Rhino). Can you please tell me if I can take those class files (compiles by the JRuby/Scala/Rhion compiler) and run it on Android platform? Thank you. --~--~-~--~~---

[android-developers] Re: How to use BitmapFactory.decodeStream to specify the size of my output Bitmap?

2009-07-08 Thread n179911
I think I know what is wrong outHeight is output values, not input values. On Wed, Jul 8, 2009 at 4:11 PM, n179911 wrote: > Hi, > > I have the following code which I tried to build a Bitmap from an > input stream and I want my output bitmap to be 20 x 20: > >   BitmapFa

[android-developers] How to use BitmapFactory.decodeStream to specify the size of my output Bitmap?

2009-07-08 Thread n179911
Hi, I have the following code which I tried to build a Bitmap from an input stream and I want my output bitmap to be 20 x 20: BitmapFactory.Options opts = new BitmapFactory.Options(); opts.outHeight = 20; opts.outWidth = 20; InputStream stream = // an input stream to my im

[android-developers] What is the version number of Webkit that is android's Webkit is based on?

2009-06-30 Thread n179911
Hi, How can I find out what is the version number of Webkit (the one from www.webkit.org) that is android's Webkit (the one in external/webkit) is based on? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] How to launch ACTION_SENDTO intent with Intent.EXTRA_STREAM parameter

2009-06-29 Thread n179911
Hi, My application is able to launch ACTION_SEND_TO with the following code: Intent intent4 = new Intent(Intent.ACTION_SENDTO, Uri.fromParts( "mailto", "testem...@gmail.com", null)); startActivity(intent4); But when try to attach JPEG file

[android-developers] Question about getFileStreamPath

2009-06-26 Thread n179911
In the following code, which create a File object using getFileStreamPath() with "temp-wallpaper" as parameter. File f = getFileStreamPath("temp-wallpaper"); (new File(f.getParent())).mkdirs(); Can you please tell me where is the file actually located? Thank you. --~--~-~-

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

2009-06-26 Thread n179911
n u'll have a >> problem deleting it... if u r mainitaining the status of the file(sent or >> yet to be sent), then u could have a thread that deletes all files that have >> been sent... but this is jus a suggestion, there're millions of other ways >> to do it... >>

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

2009-06-25 Thread n179911
Thank you. But if I write the image to a file, and invoke an Intent ACTION_SEND, passing that image to the intent. When/how can I delete the file? I can't rely on the ACTION_SEND removes that file for me, since it does not know I wrote the Bitmap to a temp file before I invoke the ACTION_SEND.

[android-developers] Catching ActivityNotFoundException

2009-06-23 Thread n179911
The JavaDoc of Context's public abstract void startActivity (Intent intent) said: This method throws ActivityNotFoundException if there was no Activity found to run the given Intent. But when I look at the android source code, it does not catch ActivityNotFoundException. For example in AlarmClo

[android-developers] How to see the content of database on G1

2009-06-22 Thread n179911
Hi, i hook up my G1 to my laptop and open a 'adb shell'. But as I execute the command 'cd /data/data', I get an error 'opendir failed, Permission denied' $ adb devices List of devices attached HT853GZ21556device $ adb shell $ cd /data/data $ ls opendir failed, Permission denied I tried to

[android-developers] Intent.FLAG_ACTIVITY_NEW_TASK

2009-06-21 Thread n179911
Hi, What is the meaning of 'addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);' in the following code? Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse(url)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); I don't see any difference with or without that line of

[android-developers] Re: How to listen for 'Enter Key is press' Event

2009-06-21 Thread n179911
> runs over it the resources will pull the focused drawable. Hope that > helps! > > On Jun 21, 1:25 am, n179911 wrote: >> Hi, >> >> I have a view and setOnClickListener to be my code. >> My code get invoked when I move my mouse to the view and click. >>

[android-developers] How to listen for 'Enter Key is press' Event

2009-06-20 Thread n179911
Hi, I have a view and setOnClickListener to be my code. My code get invoked when I move my mouse to the view and click. But how what do i need to register so that it will invoke my code when I navigate the focus (using up/down keys) and it has orange foreground and press ENTER key? Thank you. -

[android-developers] Re: Number of threads in Render Process on MacOSX

2009-06-20 Thread n179911
Sorry, wrong mailing list On Sat, Jun 20, 2009 at 4:37 PM, n179911 wrote: > From this > post http://blog.marcchung.com/2008/09/05/chromes-process-model-explained.html, > it said > Each Renderer process has two threads: one Render thread–which renders > web pages, and one I

[android-developers] Number of threads in Render Process on MacOSX

2009-06-20 Thread n179911
>From this >post http://blog.marcchung.com/2008/09/05/chromes-process-model-explained.html, it said Each Renderer process has two threads: one Render thread–which renders web pages, and one IPC thread–which transports data in a thread-safe, non- blocking manner between the Render thread and an IP

[android-developers] Can I dynamically switch Adapter of a Gallery

2009-06-19 Thread n179911
Hi, Is it possible for me to dynamically switch the adapter of a Gallery? In the onCreate() of my activity, I did this: myGallery.setAdapter(adapter1); And then later on in my code, I did myGallery.setAdapter(anotherAdapter1); I tried, that but in the emulator, the myGallery never gets update wh

[android-developers] Register to listen for outgoing calls

2009-06-18 Thread n179911
Hi, On android, is it possible to listen for all outgoing call events? i.e. my code get invoked when users make an out-going phone call? One possible way is to periodically pull call-log database for that information. But I would like to know if i can register for a notification when outgoing call

[android-developers] Re: Return value of getDrawingCache

2009-06-18 Thread n179911
Thank you. Can you please tell me if there is any API which can capture a View/ViewGroup of what is visible on screen? The result can be a Bitmap or a Picture? On Thu, Jun 18, 2009 at 10:30 AM, Romain Guy wrote: > > Just what the doc says: 'a bitmap representing this view.' That's the > whole

[android-developers] how to enable SkDEBUGF printf

2009-06-18 Thread n179911
Hi, In android c++ code, there are SkDEBUGF printf for debugging purpose. Can you tell me how to enable SkDEBUGF so that i can see the output on 'adb logcat'? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group