Hi,
When I click the home screen, android pops up a 'selection dialog' (i
am not sure what is the technical term) to ask me to add 'Widget',
'Shortcut', 'Folder', etc. etc.
Can you please tell me how to pop up those kind of selection dialog?
Where can I find example for that?
Thank you.
--~--~
On Sat, Jun 13, 2009 at 2:23 PM, Mark Murphy wrote:
>
> Lucius Fox wrote:
>> Can someone please help me understanding why in my emulator, i can
>> * in my settings-> manage application, see an entry for an application there
>> * but i cant' find the icon for l
Hi,
Can someone please help me understanding why in my emulator, i can
* in my settings-> manage application, see an entry for an application there
* but i cant' find the icon for launching that in All Application.
Can you please tell me how can I make my application launches on the emulator?
T
Hi,
I download and compile cupcake branch. But the Email App and IM App
(not Gmail and GTalk) is not installed on the emulator.
Can you please tell me how to install Email App and IM app?
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
Can you please tell me how can I get root access of my android phone?
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-developer
Hi,
In code callSelection of ContactsListActivity, it calls ListView's
getSelectedItem and casts the return to Cursor.
boolean callSelection() {
ListView list = getListView();
if (list.hasFocus()) {
Cursor cursor = (Cursor) list.getSelectedItem();
// omitted
Hi,
How can i build a URI for each person of the contact so that i can use
the following method in Contact.People
public static Bitmap loadContactPhoto(Context context, Uri person,
int placeholderImageResource, BitmapFactory.Options options)
Thank you.
--~--~-~--~~-
Hi,
I am reading this
http://developer.android.com/guide/topics/providers/content-providers.html
to query the database for all the contacts.
Specially, i do this to get the NAME and NUMBER of each contact. But
how can I get the PHOTO of each contact? What is the COLUMN I should
use?
Thank you.
Hi,
I would like to know how can I add picture in Avatar in Contact on the emulator?
When i click the 'avatar icon', it just pops up 'Select picture' and
no media found. How can I load some dummy images to the emulator and I
can select from that 'Select picture screen.
Thank you.
--~--~
On Fri, May 8, 2009 at 10:35 AM, Mark Murphy wrote:
>
> Lucius Fox wrote:
>> Hi,
>>
>> Is it possible to listen for WebView page load completed event (the
>> whole page is loaded including images, js files, css files and the
>> page is completely rendere
On Wed, Jun 3, 2009 at 9:16 AM, Lucius Fox wrote:
> On Fri, May 8, 2009 at 10:35 AM, Mark Murphy wrote:
>>
>> Lucius Fox wrote:
>>> Hi,
>>>
>>> Is it possible to listen for WebView page load completed event (the
>>> whole page is loaded includ
I was able to get the cupcake branch. I am not sure if there is a
branch for donut branch?
On Fri, May 29, 2009 at 3:07 PM, Romain Guy wrote:
>
> Hi,
>
> Everything is explained at source.android.com
>
> On Fri, May 29, 2009 at 3:03 PM, Lucius Fox wrote:
>>
>> Hi
Hi,
Can you please tell me how can I get the source code of donut branch?
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-developer
Hi,
In my activity, I create a database using the following:
db.execSQL("CREATE TABLE favorites (" +"_id INTEGER PRIMARY KEY)'" );
But can you please tell me where will android create the database file?
I try 'adb shell' and then 'cd /data/data/com.mycompany.myactivity',
but there is no d
Hi,
I am trying to follow to debug native application on MacOS:
http://honeypod.blogspot.com/2008/01/debug-native-application-for-android.html
But can somone please tell me where is arm-none-linux-gnueabi-gdb
equivalent on MacOS?
And why do I need both 'arm-none-linux-gnueabi-gdb' and 'gdbserv
Hi,
Is it possible to listen for WebView page load completed event (the
whole page is loaded including images, js files, css files and the
page is completely rendered.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
}
}
but how can I get the actual result from the 'execSQL' ?
Thank you.
> On Mon, May 4, 2009 at 9:51 AM, Lucius Fox wrote:
>>
>> Hi,
>>
>> Can you please tell me how to query the number of rows in a table in
>> Android?
Hi,
Can you please tell me how to query the number of rows in a table in
Android? Assume I have the name of the table in string.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
In my Activity onPause method, how can i find out if this activity is
launched by another activity? (e.g. when user clicks menu of another
activity to launch this activity?)
Should i use the
isTaskRoot()
Return whether this activity is the root of a task.
or
isChild()
Is this activity embedded i
Hi,
Can you please tell me how can I convert a android.graphics.Picture to
a android.graphics.Picture?
or how can i create a new Picture object which is a scaled version of
the original Picture object?
Thank you.
--~--~-~--~~~---~--~~
You received this message be
Hi,
Can you please tell me how can i set the width and height of an
ImageView programmically in java code (not layout xml file)?
I tried setMinimumWidth/setMinimumHeight, but that does not work. I
have looked at the view in HierarchyView, it still said the width to
be 80 and height to be 100. And
Hi,
I am trying to draw a rectangle using layout.xml file without java
code. So this is what I tried:
But I get these error when i run it in emulator:
E/AndroidRuntime( 760): Caused by: java.lang.ClassNotFoundException:
android.view.color in loader dalvik.system.pathclassloa...@4
On Sun, Apr 19, 2009 at 12:31 PM, Mark Murphy wrote:
>
> Lucius Fox wrote:
>> Do I need to set the height/width specifically for my ImageView to
>> match my backgroundDrawable? Or it will pick up automatically.
>
> ImageView scales the image to fit the view size, not t
Hi,
In Hierarchy Viewer, it has absolute_x and absolute_y property. Can
you please tell me what are the corresponding value in the Java class?
is it 'mScrollX' 'mScrollY' of teh android/view/View.java? If not, can
you please tell me what is that.
Thank you.
--~--~-~--~~~
Hi,
I am getting the following SecurityException when I try to insert an
entry to DB:
Can you please tell me how can I fix my issue?
/AndroidRuntime( 857): Caused by: java.lang.SecurityException:
Permission Denial: writing com.mycompany.myapp uri
content://com.mycompany.myapp.settings/favorites
Hi,
I have created a ImageView
BitmapDrawable bitmapDrawalbe = new BitmapDrawable();
ImageView imageView = new ImageView(this);
imageView.setBackgroundDrawable(bitmapDrawalbe);
where BitmapDrawable has an attribute of 'Bitmap' and its getWidth and
getHeight are:
public
Hi,
I read http://developer.android.com/guide/topics/fundamentals.html#lcycles
which said "The foreground lifetime of an activity happens between a
call to onResume() until a corresponding call to onPause(). During
this time, the activity is in front of all other activities on screen
and is inte
Hi,
How to get the source of the android 1.5 preview SDK? Should I get the
trunk? or get the cupcake branch?
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this gro
Hi,
I invoke 'adb shell' process, and did a ps.
But in the ps output, I don't any process for 'shell' , can you please
tell me why?
# ps
USER PID PPID VSIZE RSS WCHANPC NAME
root 1 0 264 176 c008b8ac c36c S /init
root 2 0 0 0 c004b138
Hi,
Can someone please help me understanding what is the android zygote process?
From, it appears listen commands on a socket and spawn a thread for
that? Is that true?
if yes, what are examples of those commands? Under what situation that
android zygote process will be used?
Thank you.
--~--~-
's process.
>
> On Mon, Apr 6, 2009 at 5:53 PM, Lucius Fox wrote:
>>
>> Hi,
>>
>> Each activity has a onCreate/OnDestory method. And I think they are
>> being invoked by frameworks/base/core/java/Instrumentation.java.
>>
>> My question is wh
Hi,
Each activity has a onCreate/OnDestory method. And I think they are
being invoked by frameworks/base/core/java/Instrumentation.java.
My question is what it is process calling
Instrumentation.callActivityOnDestory() and
Instrumentation.callActivityOnStart()?
Does that process has root permiss
When I look at all the views in HierarchyViewer, why there are
multiple views's 'hasFocus' is true?
I am under the assumption that only 1 view can have focus at a time.
If so, why there are multiple view's hasFocus be true?
Thank you.
--~--~-~--~~~---~--~~
You rec
I am getting a StackOverflow error inside ViewRoot, I would appreciate
some help in troubleshooting it?
I don't understand why it causes a StackOverflow, since from the stack
trace, it is not calling something recursive.
And i don't understand why it report line 2155 as the line for the exception:
What's a "hort. fling"? Horizontal? ListView does not need horizontal
> flings and therefore does not detect them nor does it notify of them.
>
> On Tue, Mar 24, 2009 at 3:37 PM, Lucius Fox wrote:
>>
>> Thanks. Is there a hook for application to get notified wh
06 AM, Romain Guy wrote:
>
> ListView does not use a GestureDetector.
>
> On Tue, Mar 24, 2009 at 11:03 AM, Lucius Fox wrote:
>>
>> Hi,
>>
>> Can you please tell me which method in ListView is handling the fling
>> action (up and down)?
>> I look at t
Hi,
Can you please tell me which method in ListView is handling the fling
action (up and down)?
I look at the source of ListView, I don't see a GestureDectector there.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
ports is probably best done as just a custom dialog.
>
> On Sat, Mar 21, 2009 at 11:56 PM, Lucius Fox wrote:
>>
>> Hi,
>>
>> How is android's AlertDialog layout define? Is there a layout.xml file
>> corresponding to the AlertDialog?
>> I have looked at A
u override these 2 methods:
>
> onCreateDialog(int yourId)
> //called by Android the first time that you call showDialog.
> //You may use the AlertDialog.Builder technique in this method.
>
> onPrepareDialog(int yourId, Dialog dialog)
> //called by Android each time t
Hi,
How is android's AlertDialog layout define? Is there a layout.xml file
corresponding to the AlertDialog?
I have looked at AlertDialog implementation, But i don't figure out
how that is being layout (e.g. the location of the button, the
location of text) Where are they defined? And how can I c
Hi,
In my layout xml, I have:
My question is how can I get a reference to TabWidget object.
I tried this:
mTabWidget = (TabWidget) findViewById(com.android.internal.R.id.tabs);
but this won't compile since 'com.android.internal.R is not visible.
And then I try change the id to an
>From http://d.android.com/guide/topics/ui/declaring-layout.html, it said
"Instantiate layout elements at runtime. Your application can create
View and ViewGroup objects (and manipulate their properties)
programmatically."
Can you please tell me how/where I can find example for that?
For example
Hi,
In the Tab2 of TabActivity in the APIDemo example, it has this method
to create a View object for each tab:
public View createTabContent(String tag) {
final TextView tv = new TextView(this);
tv.setText("Content for tab with tag " + tag);
return tv;
}
Can you pleas
James,
Thank you.
On Sun, Feb 8, 2009 at 5:09 AM, James wrote:
>
> OK. I found it faster than I thought or I would have waited to make
> that last reply.
>
> You have two options:
> 1.) put the parcelable in an intent, then get it back out.
> -- this would be instead of calling the Creator
Hi,
I follow the following example in creating a Parcelable object:
http://code.google.com/android/reference/android/os/Parcelable.html
And I did the following to unit test the CREATOR and writeToParcel method:
Parcel dummyParcel = Parcel.obtain();
MyParcelable p = new MyParceable("12345");
p
Hi,
I understand that Android has an Instrumentation for unit testing.
In my android activity, I have a ListView and when user clicks on it, it
pops up an dialog which 2 choices. And when user clicks one of the choices,
it will pop up another form which allow users to enter move information and
f
el wrote:
> > R.string.btn_yes is the string that appear on your button.
> > Not the id !
> >
> > findVienwById wants an id !
> >
> > Emmanuelhttp://androidblogger.blogspot.com/
> >
> > On Feb 5, 8:35 am, Lucius Fox w
Hi,
I create a dialog using this:
Dialog d = new AlertDialog.Builder(MyActivity.this)
.setPositiveButton(R.string.btn_yes, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
dummy();
Hi,
I am trying to follow the steps below (found in an earlier email thread
from Anil Yadav (anily0...@gmail.com):
Step 1: First launch emulator from command line (by typing Emulator
command)
Step 2: Then launch DDMS using command line (by typing DDMS command)
Step 3: Start your application in e
Thanks. how can I seutp the emulator to record audio?
I am using Ubuntu as my development environment. How can I setup the
emulator for that?
Thank you.
On Sun, Jan 11, 2009 at 2:23 PM, hmmm wrote:
>
> To Record audio to a new file on sd card I did as follows and worked for me
> with emulator
Thanks. Can you please tell me how can I write/run a c++ hello world program
on the android emulator (on linux).
And how can i run gdb to debug it?
Thank you.
On Tue, Dec 30, 2008 at 2:06 PM, AlexG wrote:
>
> Hi
>
> A good way to start is running:
>
> ./adb shell ls /
> So you can see all the
51 matches
Mail list logo