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
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
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 is
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
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
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
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
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 to
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: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 n179...@gmail.com wrote:
Hi,
I have the following l relative layout, which I want an Image to the
left and an Image to the right
, 2010 at 7:47 PM, n179911 n179...@gmail.com wrote:
Basically, I want:
---
| ImageView | TextView fill up the rest | ImageView
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?
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:
Hi,
I have a linear layout like this:
LinearLayout android:id=@+id/header
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal
android:gravity=center_vertical
ImageView android:id=@+id/icon
On Tue, Jan 5, 2010 at 11:30 AM, Iroid irfan.f.k...@gmail.com wrote:
set the layout weight of TextView to 1.
TextView android:id=@+id/atitle
android:singleLine=true
android:layout_width=fill_parent
android:layout_height=wrap_content
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 n179...@gmail.com wrote:
Hi,
i am trying to compile android (download
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:
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 kristoffer.gronow...@gmail.comwrote:
Hi Hap!
Try to use the voice call setting.
At least
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 lanwen.ban...@gmail.com wrote:
I have find the solution, hope it can help
Hi,
I have a layout xml file which embeds a ListView:
ScrollView android:layout_width=fill_parent
android:layout_height=0dip android:layout_weight=1
android:scrollbarStyle=outsideOverlay
android:fillViewport=true
LinearLayout android:orientation=vertical
Hi,
I have tried to draw a horizontal line at the BOTTOM of my linear layout.
Here is my linear layout file:
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal
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
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.
--
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
this: Add android:clickable=true (and
android:focusable=true)
On Dec 2, 1:37 pm, n179911 n179...@gmail.com wrote:
Hi,
I have a simple ListView in my layout.xml file.
ListView android:id=@+id/action_list
android:layout_width=fill_parent
Hi,
I have a simple ListView in my layout.xml file.
ListView android:id=@+id/action_list
android:layout_width=fill_parent
android:layout_height=wrap_content
/
And in my javacode, I add a setOnItemClickListener() to my listview:
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,
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
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?
LinearLayout
TextView android:id=@+id/name
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
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:
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
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):
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
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:
/mypackage/MyObject.java]
Error 1
I appreciate if anyone can help me.
On Tue, Sep 22, 2009 at 5:12 PM, n179911 n179...@gmail.com wrote:
I have this method in my .aidl file:
void getObjects(out ListMyObject objList);
But I get this error
src/com/mycompany/mypackage/ITestService.aidl:26
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?
service android:name=.app.RemoteService
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
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);
}
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': Read-only file
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 n179...@gmail.com wrote:
Hi,
I am trying to copy an image to the emulator sd card by:
$ adb push ~/Desktop/bullet_ball_glass_red.png
/sdcard
, this should not happen.
Otherwise, trying using the -sdcard file option, as in:
mksdcard 32M mysdcard.img
emulator -sdcard mysdcard.img other options
On Wed, Aug 19, 2009 at 3:28 PM, n179911 n179...@gmail.com wrote:
Hi,
I am trying to copy an image to the emulator sd card by:
$ adb push
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 n179...@gmail.com wrote:
Yes, i did start my emulator with -sdcard with the file I created by
$ mksdcard 256M sd256m.img
$ put
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
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.
?xml version=1.0 encoding=utf-8?
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
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.
?xml version=1.0
I tried using
?xml version=1.0 encoding=utf-8?
shape xmlns:android=http://schemas.android.com/apk/res/android;
android:shape=oval
stroke android:width=1dip android:color=#FBBB /
solid android:color=#6000/
/shape
It should gives me a white circle for my view's background.
Any idea?
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
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
, 2009 at 9:11 AM, n179911 n179...@gmail.com 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, when I look at the AddressBook Code or ListView Code, I don't
see it implements
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
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
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.
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
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
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
that is directly
targeted to one of your own components.
On Thu, Jul 16, 2009 at 7:32 PM, n179911 n179...@gmail.com wrote:
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
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.
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
am, n179911 n179...@gmail.com wrote:
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
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
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.
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
I think I know what is wrong outHeight is output values, not input values.
On Wed, Jul 8, 2009 at 4:11 PM, n179911n179...@gmail.com 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:
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
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
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...
On Fri, Jun 26, 2009 at 11:06 AM, n179911 n179...@gmail.com
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.
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.
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
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
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.
runs over it the resources will pull the focused drawable. Hope that
helps!
On Jun 21, 1:25 am, n179911 n179...@gmail.com 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.
But how what do i need to register so
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
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 IPC
Sorry, wrong mailing list
On Sat, Jun 20, 2009 at 4:37 PM, n179911n179...@gmail.com 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 IPC
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
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
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 romain...@google.com wrote:
Just what the doc says: 'a bitmap representing this view.'
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
81 matches
Mail list logo