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
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 i
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
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
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 receiv
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
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
b 10, 2010 at 7:47 PM, n179911 wrote:
>>
>> Basically, I want:
>>
>>
>> ---
>> | Imag
'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
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:
out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutil
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"
>
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
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
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-
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
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
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
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
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
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
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
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
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) {
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 spe
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
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:
'/donut/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/clas
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
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
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 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
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:
/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
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
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?
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
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);
}
--~--~-~--~~~---~--
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
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
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
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
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
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
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_
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
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
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
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
> 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
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
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
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?
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
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 whe
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
: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
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
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
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
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
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
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
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.
--~--~-~--~~---
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
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
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
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
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.
--~--~-~-
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...
>>
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 AlarmClo
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,
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
> 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.
>>
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.
-
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
>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
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
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
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
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
86 matches
Mail list logo